]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
26a8476961acb41dec2f427a45390fe97e061861
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
2
3 * testsuite/libgomp.fortran/teams-1.f90: New test.
4
5 2021-11-11 Jakub Jelinek <jakub@redhat.com>
6
7 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
8 * team.c (struct gomp_thread_start_data): Likewise.
9 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
10 (gomp_team_start): Initialize start_data->num_teams and
11 start_data->team_num. Update nthr->num_teams and nthr->team_num.
12 * teams.c (gomp_num_teams, gomp_team_num): Remove.
13 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
14 instead of gomp_num_teams and gomp_team_num.
15 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
16 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
17 * testsuite/libgomp.c/teams-4.c: New test.
18
19 2021-11-11 Jakub Jelinek <jakub@redhat.com>
20
21 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
22
23 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
24
25 * env.c (parse_gomp_openacc_dim): Restore parsing.
26
27 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
28
29 PR middle-end/102972
30 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
31 parallel construct.
32 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
33 * testsuite/libgomp.c/target-3.c: Likewise.
34 * testsuite/libgomp.c/target-5.c: Likewise.
35 * testsuite/libgomp.c/target-6.c: Likewise.
36 * testsuite/libgomp.c/target-teams-1.c: Likewise.
37 * testsuite/libgomp.c/teams-1.c: Likewise.
38 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
39 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
40 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
41 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
42 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
43 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
44 * testsuite/libgomp.fortran/teams1.f90: Likewise.
45
46 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
47
48 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
49 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
50
51 2021-10-27 Jakub Jelinek <jakub@redhat.com>
52
53 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
54 aren't implemented for Fortran yet.
55
56 2021-10-27 Jakub Jelinek <jakub@redhat.com>
57
58 * testsuite/libgomp.c/loop-26.c: New test.
59 * testsuite/libgomp.c/loop-27.c: New test.
60
61 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
62
63 PR testsuite/102910
64 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
65 instead of #include <alloca.h> + alloca.
66
67 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
68
69 * libgomp.texi (Support of strictly structured blocks in Fortran):
70 Adjust to 'Y'.
71 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
72
73 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
74
75 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
76 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
77
78 2021-10-20 Jakub Jelinek <jakub@redhat.com>
79
80 PR libgomp/102838
81 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
82 (struct gomp_work_share): Only use aligned(64) attribute if
83 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
84 add padding before lock to ensure lock is at offset 64 bytes
85 into the structure.
86 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
87 New poor man's static assertions.
88 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
89 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
90
91 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
92 Richard Biener <rguenther@suse.de>
93
94 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
95
96 2021-10-18 Jakub Jelinek <jakub@redhat.com>
97
98 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
99 && gomp_places_list_len < count after nfirst <= nlast loop condition.
100
101 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
102
103 PR fortran/102086
104 PR fortran/92189
105 PR fortran/92621
106 PR fortran/101308
107 PR fortran/101309
108 PR fortran/101635
109 PR fortran/92482
110 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
111
112 2021-10-15 Jakub Jelinek <jakub@redhat.com>
113
114 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
115 type from char [50] to const char *.
116 (places_array): Add a testcase for simplified syntax place followed
117 by length or length and stride.
118
119 2021-10-15 Jakub Jelinek <jakub@redhat.com>
120
121 * env.c (parse_one_place): Handle non-negative-number the same
122 as { non-negative-number }. Reject even !number:1 and
123 !number:1:stride or !place:1 or !place:1:stride instead of just
124 length other than 1.
125 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
126 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
127 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
128 as implemented.
129 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
130 simplified syntax.
131
132 2021-10-15 Jakub Jelinek <jakub@redhat.com>
133
134 * env.c (parse_schedule): For strtoul or strtoull calls which don't
135 clearly reject return value 0 as invalid handle the case where end
136 pointer is the same as first argument as invalid.
137 (parse_unsigned_long_1): Likewise.
138 (parse_one_place): Likewise.
139 (parse_places_var): Likewise.
140 (parse_stacksize): Likewise.
141 (parse_spincount): Likewise.
142 (parse_affinity): Likewise.
143 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
144 Make code valid C89.
145 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
146 For strtoul calls which don't clearly reject return value 0 as
147 invalid handle the case where end pointer is the same as first
148 argument as invalid.
149 (gomp_affinity_init_level_1): Likewise.
150 (gomp_affinity_init_numa_domains): Likewise.
151 * config/rtems/proc.c (parse_thread_pools): Likewise.
152
153 2021-10-15 Jakub Jelinek <jakub@redhat.com>
154
155 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
156 after creating count places clean up and return immediately.
157 * testsuite/libgomp.c/places-6.c: New test.
158 * testsuite/libgomp.c/places-7.c: New test.
159 * testsuite/libgomp.c/places-8.c: New test.
160 * testsuite/libgomp.c/places-9.c: New test.
161 * testsuite/libgomp.c/places-10.c: New test.
162
163 2021-10-15 Jakub Jelinek <jakub@redhat.com>
164
165 * env.c (parse_places_var): Handle numa_domains as level 5.
166 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
167 function.
168 (gomp_affinity_init_level): Use it instead of
169 gomp_affinity_init_level_1 for level == 5.
170 * testsuite/libgomp.c/places-5.c: New test.
171
172 2021-10-15 Jakub Jelinek <jakub@redhat.com>
173
174 * env.c (parse_places_var): Handle ll_caches as level 4.
175 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
176 function.
177 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
178 last level cache.
179 (gomp_affinity_init_level): Likewise.
180 * testsuite/libgomp.c/places-1.c: New test.
181 * testsuite/libgomp.c/places-2.c: New test.
182 * testsuite/libgomp.c/places-3.c: New test.
183 * testsuite/libgomp.c/places-4.c: New test.
184
185 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
186
187 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
188 directive.
189
190 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
191
192 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
193
194 2021-10-12 Julian Brown <julian@codesourcery.com>
195
196 * target.c (gomp_copy_host2dev): Release device lock on cbuf
197 error path.
198
199 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
200
201 * testsuite/libgomp.fortran/icv-3.f90: New.
202 * testsuite/libgomp.fortran/icv-4.f90: New.
203
204 2021-10-12 Jakub Jelinek <jakub@redhat.com>
205
206 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
207 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
208 OMP_TEAMS_THREAD_LIMIT): Document.
209
210 2021-10-12 Jakub Jelinek <jakub@redhat.com>
211
212 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
213 to avoid makeinfo warnings.
214
215 2021-10-12 Jakub Jelinek <jakub@redhat.com>
216
217 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
218 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
219
220 2021-10-12 Jakub Jelinek <jakub@redhat.com>
221
222 PR libgomp/102628
223 PR libgomp/102668
224 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
225 allocation sizes from 420 to 320 and from 768 to 568.
226 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
227 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
228 for cr from 16 to 4.
229
230 2021-10-12 Jakub Jelinek <jakub@redhat.com>
231
232 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
233 * testsuite/libgomp.c/scan-12.c: Likewise.
234 * testsuite/libgomp.c/scan-13.c: Likewise.
235 * testsuite/libgomp.c/scan-14.c: Likewise.
236 * testsuite/libgomp.c/scan-15.c: Likewise.
237 * testsuite/libgomp.c/scan-16.c: Likewise.
238 * testsuite/libgomp.c/scan-17.c: Likewise.
239 * testsuite/libgomp.c/scan-18.c: Likewise.
240 * testsuite/libgomp.c/scan-19.c: Likewise.
241 * testsuite/libgomp.c/scan-20.c: Likewise.
242 * testsuite/libgomp.c/scan-21.c: Likewise.
243 * testsuite/libgomp.c/scan-22.c: Likewise.
244 * testsuite/libgomp.c++/scan-9.C: Likewise.
245 * testsuite/libgomp.c++/scan-10.C: Likewise.
246 * testsuite/libgomp.c++/scan-11.C: Likewise.
247 * testsuite/libgomp.c++/scan-12.C: Likewise.
248 * testsuite/libgomp.c++/scan-13.C: Likewise.
249 * testsuite/libgomp.c++/scan-14.C: Likewise.
250 * testsuite/libgomp.c++/scan-15.C: Likewise.
251 * testsuite/libgomp.c++/scan-16.C: Likewise.
252
253 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
254
255 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
256
257 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
258
259 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
260 omp_atv_serialized.
261 * omp.h.in: Add deprecated flag for omp_atv_sequential.
262 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
263 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
264 * testsuite/libgomp.fortran/alloc-12.f90: New test.
265
266 2021-10-11 Jakub Jelinek <jakub@redhat.com>
267
268 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
269 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
270 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
271 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
272 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
273 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
274 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
275 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
276 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
277 omp_set_teams_thread_limit{,_,_8_}.
278 * icv.c (omp_set_num_teams, omp_get_max_teams,
279 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
280 functions.
281 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
282 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
283 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
284 vars.
285 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
286 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
287 is not specified, use gomp_nteams_var.
288 * fortran.c (omp_set_num_teams, omp_get_max_teams,
289 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
290 ialias_redirect.
291 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
292 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
293 omp_get_teams_thread_limit_): New functions.
294
295 2021-10-09 liuhongt <hongtao.liu@intel.com>
296
297 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
298 * testsuite/libgomp.c++/scan-11.C: Ditto.
299 * testsuite/libgomp.c++/scan-12.C: Ditto.
300 * testsuite/libgomp.c++/scan-13.C: Ditto.
301 * testsuite/libgomp.c++/scan-14.C: Ditto.
302 * testsuite/libgomp.c++/scan-15.C: Ditto.
303 * testsuite/libgomp.c++/scan-16.C: Ditto.
304 * testsuite/libgomp.c++/scan-9.C: Ditto.
305 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
306 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
307 * testsuite/libgomp.c/scan-11.c: Ditto.
308 * testsuite/libgomp.c/scan-12.c: Ditto.
309 * testsuite/libgomp.c/scan-13.c: Ditto.
310 * testsuite/libgomp.c/scan-14.c: Ditto.
311 * testsuite/libgomp.c/scan-15.c: Ditto.
312 * testsuite/libgomp.c/scan-16.c: Ditto.
313 * testsuite/libgomp.c/scan-17.c: Ditto.
314 * testsuite/libgomp.c/scan-18.c: Ditto.
315 * testsuite/libgomp.c/scan-19.c: Ditto.
316 * testsuite/libgomp.c/scan-20.c: Ditto.
317 * testsuite/libgomp.c/scan-21.c: Ditto.
318 * testsuite/libgomp.c/scan-22.c: Ditto.
319
320 2021-10-09 Jakub Jelinek <jakub@redhat.com>
321
322 * libgomp.texi (OpenMP 5.1): Mention implemented support for
323 structured block sequences in C/C++. Mention support for
324 unconstrained/reproducible modifiers on order clause.
325 Mention partial (C/C++ only) support of extentensions to atomics
326 construct. Mention partial (C/C++ on clause only) support of
327 align/allocator modifiers on allocate clause.
328
329 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
330
331 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
332 based on libgomp.c-c++-common/order-reproducible-1.c.
333 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
334 * testsuite/libgomp.fortran/my-usleep.c: New test.
335
336 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
337
338 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
339 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
340 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
341 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
342 based on libgomp.c-c++-common/alloc-9.c.
343
344 2021-10-01 Jakub Jelinek <jakub@redhat.com>
345
346 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
347 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
348
349 2021-10-01 Jakub Jelinek <jakub@redhat.com>
350
351 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
352 ialias_redirect.
353 * env.c (handle_omp_display_env): Use ialias_call.
354 * icv-device.c: Move ialias right below each function.
355 (omp_get_device_num): Use ialias_call.
356 * fortran.c (omp_fulfill_event): Add ialias_redirect.
357 * icv.c (omp_get_active_level): Add ialias_redirect.
358
359 2021-10-01 Jakub Jelinek <jakub@redhat.com>
360
361 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
362 __alloc_align__ (1) attribute.
363 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
364
365 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
366
367 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
368 for -fintrinsic-modules-path= warning of the C compiler.
369 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
370 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
371
372 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
373
374 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
375 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
376 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
377 omp_realloc): Add.
378 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
379 omp_realloc): Add.
380 * testsuite/libgomp.fortran/alloc-10.f90: New test.
381 * testsuite/libgomp.fortran/alloc-6.f90: New test.
382 * testsuite/libgomp.fortran/alloc-7.c: New test.
383 * testsuite/libgomp.fortran/alloc-7.f90: New test.
384 * testsuite/libgomp.fortran/alloc-8.f90: New test.
385 * testsuite/libgomp.fortran/alloc-9.f90: New test.
386
387 2021-09-30 Jakub Jelinek <jakub@redhat.com>
388
389 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
390 omp_realloc): New prototypes.
391 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
392 attribute.
393 * allocator.c: Include string.h.
394 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
395 variable and use it instead of alignment so that when retrying the old
396 alignment is used again. Don't retry if new alignment is the same
397 as old alignment, unless allocator had pool size.
398 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
399 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
400 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
401 omp_aligned_calloc and omp_realloc.
402 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
403 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
404 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
405 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
406 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
407 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
408
409 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
410
411 PR libgomp/96661
412 * configure.ac: Only check for int-type = 2*size_t support when
413 building with Fortran support.
414 * configure: Regenerate.
415
416 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
417
418 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
419 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
420
421 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
422
423 * team.c: Initialize start_data.
424 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
425 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
426
427 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
428
429 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
430 dg-message back to dg-note.
431
432 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
433
434 PR fortran/94070
435 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
436 expected dg-note output.
437
438 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
439
440 PR fortran/55534
441 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
442 r12-3722 by removing -Wno-missing-include-dirs.
443 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
444
445 2021-09-22 Jakub Jelinek <jakub@redhat.com>
446
447 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
448 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
449
450 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
451
452 PR fortran/55534
453 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
454 to ALWAYS_CFLAGS.
455 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
456
457 2021-09-18 Jakub Jelinek <jakub@redhat.com>
458
459 * testsuite/libgomp.c++/default-1.C: New test.
460 * testsuite/libgomp.c-c++-common/default-1.c: New test.
461 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
462 to default clause in C and C++" as implemented.
463
464 2021-09-17 Julian Brown <julian@codesourcery.com>
465
466 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
467
468 2021-09-17 Julian Brown <julian@codesourcery.com>
469
470 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
471
472 2021-09-17 Jakub Jelinek <jakub@redhat.com>
473
474 * libgomp.texi (OpenMP 5.1): Spelling fix,
475 declare variante -> declare variant.
476
477 2021-09-17 Jakub Jelinek <jakub@redhat.com>
478
479 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
480 Use /* */ comments instead of //.
481 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
482 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
483 * testsuite/libgomp.c++/atomic-16.C: New test.
484 * testsuite/libgomp.c++/atomic-17.C: New test.
485
486 2021-09-10 Jakub Jelinek <jakub@redhat.com>
487
488 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
489 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
490 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
491
492 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
493
494 * libgomp.texi (OpenMP Implementation Status): Extend
495 OpenMP 5.0 section.
496 (OpenACC Profiling Interface): Fix typo.
497
498 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
499
500 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
501 not to 4.5; link to new section.
502 (OpenMP Implementation Status): New.
503
504 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
505
506 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
507
508 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
509
510 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
511 dg-output.
512 * testsuite/libgomp.fortran/error-1.f90: Likewise.
513
514 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
515 Jakub Jelinek <jakub@redhat.com>
516
517 * testsuite/libgomp.c/address-space-1.c: New file.
518
519 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
520
521 * testsuite/lib/libgomp.exp
522 (check_effective_target_offload_target_intelmic): Remove 'proc'.
523 (check_effective_target_offload_device_intel_mic): New 'proc'.
524 * testsuite/libgomp.c-c++-common/on_device_arch.h
525 (device_arch_intel_mic, on_device_arch_intel_mic): New.
526 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
527 'dg-xfail-run-if'.
528 * testsuite/libgomp.fortran/target10.f90: Likewise.
529
530 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
531
532 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
533 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
534 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
535 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
536
537 2021-08-23 Jakub Jelinek <jakub@redhat.com>
538
539 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
540 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
541 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
542
543 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
544
545 * config/nvptx/error.c (fwrite, exit): Override, too.
546 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
547 of offloading testing.
548 * testsuite/libgomp.fortran/error-1.f90: Likewise.
549
550 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
551
552 * testsuite/libgomp.fortran/error-1.f90: New test.
553
554 2021-08-20 Jakub Jelinek <jakub@redhat.com>
555
556 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
557 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
558 * error.c (GOMP_warning, GOMP_error): New functions.
559 * testsuite/libgomp.c-c++-common/error-1.c: New test.
560
561 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
562
563 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
564 omp_target_free. omp_target_is_present, omp_target_memcpy,
565 omp_target_memcpy_rect, omp_target_associate_ptr,
566 omp_target_disassociate_ptr): Add interface.
567 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
568 omp_target_free. omp_target_is_present, omp_target_memcpy,
569 omp_target_memcpy_rect, omp_target_associate_ptr,
570 omp_target_disassociate_ptr): Add interface.
571 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
572 interface block for omp_alloc + omp_free.
573 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
574 * testsuite/libgomp.fortran/refcount-1.f90: New test.
575 * testsuite/libgomp.fortran/target-12.f90: New test.
576
577 2021-08-18 Jakub Jelinek <jakub@redhat.com>
578
579 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
580
581 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
582
583 * testsuite/libgomp.fortran/scope-1.f90: New test.
584 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
585
586 2021-08-17 Jakub Jelinek <jakub@redhat.com>
587
588 * Makefile.am (libgomp_la_SOURCES): Add scope.c
589 * Makefile.in: Regenerated.
590 * libgomp_g.h (GOMP_scope_start): Declare.
591 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
592 * scope.c: New file.
593 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
594 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
595
596 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
597
598 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
599 '?:' issues.
600
601 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
602
603 * testsuite/libgomp.fortran/masked-1.f90: New test.
604
605 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
606
607 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
608
609 2021-08-12 Jakub Jelinek <jakub@redhat.com>
610
611 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
612
613 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
614
615 * env.c (parse_bind_var): Accept 'primary' as alias for
616 'master'.
617 (omp_display_env): Add TODO comment to
618 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
619 * libgomp.texi: Change 'master thread' to 'primary thread'
620 in line with OpenMP 5.1.
621 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
622 omp_proc_bind_master is an alias of it.
623 (OMP_PROC_BIND): Mention 'PRIMARY'.
624 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
625 (omp_proc_bind_primary): Add.
626 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
627 * omp_lib.f90.in (omp_proc_bind_primary): Add.
628 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
629 * omp_lib.h.in (omp_proc_bind_primary): Add.
630 * testsuite/libgomp.c/affinity-1.c: Check that
631 'primary' works and is identical to 'master'.
632
633 2021-08-09 Julian Brown <julian@codesourcery.com>
634 Kwok Cheung Yeung <kcy@codesourcery.com>
635 Thomas Schwinge <thomas@codesourcery.com>
636
637 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
638 16.
639 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
640 [acc_device_radeon]: Update.
641 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
642 [ACC_DEVICE_TYPE_radeon]: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
644 [acc_device_radeon]: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
646 [ACC_DEVICE_TYPE_radeon]: Likewise.
647 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
648 'openacc_radeon_accel_selected' and '-O0'.
649 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
650
651 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
652
653 * icv-device.c (omp_get_device_num): New API function, host side.
654 * fortran.c (omp_get_device_num_): New interface function.
655 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
656 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
657 omp_get_device_num_.
658 * libgomp.texi (omp_get_device_num): Add documentation for new API
659 function.
660 * omp.h.in (omp_get_device_num): Add declaration.
661 * omp_lib.f90.in (omp_get_device_num): Likewise.
662 * omp_lib.h.in (omp_get_device_num): Likewise.
663 * target.c (gomp_load_image_to_device): If additional entry for device
664 number exists at end of returned entries from 'load_image_func' hook,
665 copy the assigned device number over to the device variable.
666 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
667 (omp_get_device_num): New API function, device side.
668 * plugin/plugin-gcn.c ("symcat.h"): Add include.
669 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
670 at end of returned 'target_table' entries.
671 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
672 (omp_get_device_num): New API function, device side.
673 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
674 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
675 at end of returned 'target_table' entries.
676 * testsuite/lib/libgomp.exp
677 (check_effective_target_offload_target_intelmic): New function for
678 testing for intelmic offloading.
679 * testsuite/libgomp.c-c++-common/target-45.c: New test.
680 * testsuite/libgomp.fortran/target10.f90: New test.
681
682 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
683 Ulrich Drepper <drepper@redhat.com>
684
685 * fortran.c (omp_display_env_, omp_display_env_8_): Only
686 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
687
688 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
689 Julian Brown <julian@codesourcery.com>
690 Kwok Cheung Yeung <kcy@codesourcery.com>
691
692 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
693 's%oaccdevlow%oaccloops%g'.
694 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
695 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
696 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
697 Likewise.
698 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
699 Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
701 Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
703 Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
705 Likewise.
706 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
707 Likewise.
708 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
709 Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
711 Likewise.
712 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
713
714 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
715
716 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
717 threader.
718 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
719
720 2021-07-27 Ulrich Drepper <drepper@gmail.com>
721
722 * env.c (wait_policy, stacksize): New static variables,
723 move out of handle_omp_display_env.
724 (omp_display_env): New function. The meat of the old
725 handle_omp_display_env function.
726 (handle_omp_display_env): Change to not take parameters
727 and instead use the global variables. Only perform
728 parsing, defer to omp_display_env for the implementation.
729 (initialize_env): Remove local variables wait_policy and
730 stacksize. Don't pass parameters to handle_omp_display_env.
731 * fortran.c: Add ialias_redirect for omp_display_env.
732 (omp_display_env_, omp_display_env_8_): New functions.
733 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
734 omp_display_env_, and omp_display_env_8_.
735 * omp.h.in: Declare omp_display_env.
736 * omp_lib.f90.in: Likewise.
737 * omp_lib.h.in: Likewise.
738
739 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
740 Julian Brown <julian@codesourcery.com>
741
742 * target.c (gomp_coalesce_buf_add): Update comment.
743 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
744 'aq && cbuf'.
745 (gomp_map_vars_internal): Only 'if (!aq)', do
746 'gomp_coalesce_buf_add'.
747 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
748 XFAIL.
749
750 2021-07-27 Julian Brown <julian@codesourcery.com>
751 Thomas Schwinge <thomas@codesourcery.com>
752
753 * libgomp.h (gomp_copy_host2dev): Update prototype.
754 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
755 argument to gomp_copy_host2dev (false).
756 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
757 (copy_data): Don't free src.
758 (queue_push_copy): Remove free_src handling.
759 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
760 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
761 snapshotting.
762 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
763 queue_push_copy.
764 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
765 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
766 data when true, and set up deferred freeing of temporary buffer.
767 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
768 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
769 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
770 calls to gomp_copy_host2dev with appropriate ephemeral argument.
771 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
772 XFAIL.
773
774 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
775 Tom de Vries <tom@codesourcery.com>
776
777 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
778 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
779
780 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
781
782 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
783 sequencing of 'async' data copying vs. profiling events.
784 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
785 Likewise.
786
787 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
788 Julian Brown <julian@codesourcery.com>
789
790 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
791 'async'/'wait' issue.
792 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
793 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
794 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
795
796 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
797 Joseph Myers <joseph@codesourcery.com>
798 Cesar Philippidis <cesar@codesourcery.com>
799
800 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
801 file.
802 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
803 Likewise.
804 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
805 Likewise.
806 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
807
808 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
809
810 PR target/101484
811 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
812 '-Wno-error=array-bounds'.
813 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
814 * libgomp.h [__AMDGCN__]: Likewise.
815
816 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
817
818 PR target/101484
819 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
820 * libgomp.h [__AMDGCN__]: Likewise.
821
822 2021-07-13 Jakub Jelinek <jakub@redhat.com>
823 Florian Weimer <fweimer@redhat.com>
824
825 * config/linux/sem.h: Don't include limits.h.
826 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
827 * config/linux/affinity.c: Include limits.h.
828
829 2021-07-01 Jakub Jelinek <jakub@redhat.com>
830
831 PR middle-end/94366
832 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
833
834 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
835
836 PR other/67300
837 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
838 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
839 avoid disabling other offload targets.
840 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
841 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
842 * testsuite/libgomp.c/target-44.c: Likewise.
843
844 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
845
846 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
847 target has shared memory and disable some scalar pointer/allocatable
848 checks if not as firstprivate does not work.
849
850 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
851
852 PR testsuite/101114
853 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
854 Add "target offload_device_nonshared_as" condition for enabling test.
855
856 2021-06-24 Jakub Jelinek <jakub@redhat.com>
857
858 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
859 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
860 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
861 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
862
863 2021-06-23 Jakub Jelinek <jakub@redhat.com>
864
865 PR middle-end/101167
866 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
867
868 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
869
870 * hashtab.h (htab_clear): New function with initialization code
871 factored out from...
872 (htab_create): ...here, adjust to use htab_clear function.
873 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
874 special refcount values, add comments.
875 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
876 (REFCOUNT_LINK): Likewise.
877 (REFCOUNT_STRUCTELEM): New special refcount range for structure
878 element siblings.
879 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
880 sibling maps.
881 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
882 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
883 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
884 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
885 (struct splay_tree_key_s): Add structelem_refcount and
886 structelem_refcount_ptr fields into a union with dynamic_refcount.
887 Add comments.
888 (gomp_map_vars): Delete declaration.
889 (gomp_map_vars_async): Likewise.
890 (gomp_unmap_vars): Likewise.
891 (gomp_unmap_vars_async): Likewise.
892 (goacc_map_vars): New declaration.
893 (goacc_unmap_vars): Likewise.
894 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
895 (goacc_enter_datum): Likewise.
896 (goacc_enter_data_internal): Likewise.
897 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
898 and goacc_unmap_vars.
899 (GOACC_data_start): Adjust to use goacc_map_vars.
900 (GOACC_data_end): Adjust to use goacc_unmap_vars.
901 * target.c (hash_entry_type): New typedef.
902 (htab_alloc): New function hook for hashtab.h.
903 (htab_free): Likewise.
904 (htab_hash): Likewise.
905 (htab_eq): Likewise.
906 (hashtab.h): Add file include.
907 (gomp_increment_refcount): New function.
908 (gomp_decrement_refcount): Likewise.
909 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
910 gomp_increment_refcount.
911 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
912 to gomp_map_vars_existing.
913 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
914 variable to guard OpenMP specific paths, adjust calls to
915 gomp_map_vars_existing, add structure element sibling splay_tree_key
916 sequence creation code, adjust Fortran map case to avoid increment
917 under OpenMP.
918 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
919 local refcount_set if caller passed in NULL, adjust call to
920 gomp_map_vars_internal.
921 (gomp_map_vars_async): Adjust and rename into...
922 (goacc_map_vars): ...this new function, adjust call to
923 gomp_map_vars_internal.
924 (gomp_remove_splay_tree_key): New function with code factored out from
925 gomp_remove_var_internal.
926 (gomp_remove_var_internal): Add code to handle removing multiple
927 splay_tree_key sequence for structure elements, adjust code to use
928 gomp_remove_splay_tree_key for splay-tree key removal.
929 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
930 gomp_decrement_refcount.
931 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
932 local refcount_set if caller passed in NULL, adjust call to
933 gomp_unmap_vars_internal.
934 (gomp_unmap_vars_async): Adjust and rename into...
935 (goacc_unmap_vars): ...this new function, adjust call to
936 gomp_unmap_vars_internal.
937 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
938 gomp_unmap_vars.
939 (GOMP_target_ext): Likewise.
940 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
941 (GOMP_target_data): Likewise.
942 (GOMP_target_data_ext): Likewise.
943 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
944 (gomp_exit_data): Add refcount_set parameter, adjust to use
945 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
946 after main loop.
947 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
948 gomp_map_vars and gomp_exit_data.
949 (gomp_target_task_fn): Likewise.
950 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
951 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
952 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
953 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
954 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
955 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
956
957 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
958
959 PR fortran/92568
960 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
961
962 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
963 Thomas Schwinge <thomas@codesourcery.com>
964
965 * libgomp.map (GOACC_2.0.2): New symbol version.
966 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
967 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
968
969 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
970 Andrew Stubbs <ams@codesourcery.com>
971
972 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
973 extracted from...
974 (GOACC_enter_exit_data): ... here.
975 (GOACC_declare): Use it.
976
977 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
978
979 * oacc-parallel.c (GOACC_declare): Move...
980 * oacc-mem.c: ... here.
981 * libgomp_g.h: Adjust.
982
983 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
984 Thomas Schwinge <thomas@codesourcery.com>
985
986 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
987 handling.
988
989 2021-06-10 Jakub Jelinek <jakub@redhat.com>
990
991 PR tree-optimization/100981
992 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
993 dsdotr and dsdoti to 0.
994
995 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
996
997 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
998 if atomic compare-and-swap is supported on 'int'.
999
1000 2021-06-09 Richard Biener <rguenther@suse.de>
1001
1002 PR tree-optimization/100981
1003 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1004
1005 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1006
1007 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1008 unconditionally.
1009 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1010 Update.
1011 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1012 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1013
1014 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1015
1016 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1017 '-DACC_MEM_SHARED=0'.
1018 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1021 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1022 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1023 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1024 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1025 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1026 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1031 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1032 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1033 'acc_device_radeon' testing.
1034 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1035 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1036 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1037 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1038 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1039 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1040 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1041 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1042 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1043 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1045 for non-'openacc_nvidia_accel_selected'.
1046 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1047 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1048 all implement this checking".
1049 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1050 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1051 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1052 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1053 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1054
1055 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1056
1057 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1058 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1059
1060 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1061
1062 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1063 for 'acc_device_radeon'.
1064
1065 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1066
1067 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1068 for non-'acc_device_nvidia'.
1069
1070 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1071
1072 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1073 'acc_device_radeon' testing.
1074 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1075 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1076 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1077
1078 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1079
1080 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1081 require 'openacc_nvidia_accel_selected'. Fix up for
1082 'ACC_DEVICE_TYPE_radeon'.
1083
1084 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1085
1086 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1087 'openacc_nvidia_accel_selected'.
1088 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1089
1090 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1091
1092 * testsuite/lib/libgomp.exp
1093 (check_effective_target_openacc_radeon_accel_selected):
1094 Streamline.
1095
1096 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1097
1098 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1099 PR80547 workaround.
1100
1101 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1102
1103 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1104 <acc_device_nvidia>: Update comment.
1105
1106 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
1107
1108 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1109
1110 2021-05-27 Jakub Jelinek <jakub@redhat.com>
1111
1112 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1113 check_effective_target_openacc_cublas,
1114 check_effective_target_openacc_cudart): New.
1115 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1116 target openacc_cublas.
1117 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1118 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1119 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1120 target openacc_cuda.
1121 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1122 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1129 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1130 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1131 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1132 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1133 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1134 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1135 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1136 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1138 targets openacc_cublas and openacc_cudart.
1139 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1140 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1141 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1142 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1143 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1144 Require effective target openacc_cudart.
1145 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1146 for effective target openacc_cuda and add && defined USE_CUDA_H to
1147 preprocessor conditionals. Guard -lcuda also on openacc_cuda
1148 effective target.
1149
1150 2021-05-26 Jakub Jelinek <jakub@redhat.com>
1151
1152 PR libgomp/100573
1153 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1154 GOMP_target_end_data, GOMP_target_update_ext,
1155 GOMP_target_enter_exit_data): New dummy entrypoints.
1156 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1157 GOMP_target_end_data, GOMP_target_update_ext,
1158 GOMP_target_enter_exit_data): Likewise.
1159 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1160 OMPFROM, OMPTO): Define.
1161 (main): Remove #pragma omp target teams around all the tests.
1162 * testsuite/libgomp.c-c++-common/target-41.c: New test.
1163 * testsuite/libgomp.c-c++-common/target-42.c: New test.
1164
1165 2021-05-25 Jakub Jelinek <jakub@redhat.com>
1166
1167 PR middle-end/99928
1168 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1169
1170 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
1171
1172 PR fortran/86470
1173 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1174 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1175 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1176
1177 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
1178
1179 PR testsuite/90115
1180 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1181 uninteresting/varying diagnostics.
1182
1183 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1184
1185 PR middle-end/90115
1186 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1187 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1188
1189 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1190
1191 PR middle-end/90115
1192 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1193 file.
1194 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1195 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1197 Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1199 Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1201 Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1203 Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1205 Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1207 Likewise.
1208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1209 Likewise.
1210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1211 Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1213 Likewise.
1214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1215 Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1217 Likewise.
1218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1219 Likewise.
1220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1221 Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1223 Likewise.
1224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1225 Likewise.
1226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1227 Likewise.
1228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1229 Likewise.
1230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1231 Likewise.
1232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1233 Likewise.
1234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1235 Likewise.
1236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1237 Likewise.
1238 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1239 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1240 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1241 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1243 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1245 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1247 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1248 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1249 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1250 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1251 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1252 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1253 Likewise.
1254 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1255 Likewise.
1256 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1257 Likewise.
1258 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1259 Likewise.
1260 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1261 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1262 Likewise.
1263 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1264 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1265 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1266 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1267 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1268 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1269 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1270 Likewise.
1271 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1272 Likewise.
1273 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1274 Likewise.
1275 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1276 Likewise.
1277 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1278 Likewise.
1279 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1280 Likewise.
1281 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1282 Likewise.
1283 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1284 Likewise.
1285 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1286 Likewise.
1287 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1288 Likewise.
1289 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1290 Likewise.
1291 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1292 Likewise.
1293 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1294 Likewise.
1295 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1296 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1297 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1298 Likewise.
1299 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1300 Likewise.
1301 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1302 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1303 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1304
1305 2021-05-21 Julian Brown <julian@codesourcery.com>
1306 Chung-Lin Tang <cltang@codesourcery.com>
1307 Thomas Schwinge <thomas@codesourcery.com>
1308
1309 PR middle-end/90115
1310 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1311 test.
1312 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1313 Likewise.
1314 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1315 Likewise.
1316
1317 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1318
1319 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1320 for nvptx offloading.
1321
1322 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
1323
1324 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1325
1326 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
1327
1328 PR target/83812
1329 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1330
1331 2021-05-19 Julian Brown <julian@codesourcery.com>
1332
1333 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1334
1335 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1336
1337 * testsuite/lib/libgomp.exp
1338 (check_effective_target_offload_target_nvptx): Don't shadow global
1339 'offload_targets' variable.
1340
1341 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1342
1343 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1344 '-latomic' to nvptx offloading compilation.
1345 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1346
1347 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1348
1349 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1350 offloading compilation.
1351
1352 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1353
1354 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1355 if new tasks generated.
1356 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1357
1358 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
1359
1360 * testsuite/libgomp.fortran/parallel-master.f90: New test.
1361
1362 2021-05-13 Martin Liska <mliska@suse.cz>
1363
1364 PR testsuite/100569
1365 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1366 * testsuite/libgomp.c/pr46032-2.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1368 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1369
1370 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
1371
1372 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1373 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1374
1375 2021-05-11 Jakub Jelinek <jakub@redhat.com>
1376
1377 PR middle-end/100471
1378 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1379 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1380 reduction pointer.
1381 * testsuite/libgomp.c/task-reduction-4.c: New test.
1382
1383 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
1384 Tom de Vries <tdevries@suse.de>
1385
1386 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1387 complex/floating-point || + && reduction with 'omp target'.
1388 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1389
1390 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1391
1392 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1393 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1394 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1395 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1396
1397 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1398
1399 PR testsuite/100397
1400 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1401 declaration to scope of non-'depend'-guarded assignment to avoid races.
1402
1403 2021-05-03 Tom de Vries <tdevries@suse.de>
1404
1405 PR target/100321
1406 * testsuite/libgomp.c/target-44.c: New test.
1407
1408 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
1409
1410 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1411
1412 2021-04-29 Tom de Vries <tdevries@suse.de>
1413
1414 * testsuite/libgomp.c/pr81778.c: New test.
1415
1416 2021-04-29 Tom de Vries <tdevries@suse.de>
1417
1418 PR target/100232
1419 * testsuite/libgomp.c/target-43.c: New file.
1420
1421 2021-04-28 Jakub Jelinek <jakub@redhat.com>
1422 Tobias Burnus <tobias@codesourcery.com>
1423
1424 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1425 * target.c (gomp_load_plugin_for_device): If set and if a plugin
1426 can't be dlopened, silently assume it has no devices.
1427 * Makefile.in: Regenerate.
1428 * config.h.in: Regenerate.
1429 * configure: Regenerate.
1430
1431 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1432
1433 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1434 Use [Ww]arning in dg-bogus as FE diagnostic and default
1435 diagnostic differ and the result depends on ENABLE_OFFLOAD.
1436 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1437 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1438 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1439
1440 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1441
1442 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1443 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1444 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1445 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1446 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1447
1448 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1449 Nathan Sidwell <nathan@codesourcery.com>
1450 Tom de Vries <vries@codesourcery.com>
1451 Julian Brown <julian@codesourcery.com>
1452 Kwok Cheung Yeung <kcy@codesourcery.com>
1453
1454 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1455 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1456 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1457 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1458 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1459 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1460 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1461 Likewise.
1462 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1463 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1464 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1466 Likewise.
1467 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1468 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1469 Likewise.
1470 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1471 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1472 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1473 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1474 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1475 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1476 Likewise.
1477 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1478 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1479 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1480 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1481 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1482 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1483 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1484 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1485 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1486 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1487 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1488
1489 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1490
1491 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1492 compile with '-w'.
1493 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1494 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1495 Likewise.
1496 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1497 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1498 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1499 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1500 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1501 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1502 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1503
1504 2021-04-22 Richard Biener <rguenther@suse.de>
1505
1506 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1507 only on nvptx-none.
1508
1509 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1510
1511 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1512 omp_depend_kind instead of defining it as 16.
1513
1514 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1515
1516 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1517 New, based on check_effective_target_offload_target_nvptx.
1518 (check_effective_target_offload_target_nvptx): Call it.
1519 (check_effective_target_offload_target_amdgcn): New.
1520 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1521 Require target offload_target_nvptx || offload_target_amdgcn.
1522 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1523 * testsuite/libgomp.c/pr86416-1.c: Likewise.
1524 * testsuite/libgomp.c/pr86416-2.c: Likewise.
1525
1526 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1527
1528 * testsuite/libgomp.fortran/depobj-1.f90: New test.
1529
1530 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1531
1532 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1533 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1534 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1535 Likewise.
1536 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1537 Likewise.
1538 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1539
1540 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
1541
1542 PR target/99555
1543 * testsuite/lib/libgomp.exp
1544 (check_effective_target_offload_device_nvptx): New.
1545 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1546 resolved, make sure that we exit quickly, with error status,
1547 XFAILed.
1548 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1549 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1550
1551 2021-04-14 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR testsuite/100071
1554 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1555 cp = omp_alloc with cp, p arguments instead of cq, q and call
1556 c_f_pointer after last cq = omp_alloc with cq, q.
1557
1558 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1559
1560 PR middle-end/98088
1561 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1562 for loop with GT/GE condition.
1563 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1564
1565 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
1566
1567 PR middle-end/84991
1568 PR middle-end/84992
1569 PR middle-end/90779
1570 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1571
1572 2021-04-09 Jakub Jelinek <jakub@redhat.com>
1573
1574 PR libgomp/99984
1575 * team.c (gomp_thread_start): Call pthread_setspecific for
1576 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1577 has been initialized to avoid false positive warning.
1578
1579 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
1580
1581 PR target/99555
1582 * testsuite/lib/on_device_arch.c: Move to ...
1583 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1584 * testsuite/libgomp.fortran/on_device_arch.c: New file;
1585 #include on_device_arch.h.
1586 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1587 on_device_arch.h instead of using dg-additional-source.
1588 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1589 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1590 on_device_arch.c without relative paths.
1591
1592 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1593
1594 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1595 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1596 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1597 * config.h.in: Regenerate.
1598 * configure: Likewise.
1599
1600 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1601
1602 PR target/99555
1603 * testsuite/lib/on_device_arch.c: New file.
1604 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1605 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1606 skip for nvptx offloading, with error status.
1607 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1608
1609 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1610
1611 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1612 OpenACC 'serial' construct diagnostic for nvptx offloading.
1613
1614 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
1615
1616 PR c++/99509
1617 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1618
1619 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1620
1621 PR fortran/98858
1622 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1623
1624 2021-03-04 Jakub Jelinek <jakub@redhat.com>
1625
1626 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1627 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1628 checking of -m32 or -mx32 options on the command line.
1629 * config.h.in: Regenerated.
1630 * configure: Regenerated.
1631
1632 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
1633
1634 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1635 support from the target.
1636
1637 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1638 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR libgomp/98738
1641 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1642 (struct gomp_task): Replace detach and completion_sem fields with
1643 union containing completion_sem and detach_team. Add deferred_p
1644 field.
1645 (struct gomp_team): Remove task_detach_queue.
1646 * task.c: Include assert.h.
1647 (gomp_init_task): Initialize deferred_p and completion_sem fields.
1648 Rearrange initialization order of fields.
1649 (task_fulfilled_p): Delete.
1650 (GOMP_task): Use address of task as the event handle. Remove
1651 initialization of detach field. Initialize deferred_p field.
1652 Use automatic local for completion_sem. Initialize detach_team field
1653 for deferred tasks.
1654 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1655 Set kind of suspended detach task to GOMP_TASK_DETACHED and
1656 decrement task_running_count. Move finish_cancelled block out of
1657 else branch. Relocate call to gomp_team_barrier_done.
1658 (GOMP_taskwait): Handle tasks with completion events that have not
1659 been fulfilled.
1660 (GOMP_taskgroup_end): Likewise.
1661 (omp_fulfill_event): Use address of task as event handle. Post to
1662 completion_sem for undeferred tasks. Clear detach_team if task
1663 has not finished. For finished tasks, handle post-execution tasks,
1664 call gomp_team_barrier_wake if necessary, and free task.
1665 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1666 (free_team): Remove free of task_detach_queue.
1667 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1668 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1669 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1670 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1671 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1672 Change data-sharing of detach events on enclosing parallel to private.
1673 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
1674 taskwait directive.
1675 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1676 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1677 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1678 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1679 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1680 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1681 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1682 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1683 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1684 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1685 Change data-sharing of detach events on enclosing parallel to private.
1686 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
1687 taskwait directive.
1688 * testsuite/libgomp.fortran/task-detach-7.f90: New.
1689 * testsuite/libgomp.fortran/task-detach-8.f90: New.
1690 * testsuite/libgomp.fortran/task-detach-9.f90: New.
1691 * testsuite/libgomp.fortran/task-detach-10.f90: New.
1692 * testsuite/libgomp.fortran/task-detach-11.f90: New.
1693
1694 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1695
1696 PR fortran/99171
1697 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1698
1699 2021-02-17 Julian Brown <julian@codesourcery.com>
1700
1701 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1702 expected errors.
1703
1704 2021-02-17 Julian Brown <julian@codesourcery.com>
1705
1706 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1707 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1708
1709 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1710
1711 * config/linux/x86/futex.h (__futex_wait):
1712 Revert output type back to long.
1713 (__futex_wake): Ditto.
1714 (futex_wait): Update for revert.
1715 (futex_wake): Ditto.
1716
1717 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1718
1719 * config/linux/x86/futex.h (__futex_wait): New static inline
1720 wrapper function. Correct output type to int and
1721 timeout type to void *.
1722 (__futex_wake): New static inline wrapper function.
1723 Correct output type to int.
1724 (futex_wait): Use __futex_wait.
1725 (futex_wake): Use __futex_wake.
1726
1727 2021-02-10 Julian Brown <julian@codesourcery.com>
1728
1729 PR fortran/98979
1730 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1731 errors.
1732
1733 2021-02-04 Julian Brown <julian@codesourcery.com>
1734
1735 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1736
1737 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
1738
1739 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1740 EF_AMDGPU_MACH_AMDGCN_GFX908.
1741 (gcn_gfx908_s): New constant string.
1742 (isa_hsa_name): Add gfx908.
1743 (isa_code): Add gfx908.
1744
1745 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1746
1747 * libgomp.texi (omp_fulfill_event): New entry.
1748
1749 2021-01-20 Jakub Jelinek <jakub@redhat.com>
1750
1751 * task.c (GOMP_task): Rename priority argument to priority_arg,
1752 add priority automatic variable and modify that variable. Instead of
1753 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1754 check flags for that bit.
1755
1756 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1757
1758 PR fortran/98476
1759 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1760
1761 2021-01-18 Andreas Schwab <schwab@suse.de>
1762
1763 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1764
1765 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1766
1767 * config/rtems/sem.h (gomp_sem_getcount): New function.
1768
1769 2021-01-18 Jakub Jelinek <jakub@redhat.com>
1770
1771 * config/linux/sem.h (gomp_sem_getcount): New function.
1772 * config/posix/sem.h (gomp_sem_getcount): New function.
1773 * config/posix/sem.c (gomp_sem_getcount): New function.
1774 * config/accel/sem.h (gomp_sem_getcount): New function.
1775 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1776 (omp_fulfill_event): Likewise.
1777
1778 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1779
1780 * fortran.c (omp_fulfill_event_): New.
1781 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1782 (struct gomp_team): Add task_detach_queue and task_detach_count
1783 fields.
1784 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1785 * libgomp_g.h (GOMP_task): Add extra argument.
1786 * omp.h.in (enum omp_event_handle_t): New.
1787 (omp_fulfill_event): New.
1788 * omp_lib.f90.in (omp_event_handle_kind): New.
1789 (omp_fulfill_event): New.
1790 * omp_lib.h.in (omp_event_handle_kind): New.
1791 (omp_fulfill_event): Declare.
1792 * priority_queue.c (priority_tree_find): New.
1793 (priority_list_find): New.
1794 (priority_queue_find): New.
1795 * priority_queue.h (priority_queue_predicate): New.
1796 (priority_queue_find): New.
1797 * task.c (gomp_init_task): Initialize detach field.
1798 (task_fulfilled_p): New.
1799 (GOMP_task): Add detach argument. Ignore detach argument if
1800 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
1801 field. Copy address of completion_sem into detach argument and
1802 into the start of the data record. Wait for detach event if task
1803 not deferred.
1804 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1805 Remove completed tasks and requeue dependent tasks.
1806 (omp_fulfill_event): New.
1807 * team.c (gomp_new_team): Initialize task_detach_queue and
1808 task_detach_count fields.
1809 (free_team): Free task_detach_queue field.
1810 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1811 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1812 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1813 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1814 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1815 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1816 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1817 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1818 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1819 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1820 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1821 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1822
1823 2021-01-15 Jakub Jelinek <jakub@redhat.com>
1824
1825 PR target/70454
1826 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1827 be added through preprocessor check on
1828 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1829
1830 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
1831
1832 PR libgomp/65099
1833 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1834 configurations.
1835 * configure: Regenerate.
1836 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1837 check.
1838
1839 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1840
1841 * configure: Re-generate.
1842
1843 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
1844
1845 * configure: Re-generate.
1846
1847 2021-01-05 Julian Brown <julian@codesourcery.com>
1848
1849 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1850 (struct ptx_device): Add omp_stacks struct.
1851 (nvptx_open_device): Initialise cached-stacks housekeeping info.
1852 (nvptx_close_device): Free cached stacks block and mutex.
1853 (nvptx_stacks_free): New function.
1854 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1855 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1856 (nvptx_stacks_alloc): Rename to...
1857 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
1858 size or smaller is required.
1859 (nvptx_stacks_free): Remove.
1860 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1861 during kernel execution.
1862
1863 2021-01-01 Jakub Jelinek <jakub@redhat.com>
1864
1865 * libgomp.texi: Bump @copying's copyright year.
1866
1867 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
1868
1869 * libgomp.texi (Top): Avoid bad "up" link.
1870
1871 2020-12-18 Jakub Jelinek <jakub@redhat.com>
1872
1873 * testsuite/libgomp.c/task-6.c: New test.
1874
1875 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
1876
1877 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1878 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1879
1880 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
1881
1882 * testsuite/libgomp.fortran/scan-1.f90: New test.
1883
1884 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
1885
1886 PR target/97865
1887 * configure: Regenerate.
1888
1889 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
1890
1891 * configure: Regenerate.
1892
1893 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
1894
1895 * testsuite/libgomp.oacc-c++/cache-1.C: New.
1896 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1897
1898 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
1899
1900 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1901 expected results.
1902
1903 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
1904
1905 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1906 (reserved): Delete unused define.
1907
1908 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
1909
1910 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1911 Tcl 8.5-specific behavior.
1912 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1913
1914 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1915
1916 * env.c (gomp_global_icv): Remove nest_var field. Add
1917 max_active_levels_var field.
1918 (gomp_max_active_levels_var): Remove.
1919 (parse_boolean): Return true on success.
1920 (handle_omp_display_env): Express OMP_NESTED in terms of
1921 max_active_levels_var. Change format specifier for
1922 max_active_levels_var.
1923 (initialize_env): Set max_active_levels_var from
1924 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1925 OMP_PROC_BIND.
1926 * icv.c (omp_set_nested): Express in terms of
1927 max_active_levels_var.
1928 (omp_get_nested): Likewise.
1929 (omp_set_max_active_levels): Use max_active_levels_var field instead
1930 of gomp_max_active_levels_var.
1931 (omp_get_max_active_levels): Likewise.
1932 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
1933 max_active_levels_var field.
1934 (gomp_supported_active_levels): Set to UCHAR_MAX.
1935 (gomp_max_active_levels_var): Delete.
1936 * libgomp.texi (omp_get_nested): Update documentation.
1937 (omp_set_nested): Likewise.
1938 (OMP_MAX_ACTIVE_LEVELS): Likewise.
1939 (OMP_NESTED): Likewise.
1940 (OMP_NUM_THREADS): Likewise.
1941 (OMP_PROC_BIND): Likewise.
1942 * parallel.c (gomp_resolve_num_threads): Replace reference
1943 to nest_var with max_active_levels_var. Use max_active_levels_var
1944 field instead of gomp_max_active_levels_var.
1945
1946 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
1947
1948 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1949 nvptx_usleep; use also for device={arch(gcn)}.
1950
1951 2020-11-14 Jakub Jelinek <jakub@redhat.com>
1952
1953 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1954 (foo): Add tests for non-VLA private and firstprivate clauses on
1955 omp task.
1956 (bar): Likewise. Remove taking of address from private/firstprivate
1957 variables.
1958 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1959 (foo): Add p, q, px and s arguments. Add tests for array reductions
1960 and for non-VLA private and firstprivate clauses on omp task.
1961 (bar): Removed.
1962 (main): Adjust foo caller. Don't call bar.
1963
1964 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1965 Thomas Schwinge <thomas@codesourcery.com>
1966
1967 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1968 New.
1969 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1970 Likewise.
1971 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1972 Likewise.
1973 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1974 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1975
1976 2020-11-13 Gergö Barany <gergo@codesourcery.com>
1977 Thomas Schwinge <thomas@codesourcery.com>
1978
1979 PR fortran/94358
1980 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1981
1982 2020-11-13 Jakub Jelinek <jakub@redhat.com>
1983
1984 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1985 for array reductions.
1986 (main): Adjust foo callers.
1987
1988 2020-11-12 Jakub Jelinek <jakub@redhat.com>
1989
1990 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1991 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1992 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1993 * allocator.c (omp_aligned_alloc): New for now static function,
1994 add alignment argument and handle it.
1995 (omp_alloc): Reimplement using omp_aligned_alloc.
1996 (GOMP_alloc, GOMP_free): New functions.
1997 (omp_free): Add ialias.
1998 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1999 * testsuite/libgomp.c++/allocate-1.C: New test.
2000
2001 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
2002
2003 PR fortran/97782
2004 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2005
2006 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
2007
2008 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2009 usable.
2010 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2011 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2012 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2013 (goacc_enter_data_internal): Likewise.
2014 * target.c (gomp_map_vars_internal):
2015 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2016 of gomp_attach_pointer for OpenMP cases.
2017 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2018 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2019 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2020
2021 2020-11-05 Ulrich Drepper <drepper@redhat.com>
2022 Kwok Cheung Yeung <kcy@codesourcery.com>
2023
2024 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2025 * Makefile.in: Regenerate.
2026 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2027 pragmas to ignore -Wdeprecated-declarations warnings.
2028 * icv.c: Likewise.
2029 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2030 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2031 and omp_get_nested with __GOMP_DEPRECATED_5_0.
2032 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2033 deprecated.
2034 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2035 to test options.
2036 * testsuite/libgomp.c/affinity-1.c: Likewise.
2037 * testsuite/libgomp.c/affinity-2.c: Likewise.
2038 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2039 * testsuite/libgomp.c/lib-1.c: Likewise.
2040 * testsuite/libgomp.c/nested-1.c: Likewise.
2041 * testsuite/libgomp.c/nested-2.c: Likewise.
2042 * testsuite/libgomp.c/nested-3.c: Likewise.
2043 * testsuite/libgomp.c/pr32362-1.c: Likewise.
2044 * testsuite/libgomp.c/pr32362-2.c: Likewise.
2045 * testsuite/libgomp.c/pr32362-3.c: Likewise.
2046 * testsuite/libgomp.c/pr35549.c: Likewise.
2047 * testsuite/libgomp.c/pr42942.c: Likewise.
2048 * testsuite/libgomp.c/pr61200.c: Likewise.
2049 * testsuite/libgomp.c/sort-1.c: Likewise.
2050 * testsuite/libgomp.c/target-5.c: Likewise.
2051 * testsuite/libgomp.c/target-6.c: Likewise.
2052 * testsuite/libgomp.c/teams-1.c: Likewise.
2053 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2054 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2055 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2056 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2057 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2058 * testsuite/libgomp.fortran/lib2.f: Likewise.
2059 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2060 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2061
2062 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2063
2064 PR target/85486
2065 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2066 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2067 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2068
2069 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2070
2071 PR testsuite/80219
2072 PR testsuite/85303
2073 * testsuite/lib/libgomp.exp (libgomp_init): Set
2074 'gcc_warning_prefix', 'gcc_error_prefix'.
2075
2076 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2077
2078 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2079 even in field_tgt_clear initializer.
2080
2081 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2082
2083 * testsuite/libgomp.c/target-42.c: New test.
2084
2085 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2086 Tom de Vries <tdevries@suse.de>
2087
2088 PR testsuite/81690
2089 * testsuite/libgomp.c/usleep.h: New file.
2090 * testsuite/libgomp.c/target-32.c: Include usleep.h.
2091 (main): Use tgt_usleep instead of usleep.
2092 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2093 (main): Use tgt_usleep instead of usleep.
2094
2095 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2096
2097 PR lto/96680
2098 * testsuite/libgomp.c/declare-variant-1.c: New test.
2099
2100 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2101
2102 * testsuite/libgomp.c/target-41.c: New test.
2103
2104 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2105
2106 * icv.c (omp_get_initial_device): Remove including corresponding
2107 ialias.
2108 * icv-device.c (omp_get_initial_device): New function. Return
2109 gomp_get_num_devices (). Add ialias.
2110 * target.c (resolve_device): Don't fail with
2111 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2112 gomp_get_num_devices ().
2113 (omp_target_alloc, omp_target_free, omp_target_is_present,
2114 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2115 omp_target_disassociate_ptr, omp_pause_resource): Use
2116 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2117 first use in the functions, in uses dominated by the
2118 gomp_get_num_devices call use num_devices_openmp instead.
2119 * libgomp.texi (omp_get_initial_device): Document.
2120 * config/gcn/icv-device.c (omp_get_initial_device): New function.
2121 Add ialias.
2122 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2123 * testsuite/libgomp.c/target-40.c: New test.
2124
2125 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2126
2127 * env.c (parse_target_offload): Change new_offload var type to int,
2128 preinitialize to -1, remove found var and test new_offload != -1
2129 instead of found.
2130
2131 2020-10-20 Jakub Jelinek <jakub@redhat.com>
2132
2133 * target.c (gomp_target_init): Inside of the function, use automatic
2134 variables corresponding to num_devices, num_devices_openmp and devices
2135 global variables and update the globals only at the end of the
2136 function.
2137
2138 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
2139
2140 * env.c (gomp_target_offload_var): New.
2141 (parse_target_offload): New.
2142 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2143 (initialize_env): Parse OMP_TARGET_OFFLOAD.
2144 * libgomp.h (gomp_target_offload_t): New.
2145 (gomp_target_offload_var): New.
2146 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2147 * target.c (resolve_device): Generate error if device not found and
2148 offloading is mandatory.
2149 (gomp_target_fallback): Generate error if offloading is mandatory.
2150 (GOMP_target): Add argument in call to gomp_target_fallback.
2151 (GOMP_target_ext): Likewise.
2152 (gomp_target_data_fallback): Generate error if offloading is mandatory.
2153 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2154 (GOMP_target_data_ext): Likewise.
2155 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2156 (gomp_target_init): Return early if offloading is disabled.
2157
2158 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2159
2160 * libgomp.texi (omp_get_max_active_levels): Modify description.
2161 (omp_get_supported_active_levels): Make descriptions consistent.
2162
2163 2020-10-14 Jakub Jelinek <jakub@redhat.com>
2164
2165 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2166
2167 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2168
2169 * env.c (gomp_max_active_levels_var): Initialize to
2170 gomp_supported_active_levels.
2171 (initialize_env): Limit gomp_max_active_levels_var to be at most
2172 equal to gomp_supported_active_levels.
2173 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2174 (omp_get_supported_active_levels_): New.
2175 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2176 to at most equal to gomp_supported_active_levels.
2177 (omp_get_supported_active_levels): New.
2178 * libgomp.h (gomp_supported_active_levels): New.
2179 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2180 omp_get_supported_active_levels_.
2181 * libgomp.texi (omp_get_supported_active_levels): New.
2182 (omp_set_max_active_levels): Update. Add reference to
2183 omp_get_supported_active_levels.
2184 * omp.h.in (omp_get_supported_active_levels): New.
2185 * omp_lib.f90.in (omp_get_supported_active_levels): New.
2186 * omp_lib.h.in (omp_get_supported_active_levels): New.
2187 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2188 against omp_get_supported_active_levels.
2189 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2190
2191 2020-10-11 Clement Chigot <clement.chigot@atos.net>
2192
2193 * config/t-aix: Delete and recreate libgomp before creating
2194 FAT library.
2195
2196 2020-10-08 Tom de Vries <tdevries@suse.de>
2197
2198 PR libgomp/81802
2199 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2200 dimensions.
2201
2202 2020-10-06 Tom de Vries <tdevries@suse.de>
2203
2204 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2205
2206 2020-10-06 Tom de Vries <tdevries@suse.de>
2207
2208 PR middle-end/90861
2209 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2210
2211 2020-10-05 Tom de Vries <tdevries@suse.de>
2212
2213 PR fortran/95654
2214 * testsuite/libgomp.fortran/pr95654.f90: New test.
2215
2216 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
2217
2218 * Makefile.in: Regenerate with automake 1.15.1.
2219 * aclocal.m4: Likewise.
2220 * configure: Likewise.
2221 * testsuite/Makefile.in: Likewise.
2222
2223 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
2224
2225 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2226 and amdgcn targets.
2227
2228 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2229
2230 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2231
2232 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
2233
2234 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2235 total number of threads is one.
2236 (gomp_team_barrier_wake): Likewise.
2237 (gomp_team_barrier_wait_end): Likewise.
2238 (gomp_team_barrier_wait_cancel_end): Likewise.
2239 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2240 (gomp_team_barrier_wake): Likewise.
2241 (gomp_team_barrier_wait_end): Likewise.
2242 (gomp_team_barrier_wait_cancel_end): Likewise.
2243 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2244
2245 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
2246
2247 PR middle-end/96390
2248 * testsuite/libgomp.c++/pr96390.C: New test.
2249 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2250
2251 2020-09-27 Clement Chigot <clement.chigot@atos.net>
2252
2253 * config/t-aix: Use $(AR) without -X32_64.
2254
2255 2020-09-25 Jakub Jelinek <jakub@redhat.com>
2256
2257 * testsuite/libgomp.c/loop-25.c: New test.
2258
2259 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
2260
2261 PR fortran/95654
2262 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2263
2264 2020-09-22 Tom de Vries <tdevries@suse.de>
2265
2266 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2267 fails.
2268
2269 2020-09-16 Nathan Sidwell <nathan@acm.org>
2270
2271 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2272
2273 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2274
2275 PR fortran/96668
2276 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2277
2278 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2279
2280 PR fortran/96668
2281 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2282 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2283 (gomp_map_vars_existing): Update call to it.
2284 (gomp_map_fields_existing): Likewise
2285 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2286 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2287 remapped.
2288 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2289 GOMP_MAP_POINTER.
2290 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2291 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2292
2293 2020-09-14 Tom de Vries <tdevries@suse.de>
2294
2295 * config/nvptx/atomic.c: New file. Add
2296 __sync_val_compare_and_swap_16.
2297 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2298 target offload_target_nvptx.
2299
2300 2020-09-08 Julian Brown <julian@codesourcery.com>
2301
2302 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2303 iteration-ordering assumptions.
2304
2305 2020-09-08 Julian Brown <julian@codesourcery.com>
2306
2307 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2308 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2309
2310 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2311
2312 * plugin/plugin-nvptx.c (nvptx_free):
2313 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2314 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2315 comments.
2316
2317 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
2318
2319 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2320
2321 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2322
2323 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2324
2325 2020-08-13 Jakub Jelinek <jakub@redhat.com>
2326
2327 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2328 * testsuite/libgomp.c/loop-23.c (main): Likewise.
2329 * testsuite/libgomp.c/loop-24.c: New test.
2330
2331 2020-08-08 Jakub Jelinek <jakub@redhat.com>
2332 Tobias Burnus <tobias@codesourcery.com>
2333
2334 PR fortran/93553
2335 * testsuite/libgomp.fortran/pr93553.f90: New test.
2336
2337 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2338
2339 * testsuite/libgomp.c/loop-22.c: New test.
2340 * testsuite/libgomp.c/loop-23.c: New test.
2341
2342 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2343
2344 PR middle-end/96459
2345 * testsuite/libgomp.c/teams-3.c: New test.
2346 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2347 if not defined yet.
2348 (N(test)): Use it before all N(f*) calls.
2349 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2350 (main): Don't call all test_* functions from within
2351 #pragma omp teams reduction(|:err), call them directly.
2352
2353 2020-08-04 Tom de Vries <tdevries@suse.de>
2354
2355 PR target/96428
2356 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2357 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2358
2359 2020-08-03 Julian Brown <julian@codesourcery.com>
2360 Thomas Schwinge <thomas@codesourcery.com>
2361
2362 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2363 shared-memory devices. Extend with further checking.
2364
2365 2020-08-03 Martin Jambor <mjambor@suse.cz>
2366
2367 * plugin/Makefrag.am: Remove configuration of HSA plugin.
2368 * aclocal.m4: Regenerated.
2369 * Makefile.in: Regenerated.
2370 * config.h.in: Regenerated.
2371 * configure: Regenerated.
2372 * plugin/configfrag.ac: Likewise.
2373 * plugin/hsa_ext_finalize.h: Removed.
2374 * plugin/plugin-hsa.c: Likewise.
2375 * testsuite/Makefile.in: Regenerated.
2376 * testsuite/lib/libgomp.exp
2377 (offload_target_to_openacc_device_type): Remove hsa case.
2378 (check_effective_target_hsa_offloading_selected_nocache): Removed
2379 (check_effective_target_hsa_offloading_selected): Likewise.
2380 (libgomp_init): Do not add -Wno-hsa to additional_flags.
2381 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2382 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2383 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2384 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2385 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2386 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2387 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2388 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2389 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2390 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2391 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2392 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2393 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2394 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2395 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2396 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2397 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2398 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2399 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2400 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2401 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2402 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2403 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2404 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2405
2406 2020-07-27 Julian Brown <julian@codesourcery.com>
2407 Thomas Schwinge <thomas@codesourcery.com>
2408
2409 * libgomp.h (struct target_var_desc): Rename do_detach field to
2410 is_attach.
2411 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
2412 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2413 (goacc_enter_data_internal): Don't affect reference counts
2414 for attach mappings.
2415 (goacc_exit_data_internal): Don't affect reference counts for detach
2416 mappings.
2417 * target.c (gomp_map_vars_existing): Don't affect reference counts for
2418 attach mappings.
2419 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2420 mark attach mappings.
2421 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2422 reference count for attach mappings.
2423 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2424 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2425 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2426 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2427 test as shouldfail.
2428 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2429 gracefully in no-finalize mode.
2430 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2431
2432 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
2433
2434 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2435 use.
2436 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2437 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2438
2439 2020-07-23 Julian Brown <julian@codesourcery.com>
2440 Thomas Schwinge <thomas@codesourcery.com>
2441
2442 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2443 finalization for detach operation.
2444 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2445 New test.
2446
2447 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
2448
2449 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2450 * libgomp_f.h.in (omp_check_defines): Check whether
2451 sizeof of determined Fortran kind and C typedef match.
2452 * omp_lib.f90.in: Add omp_depened_kind.
2453 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2454 * configure: Regenerate.
2455 * Makefile.in: Regenerate.
2456 * testsuite/Makefile.in: Regenerate.
2457
2458 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2459
2460 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2461 gcc/testsuite/c-c++-common/gomp/.
2462 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2463 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2464 from gcc/testsuite/gfortran.dg/gomp/.
2465 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2466
2467 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2468
2469 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2470 * omp_lib.h.in: Likewise.
2471
2472 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
2473
2474 PR target/95620
2475 * testsuite/libgomp.c/pr95620.c: New test.
2476
2477 2020-07-16 Julian Brown <julian@codesourcery.com>
2478 Thomas Schwinge <thomas@codesourcery.com>
2479
2480 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2481 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2482
2483 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2484
2485 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2486 avoid conversion on 32bit systems from 32bit to 64bit due
2487 to -fdefault-integer-8.
2488
2489 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2490
2491 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2492 variables; add character(kind=4) tests; update TODO comment.
2493
2494 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2495
2496 * allocator.c: Add ialias for omp_init_allocator and
2497 omp_destroy_allocator.
2498 * configure.ac: Set INTPTR_T_KIND.
2499 * configure: Regenerate.
2500 * Makefile.in: Regenerate.
2501 * testsuite/Makefile.in: Regenerate.
2502 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2503 omp_set_default_allocator_, omp_get_default_allocator_): New
2504 functions and ialias_redirect.
2505 * icv.c: Add ialias for omp_set_default_allocator and
2506 omp_get_default_allocator.
2507 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2508 omp_destroy_allocator_, omp_set_default_allocator_ and
2509 omp_get_default_allocator_.
2510 * omp_lib.f90.in: Add allocator traits parameters, declare
2511 allocator routines and add related kind parameters.
2512 * omp_lib.h.in: Likewise.
2513 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2514 * testsuite/libgomp.fortran/alloc-1.F90: New test.
2515 * testsuite/libgomp.fortran/alloc-2.F90: New test.
2516 * testsuite/libgomp.fortran/alloc-3.F: New test.
2517 * testsuite/libgomp.fortran/alloc-4.f90: New test.
2518 * testsuite/libgomp.fortran/alloc-5.f90: New test.
2519
2520 2020-07-14 Tom de Vries <tom@codesourcery.com>
2521 Cesar Philippidis <cesar@codesourcery.com>
2522 Thomas Schwinge <thomas@codesourcery.com>
2523 Kwok Cheung Yeung <kcy@codesourcery.com>
2524
2525 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2526 New variable.
2527 (acc_init_1): Set acc_init_thread to pthread_self (). Set
2528 acc_init_state to initializing at the start, and to initialized at the
2529 end.
2530 (self_initializing_p): New function.
2531 (acc_get_device_type): Return acc_device_none if called by thread that
2532 is currently executing acc_init_1.
2533 * libgomp.texi (acc_get_device_type): Update documentation.
2534 (Implementation Status and Implementation-Defined Behavior): Likewise.
2535 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2536
2537 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
2538
2539 * config/t-aix: Set BITS from compiler cpp macro.
2540
2541 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2542
2543 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2544
2545 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2546
2547 PR fortran/67311
2548 * testsuite/libgomp.fortran/target-map-1.f90: New test.
2549
2550 2020-07-14 Jakub Jelinek <jakub@redhat.com>
2551
2552 * testsuite/libgomp.c/loop-21.c: New test.
2553
2554 2020-07-13 Julian Brown <julian@codesourcery.com>
2555 Thomas Schwinge <thomas@codesourcery.com>
2556
2557 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2558
2559 2020-07-10 Julian Brown <julian@codesourcery.com>
2560 Thomas Schwinge <thomas@codesourcery.com>
2561
2562 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2563 dynamic_refcount.
2564 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2565 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2566 dynamic_refcount.
2567 (acc_unmap_data): Update comment.
2568 (goacc_map_var_existing, goacc_enter_datum): Adjust for
2569 dynamic_refcount semantics.
2570 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2571 Adjust for dynamic_refcount semantics.
2572 (goacc_enter_data_internal): Implement "present" case of dynamic
2573 memory-map handling here. Update "non-present" case for
2574 dynamic_refcount semantics.
2575 (goacc_exit_data_internal): Use goacc_exit_datum_1.
2576 * target.c (gomp_map_vars_internal): Remove
2577 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
2578 handling.
2579 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2580 (gomp_load_image_to_device): Substitute dynamic_refcount for
2581 virtual_refcount.
2582 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2583 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2584 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2585 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2586 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2587 trace output.
2588 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2589 trace output.
2590 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2591 test.
2592 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2593 Remove stale comment.
2594 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2595 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2596 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2597 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2598 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2599 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2600
2601 2020-07-10 Julian Brown <julian@codesourcery.com>
2602 Thomas Schwinge <thomas@codesourcery.com>
2603
2604 * oacc-mem.c (goacc_map_var_existing): New function.
2605 (goacc_enter_datum): Use above function.
2606 (goacc_exit_datum_1): New function.
2607 (goacc_exit_datum): Use above function.
2608
2609 2020-07-09 Julian Brown <julian@codesourcery.com>
2610 Thomas Schwinge <thomas@codesourcery.com>
2611
2612 PR middle-end/95270
2613 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2614 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2615
2616 2020-07-09 Julian Brown <julian@codesourcery.com>
2617
2618 * oacc-mem.c (find_group_last): Group data-movement clauses
2619 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2620 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
2621
2622 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2623
2624 * testsuite/libgomp.c/loop-19.c: New test.
2625 * testsuite/libgomp.c/loop-20.c: New test.
2626
2627 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2628
2629 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2630 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
2631 it. Remove __omp_alloctrait_value_max__.
2632 * allocator.c (omp_init_allocator): Handle omp_atv_default for
2633 omp_atk_alignment and omp_atk_pool_size.
2634
2635 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2636
2637 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2638 behavior for 'GOMP_MAP_FORCE_FROM'.
2639 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2640
2641 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2642
2643 * oacc-mem.c (goacc_exit_data_internal): Remove
2644 'GOMP_MAP_ALWAYS_FROM' handling.
2645
2646 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2647
2648 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2649 'scan-assembler' with 'scan-offload-rtl'.
2650 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2651 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2652 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2653 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2654
2655 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2656
2657 * target.c (gomp_map_vars_existing): Assert 'kind !=
2658 GOMP_MAP_ATTACH'.
2659 (gomp_map_vars_internal): Clean up.
2660
2661 2020-06-27 Jakub Jelinek <jakub@redhat.com>
2662
2663 * testsuite/libgomp.c/loop-17.c: New test.
2664 * testsuite/libgomp.c/loop-18.c: New test.
2665
2666 2020-06-26 Marek Polacek <polacek@redhat.com>
2667
2668 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2669
2670 2020-06-23 Alexandre Oliva <oliva@adacore.com>
2671
2672 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2673 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2674
2675 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
2676
2677 * Makefile.am: Use -include.
2678 * Makefile.in: Regenerate.
2679
2680 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
2681
2682 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2683 * Makefile.in: Regenerate
2684 * configure.ac (tmake_file): Substitute.
2685 * configure: Regenerate.
2686 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2687 * config/t-aix: New file.
2688
2689 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
2690
2691 PR lto/94848
2692 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2693 'dg-do run'.
2694
2695 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
2696
2697 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2698 variant for HSA_RUNTIME_LIB name.
2699 (find_executable_symbol_1): Delete.
2700 (find_executable_symbol): Delete.
2701 (init_kernel_properties): Add ".kd" suffix to symbol names.
2702 (find_load_offset): Delete.
2703 (create_and_finalize_hsa_program): Remove relocation handling.
2704
2705 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
2706
2707 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2708
2709 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
2710
2711 PR lto/94848
2712 PR middle-end/95551
2713 * testsuite/libgomp.fortran/target-var.f90: New test.
2714
2715 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2716 Julian Brown <julian@codesourcery.com>
2717
2718 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2719 special handling.
2720
2721 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2722 Julian Brown <julian@codesourcery.com>
2723
2724 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2725 Simplify.
2726
2727 2020-06-05 Julian Brown <julian@codesourcery.com>
2728
2729 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2730 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2731
2732 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2733
2734 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2735 Evaluate 'copyfrom' individually for each entry.
2736 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2737
2738 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2739
2740 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2741 Evaluate 'finalize' individually for each entry.
2742 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2743 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2744 file.
2745
2746 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2747
2748 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2749 usage.
2750 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2751
2752 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2753 Julian Brown <julian@codesourcery.com>
2754
2755 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2756 checking.
2757 (acc_unmap_data, goacc_exit_data_internal): Restore
2758 'is_tgt_unmapped' checking.
2759 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2760 file.
2761 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2762 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2763 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2764 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2765 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2766 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2767
2768 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2769 Julian Brown <julian@codesourcery.com>
2770
2771 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2772
2773 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2774
2775 PR libgomp/92854
2776 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2777
2778 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2779
2780 PR libgomp/92854
2781 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2782 more.
2783
2784 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2785 Julian Brown <julian@codesourcery.com>
2786
2787 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2788 'gomp_map_vars'.
2789 (acc_map_data): Clean up accordingly.
2790
2791 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2792
2793 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2794 of over-eager 'finalize' clause.
2795 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2796 file.
2797 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2798 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2799 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2800 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2801 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2802 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2803 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2804 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2805
2806 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2807
2808 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2809
2810 2020-06-04 Julian Brown <julian@codesourcery.com>
2811
2812 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2813 error path.
2814 (goacc_detach_internal): Likewise.
2815
2816 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2817
2818 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2819 the checkpoint.
2820 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2821 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2822 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2823 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2824 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2825
2826 2020-06-02 Jakub Jelinek <jakub@redhat.com>
2827
2828 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2829 defined.
2830
2831 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2832
2833 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2834
2835 2020-05-30 Jakub Jelinek <jakub@redhat.com>
2836
2837 * allocator.c (omp_alloc): For size == 0, return NULL early.
2838
2839 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
2840
2841 PR bootstrap/95413
2842 * configure: Regenerated.
2843
2844 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
2845
2846 PR libfortran/95191
2847 * testsuite/libgomp.fortran/async_io_9.f90: New test.
2848
2849 2020-05-19 Jakub Jelinek <jakub@redhat.com>
2850
2851 * omp.h.in (omp_uintptr_t): New typedef.
2852 (__GOMP_UINTPTR_T_ENUM): Define.
2853 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2854 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2855 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2856 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2857 omp_get_default_allocator, omp_alloc, omp_free): Declare.
2858 * libgomp.h (struct gomp_team_state): Add def_allocator field.
2859 (gomp_def_allocator): Declare.
2860 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2861 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2862 omp_alloc and omp_free.
2863 * team.c (gomp_team_start): Copy over ts.def_allocator.
2864 * env.c (gomp_def_allocator): New variable.
2865 (parse_wait_policy): Adjust function comment.
2866 (parse_allocator): New function.
2867 (handle_omp_display_env): Print OMP_ALLOCATOR.
2868 (initialize_env): Call parse_allocator.
2869 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2870 * allocator.c: New file.
2871 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2872 functions.
2873 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2874 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2875 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2876 * Makefile.in: Regenerated.
2877
2878 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
2879
2880 PR bootstrap/95147
2881 * configure: Regenerated.
2882
2883 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
2884
2885 PR libfortran/95119
2886 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2887
2888 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
2889
2890 * configure: Regenerated.
2891
2892 2020-05-14 Jakub Jelinek <jakub@redhat.com>
2893
2894 * testsuite/libgomp.c-c++-common/target-40.c: New test.
2895
2896 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
2897
2898 PR fortran/94690
2899 * testsuite/libgomp.fortran/pr66199-3.f90: New.
2900 * testsuite/libgomp.fortran/pr66199-4.f90: New.
2901 * testsuite/libgomp.fortran/pr66199-5.f90: New.
2902 * testsuite/libgomp.fortran/pr66199-6.f90: New.
2903 * testsuite/libgomp.fortran/pr66199-7.f90: New.
2904 * testsuite/libgomp.fortran/pr66199-8.f90: New.
2905 * testsuite/libgomp.fortran/pr66199-9.f90: New.
2906
2907 2020-05-12 Jakub Jelinek <jakub@redhat.com>
2908
2909 * testsuite/libgomp.c/target-39.c: New test.
2910
2911 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
2912
2913 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2914 * openacc.f90 (acc_device_current): Likewise.
2915 * openacc.h (acc_device_current): Likewise.
2916 * openacc_lib.h (acc_device_current): Likewise.
2917
2918 PR target/94282
2919 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2920 'dg-allow-blank-lines-in-output'.
2921
2922 * oacc-init.c (get_openacc_name): Handle 'gcn'.
2923 * testsuite/lib/libgomp.exp
2924 (offload_target_to_openacc_device_type) [amdgcn*]: Return
2925 'radeon'. Adjust all users.
2926 (check_effective_target_openacc_amdgcn_accel_present): Rename
2927 to...
2928 (check_effective_target_openacc_radeon_accel_present): ... this.
2929 Adjust all users.
2930 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2931 (check_effective_target_openacc_radeon_accel_selected): ... this.
2932 Adjust all users.
2933
2934 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2935 'dg-do run'.
2936
2937 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
2938
2939 PR other/94629
2940
2941 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2942 hsa_iterate_agents.
2943 (GOMP_OFFLOAD_init_device): Check return values from both calls to
2944 hsa_agent_iterate_regions.
2945
2946 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
2947
2948 PR middle-end/94635
2949 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2950 run'.
2951
2952 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
2953
2954 PR middle-end/94120
2955 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2956 test case.
2957
2958 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
2959
2960 PR middle-end/94635
2961 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2962
2963 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
2964
2965 PR libgomp/92843
2966 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2967 Rename to...
2968 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2969 ... this.
2970 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2971 Rename to...
2972 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2973 ... this.
2974 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2975 Rename to...
2976 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2977 ... this.
2978 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2979 Rename to...
2980 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2981 ... this.
2982 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2983 Rename to...
2984 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2985 ... this.
2986 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2987 Rename to...
2988 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2989 ... this.
2990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2991 Rename to...
2992 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2993 ... this.
2994 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2995 Rename to...
2996 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2997 ... this.
2998 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2999 Rename to...
3000 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3001 ... this.
3002 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3003 Rename to...
3004 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3005 ... this.
3006 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3007 Rename to...
3008 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3009 ... this.
3010 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3011 Rename to...
3012 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3013 ... this.
3014 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3015 Rename to...
3016 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3017 ... this.
3018 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3019 Rename to...
3020 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3021 ... this.
3022 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3023 Rename to...
3024 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3025 ... this.
3026 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3027 Rename to...
3028 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3029 ... this.
3030
3031 2020-04-10 Julian Brown <julian@codesourcery.com>
3032 Thomas Schwinge <thomas@codesourcery.com>
3033
3034 PR libgomp/92843
3035 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3036 New file.
3037 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3038 Likewise.
3039 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3040 Likewise.
3041 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3042 Likewise.
3043 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3044 Likewise.
3045 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3046 Likewise.
3047 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3048 Likewise.
3049 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3050 Likewise.
3051 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3052 Likewise.
3053 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3054 Likewise.
3055 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3056 Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3058 Likewise.
3059 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3060 Likewise.
3061 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3062 Likewise.
3063 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3064 Likewise.
3065 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3066 Likewise.
3067
3068 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
3069
3070 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3071 run'.
3072
3073 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
3074
3075 PR middle-end/94120
3076 * libgomp.oacc-c++/declare-pr94120.C: New.
3077
3078 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
3079
3080 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3081 files.
3082 * configure: Regenerate.
3083 * testsuite/libgomp-site-extra.exp.in: New file.
3084 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3085 variable.
3086 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3087 variable.
3088 * testsuite/Makefile.in: Regenerate.
3089
3090 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3091
3092 PR tree-optimization/89713
3093 PR c/94392
3094 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3095 'bar.sync'.
3096 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3097
3098 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
3099
3100 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3101 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3102
3103 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
3104
3105 PR libgomp/81689
3106 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3107
3108 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
3109
3110 PR libgomp/94251
3111 * target.c (gomp_load_image_to_device): Fix link
3112 variable handling.
3113
3114 2020-03-19 Jakub Jelinek <jakub@redhat.com>
3115
3116 PR c++/93931
3117 * testsuite/libgomp.c++/pr93931.C: New test.
3118
3119 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
3120
3121 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3122 dg-allow-blank-lines-in-output.
3123
3124 2020-03-18 Julian Brown <julian@codesourcery.com>
3125 Tobias Burnus <tobias@codesourcery.com>
3126
3127 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3128 it work concurrently.
3129
3130 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
3131
3132 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3133 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3134 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3135
3136 2020-03-14 Jakub Jelinek <jakub@redhat.com>
3137
3138 PR middle-end/93566
3139 * testsuite/libgomp.c/pr93566.c: New test.
3140
3141 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
3142
3143 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3144 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3145 integer(acc_device_property) for the type of the return value of
3146 acc_get_property.
3147
3148 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
3149
3150 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3151 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3152 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3153 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3154 (acc_set_device_num): Fix Fortran argument name, use same name for C.
3155 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3156 corrections; add note about the previous interface and named constant.
3157 (OpenACC library and environment variables): Fix two typos.
3158 * openacc.f90: Use for all procedures the argument names from the spec
3159 as for …_h they are user visible.
3160 (openacc_kinds): Rename acc_device_property to
3161 acc_device_property_kinds and change value to int32 ; and update users.
3162 Re-add acc_device_property for for backward compatibility.
3163 (acc_get_property_string_h): Clean up as acc_device_property_kind
3164 changed.
3165 (acc_get_property_h): Likewise and return c_size_t instead of
3166 acc_device_property.
3167 (openacc): Also export acc_device_property_kinds.
3168 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3169 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3170 handling; check against /= 0 instead of == 1 to match C.
3171 * openacc_lib.h: Use for all procedures the argument names from the spec
3172 as for …_h they are user visible. Place !GCC$ into the first column to
3173 be active also for fixed-form souce form.
3174 (acc_device_current, acc_device_property_kind, acc_device_property,
3175 acc_property_memory, acc_property_free_memory, acc_property_name,
3176 acc_property_vendor, acc_property_driver): New named constants.
3177 (acc_get_property, acc_get_property_string): New generic interface.
3178
3179 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
3180
3181 PR libgomp/93481
3182 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3183 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3184 optional.
3185 (gomp_target_task_fn): Assert "devicep->async_run_func".
3186 (clear_unsupported_flags): New function to remove unsupported flags
3187 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3188 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3189 * testsuite/libgomp.c/target-33.c:
3190 Remove xfail for offload_target_nvptx.
3191 * testsuite/libgomp.c/target-34.c: Likewise.
3192
3193 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
3194
3195 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3196 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3197 * testsuite/libgomp.c/target-34.c: Likewise.
3198 * testsuite/libgomp.c/target-link-1.c: Add xfail for
3199 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3200
3201 2020-02-09 Jakub Jelinek <jakub@redhat.com>
3202
3203 * testsuite/libgomp.c/target-38.c: New test.
3204
3205 2020-02-06 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR libgomp/93515
3208 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3209
3210 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
3211
3212 * testsuite/lib/libgomp.exp
3213 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3214 and not as 'source' argument to libgomp_target_compile.
3215
3216 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
3217
3218 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3219 (gcn_gfx801_s): Remove.
3220 (isa_hsa_name): Remove gfx801.
3221 (isa_gcc_name): Remove gfx801/carizzo.
3222 (isa_code): Remove gfx801.
3223
3224 2020-02-03 Julian Brown <julian@codesourcery.com>
3225 Tobias Burnus <tobias@codesourcery.com>
3226
3227 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3228 and *_finalize variants; document acc_attach and acc_detach; update
3229 references from OpenACC 2.0 to 2.6.
3230 * openacc.f90 (openacc_version): Update to 201711.
3231 * openacc_lib.h (openacc_version): Update to 201711.
3232 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3233 openacc_version to 201711.
3234 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3235
3236 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3237
3238 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3239 and vgpr_count fields.
3240 (struct kernel_info): Add a field for a hsa_kernel_description.
3241 (run_kernel): Reduce the number of threads/workers if the requested
3242 number would require too many VGPRs.
3243 (init_basic_kernel_info): Initialize description field with
3244 the hsa_kernel_description entry for the kernel.
3245
3246 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
3247
3248 PR bootstrap/93409
3249 * plugin/configfrag.ac (enable_offload_targets): Skip
3250 HSA and GCN plugin besides -m32 also for -mx32.
3251 * configure: Regenerate.
3252
3253 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3254
3255 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3256
3257 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3258
3259 * plugin-gcn.c (struct agent_info): Add fields "name" and
3260 "vendor_name" ...
3261 (GOMP_OFFLOAD_init_device): ... and init from here.
3262 (struct hsa_context_info): Add field "driver_version_s" ...
3263 (init_hsa_contest): ... and init from here.
3264 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3265 implementation.
3266 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3267 Enable test execution for amdgcn and host offloading targets.
3268 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3270 (expect_device_properties): Split function into ...
3271 (expect_device_string_properties): ... this new function ...
3272 (expect_device_memory): ... and this new function.
3273 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3274 Add test.
3275
3276 2020-01-28 Julian Brown <julian@codesourcery.com>
3277
3278 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3279 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3280 component/non-component variable refs in a single directive.
3281 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3282
3283 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3284
3285 * configure.ac: Handle `--with-toolexeclibdir='.
3286 * Makefile.in: Regenerate.
3287 * aclocal.m4: Regenerate.
3288 * configure: Regenerate.
3289 * testsuite/Makefile.in: Regenerate.
3290
3291 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
3292
3293 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3294 (expect_device_properties): Remove "expected_free_mem" argument,
3295 change "expected_total_mem" argument type to size_t;
3296 change types of acc_get_property results to size_t,
3297 adapt format strings.
3298 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3299 Use %zu instead of %zd to print size_t values.
3300 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3301 rename to ...
3302 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3303 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3304 rename to ...
3305 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3306
3307 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
3308
3309 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3310 the device id.
3311
3312 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
3313
3314 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3315 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3316 Adjust test dimensions for amdgcn.
3317 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3318 gang/worker/vector expectations dynamically.
3319 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3320 (main): Likewise.
3321 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3322 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3323 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3324 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3326 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3327 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3328 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3329 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3330 (acc_gang): Recognise acc_device_radeon.
3331 (acc_worker): Likewise.
3332 (acc_vector): Likewise.
3333 (main): Set expectations for amdgcn.
3334 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3335 (main): Adjust gang/worker/vector expectations dynamically.
3336 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3337 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3338 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3339 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3340 for amdgcn.
3341
3342 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
3343
3344 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3345 acc_device_radeon.
3346 (openacc): Likewise.
3347 * openacc.f90 (openacc_kinds): Likewise.
3348 (openacc): Likewise.
3349 * openacc.h (acc_device_t): Likewise.
3350 * openacc_lib.h: Likewise.
3351 * testsuite/lib/libgomp.exp
3352 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3353 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3354 (cb_compute_construct_end): Likewise.
3355 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3356 (cb_enqueue_launch_start): Likewise.
3357 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3358 (cb_enter_data_end): Likewise.
3359 (cb_exit_data_start): Likewise.
3360 (cb_exit_data_end): Likewise.
3361 (cb_compute_construct_end): Likewise.
3362 (cb_enqueue_launch_start): Likewise.
3363 (cb_enqueue_launch_end): Likewise.
3364 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3365 (main): Likewise.
3366
3367 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
3368
3369 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
3370 to use this instead of 'enum gomp_device_property'.
3371 (GOMP_OFFLOAD_get_property): Rename to...
3372 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
3373 * libgomp.h (struct gomp_device_descr): Move
3374 'GOMP_OFFLOAD_openacc_get_property'...
3375 (struct acc_dispatch_t): ... here. Adjust all users.
3376 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3377
3378 * target.c (gomp_map_vars_internal)
3379 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3380 paths.
3381
3382 2020-01-10 Jakub Jelinek <jakub@redhat.com>
3383
3384 PR libgomp/93219
3385 * libgomp.h (gomp_print_string): Change return type from void to int.
3386 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
3387 not all characters have been written.
3388
3389 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
3390
3391 * libgomp.texi: Fix typos, use https.
3392
3393 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
3394
3395 * testsuite/libgomp.fortran/optional-map.f90: Add test for
3396 unallocated/disassociated actual arguments to nonallocatable/nonpointer
3397 dummy arguments; those are/shall be regarded as absent arguments.
3398 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3399 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3400
3401 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3402
3403 Update copyright years.
3404
3405 * libgomp.texi: Bump @copying's copyright year.
3406
3407 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
3408
3409 PR libgomp/93065
3410 * oacc-init.c (goacc_runtime_deinitialize): New function.
3411
3412 2019-12-28 Jakub Jelinek <jakub@redhat.com>
3413
3414 PR bootstrap/93074
3415 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3416 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
3417
3418 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
3419 Frederik Harwath <frederik@codesourcery.com>
3420 Thomas Schwinge <tschwinge@codesourcery.com>
3421
3422 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3423 * libgomp-plugin.h (gomp_device_property_value): New union.
3424 (gomp_device_property_value): New prototype.
3425 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3426 constant.
3427 (acc_device_property_t): New enum.
3428 (acc_get_property, acc_get_property_string): New prototypes.
3429 * oacc-init.c (acc_get_device_type): Also assert that result
3430 is not `acc_device_current'.
3431 (get_property_any, acc_get_property, acc_get_property_string):
3432 New functions.
3433 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3434 `acc_property_memory', `acc_property_free_memory',
3435 `acc_property_name', `acc_property_vendor' and
3436 `acc_property_driver' constants. Add `acc_device_property' data
3437 type.
3438 (openacc_internal): Add `acc_get_property' and
3439 `acc_get_property_string' interfaces. Add `acc_get_property_h',
3440 `acc_get_property_string_h', `acc_get_property_l' and
3441 `acc_get_property_string_l'.
3442 * oacc-host.c (host_get_property): New function.
3443 (host_dispatch): Wire it.
3444 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3445 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3446 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3447 * libgomp.texi (OpenACC Runtime Library Routines): Add
3448 `acc_get_property'.
3449 (acc_get_property): New node.
3450 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3451 function (stub).
3452 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3453 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3454 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3455 calls.
3456 (GOMP_OFFLOAD_get_property): New function.
3457 (struct ptx_device): Add new field "name".
3458 (cuda_driver_version_s): Add new static variable ...
3459 (nvptx_init): ... and init from here.
3460
3461 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3462 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3463 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3464 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3465 with test helper functions.
3466
3467 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3468
3469 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
3470
3471 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3472 variable.
3473
3474 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
3475
3476 * target.c (gomp_map_vars_internal): Restore 'omp declare target
3477 link' handling.
3478
3479 2019-12-19 Julian Brown <julian@codesourcery.com>
3480
3481 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3482 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3483 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3484
3485 2019-12-19 Julian Brown <julian@codesourcery.com>
3486 Cesar Philippidis <cesar@codesourcery.com>
3487
3488 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3489 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3490 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3491 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3492 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3493 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3494 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3495 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3496 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3497 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3498 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3499 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3500 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3501
3502 2019-12-19 Julian Brown <julian@codesourcery.com>
3503
3504 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3505 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3506 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3507 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3508 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3509 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3510 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3511 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3512 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3513 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3514 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3515 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3516
3517 2019-12-19 Julian Brown <julian@codesourcery.com>
3518
3519 * libgomp.h (struct target_var_desc): Add do_detach flag.
3520 * oacc-init.c (acc_shutdown_1): Free aux block if present.
3521 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3522 struct components. Tidy up and add some new checks.
3523 (goacc_enter_data_internal): Update call to find_group_last.
3524 (goacc_exit_data_internal): Support detach operations and
3525 GOMP_MAP_STRUCT.
3526 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3527 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
3528 attach/detach in enter/exit data detection code.
3529 * target.c (gomp_map_vars_existing): Initialise do_detach field of
3530 tgt_var_desc.
3531 (gomp_map_vars_internal): Support attach.
3532 (gomp_unmap_vars_internal): Support detach.
3533
3534 2019-12-19 Julian Brown <julian@codesourcery.com>
3535 Thomas Schwinge <thomas@codesourcery.com>
3536
3537 * libgomp.h (struct splay_tree_aux): Add attach_count field.
3538 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3539 * libgomp.map (OACC_2.6): New section. Add acc_attach,
3540 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3541 acc_detach_finalize_async.
3542 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3543 acc_detach, acc_detach_async, acc_detach_finalize,
3544 acc_detach_finalize_async): New functions.
3545 * openacc.h (acc_attach, acc_attach_async, acc_detach,
3546 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3547 prototypes.
3548 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3549 (gomp_remove_var_internal): Free attachment counts if present.
3550 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3551 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3552
3553 2019-12-19 Julian Brown <julian@codesourcery.com>
3554 Cesar Philippidis <cesar@codesourcery.com>
3555
3556 * libgomp.h (gomp_map_val): Add prototype.
3557 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3558 open-coding device-address calculation.
3559 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3560 non-present case.
3561
3562 2019-12-19 Julian Brown <julian@codesourcery.com>
3563
3564 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3565 field for virtual_refcount.
3566 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3567 (gomp_free_memmap): Remove prototype.
3568 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3569 instead of calling gomp_free_memmap.
3570 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3571 dynamic_refcount.
3572 (acc_unmap_data): Open code instead of forcing target_mem_desc's
3573 to_free field to NULL then calling gomp_unmap_vars. Handle
3574 REFCOUNT_INFINITY on target blocks.
3575 (goacc_enter_data): Rename to...
3576 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
3577 handling for mapping groups. Use virtual_refcount instead of
3578 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3579 map_map_vars_async call. Re-do lookup for target pointer return value.
3580 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3581 renamed goacc_enter_datum function.
3582 (goacc_exit_data): Rename to...
3583 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
3584 (acc_delete, acc_delete_async, acc_delete_finalize,
3585 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3586 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3587 goacc_exit_datum function.
3588 (gomp_acc_remove_pointer, find_pointer): Remove functions.
3589 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3590 New functions.
3591 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3592 goacc_exit_data_internal helper functions.
3593 * target.c (gomp_map_vars_internal): Handle
3594 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
3595 semantics.
3596 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3597 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3598 virtual_refcount field instead of dynamic_refcount.
3599 (gomp_free_memmap): Remove function.
3600 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3601 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3602 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3603
3604 2019-12-19 Julian Brown <julian@codesourcery.com>
3605 Thomas Schwinge <thomas@codesourcery.com>
3606
3607 * libgomp.h (struct splay_tree_aux): New.
3608 (struct splay_tree_key_s): Replace link_key field with aux pointer.
3609 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3610 to aux struct.
3611 (gomp_remove_var_internal): Free aux block if present.
3612 (gomp_load_image_to_device): Zero-initialise aux field instead of
3613 link_key field.
3614 (omp_target_associate_pointer): Zero-initialise aux field.
3615
3616 2019-12-18 Jakub Jelinek <jakub@redhat.com>
3617
3618 PR middle-end/86416
3619 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3620 q or none.
3621 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3622 L or none.
3623
3624 2019-12-19 Julian Brown <julian@codesourcery.com>
3625 Maciej W. Rozycki <macro@codesourcery.com>
3626 Tobias Burnus <tobias@codesourcery.com>
3627 Thomas Schwinge <thomas@codesourcery.com>
3628
3629 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3630 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3631 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3632 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3633 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3634 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3635 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3636 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3637 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3638
3639 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
3640
3641 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3642 called...
3643 (goacc_insert_pointer): ... from here, "present" case.
3644 (goacc_insert_pointer): Inline function into...
3645 (GOACC_enter_exit_data): ... here, and simplify.
3646
3647 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3648 called...
3649 (goacc_insert_pointer): ... from here, "not present" case.
3650
3651 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
3652 all users.
3653
3654 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3655 'goacc_enter_data', 'goacc_exit_data'.
3656
3657 * oacc-mem.c (delete_copyout): Refactor into...
3658 (goacc_exit_data): ... this. Adjust all users.
3659
3660 * oacc-mem.c (present_create_copy): Refactor into...
3661 (goacc_enter_data): ... this. Adjust all users.
3662
3663 * target.c (gomp_unmap_vars_internal): Add a safeguard to
3664 'gomp_remove_var'.
3665
3666 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3667 like 'GOMP_MAP_FROM'.
3668
3669 PR libgomp/92726
3670 PR libgomp/92970
3671 PR libgomp/92984
3672 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3673 fails.
3674 (GOACC_enter_exit_data): Simplify accordingly.
3675 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3676 subsuming...
3677 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3678 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3679 file.
3680 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3681 subsuming...
3682 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3683 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3684 file.
3685 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3686 subsuming...
3687 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3688
3689 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3690 'finalize' handling.
3691
3692 PR libgomp/92848
3693 * oacc-mem.c (acc_map_data, present_create_copy)
3694 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3695 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3696 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3697 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3698 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3701 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3702 Remove "XFAIL"s.
3703
3704 * target.c (gomp_unmap_tgt): Make it 'static'.
3705 * libgomp.h (gomp_unmap_tgt): Remove.
3706
3707 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
3708
3709 PR middle-end/86416
3710 * testsuite/libgomp.c/pr86416-1.c: New.
3711 * testsuite/libgomp.c/pr86416-2.c: New.
3712
3713 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
3714
3715 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3716 all symbols as public except for the 'use …, only' imported symbol,
3717 which is private.
3718 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3719 all symbols from module openacc_kinds as PUBLIC
3720 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3721 fix comment typo.
3722 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3723
3724 2019-12-13 Julian Brown <julian@codesourcery.com>
3725
3726 PR libgomp/92881
3727
3728 * libgomp.h (gomp_remove_var_async): Add prototype.
3729 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3730 gomp_remove_var.
3731 * target.c (gomp_unref_tgt): Change return type to bool, indicating
3732 whether target_mem_desc was unmapped.
3733 (gomp_unref_tgt_void): New.
3734 (gomp_remove_var): Reimplement in terms of...
3735 (gomp_remove_var_internal): ...this new helper function.
3736 (gomp_remove_var_async): New, implemented using above helper function.
3737 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3738 gomp_unref_tgt.
3739
3740 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
3741
3742 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3743 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3744 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3745 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3746 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3747 Likewise.
3748 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3749 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3750
3751 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
3752
3753 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3754 as public except for the 'use …, only' imported symbol, which is
3755 private.
3756 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3757 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3758 attributes for acc_copyout_finalize and acc_delete_finalize.
3759
3760 2019-12-11 Jakub Jelinek <jakub@redhat.com>
3761
3762 PR fortran/92899
3763 * testsuite/libgomp.fortran/atomic1.f90: New test.
3764
3765 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3766
3767 PR libgomp/92843
3768 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3769 reference counting for structured 'REFCOUNT_INFINITY'. Add some
3770 assertions.
3771 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3772 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3773 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3774 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3775 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3776
3777 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3778 * oacc-mem.c: ... here.
3779 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3780 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3781 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3782 Remove.
3783 * libgomp_g.h: Update.
3784
3785 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3786 * oacc-async.c: ... here.
3787 * oacc-int.h (goacc_wait): Declare.
3788 * libgomp_g.h: Update
3789
3790 PR libgomp/92854
3791 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3792 New file.
3793 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3794 Likewise.
3795 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3796 Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3798 Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3800 Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3802 Likewise.
3803
3804 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3805 Julian Brown <julian@codesourcery.com>
3806
3807 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3808 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3809
3810 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3811
3812 * omp_lib.h.in: Fix spelling of function declaration
3813 omp_get_cancell(l)ation.
3814 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3815 Fix typos.
3816 * env.c: Fix comment typos.
3817 * oacc-host.c: Likewise.
3818 * ordered.c: Likewise.
3819 * task.c: Likewise.
3820 * team.c: Likewise.
3821 * config/gcn/task.c: Likewise.
3822 * config/gcn/team.c: Likewise.
3823 * config/nvptx/task.c: Likewise.
3824 * config/nvptx/team.c: Likewise.
3825 * plugin/plugin-gcn.c: Likewise.
3826 * testsuite/libgomp.fortran/jacobi.f: Likewise.
3827 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3829
3830 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
3831
3832 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3833 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3834 unnecessary 'dg-additional-options "-w"'.
3835
3836 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3837 Julian Brown <julian@codesourcery.com>
3838
3839 PR libgomp/92116
3840 PR libgomp/92877
3841
3842 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
3843 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3844 Adjust all users.
3845 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3846 Remove XFAIL.
3847 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3848 Likewise.
3849 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3850
3851 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
3852
3853 PR libgomp/92503
3854 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3855 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3856 file.
3857 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3858 Likewise.
3859 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3860 Likewise.
3861 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3862 Likewise.
3863 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3864 Likewise.
3865 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3866 Likewise.
3867 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3868 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3873 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3874 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3876 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3877
3878 PR libgomp/92840
3879 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3880 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3881 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3882 New file.
3883 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3884 Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3886 Likewise.
3887 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3888 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3889
3890 PR libgomp/92511
3891 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3892 this file...
3893 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3894 this file...
3895 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3896 file...
3897 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3898 file...
3899 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3900 ... with their content moved into, and extended in this new file.
3901 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3902 New file.
3903 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3904 Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3906 Likewise.
3907 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3908 Likewise.
3909
3910 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3911
3912 PR libgomp/92854
3913 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3914
3915 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3916
3917 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3918
3919 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
3920
3921 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3922 unique.
3923 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3924 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3925 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3926 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3927 Ditto.
3928 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3929 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3930
3931 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
3932
3933 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3934
3935 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
3936 Kwok Cheung Yeung <kcy@codesourcery.com>
3937
3938 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3939 if input it a NULL pointer.
3940 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3941 diagnostic of NULL pointer.
3942 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3943 * testsuite/libgomp.fortran/optional-map.f90: New.
3944 * testsuite/libgomp.fortran/use_device_addr-1.f90
3945 (test_dummy_opt_callee_1_absent): New.
3946 (test_dummy_opt_call_1): Call it.
3947 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3948 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3949 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3950 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3951 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3952 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3953 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3954 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3955 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3956 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3957 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3958 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3959 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3960 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3961 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3962 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3963
3964 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
3965
3966 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3967 expect dg-output of 'Error termination.' for GCN.
3968 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3969 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3970
3971 2019-12-04 Jakub Jelinek <jakub@redhat.com>
3972
3973 PR fortran/92756
3974 * testsuite/libgomp.fortran/teams1.f90: New test.
3975 * testsuite/libgomp.fortran/teams2.f90: New test.
3976
3977 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
3978
3979 * oacc-init.c (acc_known_device_type): Add function.
3980 (unknown_device_type_error): Add function.
3981 (name_of_acc_device_t): Change to call unknown_device_type_error
3982 on unknown type.
3983 (resolve_device): Use acc_known_device_type.
3984 (acc_init): Fail if acc_device_t argument is not valid.
3985 (acc_shutdown): Likewise.
3986 (acc_get_num_devices): Likewise.
3987 (acc_set_device_type): Likewise.
3988 (acc_get_device_num): Likewise.
3989 (acc_set_device_num): Likewise.
3990 (acc_on_device): Add comment that argument validity is not checked.
3991
3992 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
3993
3994 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3995 Recognize amdgcn.
3996 (check_effective_target_openacc_amdgcn_accel_present): New proc.
3997 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3998 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3999 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4000 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4001
4002 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4003
4004 PR libgomp/91938
4005 * configure.tgt: Avoid IE tls on *-*-musl*.
4006
4007 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
4008
4009 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4010 adding a common-block test case.
4011
4012 2019-11-29 Jakub Jelinek <jakub@redhat.com>
4013
4014 PR c++/60228
4015 * testsuite/libgomp.c++/udr-20.C: New test.
4016 * testsuite/libgomp.c++/udr-21.C: New test.
4017
4018 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
4019
4020 * testsuite/lib/libgomp.exp
4021 (check_effective_target_offload_target_nvptx): New proc.
4022 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4023 'dg-skip-if'.
4024 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4025 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4026 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4027
4028 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4029
4030 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4031 * testsuite/libgomp.c/pr39591-2.c: Likewise.
4032 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4033 * testsuite/libgomp.c/private-1.c: Likewise.
4034 * testsuite/libgomp.c/task-1.c: Likewise.
4035 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4036
4037 2019-11-20 Julian Brown <julian@codesourcery.com>
4038
4039 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4040 aq->mutex here.
4041 (queue_push_launch): Lock aq->mutex before calling
4042 wait_for_queue_nonfull.
4043 (queue_push_callback): Likewise.
4044 (queue_push_asyncwait): Likewise.
4045 (queue_push_placeholder): Likewise.
4046
4047 2019-11-20 Julian Brown <julian@codesourcery.com>
4048
4049 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4050 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4051 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4052 return code.
4053
4054 2019-11-20 Julian Brown <julian@codesourcery.com>
4055
4056 PR libgomp/92511
4057
4058 * oacc-mem.c (present_create_copy): Fix device pointer return value in
4059 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
4060 in non-present/create case.
4061 (delete_copyout): Change error condition to fail only on copies outside
4062 of mapped block. Adjust error message accordingly.
4063 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4064 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4066 message.
4067 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4069 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4070
4071 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
4072
4073 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4074 libatomic in build-tree testing.
4075
4076 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
4077
4078 * testsuite/Makefile.in: Regenerate.
4079
4080 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
4081
4082 * testsuite/libgomp.c/target-print-1.c: New file.
4083 * testsuite/libgomp.fortran/target-print-1.f90: New file.
4084 * testsuite/libgomp.oacc-c/print-1.c: New file.
4085 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4086
4087 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4088 Kwok Cheung Yeung <kcy@codesourcery.com>
4089 Julian Brown <julian@codesourcery.com>
4090 Tom de Vries <tom@codesourcery.com>
4091
4092 * plugin/Makefrag.am: Add amdgcn plugin support.
4093 * plugin/configfrag.ac: Likewise.
4094 * plugin/plugin-gcn.c: New file.
4095 * configure: Regenerate.
4096 * Makefile.in: Regenerate.
4097 * testsuite/Makefile.in: Regenerate.
4098
4099 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4100
4101 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4102 and use team_malloc variants.
4103 (gomp_gcn_exit_kernel): Use team_free.
4104 * libgomp.h (TEAM_ARENA_SIZE): Define.
4105 (TEAM_ARENA_START): Define.
4106 (TEAM_ARENA_FREE): Define.
4107 (TEAM_ARENA_END): Define.
4108 (team_malloc): New function.
4109 (team_malloc_cleared): New function.
4110 (team_free): New function.
4111 * team.c (gomp_new_team): Initialize and use team_malloc.
4112 (free_team): Use team_free.
4113 (gomp_free_thread): Use team_free.
4114 (gomp_pause_host): Use team_free.
4115 * work.c (gomp_init_work_share): Use team_malloc.
4116 (gomp_fini_work_share): Use team_free.
4117
4118 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4119 Kwok Cheung Yeung <kcy@codesourcery.com>
4120 Julian Brown <julian@codesourcery.com>
4121 Tom de Vries <tom@codesourcery.com>
4122
4123 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4124 * Makefile.in: Regenerate.
4125 * config.h.in (PLUGIN_GCN): Add new undef.
4126 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4127 * config/gcn/affinity-fmt.c: New file.
4128 * config/gcn/bar.c: New file.
4129 * config/gcn/bar.h: New file.
4130 * config/gcn/doacross.h: New file.
4131 * config/gcn/icv-device.c: New file.
4132 * config/gcn/oacc-target.c: New file.
4133 * config/gcn/simple-bar.h: New file.
4134 * config/gcn/target.c: New file.
4135 * config/gcn/task.c: New file.
4136 * config/gcn/team.c: New file.
4137 * config/gcn/time.c: New file.
4138 * configure.ac: Add amdgcn*-*-*.
4139 * configure: Regenerate.
4140 * configure.tgt: Add amdgcn*-*-*.
4141 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4142 * libgomp.h (gcn_thrs): Add amdgcn variant.
4143 (set_gcn_thrs): Likewise.
4144 (gomp_thread): Likewise.
4145 * oacc-int.h (goacc_thread): Likewise.
4146 * oacc-target.c: New file.
4147 * openacc.f90 (acc_device_gcn): New parameter.
4148 * openacc.h (acc_device_t): Add acc_device_gcn.
4149 * team.c (gomp_free_pool_helper): Add amdgcn support.
4150
4151 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4152 Julian Brown <julian@codesourcery.com>
4153
4154 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4155 parameter.
4156 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4157 queue constructor.
4158 * oacc-host.c (host_openacc_async_construct): Add device parameter.
4159 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4160 device parameter.
4161
4162 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4163
4164 * configure.tgt (nvptx*-*-*): Add "accel" directory.
4165 * config/nvptx/libgomp-plugin.c: Move ...
4166 * config/accel/libgomp-plugin.c: ... to here.
4167 * config/nvptx/lock.c: Move ...
4168 * config/accel/lock.c: ... to here.
4169 * config/nvptx/mutex.c: Move ...
4170 * config/accel/mutex.c: ... to here.
4171 * config/nvptx/mutex.h: Move ...
4172 * config/accel/mutex.h: ... to here.
4173 * config/nvptx/oacc-async.c: Move ...
4174 * config/accel/oacc-async.c: ... to here.
4175 * config/nvptx/oacc-cuda.c: Move ...
4176 * config/accel/oacc-cuda.c: ... to here.
4177 * config/nvptx/oacc-host.c: Move ...
4178 * config/accel/oacc-host.c: ... to here.
4179 * config/nvptx/oacc-init.c: Move ...
4180 * config/accel/oacc-init.c: ... to here.
4181 * config/nvptx/oacc-mem.c: Move ...
4182 * config/accel/oacc-mem.c: ... to here.
4183 * config/nvptx/oacc-plugin.c: Move ...
4184 * config/accel/oacc-plugin.c: ... to here.
4185 * config/nvptx/omp-lock.h: Move ...
4186 * config/accel/omp-lock.h: ... to here.
4187 * config/nvptx/openacc.f90: Move ...
4188 * config/accel/openacc.f90: ... to here.
4189 * config/nvptx/pool.h: Move ...
4190 * config/accel/pool.h: ... to here.
4191 * config/nvptx/proc.c: Move ...
4192 * config/accel/proc.c: ... to here.
4193 * config/nvptx/ptrlock.c: Move ...
4194 * config/accel/ptrlock.c: ... to here.
4195 * config/nvptx/ptrlock.h: Move ...
4196 * config/accel/ptrlock.h: ... to here.
4197 * config/nvptx/sem.c: Move ...
4198 * config/accel/sem.c: ... to here.
4199 * config/nvptx/sem.h: Move ...
4200 * config/accel/sem.h: ... to here.
4201 * config/nvptx/thread-stacksize.h: Move ...
4202 * config/accel/thread-stacksize.h: ... to here.
4203
4204 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4205 Tobias Burnus <tobias@codesourcery.com>
4206 Frederik Harwath <frederik@codesourcery.com>
4207 Thomas Schwinge <thomas@codesourcery.com>
4208
4209 libgomp/
4210 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4211 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4212 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4213
4214 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4215 Kwok Cheung Yeung <kcy@codesourcery.com>
4216
4217 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4218 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4219
4220 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4221
4222 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4223
4224 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4225 run'.
4226 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4227 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4228
4229 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
4230
4231 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4232 Add expected warnings about missing reduction clauses.
4233 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4234 Likewise.
4235 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4236 Likewise.
4237 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4238 Likewise.
4239
4240 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4241
4242 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4243 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4244 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4245 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4246 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4247 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4248
4249 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4250
4251 PR fortran/92305
4252 * testsuite/libgomp.fortran/allocatable2.f90: Use
4253 unique numbers with 'stop'.
4254 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4255 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4256 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4257 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4258 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4259
4260 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4261
4262 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4263 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4264 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4265 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4266 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4267 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4268
4269 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4270
4271 * testsuite/libgomp.fortran/target9.f90: New.
4272
4273 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4274
4275 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4276 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4277 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4278 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4279 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4280 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4281 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4282 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4283 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4284 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4285 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4286 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4287 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4288 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4289 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4290 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4291 * testsuite/libgomp.fortran/associate1.f90: Ditto.
4292 * testsuite/libgomp.fortran/associate2.f90: Ditto.
4293 * testsuite/libgomp.fortran/associate3.f90: Ditto.
4294 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4295 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4296 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4297 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4298 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4299 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4300 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4301 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4302 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4303 * testsuite/libgomp.fortran/character1.f90: Ditto.
4304 * testsuite/libgomp.fortran/character2.f90: Ditto.
4305 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4306 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4307 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4308 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4309 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4310 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4311 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4312 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4313 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4314 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4315 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4316 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4317 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4318 * testsuite/libgomp.fortran/do1.f90: Ditto.
4319 * testsuite/libgomp.fortran/do2.f90: Ditto.
4320 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4321 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4322 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4323 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4324 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4325 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4326 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4327 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4328 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4329 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4330 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4331 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4332 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4333 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4334 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4335 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4336 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4337 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4338 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4339 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4340 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4341 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4342 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4343 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4344 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4345 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4346 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4347 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4348 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4349 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4350 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4351 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4352 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4353 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4354 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4355 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4356 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4357 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4358 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4359 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4360 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4361 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4362 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4363 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4364 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4365 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4366 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4367 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4368 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4369 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4370 * testsuite/libgomp.fortran/lib1.f90: Ditto.
4371 * testsuite/libgomp.fortran/lib4.f90: Ditto.
4372 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4373 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4374 * testsuite/libgomp.fortran/nested1.f90: Ditto.
4375 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4376 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4377 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4378 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4379 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4380 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4381 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4382 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4383 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4384 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4385 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4386 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4387 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4388 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4389 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4390 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4391 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4392 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4393 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4394 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4395 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4396 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4397 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4398 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4399 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4400 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4401 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4402 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4403 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4404 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4405 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4406 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4407 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4408 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4409 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4410 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4411 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4412 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4413 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4414 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4415 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4416 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4417 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4418 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4419 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4420 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4421 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4422 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4423 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4424 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4425 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4426 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4427 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4428 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4429 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4430 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4431 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4432 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4433 * testsuite/libgomp.fortran/reference1.f90: Ditto.
4434 * testsuite/libgomp.fortran/reference2.f90: Ditto.
4435 * testsuite/libgomp.fortran/retval1.f90: Ditto.
4436 * testsuite/libgomp.fortran/retval2.f90: Ditto.
4437 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4438 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4439 * testsuite/libgomp.fortran/simd1.f90: Ditto.
4440 * testsuite/libgomp.fortran/simd2.f90: Ditto.
4441 * testsuite/libgomp.fortran/simd3.f90: Ditto.
4442 * testsuite/libgomp.fortran/simd4.f90: Ditto.
4443 * testsuite/libgomp.fortran/simd5.f90: Ditto.
4444 * testsuite/libgomp.fortran/simd6.f90: Ditto.
4445 * testsuite/libgomp.fortran/simd7.f90: Ditto.
4446 * testsuite/libgomp.fortran/stack.f90: Ditto.
4447 * testsuite/libgomp.fortran/strassen.f90: Ditto.
4448 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4449 * testsuite/libgomp.fortran/tabs2.f: Ditto.
4450 * testsuite/libgomp.fortran/target1.f90: Ditto.
4451 * testsuite/libgomp.fortran/target2.f90: Ditto.
4452 * testsuite/libgomp.fortran/target3.f90: Ditto.
4453 * testsuite/libgomp.fortran/target4.f90: Ditto.
4454 * testsuite/libgomp.fortran/target5.f90: Ditto.
4455 * testsuite/libgomp.fortran/target6.f90: Ditto.
4456 * testsuite/libgomp.fortran/target7.f90: Ditto.
4457 * testsuite/libgomp.fortran/target8.f90: Ditto.
4458 * testsuite/libgomp.fortran/task1.f90: Ditto.
4459 * testsuite/libgomp.fortran/task2.f90: Ditto.
4460 * testsuite/libgomp.fortran/task3.f90: Ditto.
4461 * testsuite/libgomp.fortran/task4.f90: Ditto.
4462 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4463 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4464 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4465 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4466 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4467 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4468 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4469 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4470 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4471 * testsuite/libgomp.fortran/udr1.f90: Ditto.
4472 * testsuite/libgomp.fortran/udr10.f90: Ditto.
4473 * testsuite/libgomp.fortran/udr11.f90: Ditto.
4474 * testsuite/libgomp.fortran/udr12.f90: Ditto.
4475 * testsuite/libgomp.fortran/udr13.f90: Ditto.
4476 * testsuite/libgomp.fortran/udr14.f90: Ditto.
4477 * testsuite/libgomp.fortran/udr15.f90: Ditto.
4478 * testsuite/libgomp.fortran/udr2.f90: Ditto.
4479 * testsuite/libgomp.fortran/udr3.f90: Ditto.
4480 * testsuite/libgomp.fortran/udr4.f90: Ditto.
4481 * testsuite/libgomp.fortran/udr5.f90: Ditto.
4482 * testsuite/libgomp.fortran/udr6.f90: Ditto.
4483 * testsuite/libgomp.fortran/udr7.f90: Ditto.
4484 * testsuite/libgomp.fortran/udr8.f90: Ditto.
4485 * testsuite/libgomp.fortran/udr9.f90: Ditto.
4486 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4487 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4488 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4489 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4490 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4491 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4492 * testsuite/libgomp.fortran/vla7.f90: Ditto.
4493 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4494 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4495 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4496
4497 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4498
4499 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4500 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4501 Ditto; add 'dg-do run' for torture testing.
4502 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
4503 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4504 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4505 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4506 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4507 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4508 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4509 * testsuite/libgomp.fortran/task2.f90: Ditto.
4510 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4511 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4512 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4513 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4514 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4515 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4516
4517 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
4518
4519 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4520 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4522 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4523 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4524 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4525 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4526 Use 'stop' not abort().
4527 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4528 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4529 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4530 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4531 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4532 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4533 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4534 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4535 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4536 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4537 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4538 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4539 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4540 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4541 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4542 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4543 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4544 Ditto.
4545 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4546 Ditto.
4547 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4548 Ditto.
4549 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4550 Ditto.
4551 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4552 Ditto.
4553 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4554 Ditto.
4555 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4556 Ditto.
4557 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4558 Ditto.
4559 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4560 Ditto.
4561 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4562 Ditto.
4563 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4564 Ditto.
4565 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4566 Ditto.
4567 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4568 Ditto.
4569 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4570 Ditto.
4571 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4572 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4573 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4574 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4575 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4576 Likewise and also add 'dg-do run'.
4577 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4578 Ditto.
4579
4580 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4581 Tobias Burnus <tobias@codesourcery.com>
4582
4583 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4584 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4585 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4586
4587 2019-10-14 Jakub Jelinek <jakub@redhat.com>
4588
4589 PR libgomp/92081
4590 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4591 than 0.
4592
4593 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4594
4595 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4596 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4597
4598 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
4599
4600 PR middle-end/92036
4601 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4602 file.
4603
4604 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
4605
4606 PR testsuite/91884
4607 * testsuite/libgomp.fortran/fortran.exp: Conditionally
4608 add -lquadmath.
4609 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4610
4611 2019-10-09 Jakub Jelinek <jakub@redhat.com>
4612
4613 PR libgomp/92028
4614 * target.c (gomp_map_vars_internal): Readd the previous
4615 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4616 though do that just in the !not_found_cnt case.
4617
4618 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
4619
4620 * gfortran.dg/gomp/target-simd.f90: New.
4621
4622 2019-10-02 Julian Brown <julian@codesourcery.com>
4623 Cesar Philippidis <cesar@codesourcery.com>
4624
4625 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4626 * target.c (FIELD_TGT_EMPTY): Define.
4627 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
4628 as switch instead of list of ifs.
4629 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4630
4631 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
4632
4633 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4634 include. Replace alloca () with __builtin_alloca ().
4635 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4636
4637 2019-10-01 Jakub Jelinek <jakub@redhat.com>
4638
4639 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4640 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4641 * oacc-parallel.c: Don't include "libgomp_g.h".
4642 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4643 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4644 * aclocal.m4: Regenerated.
4645 * config.h.in: Regenerated.
4646 * configure: Regenerated.
4647 * Makefile.in: Regenerated.
4648
4649 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4650
4651 * libgomp_g.h: Include stdint.h instead of gstdint.h.
4652
4653 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
4654
4655 * configure: Regenerate.
4656
4657 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
4658
4659 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4660 string is initialized.
4661
4662 2019-09-06 Florian Weimer <fweimer@redhat.com>
4663
4664 * configure: Regenerate.
4665
4666 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
4667
4668 PR other/79543
4669 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4670 scanning to conform to the GNU Coding Standards.
4671 * configure: Regenerate.
4672
4673 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4674
4675 PR libgomp/91530
4676 * testsuite/libgomp.c/scan-21.c: New test.
4677 * testsuite/libgomp.c/scan-22.c: New test.
4678
4679 2019-08-27 Jakub Jelinek <jakub@redhat.com>
4680
4681 PR libgomp/91530
4682 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4683 targets.
4684 * testsuite/libgomp.c/scan-12.c: Likewise.
4685 * testsuite/libgomp.c/scan-13.c: Likewise.
4686 * testsuite/libgomp.c/scan-14.c: Likewise.
4687 * testsuite/libgomp.c/scan-15.c: Likewise.
4688 * testsuite/libgomp.c/scan-16.c: Likewise.
4689 * testsuite/libgomp.c/scan-17.c: Likewise.
4690 * testsuite/libgomp.c/scan-18.c: Likewise.
4691 * testsuite/libgomp.c/scan-19.c: Likewise.
4692 * testsuite/libgomp.c/scan-20.c: Likewise.
4693 * testsuite/libgomp.c++/scan-9.C: Likewise.
4694 * testsuite/libgomp.c++/scan-10.C: Likewise.
4695 * testsuite/libgomp.c++/scan-11.C: Likewise.
4696 * testsuite/libgomp.c++/scan-12.C: Likewise.
4697 * testsuite/libgomp.c++/scan-14.C: Likewise.
4698 * testsuite/libgomp.c++/scan-15.C: Likewise.
4699 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
4700 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4701 * testsuite/libgomp.c++/scan-16.C: Likewise.
4702
4703 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
4704
4705 PR fortran/91473
4706 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4707 -std=legacy so invalid code in the test case is accepted.
4708
4709 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4710
4711 PR fortran/91422
4712 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4713 dimension.
4714
4715 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4716
4717 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4718 perform the lookup in the first loop only if !not_found_cnt, otherwise
4719 perform lookups for it in the second loop guarded with
4720 if (not_found_cnt || has_firstprivate).
4721 * testsuite/libgomp.c/target-37.c: New test.
4722 * testsuite/libgomp.c++/target-22.C: New test.
4723
4724 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4725
4726 * testsuite/libgomp.c/target-18.c (struct S): New type.
4727 (foo): Use use_device_addr clause instead of use_device_ptr clause
4728 where required by OpenMP 5.0, add further tests for both use_device_ptr
4729 and use_device_addr clauses.
4730 * testsuite/libgomp.c++/target-9.C (struct S): New type.
4731 (foo): Use use_device_addr clause instead of use_device_ptr clause
4732 where required by OpenMP 5.0, add further tests for both use_device_ptr
4733 and use_device_addr clauses. Add t and u arguments.
4734 (main): Adjust caller.
4735
4736 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4737
4738 * testsuite/libgomp.c++/loop-13.C: New test.
4739 * testsuite/libgomp.c++/loop-14.C: New test.
4740 * testsuite/libgomp.c++/loop-15.C: New test.
4741
4742 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4743
4744 PR middle-end/91301
4745 * testsuite/libgomp.c++/for-27.C: New test.
4746
4747 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
4748
4749 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4750 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4751
4752 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4753
4754 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4755
4756 2019-07-08 Jakub Jelinek <jakub@redhat.com>
4757
4758 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4759 * testsuite/libgomp.c++/scan-16.C: Likewise.
4760
4761 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4762
4763 * testsuite/libgomp.c/scan-19.c: New test.
4764 * testsuite/libgomp.c/scan-20.c: New test.
4765
4766 * testsuite/libgomp.c/scan-11.c: New test.
4767 * testsuite/libgomp.c/scan-12.c: New test.
4768 * testsuite/libgomp.c/scan-13.c: New test.
4769 * testsuite/libgomp.c/scan-14.c: New test.
4770 * testsuite/libgomp.c/scan-15.c: New test.
4771 * testsuite/libgomp.c/scan-16.c: New test.
4772 * testsuite/libgomp.c/scan-17.c: New test.
4773 * testsuite/libgomp.c/scan-18.c: New test.
4774 * testsuite/libgomp.c++/scan-9.C: New test.
4775 * testsuite/libgomp.c++/scan-10.C: New test.
4776 * testsuite/libgomp.c++/scan-11.C: New test.
4777 * testsuite/libgomp.c++/scan-12.C: New test.
4778 * testsuite/libgomp.c++/scan-13.C: New test.
4779 * testsuite/libgomp.c++/scan-14.C: New test.
4780 * testsuite/libgomp.c++/scan-15.C: New test.
4781 * testsuite/libgomp.c++/scan-16.C: New test.
4782
4783 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4784
4785 * testsuite/libgomp.c/scan-9.c: New test.
4786 * testsuite/libgomp.c/scan-10.c: New test.
4787
4788 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4789
4790 * testsuite/libgomp.c++/scan-1.C: New test.
4791 * testsuite/libgomp.c++/scan-2.C: New test.
4792 * testsuite/libgomp.c++/scan-3.C: New test.
4793 * testsuite/libgomp.c++/scan-4.C: New test.
4794 * testsuite/libgomp.c++/scan-5.C: New test.
4795 * testsuite/libgomp.c++/scan-6.C: New test.
4796 * testsuite/libgomp.c++/scan-7.C: New test.
4797 * testsuite/libgomp.c++/scan-8.C: New test.
4798 * testsuite/libgomp.c/scan-1.c: New test.
4799 * testsuite/libgomp.c/scan-2.c: New test.
4800 * testsuite/libgomp.c/scan-3.c: New test.
4801 * testsuite/libgomp.c/scan-4.c: New test.
4802 * testsuite/libgomp.c/scan-5.c: New test.
4803 * testsuite/libgomp.c/scan-6.c: New test.
4804 * testsuite/libgomp.c/scan-7.c: New test.
4805 * testsuite/libgomp.c/scan-8.c: New test.
4806
4807 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4808
4809 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4810 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4811 Likewise.
4812
4813 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4814 check.
4815
4816 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
4817
4818 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4819 file.
4820
4821 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4822
4823 PR fortran/90743
4824 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4825 case.
4826 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4827 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4828 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4829 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4830
4831 PR testsuite/90861
4832 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4833
4834 PR middle-end/90862
4835 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4836
4837 2019-06-16 Tom de Vries <tdevries@suse.de>
4838
4839 PR tree-optimization/89376
4840 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4841
4842 2019-06-15 Tom de Vries <tdevries@suse.de>
4843
4844 PR tree-optimization/89713
4845 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4846 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4847
4848 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4849
4850 PR middle-end/90779
4851 * testsuite/libgomp.c/pr90779.c: New test.
4852 * testsuite/libgomp.fortran/pr90779.f90: New test.
4853
4854 2019-06-15 Tom de Vries <tdevries@suse.de>
4855
4856 PR tree-optimization/90009
4857 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4858
4859 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4860
4861 PR tree-optimization/89713
4862 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4863
4864 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4865
4866 PR target/90811
4867 * testsuite/libgomp.c/pr90811.c: New test.
4868
4869 2019-06-05 Jakub Jelinek <jakub@redhat.com>
4870
4871 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4872 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4873
4874 2019-06-04 Jakub Jelinek <jakub@redhat.com>
4875
4876 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4877 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4878 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4879 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4880
4881 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4882
4883 * configure.ac: Call AX_COUNT_CPUS.
4884 Substitute CPU_COUNT.
4885 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4886 count fallback.
4887 * aclocal.m4: Regenerate.
4888 * configure: Regenerate.
4889 * Makefile.in, testsuite/Makefile.in: Regenerate.
4890
4891 2019-05-29 Jakub Jelinek <jakub@redhat.com>
4892
4893 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4894 to ...
4895 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4896 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4897 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4898
4899 2019-05-27 Jakub Jelinek <jakub@redhat.com>
4900
4901 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4902
4903 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4904
4905 PR libgomp/90641
4906 * work.c (gomp_init_work_share): Instead of aligning final ordered
4907 value to multiples of long long alignment, align to that the
4908 first part (ordered team ids) and if inline_ordered_team_ids
4909 is not on a long long alignment boundary within the structure,
4910 use __alignof__ (long long) - 1 pad size always.
4911 * loop.c (GOMP_loop_start): Fix *mem computation if
4912 inline_ordered_team_ids is not aligned on long long alignment boundary
4913 within the structure.
4914 * loop-ull.c (GOMP_loop_ull_start): Likewise.
4915 * sections.c (GOMP_sections2_start): Likewise.
4916
4917 2019-05-24 Jakub Jelinek <jakub@redhat.com>
4918
4919 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4920 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4921
4922 PR libgomp/90585
4923 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
4924 HAVE_INTTYPES_H is defined.
4925 (print_uint64_t): New typedef.
4926 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4927 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4928 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4929 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
4930 before casting to void *.
4931 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4932 * oacc-mem.c: Don't include config.h nor stdint.h.
4933 * target.c: Don't include config.h.
4934 * oacc-cuda.c: Likewise.
4935 * oacc-host.c: Don't include stdint.h.
4936
4937 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4938
4939 PR libgomp/90527
4940 * alloc.c (_GNU_SOURCE): Define.
4941
4942 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4943
4944 * acc_prof.h: New file.
4945 * oacc-profiling.c: Likewise.
4946 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4947 Add these, respectively.
4948 * Makefile.in: Regenerate.
4949 * env.c (initialize_env): Call goacc_profiling_initialize.
4950 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4951 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4952 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4953 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4954 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4955 acc_prof_register, acc_prof_unregister, and acc_register_library.
4956 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4957 GOMP_PLUGIN_goacc_thread.
4958 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4959 prof_callbacks_enabled members.
4960 (goacc_prof_enabled, goacc_profiling_initialize)
4961 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4962 (goacc_profiling_dispatch): Declare.
4963 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4964 (GOACC_PROFILING_SETUP_P): Define.
4965 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4966 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4967 OpenACC Profiling Interface.
4968 * oacc-cuda.c (acc_get_current_cuda_device)
4969 (acc_get_current_cuda_context, acc_get_cuda_stream)
4970 (acc_set_cuda_stream): Likewise.
4971 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4972 (acc_init, acc_set_device_type, acc_get_device_type)
4973 (acc_get_device_num, goacc_lazy_initialize): Likewise.
4974 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4975 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4976 (acc_unmap_data, present_create_copy, delete_copyout)
4977 (update_dev_host): Likewise.
4978 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4979 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4980 Likewise.
4981 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4982 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4983 Likewise.
4984 * libgomp.texi: Update.
4985 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4986 file.
4987 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4988 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4989 Likewise.
4990 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4991 Likewise.
4992 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4993 Likewise.
4994 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4995 Likewise.
4996
4997 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
4998
4999 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5000 (struct goacc_asyncqueue_list): Likewise.
5001 (goacc_aq): Likewise.
5002 (goacc_aq_list): Likewise.
5003 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5004 (GOMP_OFFLOAD_openacc_async_test): Remove.
5005 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5006 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5007 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5008 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5009 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5010 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5011 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5012 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5013 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5014 (GOMP_OFFLOAD_openacc_async_exec): Declare.
5015 (GOMP_OFFLOAD_openacc_async_construct): Declare.
5016 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5017 (GOMP_OFFLOAD_openacc_async_test): Declare.
5018 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5019 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5020 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5021 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5022 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5023
5024 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5025 (gomp_acc_insert_pointer): Adjust declaration.
5026 (gomp_copy_host2dev): New declaration.
5027 (gomp_copy_dev2host): Likewise.
5028 (gomp_map_vars_async): Likewise.
5029 (gomp_unmap_tgt): Likewise.
5030 (gomp_unmap_vars_async): Likewise.
5031 (gomp_fini_device): Likewise.
5032
5033 * oacc-async.c (get_goacc_thread): New function.
5034 (get_goacc_thread_device): New function.
5035 (lookup_goacc_asyncqueue): New function.
5036 (get_goacc_asyncqueue): New function.
5037 (acc_async_test): Adjust code to use new async design.
5038 (acc_async_test_all): Likewise.
5039 (acc_wait): Likewise.
5040 (acc_wait_async): Likewise.
5041 (acc_wait_all): Likewise.
5042 (acc_wait_all_async): Likewise.
5043 (goacc_async_free): New function.
5044 (goacc_init_asyncqueues): Likewise.
5045 (goacc_fini_asyncqueues): Likewise.
5046 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5047 design.
5048 (acc_set_cuda_stream): Likewise.
5049 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5050 (host_openacc_register_async_cleanup): Remove.
5051 (host_openacc_async_exec): New function.
5052 (host_openacc_async_test): Adjust parameters.
5053 (host_openacc_async_test_all): Remove.
5054 (host_openacc_async_wait): Remove.
5055 (host_openacc_async_wait_async): Remove.
5056 (host_openacc_async_wait_all): Remove.
5057 (host_openacc_async_wait_all_async): Remove.
5058 (host_openacc_async_set_async): Remove.
5059 (host_openacc_async_synchronize): New function.
5060 (host_openacc_async_serialize): New function.
5061 (host_openacc_async_host2dev): New function.
5062 (host_openacc_async_dev2host): New function.
5063 (host_openacc_async_queue_callback): New function.
5064 (host_openacc_async_construct): New function.
5065 (host_openacc_async_destruct): New function.
5066 (struct gomp_device_descr host_dispatch): Remove initialization of old
5067 interface, add initialization of new async sub-struct.
5068 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5069 (goacc_attach_host_thread_to_device): Remove old async code usage.
5070 * oacc-int.h (goacc_init_asyncqueues): New declaration.
5071 (goacc_fini_asyncqueues): Likewise.
5072 (goacc_async_copyout_unmap_vars): Likewise.
5073 (goacc_async_free): Likewise.
5074 (get_goacc_asyncqueue): Likewise.
5075 (lookup_goacc_asyncqueue): Likewise.
5076 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5077 design.
5078 (present_create_copy): Adjust code to use new async design.
5079 (delete_copyout): Likewise.
5080 (update_dev_host): Likewise.
5081 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5082 async design.
5083 (gomp_acc_remove_pointer): Adjust code to use new async design.
5084 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5085 design.
5086 (GOACC_enter_exit_data): Likewise.
5087 (goacc_wait): Likewise.
5088 (GOACC_update): Likewise.
5089 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5090 when called, warn as obsolete in comment.
5091 * target.c (goacc_device_copy_async): New function.
5092 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5093 add goacc_device_copy_async case.
5094 (gomp_copy_dev2host): Likewise.
5095 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5096 (gomp_map_pointer): Likewise.
5097 (gomp_map_fields_existing): Likewise.
5098 (gomp_map_vars_internal): New always_inline function, renamed from
5099 gomp_map_vars.
5100 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5101 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5102 passing goacc_asyncqueue argument.
5103 (gomp_unmap_tgt): Remove static, add attribute_hidden.
5104 (gomp_unref_tgt): New function.
5105 (gomp_unmap_vars_internal): New always_inline function, renamed from
5106 gomp_unmap_vars.
5107 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5108 (gomp_unmap_vars_async): Implement by calling
5109 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5110 (gomp_fini_device): New function.
5111 (gomp_exit_data): Adjust gomp_copy_dev2host call.
5112 (gomp_load_plugin_for_device): Remove old interface, adjust to load
5113 new async interface.
5114 (gomp_target_fini): Adjust code to call gomp_fini_device.
5115
5116 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5117 (struct ptx_stream): Remove.
5118 (struct nvptx_thread): Remove current_stream field.
5119 (cuda_map_create): Remove.
5120 (cuda_map_destroy): Remove.
5121 (map_init): Remove.
5122 (map_fini): Remove.
5123 (map_pop): Remove.
5124 (map_push): Remove.
5125 (struct goacc_asyncqueue): Define.
5126 (struct nvptx_callback): Define.
5127 (struct ptx_free_block): Define.
5128 (struct ptx_device): Remove null_stream, active_streams, async_streams,
5129 stream_lock, and next fields.
5130 (enum ptx_event_type): Remove.
5131 (struct ptx_event): Remove.
5132 (ptx_event_lock): Remove.
5133 (ptx_events): Remove.
5134 (init_streams_for_device): Remove.
5135 (fini_streams_for_device): Remove.
5136 (select_stream_for_async): Remove.
5137 (nvptx_init): Remove ptx_events and ptx_event_lock references.
5138 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5139 case.
5140 (nvptx_open_device): Add free_blocks initialization, remove
5141 init_streams_for_device call.
5142 (nvptx_close_device): Remove fini_streams_for_device call, add
5143 free_blocks destruct code.
5144 (event_gc): Remove.
5145 (event_add): Remove.
5146 (nvptx_exec): Adjust parameters and code.
5147 (nvptx_free): Likewise.
5148 (nvptx_host2dev): Remove.
5149 (nvptx_dev2host): Remove.
5150 (nvptx_set_async): Remove.
5151 (nvptx_async_test): Remove.
5152 (nvptx_async_test_all): Remove.
5153 (nvptx_wait): Remove.
5154 (nvptx_wait_async): Remove.
5155 (nvptx_wait_all): Remove.
5156 (nvptx_wait_all_async): Remove.
5157 (nvptx_get_cuda_stream): Remove.
5158 (nvptx_set_cuda_stream): Remove.
5159 (GOMP_OFFLOAD_alloc): Adjust code.
5160 (GOMP_OFFLOAD_free): Likewise.
5161 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5162 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5163 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5164 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5165 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5166 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5167 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5168 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5169 (cuda_free_argmem): New function.
5170 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5171 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5172 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5173 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5174 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5175 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5176 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5177 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5178 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5179 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5180 (cuda_callback_wrapper): New function.
5181 (cuda_memcpy_sanity_check): New function.
5182 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5183 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5184 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5185 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5186
5187 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
5188
5189 PR target/87835
5190 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5191
5192 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
5193
5194 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5195
5196 2019-03-27 Kevin Buettner <kevinb@redhat.com>
5197
5198 * team.c (gomp_team_start): Initialize pool->threads[0].
5199
5200 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5201
5202 * testsuite/libgomp.oacc-c++/c++.exp: Specify
5203 "-foffload=$offload_target".
5204 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5205 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5206 * testsuite/lib/libgomp.exp
5207 (check_effective_target_openacc_nvidia_accel_configured): Remove,
5208 as (conceptually) merged into
5209 check_effective_target_openacc_nvidia_accel_selected. Adjust all
5210 users.
5211
5212 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5213 * testsuite/libgomp-test-support.exp.in: Adjust.
5214 * testsuite/lib/libgomp.exp: Likewise. Don't populate
5215 openacc_device_types_s.
5216 (offload_target_to_openacc_device_type): New proc.
5217 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5218 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5219 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5220 * Makefile.in: Regenerate.
5221 * configure: Likewise.
5222 * testsuite/Makefile.in: Likewise.
5223
5224 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5225 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5226 instead of OFFLOAD_TARGETS.
5227 * target.c (gomp_target_init): Adjust.
5228 * testsuite/libgomp-test-support.exp.in: Likewise.
5229 * testsuite/lib/libgomp.exp: Likewise. Populate
5230 openacc_device_types_s instead of offload_targets_s_openacc.
5231 (check_effective_target_openacc_nvidia_accel_selected)
5232 (check_effective_target_openacc_host_selected): Adjust.
5233 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5234 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5235 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5236 * Makefile.in: Regenerate.
5237 * config.h.in: Likewise.
5238 * configure: Likewise.
5239 * testsuite/Makefile.in: Likewise.
5240
5241 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5242 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
5243 "offloading: supported, but hardware not accessible".
5244 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5245 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5246
5247 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
5248
5249 PR c/87924
5250 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5251 goacc_wait().
5252 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5253 and related adjustment.
5254
5255 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5256
5257 PR c++/88988
5258 * testsuite/libgomp.c++/pr88988.C: New test.
5259
5260 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5261
5262 PR middle-end/89002
5263 * testsuite/libgomp.c/pr89002.c: New test.
5264
5265 2019-01-28 Richard Biener <rguenther@suse.de>
5266
5267 PR testsuite/89064
5268 PR tree-optimization/86865
5269 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5270
5271 2019-01-24 Tom de Vries <tdevries@suse.de>
5272
5273 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5274 once instantiated_devices drops to 0.
5275
5276 2019-01-23 Tom de Vries <tdevries@suse.de>
5277
5278 PR target/PR88946
5279 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5280 cuMemFree.
5281 (nvptx_exec): Don't call map_push if mapnum == 0.
5282 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5283
5284 2019-01-23 Tom de Vries <tdevries@suse.de>
5285
5286 PR target/88941
5287 PR target/88939
5288 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5289 (map_fini): Remove "assert (!s->map->active)".
5290 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5291
5292 2019-01-23 Tom de Vries <tdevries@suse.de>
5293
5294 PR target/87835
5295 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5296 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5297
5298 2019-01-15 Tom de Vries <tdevries@suse.de>
5299
5300 PR target/80547
5301 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5302 New test.
5303
5304 2019-01-12 Tom de Vries <tdevries@suse.de>
5305
5306 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5307 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5308 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5309 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5310
5311 2019-01-12 Tom de Vries <tdevries@suse.de>
5312
5313 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5314
5315 2019-01-12 Tom de Vries <tdevries@suse.de>
5316
5317 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5318 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5319 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5320
5321 2019-01-12 Tom de Vries <tdevries@suse.de>
5322
5323 PR target/85486
5324 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5325 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5326
5327 2019-01-12 Tom de Vries <tdevries@suse.de>
5328
5329 PR target/85381
5330 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5331 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5332
5333 2019-01-12 Tom de Vries <tdevries@suse.de>
5334
5335 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5336 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5337 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5338
5339 2019-01-12 Tom de Vries <tdevries@suse.de>
5340
5341 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5342 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5343 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5344
5345 2019-01-12 Tom de Vries <tdevries@suse.de>
5346
5347 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5348 resources diagnostic.
5349
5350 2019-01-12 Tom de Vries <tdevries@suse.de>
5351
5352 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5353 vector length to be 128.
5354 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5355 length 2097152 to be reduced to 1024 instead of 32.
5356
5357 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
5358 James Norris <jnorris@codesourcery.com>
5359
5360 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5361 Library Routines", and "Environment Variables".
5362
5363 2019-01-11 Tom de Vries <tdevries@suse.de>
5364
5365 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5366 num_workers 16.
5367
5368 2019-01-11 Tom de Vries <tdevries@suse.de>
5369
5370 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5371 -foffload=-w.
5372 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5373 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5374 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5375 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5376
5377 2019-01-11 Tom de Vries <tdevries@suse.de>
5378
5379 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5380 test.
5381
5382 2019-01-10 Nathan Sidwell <nathan@acm.org>
5383 Julian Brown <julian@codesourcery.com>
5384
5385 PR lto/71959
5386 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5387 * testsuite/libgomp.oacc-c++/pr71959.C: New.
5388
5389 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5390
5391 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5392 and paste code.
5393
5394 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5395
5396 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
5397 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5398 write.
5399
5400 2019-01-09 Tom de Vries <tdevries@suse.de>
5401
5402 PR target/88756
5403 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5404 #define instead of "const int".
5405 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5406 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5407 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5408 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5409
5410 2019-01-09 Tom de Vries <tdevries@suse.de>
5411
5412 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5413 one worker.
5414
5415 2019-01-07 Tom de Vries <tdevries@suse.de>
5416
5417 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5418 GOMP_OPENACC_DIM argument.
5419
5420 2019-01-03 Tom de Vries <tdevries@suse.de>
5421
5422 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5423 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5424
5425 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5426
5427 Update copyright years.
5428
5429 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5430
5431 * libgomp.texi: Bump @copying's copyright year.
5432
5433 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5434
5435 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5436 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5437 (GOACC_declare): Redefine the "device" argument to "flags".
5438
5439 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5440 Cesar Philippidis <cesar@codesourcery.com>
5441
5442 * target.c (struct gomp_coalesce_chunk): New structure.
5443 (struct gomp_coalesce_buf): Update the chunks member to use that
5444 type. Adjust all users.
5445
5446 2018-12-19 Tom de Vries <tdevries@suse.de>
5447
5448 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5449 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5450 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5451
5452 2018-12-19 Tom de Vries <tdevries@suse.de>
5453
5454 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5455 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5456 gcc/testsuite/gcc.dg/goacc.
5457 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5458
5459 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5460 Chung-Lin Tang <cltang@codesourcery.com>
5461
5462 * oacc-mem.c (acc_present_or_create): Remove definition and change
5463 to alias of acc_create.
5464 (acc_present_or_copyin): Remove definition and change to alias of
5465 acc_copyin.
5466 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5467 of acc_present_or_create.
5468 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5469 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5476 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5477 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5478 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5479 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5480 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5481 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5482 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5483 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5484
5485 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5486
5487 PR libgomp/88495
5488 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5489 "identical parameters".
5490 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5491 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5492
5493 PR libgomp/88484
5494 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5495 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5496
5497 PR libgomp/88407
5498 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5499 (nvptx_wait_async): Unseen async-argument is a no-op.
5500 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5501 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5504 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5505 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5506 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
5507 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5508 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
5509
5510 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5511 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5512
5513 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
5514
5515 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5516 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5517 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5518
5519 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5520
5521 PR libgomp/88370
5522 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5523 (acc_set_cuda_stream): Clarify.
5524 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5525 "async_valid_p".
5526 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5527 acc_async_sync".
5528 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5529 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5531 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5532
5533 2018-12-14 Tom de Vries <tdevries@suse.de>
5534
5535 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5536 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5537 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5538 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5539 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5540
5541 2018-12-13 Tom de Vries <tdevries@suse.de>
5542
5543 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5544 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5545 * fortran.c (omp_display_affinity_): ... here.
5546 * libgomp.h (gomp_print_string): Declare.
5547 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
5548 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5549 write.
5550
5551 2018-12-13 Jakub Jelinek <jakub@redhat.com>
5552
5553 PR libgomp/88460
5554 * testsuite/libgomp.c++/for-24.C (results): Include it in
5555 omp declare target region.
5556 (main): Use map (always, tofrom: results) instead of
5557 map (tofrom: results).
5558
5559 2018-12-12 Jakub Jelinek <jakub@redhat.com>
5560
5561 PR fortran/88463
5562 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5563 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5564
5565 * testsuite/libgomp.c-c++-common/for-16.c: New test.
5566
5567 2018-12-12 Andreas Schwab <schwab@suse.de>
5568
5569 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5570 clobbered.
5571
5572 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
5573
5574 PR fortran/88411
5575 * testsuite/libgomp.fortran/async_io_8.f90: New test.
5576
5577 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
5578 Jakub Jelinek <jakub@redhat.com>
5579
5580 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5581 devicep->host2dev_func.
5582
5583 2018-12-08 Jakub Jelinek <jakub@redhat.com>
5584
5585 PR libgomp/87995
5586 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5587 tls_runtime effective target.
5588 (t): New threadprivate variable.
5589 (main): Set t in threads which execute iterations of the worksharing
5590 loop. Propagate that to the task after the loop and don't abort
5591 if the current taskgroup hasn't been cancelled.
5592
5593 2018-12-02 Jakub Jelinek <jakub@redhat.com>
5594
5595 * testsuite/libgomp.c/task-reduction-3.c: New test.
5596
5597 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5598
5599 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
5600
5601 PR libgomp/88288
5602 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5603 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5604
5605 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
5606
5607 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5608
5609 2018-10-19 Richard Biener <rguenther@suse.de>
5610
5611 PR tree-optimization/88182
5612 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5613
5614 2018-11-26 Jakub Jelinek <jakub@redhat.com>
5615
5616 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5617 (RUNTEST): Don't define.
5618 (RUNTESTDEFAULTFLAGS): Add.
5619 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5620 (distclean-am): Depend on distclean-DEJAGNU.
5621 (check-am): If -j% option is present in MFLAGS and if
5622 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5623 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5624 * testsuite/Makefile.in: Regenerated.
5625
5626 2018-11-26 Richard Biener <rguenther@suse.de>
5627
5628 PR tree-optimization/88182
5629 * testsuite/libgomp.c++/pr88182.C: New testcase.
5630
5631 2018-11-20 Jakub Jelinek <jakub@redhat.com>
5632
5633 PR bootstrap/88106
5634 * config/mingw32/affinity-fmt.c: New file.
5635
5636 2018-11-09 Jakub Jelinek <jakub@redhat.com>
5637
5638 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5639 (gomp_display_affinity): Use __builtin_choose_expr to handle
5640 properly handle argument having integral, or pointer or some other
5641 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
5642 with uint64_t type instead of %llx and unsigned long long.
5643
5644 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5645 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5646
5647 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5648
5649 * affinity.c: Include <string.h>, <stdio.h>.
5650 (gomp_display_affinity_place): Remove cpusetp.
5651 * teams.c: Include <limits.h>.
5652
5653 2018-11-08 Jakub Jelinek <jakub@redhat.com>
5654
5655 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5656 in_reduction clause for s[0].
5657
5658 * affinity.c (gomp_display_affinity_place): New function.
5659 * affinity-fmt.c: New file.
5660 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5661 * config/linux/affinity.c (gomp_display_affinity_place): New function.
5662 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5663 Move these functions to ...
5664 * config/nvptx/teams.c: ... here. New file.
5665 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5666 New functions.
5667 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5668 functions.
5669 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5670 and _aligned_malloc.
5671 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5672 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5673 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5674 gomp_affinity_format_len): New variables.
5675 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5676 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
5677 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5678 modifiers. Display (non-default) chunk sizes. Print
5679 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5680 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
5681 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5682 * fortran.c: Include stdio.h and string.h.
5683 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5684 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5685 (omp_set_affinity_format_, omp_get_affinity_format_,
5686 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5687 omp_pause_resource_all_): New functions.
5688 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5689 switch.
5690 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5691 functions to ...
5692 * teams.c: ... here. New file.
5693 * libgomp_g.h: Include gstdint.h.
5694 (GOMP_loop_nonmonotonic_runtime_start,
5695 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5696 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5697 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5698 GOMP_parallel_loop_nonmonotonic_runtime,
5699 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5700 GOMP_loop_ull_nonmonotonic_runtime_start,
5701 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5702 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5703 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5704 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5705 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5706 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5707 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5708 GOMP_teams_reg): Declare.
5709 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5710 gomp_aligned_alloc uses fallback implementation.
5711 (gomp_aligned_alloc, gomp_aligned_free): Declare.
5712 (enum gomp_schedule_type): Add GFS_MONOTONIC.
5713 (struct gomp_doacross_work_share): Add extra field.
5714 (struct gomp_work_share): Add task_reductions field.
5715 (struct gomp_taskgroup): Add workshare and reductions fields.
5716 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5717 (gomp_thread_handle): New typedef.
5718 (gomp_display_affinity_place, gomp_set_affinity_format,
5719 gomp_display_string, gomp_display_affinity,
5720 gomp_display_affinity_thread): Declare.
5721 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5722 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5723 gomp_workshare_task_reduction_register): Declare.
5724 (gomp_team_start): Add taskgroup argument.
5725 (gomp_pause_host): Declare.
5726 (gomp_init_work_share, gomp_work_share_start): Change bool argument
5727 to size_t.
5728 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5729 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5730 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5731 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5732 GOMP_loop_ull_doacross_start,
5733 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5734 GOMP_loop_maybe_nonmonotonic_runtime_next,
5735 GOMP_loop_maybe_nonmonotonic_runtime_start,
5736 GOMP_loop_nonmonotonic_runtime_next,
5737 GOMP_loop_nonmonotonic_runtime_start,
5738 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5739 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5740 GOMP_loop_ull_nonmonotonic_runtime_next,
5741 GOMP_loop_ull_nonmonotonic_runtime_start,
5742 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5743 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5744 GOMP_taskgroup_reduction_register,
5745 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5746 GOMP_teams_reg and GOMP_taskwait_depend.
5747 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5748 omp_{capture,display}_affinity{,_}, and
5749 omp_[gs]et_affinity_format{,_}.
5750 * loop.c: Include string.h.
5751 (GOMP_loop_runtime_next): Add ialias.
5752 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5753 (gomp_loop_static_start, gomp_loop_dynamic_start,
5754 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5755 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5756 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5757 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5758 or gomp_doacross_init callers.
5759 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5760 GOMP_loop_doacross_start): New functions.
5761 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5762 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5763 Mask off GFS_MONOTONIC bit.
5764 (GOMP_loop_maybe_nonmonotonic_runtime_next,
5765 GOMP_loop_maybe_nonmonotonic_runtime_start,
5766 GOMP_loop_nonmonotonic_runtime_next,
5767 GOMP_loop_nonmonotonic_runtime_start,
5768 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5769 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5770 functions.
5771 (gomp_parallel_loop_start): Pass NULL as taskgroup to
5772 gomp_team_start.
5773 * loop_ull.c: Include string.h.
5774 (GOMP_loop_ull_runtime_next): Add ialias.
5775 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5776 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5777 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5778 gomp_loop_ull_ordered_dynamic_start,
5779 gomp_loop_ull_ordered_guided_start,
5780 gomp_loop_ull_doacross_static_start,
5781 gomp_loop_ull_doacross_dynamic_start,
5782 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5783 and gomp_doacross_ull_init callers.
5784 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5785 GOMP_loop_ull_doacross_start): New functions.
5786 (GOMP_loop_ull_runtime_start,
5787 GOMP_loop_ull_ordered_runtime_start,
5788 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5789 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5790 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5791 GOMP_loop_ull_nonmonotonic_runtime_next,
5792 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5793 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5794 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5795 (omp_pause_resource_t, omp_depend_t): New typedefs.
5796 (enum omp_lock_hint_t): Renamed to ...
5797 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
5798 enumerators using numbers and omp_lock_hint_* as their aliases.
5799 (omp_lock_hint_t): New typedef. Rename to ...
5800 (omp_sync_hint_t): ... this.
5801 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5802 omp_sync_hint_t instead of omp_lock_hint_t.
5803 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5804 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5805 Declare.
5806 (omp_target_is_present, omp_target_disassociate_ptr):
5807 Change first argument from void * to const void *.
5808 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5809 from void * to const void *.
5810 (omp_target_associate_ptr): Change first and second arguments from
5811 void * to const void *.
5812 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5813 omp_pause_hard): New parameters.
5814 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5815 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5816 New interfaces.
5817 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5818 omp_pause_hard): New parameters.
5819 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5820 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5821 New externals.
5822 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5823 EXTRA argument. If not needed to prepare array, if extra is 0,
5824 clear ws->doacross, otherwise allocate just doacross structure and
5825 extra payload. If array is needed, allocate also extra payload.
5826 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5827 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5828 doacross == NULL.
5829 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5830 gomp_team_start.
5831 (GOMP_parallel): Likewise. Formatting fix.
5832 (GOMP_parallel_reductions): New function.
5833 (GOMP_cancellation_point): If taskgroup has workshare
5834 flag set, check cancelled of prev taskgroup if any.
5835 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5836 on prev taskgroup if any.
5837 * sections.c: Include string.h.
5838 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5839 (GOMP_sections_start): Adjust gomp_work_share_start caller.
5840 (GOMP_sections2_start): New function.
5841 (GOMP_parallel_sections_start, GOMP_parallel_sections):
5842 Pass NULL as taskgroup to gomp_team_start.
5843 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5844 gomp_work_share_start callers.
5845 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5846 If taskgroup has workshare flag set, check cancelled on prev
5847 taskgroup if any. Guard all cancellation tests with
5848 gomp_cancel_var test.
5849 (omp_target_is_present, omp_target_disassociate_ptr):
5850 Change ptr argument from void * to const void *.
5851 (omp_target_memcpy): Change src argument from void * to const void *.
5852 (omp_target_memcpy_rect): Likewise.
5853 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
5854 instead of char * where needed.
5855 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5856 from void * to const void *.
5857 (omp_pause_resource, omp_pause_resource_all): New functions.
5858 * task.c (gomp_task_handle_depend): Handle new depend array format
5859 in addition to the old. Handle mutexinoutset kinds the same as
5860 inout for now, handle unspecified kinds.
5861 (gomp_create_target_task): If taskgroup has workshare flag set, check
5862 cancelled on prev taskgroup if any. Guard all cancellation tests with
5863 gomp_cancel_var test. Handle new depend array format count in
5864 addition to the old.
5865 (GOMP_task): Likewise. Adjust function comment.
5866 (gomp_task_run_pre): If taskgroup has workshare flag set, check
5867 cancelled on prev taskgroup if any. Guard all cancellation tests with
5868 gomp_cancel_var test.
5869 (GOMP_taskwait_depend): New function.
5870 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5871 format in addition to the old. Handle mutexinoutset kinds the same as
5872 inout for now, handle unspecified kinds. Fix a function comment typo.
5873 (gomp_taskgroup_init): New function.
5874 (GOMP_taskgroup_start): Use it.
5875 (gomp_reduction_register, gomp_create_artificial_team,
5876 GOMP_taskgroup_reduction_register,
5877 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5878 gomp_parallel_reduction_register,
5879 gomp_workshare_task_reduction_register,
5880 gomp_workshare_taskgroup_start,
5881 GOMP_workshare_task_reduction_unregister): New functions.
5882 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5883 check cancelled on prev taskgroup if any. Guard all cancellation
5884 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
5885 by calling GOMP_taskgroup_reduction_register.
5886 * team.c (gomp_thread_attr): Remove comment.
5887 (struct gomp_thread_start_data): Add handle field.
5888 (gomp_thread_start): Call pthread_detach.
5889 (gomp_new_team): Adjust gomp_init_work_share caller.
5890 (gomp_free_pool_helper): Call pthread_detach.
5891 (gomp_team_start): Add taskgroup argument, initialize implicit
5892 tasks' taskgroup field to that. Don't call
5893 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
5894 (gomp_team_end): Determine nesting by thr->ts.level != 0
5895 rather than thr->ts.team != NULL.
5896 (gomp_pause_pool_helper, gomp_pause_host): New functions.
5897 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5898 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5899 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5900 if more than 1 allocate also extra payload at the end of array. Never
5901 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5902 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5903 return true instead of ws.
5904 * Makefile.in: Regenerated.
5905 * configure: Regenerated.
5906 * config.h.in: Regenerated.
5907 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5908 in some cases.
5909 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5910 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5911 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5912 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5913 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5914 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5915 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5916 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5917 * testsuite/libgomp.c-c++-common/for-10.c: New test.
5918 * testsuite/libgomp.c-c++-common/for-11.c: New test.
5919 * testsuite/libgomp.c-c++-common/for-12.c: New test.
5920 * testsuite/libgomp.c-c++-common/for-13.c: New test.
5921 * testsuite/libgomp.c-c++-common/for-14.c: New test.
5922 * testsuite/libgomp.c-c++-common/for-15.c: New test.
5923 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5924 define a different N(test), don't define N(f0) to N(f14), but instead
5925 define N(f20) to N(f34) using != comparisons.
5926 * testsuite/libgomp.c-c++-common/for-7.c: New test.
5927 * testsuite/libgomp.c-c++-common/for-8.c: New test.
5928 * testsuite/libgomp.c-c++-common/for-9.c: New test.
5929 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5930 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5931 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5932 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5933 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5934 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5935 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5936 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5937 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5938 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5939 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5940 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5941 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5942 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5943 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5944 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5945 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5946 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5947 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5948 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5949 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5950 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5951 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5952 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5953 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5954 * testsuite/libgomp.c++/depend-1.C: New test.
5955 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5956 * testsuite/libgomp.c++/depobj-1.C: New test.
5957 * testsuite/libgomp.c++/for-16.C: New test.
5958 * testsuite/libgomp.c++/for-21.C: New test.
5959 * testsuite/libgomp.c++/for-22.C: New test.
5960 * testsuite/libgomp.c++/for-23.C: New test.
5961 * testsuite/libgomp.c++/for-24.C: New test.
5962 * testsuite/libgomp.c++/for-25.C: New test.
5963 * testsuite/libgomp.c++/for-26.C: New test.
5964 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5965 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5966 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5967 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5968 * testsuite/libgomp.c++/task-reduction-10.C: New test.
5969 * testsuite/libgomp.c++/task-reduction-11.C: New test.
5970 * testsuite/libgomp.c++/task-reduction-12.C: New test.
5971 * testsuite/libgomp.c++/task-reduction-13.C: New test.
5972 * testsuite/libgomp.c++/task-reduction-14.C: New test.
5973 * testsuite/libgomp.c++/task-reduction-15.C: New test.
5974 * testsuite/libgomp.c++/task-reduction-16.C: New test.
5975 * testsuite/libgomp.c++/task-reduction-17.C: New test.
5976 * testsuite/libgomp.c++/task-reduction-18.C: New test.
5977 * testsuite/libgomp.c++/task-reduction-19.C: New test.
5978 * testsuite/libgomp.c/task-reduction-1.c: New test.
5979 * testsuite/libgomp.c++/task-reduction-1.C: New test.
5980 * testsuite/libgomp.c/task-reduction-2.c: New test.
5981 * testsuite/libgomp.c++/task-reduction-2.C: New test.
5982 * testsuite/libgomp.c++/task-reduction-3.C: New test.
5983 * testsuite/libgomp.c++/task-reduction-4.C: New test.
5984 * testsuite/libgomp.c++/task-reduction-5.C: New test.
5985 * testsuite/libgomp.c++/task-reduction-6.C: New test.
5986 * testsuite/libgomp.c++/task-reduction-7.C: New test.
5987 * testsuite/libgomp.c++/task-reduction-8.C: New test.
5988 * testsuite/libgomp.c++/task-reduction-9.C: New test.
5989 * testsuite/libgomp.c/teams-1.c: New test.
5990 * testsuite/libgomp.c/teams-2.c: New test.
5991 * testsuite/libgomp.c/thread-limit-4.c: New test.
5992 * testsuite/libgomp.c/thread-limit-5.c: New test.
5993 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5994
5995 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
5996
5997 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5998 acc_memcpy_to/from_device functions, now with async parameter.
5999 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6000 (acc_memcpy_from_device): Likewise.
6001 (acc_memcpy_to_device_async): New API function.
6002 (acc_memcpy_from_device_async): Likewise.
6003 (present_create_copy): Add async parameter and async setting/unsetting.
6004 (acc_create): Adjust present_create_copy call.
6005 (acc_copyin): Likewise.
6006 (acc_present_or_create): Likewise.
6007 (acc_present_or_copyin): Likewise.
6008 (acc_create_async): New API function.
6009 (acc_copyin_async): New API function.
6010 (delete_copyout): Add async parameter and async setting/unsetting.
6011 (acc_delete): Adjust delete_copyout call.
6012 (acc_copyout): Likewise.
6013 (acc_delete_async): New API function.
6014 (acc_copyout_async): Likewise.
6015 (update_dev_host): Add async parameter and async setting/unsetting.
6016 (acc_update_device): Adjust update_dev_host call.
6017 (acc_update_self): Likewise.
6018 (acc_update_device_async): New API function.
6019 (acc_update_self_async): Likewise.
6020 * openacc.h (acc_copyin_async): Declare new API function.
6021 (acc_create_async): Likewise.
6022 (acc_copyout_async): Likewise.
6023 (acc_delete_async): Likewise.
6024 (acc_update_device_async): Likewise.
6025 (acc_update_self_async): Likewise.
6026 (acc_memcpy_to_device_async): Likewise.
6027 (acc_memcpy_from_device_async): Likewise.
6028 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6029 (acc_copyin_async_64_h): New subroutine.
6030 (acc_copyin_async_array_h): New subroutine.
6031 (acc_create_async_32_h): New subroutine.
6032 (acc_create_async_64_h): New subroutine.
6033 (acc_create_async_array_h): New subroutine.
6034 (acc_copyout_async_32_h): New subroutine.
6035 (acc_copyout_async_64_h): New subroutine.
6036 (acc_copyout_async_array_h): New subroutine.
6037 (acc_delete_async_32_h): New subroutine.
6038 (acc_delete_async_64_h): New subroutine.
6039 (acc_delete_async_array_h): New subroutine.
6040 (acc_update_device_async_32_h): New subroutine.
6041 (acc_update_device_async_64_h): New subroutine.
6042 (acc_update_device_async_array_h): New subroutine.
6043 (acc_update_self_async_32_h): New subroutine.
6044 (acc_update_self_async_64_h): New subroutine.
6045 (acc_update_self_async_array_h): New subroutine.
6046 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6047 (acc_copyin_async_64_h): New subroutine.
6048 (acc_copyin_async_array_h): New subroutine.
6049 (acc_create_async_32_h): New subroutine.
6050 (acc_create_async_64_h): New subroutine.
6051 (acc_create_async_array_h): New subroutine.
6052 (acc_copyout_async_32_h): New subroutine.
6053 (acc_copyout_async_64_h): New subroutine.
6054 (acc_copyout_async_array_h): New subroutine.
6055 (acc_delete_async_32_h): New subroutine.
6056 (acc_delete_async_64_h): New subroutine.
6057 (acc_delete_async_array_h): New subroutine.
6058 (acc_update_device_async_32_h): New subroutine.
6059 (acc_update_device_async_64_h): New subroutine.
6060 (acc_update_device_async_array_h): New subroutine.
6061 (acc_update_self_async_32_h): New subroutine.
6062 (acc_update_self_async_64_h): New subroutine.
6063 (acc_update_self_async_array_h): New subroutine.
6064 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6065 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6066 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6067 acc_memcpy_to_device_async*, acc_update_device_async*, and
6068 acc_update_self_async* entries.
6069 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6070 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6071 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6072
6073 2018-10-31 Joseph Myers <joseph@codesourcery.com>
6074
6075 PR bootstrap/82856
6076 * Makefile.am: Include multilib.am
6077 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6078 (CLEANFILES): Remove libgomp.info.
6079 * configure.ac: Remove AC_PREREQ.
6080 * testsuite/Makefile.am (RUNTEST): Remove quotes.
6081 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6082 Regenerate.
6083
6084 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6085 Julian Brown <julian@codesourcery.com>
6086
6087 * testsuite/libgomp.oacc-c++/this.C: New.
6088
6089 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
6090
6091 * plugin/plugin-nvptx.c (struct cuda_map): New.
6092 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6093 h_tail with (cuda_map *) map.
6094 (cuda_map_create): New function.
6095 (cuda_map_destroy): New function.
6096 (map_init): Update to use a linked list of cuda_map objects.
6097 (map_fini): Likewise.
6098 (map_pop): Likewise.
6099 (map_push): Likewise. Return CUdeviceptr instead of void.
6100 (init_streams_for_device): Remove stales references to ptx_stream
6101 members.
6102 (select_stream_for_async): Likewise.
6103 (nvptx_exec): Update call to map_init.
6104
6105 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
6106 Julian Brown <julian@codesourcery.com>
6107
6108 PR middle-end/86336
6109 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6110
6111 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
6112 Thomas Koenig <tkoenig@gcc.gnu.org>
6113
6114 PR fortran/25829
6115 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6116 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6117 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6118 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6119 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6120 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6121 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6122
6123 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
6124 Tom de Vries <tdevries@suse.de>
6125
6126 PR target/85590
6127 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6128 (cuOccupancyMaxPotentialBlockSize): Declare.
6129 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6130 CUDA_ONE_CALL_MAYBE_NULL.
6131 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6132 CUoccupancyB2DSize and declare
6133 cuOccupancyMaxPotentialBlockSize.
6134 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6135 default num_gangs and num_workers when the driver supports it.
6136
6137 2018-08-08 Tom de Vries <tdevries@suse.de>
6138
6139 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6140 CUDA_ONE_CALL_MAYBE_NULL.
6141 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6142 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6143 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6144 are not found.
6145
6146 2018-08-08 Tom de Vries <tdevries@suse.de>
6147
6148 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6149 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6150 present.
6151
6152 2018-08-08 Tom de Vries <tdevries@suse.de>
6153
6154 * plugin/plugin-nvptx.c
6155 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6156 (nvptx_open_device): Use
6157 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6158
6159 2018-08-08 Tom de Vries <tdevries@suse.de>
6160
6161 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6162 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
6163
6164 2018-08-07 Tom de Vries <tdevries@suse.de>
6165
6166 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6167 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6168 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
6169 corresponding call in CUDA_ONE_CALL. Add def/undef of
6170 CUDA_ONE_CALL_MAYBE_NULL.
6171 (CUDA_CALL_EXISTS): Define.
6172
6173 2018-08-07 Tom de Vries <tdevries@suse.de>
6174
6175 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6176 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6177 corresponding undefs right after.
6178
6179 2018-08-04 Tom de Vries <tdevries@suse.de>
6180
6181 * plugin/configfrag.ac: For --without-cuda-driver, set
6182 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
6183 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6184 * configure: Regenerate.
6185
6186 2018-08-02 Tom de Vries <tdevries@suse.de>
6187
6188 PR target/86660
6189 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6190 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6191 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6192 Same.
6193 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6194 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6195 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6196
6197 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6198 Thomas Schwinge <thomas@codesourcery.com>
6199
6200 * config/nvptx/oacc-parallel.c: Truncate.
6201
6202 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6203 James Norris <jnorris@codesourcery.com>
6204
6205 * plugin/plugin-nvptx.c (struct map): Removed.
6206 (map_init, map_pop): Remove use of struct map.
6207 (map_push): Likewise and change argument list.
6208 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6209
6210 2018-08-01 Tom de Vries <tdevries@suse.de>
6211
6212 * plugin/cuda-lib.def: New file. Factor out of ...
6213 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6214 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6215 using CUDA_CALLS.
6216
6217 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6218
6219 Revert 'AsyncI/O patch committed'.
6220 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6221 Thomas Koenig <tkoenig@gcc.gnu.org>
6222
6223 PR fortran/25829
6224 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6225 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6226 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6227 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6228 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6229 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6230 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6231
6232 2018-07-30 Tom de Vries <tdevries@suse.de>
6233
6234 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6235 (nvptx_exec): Ensure worker and vector default dims don't exceed
6236 targ_fn->max_threads_per_block.
6237
6238 2018-07-30 Tom de Vries <tdevries@suse.de>
6239
6240 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6241 (nvptx_open_device): Init default_dims for device.
6242 (nvptx_exec): Use default_dims from device.
6243
6244 2018-07-26 Jakub Jelinek <jakub@redhat.com>
6245
6246 PR testsuite/86660
6247 * testsuite/libgomp.c++/for-15.C (results): Include it in
6248 omp declare target region.
6249 (main): Use map (always, tofrom: results) instead of
6250 map (tofrom: results).
6251
6252 PR middle-end/86660
6253 * testsuite/libgomp.c/pr86660.c: New test.
6254
6255 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6256 Tom de Vries <tdevries@suse.de>
6257
6258 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6259 sufficient resources to launch a kernel, and give a hint on how to fix
6260 it.
6261
6262 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6263 Tom de Vries <tdevries@suse.de>
6264
6265 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6266 max_threads_per_block and max_threads_per_multiprocessor fields.
6267 (nvptx_open_device): Initialize new fields.
6268 (nvptx_exec): Use num_sms, and new fields.
6269
6270 2018-07-26 Tom de Vries <tdevries@suse.de>
6271
6272 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6273 to correct locations. Remove xfail.
6274
6275 2018-07-26 Tom de Vries <tdevries@suse.de>
6276
6277 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6278 acc_wait. Move acc_async_test calls to correct locations. Remove
6279 xfail.
6280
6281 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6282 Thomas Koenig <tkoenig@gcc.gnu.org>
6283
6284 PR fortran/25829
6285 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6286 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6287 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6288 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6289 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6290 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6291 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6292
6293 2018-07-17 Jakub Jelinek <jakub@redhat.com>
6294
6295 PR middle-end/86542
6296 * testsuite/libgomp.c++/pr86542.C: New test.
6297
6298 PR middle-end/86539
6299 * testsuite/libgomp.c++/pr86539.C: New test.
6300
6301 2018-07-11 Jakub Jelinek <jakub@redhat.com>
6302
6303 PR c++/86443
6304 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6305 (results): Make sure the variable is not inside declare target region.
6306 (qux): Remove unused function.
6307
6308 2018-07-10 Jakub Jelinek <jakub@redhat.com>
6309
6310 PR c++/86443
6311 * testsuite/libgomp.c++/for-15.C: New test.
6312
6313 2018-06-26 Jakub Jelinek <jakub@redhat.com>
6314
6315 PR c++/86291
6316 * testsuite/libgomp.c++/pr86291.C: New test.
6317
6318 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
6319
6320 * libgomp.texi (Top): Move www.openmp.org to https.
6321 (Enabling OpenMP): Ditto.
6322 (omp_get_active_level): Ditto.
6323 (omp_get_ancestor_thread_num): Ditto.
6324 (omp_get_cancellation): Ditto.
6325 (omp_get_default_device): Ditto.
6326 (omp_get_dynamic): Ditto.
6327 (omp_get_level): Ditto.
6328 (omp_get_max_active_levels): Ditto.
6329 (omp_get_max_task_priority): Ditto.
6330 (omp_get_max_threads): Ditto.
6331 (omp_get_nested): Ditto.
6332 (omp_get_num_devices): Ditto.
6333 (omp_get_num_procs): Ditto.
6334 (omp_get_num_teams): Ditto.
6335 (omp_get_num_threads): Ditto.
6336 (omp_get_proc_bind): Ditto.
6337 (omp_get_schedule): Ditto.
6338 (omp_get_team_num): Ditto.
6339 (omp_get_team_size): Ditto.
6340 (omp_get_thread_limit): Ditto.
6341 (omp_get_thread_num): Ditto.
6342 (omp_in_parallel): Ditto.
6343 (omp_in_final): Ditto.
6344 (omp_is_initial_device): Ditto.
6345 (omp_set_default_device): Ditto.
6346 (omp_set_dynamic): Ditto.
6347 (omp_set_max_active_levels): Ditto.
6348 (omp_set_nested): Ditto.
6349 (omp_set_num_threads): Ditto.
6350 (omp_set_schedule): Ditto.
6351 (omp_init_lock): Ditto.
6352 (omp_set_lock): Ditto.
6353 (omp_test_lock): Ditto.
6354 (omp_unset_lock): Ditto.
6355 (omp_destroy_lock): Ditto.
6356 (omp_init_nest_lock): Ditto.
6357 (omp_set_nest_lock): Ditto.
6358 (omp_test_nest_lock): Ditto.
6359 (omp_unset_nest_lock): Ditto.
6360 (omp_destroy_nest_lock): Ditto.
6361 (omp_get_wtick): Ditto.
6362 (omp_get_wtime): Ditto.
6363 (OMP_CANCELLATION): Ditto.
6364 (OMP_DISPLAY_ENV): Ditto.
6365 (OMP_DEFAULT_DEVICE): Ditto.
6366 (OMP_DYNAMIC): Ditto.
6367 (OMP_MAX_ACTIVE_LEVELS): Ditto.
6368 (OMP_MAX_TASK_PRIORITY): Ditto.
6369 (OMP_NESTED): Ditto.
6370 (OMP_NUM_THREADS): Ditto.
6371 (OMP_PROC_BIND): Ditto.
6372 (OMP_PLACES): Ditto.
6373 (OMP_STACKSIZE): Ditto.
6374 (OMP_SCHEDULE): Ditto.
6375 (OMP_THREAD_LIMIT): Ditto.
6376 (OMP_WAIT_POLICY): Ditto.
6377
6378 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
6379 James Norris <jnorris@codesourcery.com>
6380 Julian Brown <julian@codesourcery.com>
6381 Thomas Schwinge <thomas@codesourcery.com>
6382 Tom de Vries <tom@codesourcery.com>
6383
6384 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6385 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6386 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6388 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6389 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6390 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6391 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6394 Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6396 Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6398 Likewise.
6399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6400 Likewise.
6401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6402 Likewise.
6403 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6404 Likewise.
6405 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6406 Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6408 Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6410 Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6412 Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6414 Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6416 Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6418 Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6420 Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6422 Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6424 Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6426 Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6428 Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6430 Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6432 Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6434 Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6436 Likewise.
6437 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6438 Likewise.
6439 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6440 Likewise.
6441 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6442 Likewise.
6443 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6444 Likewise.
6445 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6446 Likewise.
6447 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6448 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6449 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6450 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6451 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6452 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6453 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6454 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6455 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6456 Likewise.
6457 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6458 Likewise.
6459 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6460 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6461 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6462 Likewise.
6463 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6464 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6465 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6466 Likewise.
6467 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6468 Likewise.
6469 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6470 Likewise.
6471 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6472 Likewise.
6473 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6474 Likewise.
6475 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6476 Likewise.
6477 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6478 Likewise.
6479 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6480 Likewise.
6481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6482 Likewise.
6483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6484 Likewise.
6485 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6486 Likewise.
6487 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6488 Likewise.
6489 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6490 Likewise.
6491 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6492 Likewise.
6493 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6494 Likewise.
6495 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6496 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6497 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6498 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6499 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6500 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6501 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6502
6503 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
6504 Thomas Schwinge <thomas@codesourcery.com>
6505 Cesar Philippidis <cesar@codesourcery.com>
6506
6507 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6508 (gomp_acc_remove_pointer): Update declaration.
6509 (gomp_acc_declare_allocate): Declare.
6510 (gomp_remove_var): Declare.
6511 * libgomp.map (OACC_2.5): Define.
6512 * oacc-mem.c (acc_map_data): Update refcount.
6513 (acc_unmap_data): Likewise.
6514 (present_create_copy): Likewise.
6515 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6516 (acc_copyin): Likewise.
6517 (FLAG_FINALIZE): Define.
6518 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6519 (acc_delete_finalize): New function.
6520 (acc_delete_finalize_async): New function.
6521 (acc_copyout_finalize): New function.
6522 (acc_copyout_finalize_async): New function.
6523 (gomp_acc_insert_pointer): Update refcounts.
6524 (gomp_acc_remove_pointer): Return if data is not present on the
6525 accelerator.
6526 * oacc-parallel.c (find_pset): Rename to find_pointer.
6527 (find_pointer): Add support for GOMP_MAP_POINTER.
6528 (handle_ftn_pointers): New function.
6529 (GOACC_parallel_keyed): Update refcounts of variables.
6530 (GOACC_enter_exit_data): Add support for finalized data mappings.
6531 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6532 of fortran arrays.
6533 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6534 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6535 for GOMP_MAP_FORCE_FROM.
6536 * openacc.f90 (module openacc_internal): Add
6537 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6538 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6539 acc_copyout_finalize and acc_delete_finalize.
6540 (acc_copyout_finalize_32_h): New subroutine.
6541 (acc_copyout_finalize_64_h): New subroutine.
6542 (acc_copyout_finalize_array_h): New subroutine.
6543 (acc_delete_finalize_32_h): New subroutine.
6544 (acc_delete_finalize_64_h): New subroutine.
6545 (acc_delete_finalize_array_h): New subroutine.
6546 * openacc.h (acc_copyout_finalize): Declare.
6547 (acc_copyout_finalize_async): Declare.
6548 (acc_delete_finalize): Declare.
6549 (acc_delete_finalize_async): Declare.
6550 * openacc_lib.h (acc_copyout_finalize): New interface.
6551 (acc_delete_finalize): New interface.
6552 * target.c (gomp_map_vars): Update dynamic_refcount.
6553 (gomp_remove_var): New function.
6554 (gomp_unmap_vars): Use it.
6555 (gomp_unload_image_from_device): Likewise.
6556 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6557 case to utilize OpenACC 2.5 data clause semantics.
6558 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6559 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6560 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6561 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6562 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6563 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6564 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6565 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6566 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6567 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6568 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6569 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6570 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6571 utilize OpenACC 2.5 data clause semantics.
6572 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6573 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6574 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6575 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6576 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6577 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6578 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6579 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6580 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6581
6582 2018-05-21 Janus Weil <janus@gcc.gnu.org>
6583
6584 PR fortran/85841
6585 PR testsuite/85865
6586 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6587 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6588 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6589 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6590 * testsuite/libgomp.fortran/task2.f90: Ditto.
6591 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6592 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6593 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6594 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6595 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6596 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6597 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6598 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6599 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6600
6601 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
6602
6603 PR c++/85782
6604 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6605
6606 2018-05-09 Tom de Vries <tom@codesourcery.com>
6607
6608 PR libgomp/82901
6609 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6610 to GOACC_enter_exit_data.
6611
6612 2018-05-09 Tom de Vries <tom@codesourcery.com>
6613
6614 PR libgomp/83792
6615 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6616 (async_synchronous_p): New function.
6617 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6618 async_valid_p.
6619 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6620 async_valid_stream_id_p.
6621 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6622 * oacc-parallel.c (GOACC_parallel_keyed): Same.
6623
6624 2018-05-07 Tom de Vries <tom@codesourcery.com>
6625
6626 PR testsuite/85677
6627 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6628 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6629
6630 2018-05-03 Tom de Vries <tom@codesourcery.com>
6631
6632 PR testsuite/85106
6633 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6634 extra_tool_flags if it contains an -foffload=-fdump-* flag.
6635 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6636 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6637
6638 2018-05-02 Tom de Vries <tom@codesourcery.com>
6639
6640 PR libgomp/85411
6641 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6642 GOMP_OPENACC_DIM ...
6643 * env.c (parse_gomp_openacc_dim): ... here. New function.
6644 (initialize_env): Call parse_gomp_openacc_dim.
6645 (goacc_default_dims): Define.
6646 * libgomp.h (goacc_default_dims): Declare.
6647 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6648 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6649 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6650 GOMP_PLUGIN_acc_default_dim.
6651 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6652 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6653
6654 2018-05-02 Tom de Vries <tom@codesourcery.com>
6655
6656 PR testsuite/83791
6657 * testsuite/libgomp.c++/udr-9.C: Update.
6658 * testsuite/libgomp.c++/atomic-16.C: Remove.
6659 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6660 * testsuite/libgomp.c++/loop-13.C: Remove.
6661 * testsuite/libgomp.c++/loop-14.C: Remove.
6662 * testsuite/libgomp.c++/loop-15.C: Remove.
6663 * testsuite/libgomp.c++/monotonic-1.C: Remove.
6664 * testsuite/libgomp.c++/monotonic-2.C: Remove.
6665 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6666 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6667 * testsuite/libgomp.c++/ordered-1.C: Remove.
6668 * testsuite/libgomp.c++/pr45784.C: Remove.
6669 * testsuite/libgomp.c++/pr64824.C: Remove.
6670 * testsuite/libgomp.c++/pr64868.C: Remove.
6671 * testsuite/libgomp.c++/pr66199-1.C: Remove.
6672 * testsuite/libgomp.c++/pr66199-2.C: Remove.
6673 * testsuite/libgomp.c++/pr66199-3.C: Remove.
6674 * testsuite/libgomp.c++/pr66199-4.C: Remove.
6675 * testsuite/libgomp.c++/pr66199-5.C: Remove.
6676 * testsuite/libgomp.c++/pr66199-6.C: Remove.
6677 * testsuite/libgomp.c++/pr66199-7.C: Remove.
6678 * testsuite/libgomp.c++/pr66199-8.C: Remove.
6679 * testsuite/libgomp.c++/pr66199-9.C: Remove.
6680 * testsuite/libgomp.c++/pr69389.C: Remove.
6681 * testsuite/libgomp.c++/simd10.C: Remove.
6682 * testsuite/libgomp.c++/simd11.C: Remove.
6683 * testsuite/libgomp.c++/simd12.C: Remove.
6684 * testsuite/libgomp.c++/simd13.C: Remove.
6685 * testsuite/libgomp.c++/target-1.C: Remove.
6686 * testsuite/libgomp.c++/target-3.C: Remove.
6687 * testsuite/libgomp.c++/target-4.C: Remove.
6688 * testsuite/libgomp.c++/target-5.C: Remove.
6689 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6690 * testsuite/libgomp.c++/taskloop-1.C: Remove.
6691 * testsuite/libgomp.c++/taskloop-2.C: Remove.
6692 * testsuite/libgomp.c++/taskloop-3.C: Remove.
6693 * testsuite/libgomp.c++/taskloop-4.C: Remove.
6694 * testsuite/libgomp.c++/udr-9.C: Remove.
6695 * testsuite/libgomp.c++/for-10.C: Remove.
6696 * testsuite/libgomp.c++/for-11.C: Remove.
6697 * testsuite/libgomp.c++/for-12.C: Remove.
6698 * testsuite/libgomp.c++/for-13.C: Remove.
6699 * testsuite/libgomp.c++/for-14.C: Remove.
6700 * testsuite/libgomp.c++/for-9.C: Remove.
6701 * testsuite/libgomp.c/atomic-18.c: Move ...
6702 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6703 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6704 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6705 * testsuite/libgomp.c/loop-13.c: Move ...
6706 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6707 * testsuite/libgomp.c/loop-14.c: Move ...
6708 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6709 * testsuite/libgomp.c/loop-15.c: Remove.
6710 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6711 * testsuite/libgomp.c/monotonic-1.c: Move ...
6712 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6713 * testsuite/libgomp.c/monotonic-2.c: Move ...
6714 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6715 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6716 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6717 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6718 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6719 * testsuite/libgomp.c/ordered-4.c: Move ...
6720 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6721 * testsuite/libgomp.c/pr45784.c: Move ...
6722 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6723 * testsuite/libgomp.c/pr64824.c: Move ...
6724 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6725 * testsuite/libgomp.c/pr64868.c: Move ...
6726 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6727 * testsuite/libgomp.c/pr66199-1.c: Move ...
6728 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6729 * testsuite/libgomp.c/pr66199-2.c: Move ...
6730 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6731 * testsuite/libgomp.c/pr66199-3.c: Move ...
6732 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6733 * testsuite/libgomp.c/pr66199-4.c: Move ...
6734 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6735 * testsuite/libgomp.c/pr66199-5.c: Move ...
6736 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6737 * testsuite/libgomp.c/pr66199-6.c: Move ...
6738 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6739 * testsuite/libgomp.c/pr66199-7.c: Move ...
6740 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6741 * testsuite/libgomp.c/pr66199-8.c: Move ...
6742 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6743 * testsuite/libgomp.c/pr66199-9.c: Move ...
6744 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6745 * testsuite/libgomp.c/pr69389.c: Move ...
6746 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6747 * testsuite/libgomp.c/simd-14.c: Move ...
6748 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6749 * testsuite/libgomp.c/simd-15.c: Move ...
6750 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6751 * testsuite/libgomp.c/simd-16.c: Move ...
6752 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6753 * testsuite/libgomp.c/simd-17.c: Move ...
6754 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6755 * testsuite/libgomp.c/target-1.c: Move ...
6756 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6757 * testsuite/libgomp.c/target-10.c: Move ...
6758 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6759 * testsuite/libgomp.c/target-13.c: Move ...
6760 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6761 * testsuite/libgomp.c/target-2.c: Move ...
6762 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6763 * testsuite/libgomp.c/taskgroup-1.c: Move ...
6764 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6765 * testsuite/libgomp.c/taskloop-1.c: Move ...
6766 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6767 * testsuite/libgomp.c/taskloop-2.c: Move ...
6768 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6769 * testsuite/libgomp.c/taskloop-3.c: Move ...
6770 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6771 * testsuite/libgomp.c/taskloop-4.c: Move ...
6772 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6773 * testsuite/libgomp.c/udr-1.c: Move ...
6774 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6775 * testsuite/libgomp.c/for-1.c: Move ...
6776 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6777 * testsuite/libgomp.c/for-1.h: Move ...
6778 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6779 * testsuite/libgomp.c/for-2.c: Move ...
6780 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6781 * testsuite/libgomp.c/for-2.h: Move ...
6782 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6783 * testsuite/libgomp.c/for-3.c: Move ...
6784 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6785 * testsuite/libgomp.c/for-4.c: Move ...
6786 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6787 * testsuite/libgomp.c/for-5.c: Move ...
6788 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6789 * testsuite/libgomp.c/for-6.c: Move ...
6790 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6791
6792 2018-05-02 Tom de Vries <tom@codesourcery.com>
6793
6794 PR libgomp/82428
6795 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6796 __builtin_goacc_parlevel_{id,size}.
6797 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6798 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6799 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6800 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6801 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6802 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6803 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6804 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6805 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6806 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6807 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6808 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6809 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6810 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6811 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6812 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6813 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6814 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6815 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6816 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6817 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6818 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6819 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6820
6821 2018-05-02 Tom de Vries <tom@codesourcery.com>
6822
6823 PR testsuite/85106
6824 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6825
6826 2018-05-02 Tom de Vries <tom@codesourcery.com>
6827
6828 PR testsuite/85106
6829 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6830
6831 2018-04-29 Julian Brown <julian@codesourcery.com>
6832 Tom de Vries <tom@codesourcery.com>
6833
6834 PR testsuite/85527
6835 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6836 arbitrary order for iterations of atomic subtract check.
6837
6838 2018-04-28 Tom de Vries <tom@codesourcery.com>
6839
6840 PR testsuite/85527
6841 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6842 atomic capture results obtained in parallel loop to an array, instead of
6843 to a scalar.
6844
6845 2018-04-26 Tom de Vries <tom@codesourcery.com>
6846
6847 PR libgomp/84020
6848 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6849 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6850 (process_GOMP_NVPTX_JIT): New function.
6851 (link_ptx): Use process_GOMP_NVPTX_JIT.
6852
6853 2018-04-26 Richard Biener <rguenther@suse.de>
6854 Tom de Vries <tom@codesourcery.com>
6855
6856 PR lto/85422
6857 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6858
6859 2018-04-26 Tom de Vries <tom@codesourcery.com>
6860
6861 PR target/85519
6862 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6863 recursion depth from 25 to 23.
6864 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6865
6866 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
6867
6868 * configure: Regenerated.
6869
6870 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
6871 Tom de Vries <tom@codesourcery.com>
6872
6873 PR target/85445
6874 * testsuite/libgomp.oacc-c++/ref-1.C: New.
6875
6876 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
6877
6878 PR libgomp/85463
6879 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6880 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6881 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6882 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6883 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6884 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6885
6886 PR libfortran/85166
6887 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6888 abort".
6889 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6890
6891 2018-04-19 Jakub Jelinek <jakub@redhat.com>
6892
6893 * configure: Regenerated.
6894
6895 2018-04-18 David Malcolm <dmalcolm@redhat.com>
6896
6897 PR jit/85384
6898 * configure: Regenerate.
6899
6900 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
6901 Tom de Vries <tom@codesourcery.com>
6902
6903 PR middle-end/84955
6904 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6905 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6906
6907 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6908
6909 PR fortran/83064
6910 PR testsuite/85346
6911 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6912 test from gfortran.dg to here.
6913
6914 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6915
6916 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6917 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6918
6919 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
6920
6921 PR middle-end/84955
6922 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6923 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6924
6925 2018-04-05 Tom de Vries <tom@codesourcery.com>
6926
6927 PR target/85204
6928 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6929
6930 2018-03-26 Tom de Vries <tom@codesourcery.com>
6931
6932 PR tree-optimization/85063
6933 * testsuite/libgomp.c/switch-conversion-2.c: New test.
6934 * testsuite/libgomp.c/switch-conversion.c: New test.
6935 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6936 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6937
6938 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
6939
6940 PR fortran/84381
6941 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6942 call abort by STOP n.
6943 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6944 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6945 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6946 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6947 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6948 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6949 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6950 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6951 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6952 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6953 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6954 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6955 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6956 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6957 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6958 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6959 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6960 * testsuite/libgomp.fortran/associate1.f90: Likewise.
6961 * testsuite/libgomp.fortran/associate2.f90: Likewise.
6962 * testsuite/libgomp.fortran/associate3.f90: Likewise.
6963 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6964 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6965 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6966 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6967 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6968 * testsuite/libgomp.fortran/character1.f90: Likewise.
6969 * testsuite/libgomp.fortran/character2.f90: Likewise.
6970 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6971 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6972 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6973 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6974 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6975 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6976 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6977 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6978 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6979 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6980 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6981 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6982 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6983 * testsuite/libgomp.fortran/do1.f90: Likewise.
6984 * testsuite/libgomp.fortran/do2.f90: Likewise.
6985 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6986 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6987 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6988 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6989 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6990 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6991 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6992 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6993 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6994 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6995 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6996 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6997 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6998 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6999 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7000 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7001 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7002 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7003 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7004 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7005 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7006 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7007 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7008 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7009 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7010 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7011 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7012 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7013 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7014 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7015 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7016 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7017 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7018 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7019 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7020 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7021 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7022 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7023 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7024 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7025 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7026 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7027 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7028 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7029 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7030 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7031 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7032 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7033 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7034 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7035 * testsuite/libgomp.fortran/lib2.f: Likewise.
7036 * testsuite/libgomp.fortran/lib3.f: Likewise.
7037 * testsuite/libgomp.fortran/lib4.f90: Likewise.
7038 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7039 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7040 * testsuite/libgomp.fortran/nested1.f90: Likewise.
7041 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7042 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7043 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7044 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7045 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7046 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7047 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7048 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7049 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7050 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7051 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7052 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7053 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7054 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7055 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7056 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7057 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7058 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7059 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7060 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7061 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7062 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7063 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7064 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7065 * testsuite/libgomp.fortran/pr25162.f: Likewise.
7066 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7067 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7068 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7069 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7070 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7071 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7072 * testsuite/libgomp.fortran/pr28390.f: Likewise.
7073 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7074 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7075 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7076 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7077 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7078 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7079 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7080 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7081 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7082 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7083 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7084 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7085 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7086 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7087 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7088 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7089 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7090 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7091 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7092 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7093 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7094 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7095 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7096 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7097 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7098 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7099 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7100 * testsuite/libgomp.fortran/reference1.f90: Likewise.
7101 * testsuite/libgomp.fortran/reference2.f90: Likewise.
7102 * testsuite/libgomp.fortran/retval1.f90: Likewise.
7103 * testsuite/libgomp.fortran/retval2.f90: Likewise.
7104 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7105 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7106 * testsuite/libgomp.fortran/simd1.f90: Likewise.
7107 * testsuite/libgomp.fortran/simd2.f90: Likewise.
7108 * testsuite/libgomp.fortran/simd3.f90: Likewise.
7109 * testsuite/libgomp.fortran/simd4.f90: Likewise.
7110 * testsuite/libgomp.fortran/simd5.f90: Likewise.
7111 * testsuite/libgomp.fortran/simd6.f90: Likewise.
7112 * testsuite/libgomp.fortran/simd7.f90: Likewise.
7113 * testsuite/libgomp.fortran/stack.f90: Likewise.
7114 * testsuite/libgomp.fortran/strassen.f90: Likewise.
7115 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7116 * testsuite/libgomp.fortran/tabs2.f: Likewise.
7117 * testsuite/libgomp.fortran/target1.f90: Likewise.
7118 * testsuite/libgomp.fortran/target2.f90: Likewise.
7119 * testsuite/libgomp.fortran/target3.f90: Likewise.
7120 * testsuite/libgomp.fortran/target4.f90: Likewise.
7121 * testsuite/libgomp.fortran/target5.f90: Likewise.
7122 * testsuite/libgomp.fortran/target6.f90: Likewise.
7123 * testsuite/libgomp.fortran/target7.f90: Likewise.
7124 * testsuite/libgomp.fortran/target8.f90: Likewise.
7125 * testsuite/libgomp.fortran/task1.f90: Likewise.
7126 * testsuite/libgomp.fortran/task2.f90: Likewise.
7127 * testsuite/libgomp.fortran/task3.f90: Likewise.
7128 * testsuite/libgomp.fortran/task4.f90: Likewise.
7129 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7130 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7131 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7132 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7133 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7134 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7135 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7136 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7137 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7138 * testsuite/libgomp.fortran/udr1.f90: Likewise.
7139 * testsuite/libgomp.fortran/udr10.f90: Likewise.
7140 * testsuite/libgomp.fortran/udr11.f90: Likewise.
7141 * testsuite/libgomp.fortran/udr12.f90: Likewise.
7142 * testsuite/libgomp.fortran/udr13.f90: Likewise.
7143 * testsuite/libgomp.fortran/udr14.f90: Likewise.
7144 * testsuite/libgomp.fortran/udr15.f90: Likewise.
7145 * testsuite/libgomp.fortran/udr2.f90: Likewise.
7146 * testsuite/libgomp.fortran/udr3.f90: Likewise.
7147 * testsuite/libgomp.fortran/udr4.f90: Likewise.
7148 * testsuite/libgomp.fortran/udr5.f90: Likewise.
7149 * testsuite/libgomp.fortran/udr6.f90: Likewise.
7150 * testsuite/libgomp.fortran/udr7.f90: Likewise.
7151 * testsuite/libgomp.fortran/udr8.f90: Likewise.
7152 * testsuite/libgomp.fortran/udr9.f90: Likewise.
7153 * testsuite/libgomp.fortran/vla1.f90: Likewise.
7154 * testsuite/libgomp.fortran/vla2.f90: Likewise.
7155 * testsuite/libgomp.fortran/vla3.f90: Likewise.
7156 * testsuite/libgomp.fortran/vla4.f90: Likewise.
7157 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7158 * testsuite/libgomp.fortran/vla6.f90: Likewise.
7159 * testsuite/libgomp.fortran/vla7.f90: Likewise.
7160 * testsuite/libgomp.fortran/vla8.f90: Likewise.
7161 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7162 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7163 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7164 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7165 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7166 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7167 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7168 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7169 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7170 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7171 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7172 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7173 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7174 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7175 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7176 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7177 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7178 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7179 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7180 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7181 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7182 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7183 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7184 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7185 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7186 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7187 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7188 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7189 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7190 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7191 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7192 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7193 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7194 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7195 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7196 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7197 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7198 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7199 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7200 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7201 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7202 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7203 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7204 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7205 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7206 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7207 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7208 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7209 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7210 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7211 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7212 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7213 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7214 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7215 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7216 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7217 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7218 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7219 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7220 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7221 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7222 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7223 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7224 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7225 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7226 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7227 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7228 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7229 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7230 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7231 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7232 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7233 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7234 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7235 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7236 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7237 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7238 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7239 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7240 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7241 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7242 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7243 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7244 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7245 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7246 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7247 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7248 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7249 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7250 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7251 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7252 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7253 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7254 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7255
7256 2018-03-20 Richard Biener <rguenther@suse.de>
7257
7258 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7259 parallelizable loop.
7260
7261 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7262
7263 PR target/84148
7264 * configure: Regenerate.
7265
7266 2018-02-16 Jakub Jelinek <jakub@redhat.com>
7267
7268 PR fortran/84418
7269 * libgomp.fortran/pr84418-1.f90: New test.
7270 * libgomp.fortran/pr84418-2.f90: New test.
7271
7272 2018-02-14 Jakub Jelinek <jakub@redhat.com>
7273
7274 PR fortran/84313
7275 * testsuite/libgomp.fortran/threadprivate4.f90: Add
7276 -std=f2003 -fall-intrinsics into dg-additional-options.
7277
7278 2018-02-08 Martin Jambor <mjambor@suse.cz>
7279
7280 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7281 clonable.
7282
7283 2018-02-08 Martin Jambor <mjambor@suse.cz>
7284
7285 * testsuite/libgomp.hsa.c/staticvar.c: New test.
7286
7287 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7288
7289 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7290 [__cplusplus]: Declare extern "C".
7291
7292 2018-02-07 Tom de Vries <tom@codesourcery.com>
7293
7294 PR libgomp/84217
7295 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7296
7297 2018-01-29 Christoph Spiel <cspiel@freenet.de>
7298 Jakub Jelinek <jakub@redhat.com>
7299
7300 PR libgomp/84096
7301 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7302 instead of omp_lock_t.
7303
7304 2018-01-25 Tom de Vries <tom@codesourcery.com>
7305
7306 PR target/84028
7307 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7308
7309 2018-01-24 Tom de Vries <tom@codesourcery.com>
7310
7311 PR target/83589
7312 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7313
7314 2018-01-24 Tom de Vries <tom@codesourcery.com>
7315
7316 PR target/81352
7317 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7318
7319 2018-01-19 Tom de Vries <tom@codesourcery.com>
7320 Cesar Philippidis <cesar@codesourcery.com>
7321
7322 PR target/83920
7323 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7324 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7325
7326 2018-01-03 Jakub Jelinek <jakub@redhat.com>
7327
7328 Update copyright years.
7329
7330 * libgomp.texi: Bump @copying's copyright year.
7331
7332 2017-12-30 Tom de Vries <tom@codesourcery.com>
7333
7334 PR libgomp/83046
7335 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7336 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7337
7338 2017-12-27 Tom de Vries <tom@codesourcery.com>
7339
7340 PR c++/83046
7341 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7342 (test_nonstatic): Fix return type to workaround PR83046.
7343
7344 2017-12-05 Jakub Jelinek <jakub@redhat.com>
7345
7346 PR testsuite/83281
7347 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7348 j suffix instead of i.
7349 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7350 Likewise.
7351
7352 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
7353
7354 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7355 call to acc_wait (1).
7356
7357 2017-11-24 Jakub Jelinek <jakub@redhat.com>
7358
7359 PR fortran/81304
7360 * testsuite/libgomp.fortran/pr81304.f90: New test.
7361
7362 2017-11-23 Jakub Jelinek <jakub@redhat.com>
7363
7364 PR fortran/81841
7365 * libgomp.fortran/pr81841.f90: New test.
7366
7367 2017-11-22 Jakub Jelinek <jakub@redhat.com>
7368
7369 PR libgomp/83106
7370 * target.c (gomp_target_init): Compute lengths just once and
7371 use them in both malloc size and subsequent copying.
7372
7373 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7374
7375 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7376 * acinclude.m4: Add cet.m4.
7377 * configure: Regenerate.
7378 * Makefile.in: Likewise.
7379 * testsuite/Makefile.in: Likewise.
7380
7381 2017-11-15 Tom de Vries <tom@codesourcery.com>
7382
7383 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7384 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
7385 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7386 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
7387 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7388 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
7389
7390 2017-11-14 Tom de Vries <tom@codesourcery.com>
7391
7392 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7393 non-nvidia devices.
7394
7395 2017-11-07 Jakub Jelinek <jakub@redhat.com>
7396
7397 PR c++/82835
7398 * testsuite/libgomp.c++/pr82835.C: New test.
7399
7400 2017-11-06 Martin Liska <mliska@suse.cz>
7401
7402 * testsuite/libgomp.c++/loop-2.C: Return a value
7403 for functions with non-void return type, or change type to void,
7404 or add -Wno-return-type for test.
7405 * testsuite/libgomp.c++/loop-4.C: Likewise.
7406 * testsuite/libgomp.c++/parallel-1.C: Likewise.
7407 * testsuite/libgomp.c++/shared-1.C: Likewise.
7408 * testsuite/libgomp.c++/single-1.C: Likewise.
7409 * testsuite/libgomp.c++/single-2.C: Likewise.
7410
7411 2017-10-31 Tom de Vries <tom@codesourcery.com>
7412
7413 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7414 "do {} while (false)".
7415 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7416 after HSA_DEBUG call.
7417
7418 2017-10-28 Jakub Jelinek <jakub@redhat.com>
7419
7420 * target.c (struct gomp_coalesce_buf): New type.
7421 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7422 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7423 (gomp_copy_host2dev): Add CBUF argument, if copying into
7424 the cached ranges, memcpy into buffer instead of copying
7425 into device.
7426 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7427 Add CBUF argument, pass it through to other calls.
7428 (gomp_map_vars): Aggregate copies from host to device if small enough
7429 and with small enough gaps in between into memcpy into a buffer and
7430 fewer host to device copies from the buffer.
7431 (gomp_update): Adjust gomp_copy_host2dev caller.
7432
7433 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
7434
7435 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7436 run" directive.
7437 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7438 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7439 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7440 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7441
7442 2017-10-16 Tom de Vries <tom@codesourcery.com>
7443
7444 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7445 openacc_nvidia_accel_selected.
7446 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7447 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7448 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7449 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7450 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7451 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7452 openacc_nvidia_accel_selected. Skip for shared memory device.
7453 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7454 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7455
7456 2017-10-09 Martin Jambor <mjambor@suse.cz>
7457
7458 PR hsa/82416
7459 * testsuite/libgomp.hsa.c/pr82416.c: New test.
7460
7461 2017-10-07 Tom de Vries <tom@codesourcery.com>
7462
7463 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7464 Remove acc_device_nvidia references.
7465 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7466 Same.
7467
7468 2017-10-05 Tom de Vries <tom@codesourcery.com>
7469
7470 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7471 vector_length(32) clause from acc parallel directive.
7472 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7473
7474 2017-10-04 Tom de Vries <tom@codesourcery.com>
7475
7476 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7477 (main): Reduce sum of arr elements. Assert that hres is exactly
7478 representable in 32-bit floating point.
7479 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7480 (main): Reduce sum of arr elements. Assert that hres and hmres are
7481 exactly representable in 32-bit floating point.
7482 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7483
7484 2017-09-28 Tom de Vries <tom@codesourcery.com>
7485
7486 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7487 setting.
7488 * testsuite/libgomp.c++/pr69393.C: Same.
7489 * testsuite/libgomp.c++/taskloop-1.C: Same.
7490 * testsuite/libgomp.c++/taskloop-3.C: Same.
7491 * testsuite/libgomp.c++/taskloop-4.C: Same.
7492 * testsuite/libgomp.c/for-4.c: Same.
7493 * testsuite/libgomp.c/pr66199-3.c: Same.
7494 * testsuite/libgomp.c/pr66199-4.c: Same.
7495 * testsuite/libgomp.c/pr66199-6.c: Same.
7496 * testsuite/libgomp.c/taskloop-1.c: Same.
7497 * testsuite/libgomp.c/taskloop-3.c: Same.
7498 * testsuite/libgomp.c/taskloop-4.c: Same.
7499 * testsuite/libgomp.fortran/aligned1.f03: Same.
7500 * testsuite/libgomp.fortran/condinc1.f: Same.
7501 * testsuite/libgomp.fortran/condinc3.f90: Same.
7502 * testsuite/libgomp.fortran/crayptr1.f90: Same.
7503 * testsuite/libgomp.fortran/crayptr2.f90: Same.
7504 * testsuite/libgomp.fortran/crayptr3.f90: Same.
7505 * testsuite/libgomp.fortran/omp_cond1.f: Same.
7506 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7507 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7508 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7509 * testsuite/libgomp.fortran/recursion1.f90: Same.
7510 * testsuite/libgomp.fortran/target2.f90: Same.
7511 * testsuite/libgomp.fortran/target5.f90: Same.
7512 * testsuite/libgomp.fortran/task3.f90: Same.
7513
7514 2017-09-28 Tom de Vries <tom@codesourcery.com>
7515
7516 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7517 vector_length(32) clause from acc parallel directive.
7518 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7519
7520 2017-09-27 Tom de Vries <tom@codesourcery.com>
7521
7522 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7523 Remove acc_device_nvidia references.
7524
7525 2017-09-16 Tom de Vries <tom@codesourcery.com>
7526
7527 PR c/81875
7528 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7529
7530 2017-09-14 Tom de Vries <tom@codesourcery.com>
7531
7532 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7533 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7534 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7535 * testsuite/libgomp.c/c.exp: Include test-cases from
7536 libgomp.c-c++-common.
7537 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
7538 files.
7539
7540 2017-09-14 Jakub Jelinek <jakub@redhat.com>
7541
7542 PR c++/81314
7543 * testsuite/libgomp.c++/pr81314.C: New test.
7544
7545 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7546
7547 * libgomp.texi (Top): www.openacc.org now uses https.
7548 (Enabling OpenACC): Ditto.
7549 (acc_get_num_devices): Ditto.
7550 (acc_set_device_type): Ditto.
7551 (acc_get_device_type): Ditto.
7552 (acc_set_device_num): Ditto.
7553 (acc_get_device_num): Ditto.
7554 (acc_async_test): Ditto.
7555 (acc_async_test_all): Ditto.
7556 (acc_wait): Ditto.
7557 (acc_wait_all): Ditto.
7558 (acc_wait_all_async): Ditto.
7559 (acc_wait_async): Ditto.
7560 (acc_init): Ditto.
7561 (acc_shutdown): Ditto.
7562 (acc_on_device): Ditto.
7563 (acc_malloc): Ditto.
7564 (acc_free): Ditto.
7565 (acc_copyin): Ditto.
7566 (acc_present_or_copyin): Ditto.
7567 (acc_create): Ditto.
7568 (acc_present_or_create): Ditto.
7569 (acc_copyout): Ditto.
7570 (acc_delete): Ditto.
7571 (acc_update_device): Ditto.
7572 (acc_update_self): Ditto.
7573 (acc_map_data): Ditto.
7574 (acc_unmap_data): Ditto.
7575 (acc_deviceptr): Ditto.
7576 (acc_hostptr): Ditto.
7577 (acc_is_present): Ditto.
7578 (acc_memcpy_to_device): Ditto.
7579 (acc_memcpy_from_device): Ditto.
7580 (acc_get_current_cuda_device): Ditto.
7581 (acc_get_current_cuda_context): Ditto.
7582 (acc_get_cuda_stream): Ditto.
7583 (acc_set_cuda_stream): Ditto.
7584 (ACC_DEVICE_TYPE): Ditto.
7585 (ACC_DEVICE_NUM): Ditto.
7586 (OpenACC Library Interoperability): Ditto.
7587
7588 2017-08-09 Jakub Jelinek <jakub@redhat.com>
7589
7590 PR c/81687
7591 * testsuite/libgomp.c/pr81687-1.c: New test.
7592 * testsuite/libgomp.c/pr81687-2.c: New test.
7593
7594 2017-08-07 Jakub Jelinek <jakub@redhat.com>
7595
7596 PR c/69389
7597 * testsuite/libgomp.c/pr69389.c: New test.
7598 * testsuite/libgomp.c++/pr69389.C: New test.
7599
7600 2017-08-07 Tom de Vries <tom@codesourcery.com>
7601
7602 PR middle-end/78266
7603 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7604 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7605
7606 2017-07-27 Jakub Jelinek <jakub@redhat.com>
7607
7608 PR c/45784
7609 * testsuite/libgomp.c/pr45784.c: New test.
7610 * testsuite/libgomp.c++/pr45784.C: New test.
7611
7612 2017-07-19 Tom de Vries <tom@codesourcery.com>
7613
7614 * testsuite/libgomp.oacc-c/vec.c: New test.
7615
7616 2017-07-03 Tom de Vries <tom@codesourcery.com>
7617
7618 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7619
7620 2017-06-27 Tom de Vries <tom@codesourcery.com>
7621
7622 * plugin/plugin-nvptx.c (notify_var): New function.
7623 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7624
7625 2017-06-27 Tom de Vries <tom@codesourcery.com>
7626
7627 * env.c (parse_unsigned_long_1): Factor out of ...
7628 (parse_unsigned_long): ... here.
7629 (parse_int_1): Factor out of ...
7630 (parse_int): ... here.
7631 (parse_int_secure): New function.
7632 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7633 * secure_getenv.h: Factor out of ...
7634 * plugin/plugin-hsa.c: ... here.
7635 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7636
7637 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7638
7639 PR c++/81130
7640 * testsuite/libgomp.c++/pr81130.C: New test.
7641
7642 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7643
7644 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7645 default args.
7646 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7647 dg-xfail-run-if default args.
7648
7649 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7650
7651 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7652 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7653
7654 2017-05-30 Jakub Jelinek <jakub@redhat.com>
7655
7656 PR libgomp/80822
7657 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7658 (gomp_affinity_init_level): Use it. Always analyze the core and thread
7659 sibling lists, depending on level just pick up what CPUs to put
7660 together into a place vs. whether add multiple ordered places.
7661
7662 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
7663
7664 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7665 * libgomp.map (OACC_2.0.1): Add these.
7666 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7667 for "acc_wait", and "acc_wait_all", respectively.
7668 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7669 for "acc_wait", and "acc_wait_all", respectively.
7670 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7671 * libgomp.texi (acc_wait, acc_wait_all): Update.
7672 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7673 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7674 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7675
7676 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7677 acc_present_or_copyin and acc_present_or_create procedures,
7678 respectively.
7679 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7680 generally different variants of OpenACC Runtime Library functions.
7681 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7682
7683 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7684 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7685
7686 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7687 of preprocessor definitions.
7688 * libgomp.h (strong_alias): Guard by "#ifdef
7689 HAVE_ATTRIBUTE_ALIAS".
7690 * oacc-mem.c: Provide "acc_pcreate" as alias for
7691 "acc_present_or_create", and "acc_pcopyin" as alias for
7692 "acc_present_or_copyin".
7693 * libgomp.map: New version "OACC_2.0.1".
7694 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7695 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7696 its content into...
7697 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7698 Extend testing.
7699
7700 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7701 when disabling nvptx offloading.
7702
7703 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
7704
7705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7706 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7707 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7708
7709 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7710 * testsuite/lib/libgomp.exp
7711 (check_effective_target_openacc_nvidia_accel_configured): New
7712 proc.
7713 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7714 (check_effective_target_c++): New procs.
7715 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7716 (check_effective_target_c++): Likewise.
7717
7718 2017-05-22 Jakub Jelinek <jakub@redhat.com>
7719
7720 PR middle-end/80809
7721 * testsuite/libgomp.c/pr80809-2.c: New test.
7722 * testsuite/libgomp.c/pr80809-3.c: New test.
7723
7724 PR middle-end/80809
7725 * testsuite/libgomp.c/pr80809-1.c: New test.
7726
7727 PR middle-end/80853
7728 * testsuite/libgomp.c/pr80853.c: New test.
7729
7730 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
7731
7732 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7733 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7734 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7735 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7736 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7737
7738 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7739 Debug output for failure.
7740
7741 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7742
7743 * testsuite/lib/libgomp.exp: Load scanlang.exp.
7744
7745 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7746
7747 PR bootstrap/80531
7748 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7749 bootstrap compare failures.
7750
7751 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
7752
7753 * testsuite/libgomp.c/target-36.c: New testcase.
7754
7755 2017-04-13 Jakub Jelinek <jakub@redhat.com>
7756
7757 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7758 instead of char.
7759
7760 2017-04-11 Jakub Jelinek <jakub@redhat.com>
7761
7762 PR libgomp/80394
7763 * testsuite/libgomp.c/pr80394.c: New test.
7764
7765 2017-04-04 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR libgomp/79876
7768 * config/posix/thread-stacksize.h: New file.
7769 * config/darwin/thread-stacksize.h: New file.
7770 * config/nvptx/thread-stacksize.h: New file.
7771 * env.c: Include thread-stacksize.h.
7772 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7773 instead of 0. Call pthread_attr_setstacksize even if
7774 GOMP_DEFAULT_STACKSIZE is non-zero.
7775
7776 2017-03-30 Jakub Jelinek <jakub@redhat.com>
7777
7778 * env.c (initialize_env): Initialize stacksize to 0.
7779
7780 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7781
7782 PR c++/80029
7783 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7784
7785 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7786
7787 PR c/79940
7788 * testsuite/libgomp.c/pr79940.c: New test.
7789
7790 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7791
7792 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7793 targets.
7794 Add __float128 options.
7795
7796 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
7797
7798 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7799 hppa*-*-* dg-skip-if directive.
7800
7801 2017-02-09 Jakub Jelinek <jakub@redhat.com>
7802
7803 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7804 dg-skip-if directive into a comment.
7805
7806 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
7807 Chung-Lin Tang <cltang@codesourcery.com>
7808
7809 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7810 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7811 add additional case.
7812 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7813 "openacc_nvidia_accel_selected".
7814 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7815 Add num_workers(8) clause.
7816
7817 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
7818
7819 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7820 hppa*-*-*.
7821 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7822 include complex.h on hppa*-*-hpux*.
7823 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7824
7825 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
7826
7827 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7828
7829 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7830 GOMP_OFFLOAD_openacc_exec. Adjust all users.
7831 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7832 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
7833 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7834 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
7835 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7836 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
7837 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7838 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
7839
7840 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
7841
7842 * libgomp-plugin.h: #include <stdbool.h>.
7843 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7844 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7845 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7846 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7847 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7848 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7849 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7850 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7851 (GOMP_OFFLOAD_openacc_register_async_cleanup)
7852 (GOMP_OFFLOAD_openacc_async_test)
7853 (GOMP_OFFLOAD_openacc_async_test_all)
7854 (GOMP_OFFLOAD_openacc_async_wait)
7855 (GOMP_OFFLOAD_openacc_async_wait_async)
7856 (GOMP_OFFLOAD_openacc_async_wait_all)
7857 (GOMP_OFFLOAD_openacc_async_wait_all_async)
7858 (GOMP_OFFLOAD_openacc_async_set_async)
7859 (GOMP_OFFLOAD_openacc_create_thread_data)
7860 (GOMP_OFFLOAD_openacc_destroy_thread_data)
7861 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7862 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7863 (GOMP_OFFLOAD_openacc_get_cuda_stream)
7864 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7865 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7866 these.
7867 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7868 (GOMP_OFFLOAD_unload_image): Fix argument types.
7869
7870 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7871
7872 * testsuite/lib/libgomp.exp
7873 (check_effective_target_hsa_offloading_selected_nocache): Fix up
7874 check_compile invocation. Fix up removal of executable. Drop
7875 bogus "2>&1" argument.
7876
7877 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7878 directive.
7879
7880 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
7881 Martin Jambor <mjambor@suse.cz>
7882
7883 * plugin/hsa.h: Moved to top level include.
7884 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7885
7886 2017-01-21 Jakub Jelinek <jakub@redhat.com>
7887
7888 PR other/79046
7889 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7890 of cat to get version from BASE-VER file.
7891 * testsuite/Makefile.in: Regenerated.
7892
7893 2017-01-19 Jakub Jelinek <jakub@redhat.com>
7894
7895 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7896 for _WIN64.
7897
7898 2017-01-17 Jakub Jelinek <jakub@redhat.com>
7899
7900 * plugin/hsa.h: Add GCC runtime library exception.
7901 * plugin/hsa_ext_finalize.h: Likewise.
7902
7903 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7904 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
7905 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7906 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7907 plugin/include/cuda as include dir and -ldl instead of -lcuda as
7908 library to link ptx plugin against.
7909 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7910 (CUDA_CALLS): Define.
7911 (cuda_lib, cuda_lib_inited): New variables.
7912 (init_cuda_lib): New function.
7913 (CUDA_CALL_PREFIX): Define.
7914 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7915 (CUDA_CALL): Use FN instead of (FN).
7916 (CUDA_CALL_NOCHECK): Define.
7917 (cuda_error, fini_streams_for_device, select_stream_for_async,
7918 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7919 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7920 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7921 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7922 CUDA_CALL_NOCHECK.
7923 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
7924 CUDA_CALL_NOCHECK.
7925 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7926 Use CUDA_CALL_NOCHECK.
7927 * plugin/cuda/cuda.h: New file.
7928 * config.h.in: Regenerated.
7929 * configure: Regenerated.
7930
7931 PR other/79046
7932 * configure.ac: Add GCC_BASE_VER.
7933 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7934 get version from BASE-VER file.
7935 * testsuite/Makefile.in: Regenerated.
7936 * configure: Regenerated.
7937 * Makefile.in: Regenerated.
7938
7939 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7940
7941 PR libgomp/60670
7942 * Makefile.am: Make fincludedir multilib-aware.
7943 * Makefile.in: Regenerate.
7944
7945 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7946
7947 Update copyright years.
7948
7949 * libgomp.texi: Bump @copying's copyright year.
7950
7951 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7952
7953 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7954 pthread_spinlock_t instead of gomp_mutex_t lock.
7955 (gomp_get_thread_pool): Likewise.
7956 (gomp_release_thread_pool): Likewise.
7957 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7958 Likewise.
7959
7960 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7961
7962 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7963 thread pool in case nthreads == 1.
7964
7965 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7966
7967 * config/nvptx/env.c: Delete.
7968 * icv.c: Move definitions of ICV variables back ...
7969 * env.c: ...here. Do not compile environment-related functionality if
7970 LIBGOMP_OFFLOADED_ONLY is set.
7971
7972 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7973
7974 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7975 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7976 * configure: Regenerate.
7977 * config.h.in: Likewise.
7978
7979 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
7980
7981 * Makefile.in: Regenerate with automake-1.11.6.
7982 * aclocal.m4: Likewise.
7983 * configure: Likewise.
7984 * testsuite/Makefile.in: Likewise.
7985
7986 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
7987
7988 * config/nvptx/critical.c: Delete to use generic implementation.
7989
7990 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
7991
7992 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7993 ../../affinity.c as fallback.
7994 * config/nvptx/affinity.c: Delete to use fallback implementation.
7995
7996 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
7997 Jakub Jelinek <jakub@redhat.com>
7998 Dmitry Melnik <dm@ispras.ru>
7999
8000 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8001 * Makefile.in. Regenerate.
8002 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8003 (LIBGOMP_USE_PTHREADS): ...here; new define.
8004 * configure: Regenerate.
8005 * config.h.in: Likewise.
8006 * config/posix/affinity.c: Move to...
8007 * affinity.c: ...here (new file). Guard use of Pthreads-specific
8008 interface by LIBGOMP_USE_PTHREADS.
8009 * critical.c: Split out GOMP_atomic_{start,end} into...
8010 * atomic.c: ...here (new file).
8011 * env.c: Split out ICV definitions into...
8012 * icv.c: ...here (new file) and...
8013 * icv-device.c: ...here. New file.
8014 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8015 (gomp_destroy_lock_30): Ditto.
8016 (gomp_set_lock_30): Ditto.
8017 (gomp_unset_lock_30): Ditto.
8018 (gomp_test_lock_30): Ditto.
8019 (gomp_init_nest_lock_30): Ditto.
8020 (gomp_destroy_nest_lock_30): Ditto.
8021 (gomp_set_nest_lock_30): Ditto.
8022 (gomp_unset_nest_lock_30): Ditto.
8023 (gomp_test_nest_lock_30): Ditto.
8024 * lock.c: New.
8025 * config/nvptx/lock.c: New.
8026 * config/nvptx/bar.c: New.
8027 * config/nvptx/bar.h: New.
8028 * config/nvptx/doacross.h: New.
8029 * config/nvptx/error.c: New.
8030 * config/nvptx/icv-device.c: New.
8031 * config/nvptx/mutex.h: New.
8032 * config/nvptx/pool.h: New.
8033 * config/nvptx/proc.c: New.
8034 * config/nvptx/ptrlock.h: New.
8035 * config/nvptx/sem.h: New.
8036 * config/nvptx/simple-bar.h: New.
8037 * config/nvptx/target.c: New.
8038 * config/nvptx/task.c: New.
8039 * config/nvptx/team.c: New.
8040 * config/nvptx/time.c: New.
8041 * config/posix/simple-bar.h: New.
8042 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
8043 (gomp_num_teams_var): Declare.
8044 (struct gomp_thread_pool): Change threads_dock member to
8045 gomp_simple_barrier_t.
8046 [__nvptx__] (gomp_thread): New implementation.
8047 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8048 (gomp_thread_destructor): Ditto.
8049 (gomp_init_thread_affinity): Ditto.
8050 * team.c: Guard uses of Pthreads-specific interfaces by
8051 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
8052 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8053 * config/nvptx/alloc.c: Delete.
8054 * config/nvptx/barrier.c: Ditto.
8055 * config/nvptx/fortran.c: Ditto.
8056 * config/nvptx/iter.c: Ditto.
8057 * config/nvptx/iter_ull.c: Ditto.
8058 * config/nvptx/loop.c: Ditto.
8059 * config/nvptx/loop_ull.c: Ditto.
8060 * config/nvptx/ordered.c: Ditto.
8061 * config/nvptx/parallel.c: Ditto.
8062 * config/nvptx/priority_queue.c: Ditto.
8063 * config/nvptx/sections.c: Ditto.
8064 * config/nvptx/single.c: Ditto.
8065 * config/nvptx/splay-tree.c: Ditto.
8066 * config/nvptx/work.c: Ditto.
8067 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8068 -foffload=-lgfortran in addition to -lgfortran.
8069 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8070 * plugin/plugin-nvptx.c: Include <limits.h>.
8071 (struct targ_fn_descriptor): Add new fields.
8072 (struct ptx_device): Ditto. Set them...
8073 (nvptx_open_device): ...here.
8074 (nvptx_adjust_launch_bounds): New.
8075 (nvptx_host2dev): Allow NULL 'nvthd'.
8076 (nvptx_dev2host): Ditto.
8077 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8078 (link_ptx): Adjust log sizes.
8079 (nvptx_host2dev): Allow NULL 'nvthd'.
8080 (nvptx_dev2host): Ditto.
8081 (nvptx_set_clocktick): New. Use it...
8082 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
8083 fields.
8084 (GOMP_OFFLOAD_dev2dev): New.
8085 (nvptx_adjust_launch_bounds): New.
8086 (nvptx_stacks_size): New.
8087 (nvptx_stacks_alloc): New.
8088 (nvptx_stacks_free): New.
8089 (GOMP_OFFLOAD_run): New.
8090 (GOMP_OFFLOAD_async_run): New (stub).
8091
8092 2016-11-23 Martin Jambor <mjambor@suse.cz>
8093
8094 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8095 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8096 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8097
8098 2016-11-23 Martin Liska <mliska@suse.cz>
8099 Martin Jambor <mjambor@suse.cz>
8100
8101 * plugin/hsa.h: New file.
8102 * plugin/hsa_ext_finalize.h: New file.
8103 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
8104 header file unistd.h, and functions secure_getenv, __secure_getenv,
8105 getuid, geteuid, getgid and getegid.
8106 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8107 -D_GNU_SOURCE.
8108 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8109 Handle various cases of secure_getenv presence, add an implementation
8110 when we can test effective UID and GID.
8111 (struct hsa_runtime_fn_info): New structure.
8112 (hsa_runtime_fn_info hsa_fns): New variable.
8113 (hsa_runtime_lib): Likewise.
8114 (support_cpu_devices): Likewise.
8115 (init_enviroment_variables): Load newly introduced ENV
8116 variables.
8117 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8118 (hsa_fatal): Likewise.
8119 (DLSYM_FN): New macro.
8120 (init_hsa_runtime_functions): New function.
8121 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8122 structure. Depending on environment, also allow CPU devices.
8123 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8124 (get_kernarg_memory_region): Likewise.
8125 (GOMP_OFFLOAD_init_device): Likewise.
8126 (destroy_hsa_program): Likewise.
8127 (init_basic_kernel_info): New function.
8128 (GOMP_OFFLOAD_load_image): Use it.
8129 (create_and_finalize_hsa_program): Call hsa run-time functions via
8130 hsa_fns structure.
8131 (create_single_kernel_dispatch): Likewise.
8132 (release_kernel_dispatch): Likewise.
8133 (init_single_kernel): Likewise.
8134 (parse_target_attributes): Allow up multiple HSA grid dimensions.
8135 (get_group_size): New function.
8136 (run_kernel): Likewise.
8137 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8138 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8139 structure.
8140 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8141 * testsuite/libgomp-test-support.exp.in: Likewise.
8142 * Makefile.in: Regenerated.
8143 * aclocal.m4: Likewise.
8144 * config.h.in: Likewise.
8145 * configure: Likewise.
8146 * testsuite/Makefile.in: Likewise.
8147
8148 2016-11-15 Martin Jambor <mjambor@suse.cz>
8149 Alexander Monakov <amonakov@ispras.ru>
8150
8151 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8152 mapping clauses to target constructs.
8153 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8154
8155 2016-11-15 Matthias Klose <doko@ubuntu.com>
8156
8157 * configure: Regenerate.
8158
8159 2016-11-10 Jakub Jelinek <jakub@redhat.com>
8160
8161 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8162 * omp_lib.h.in (openmp_version): Likewise.
8163 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8164 of 201307.
8165 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8166
8167 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8168 (fib_wrapper): Add map(from: x) clause.
8169 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8170 (e_53_2): Likewise.
8171 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8172 (accum): Add map(tmp) clause.
8173 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8174 (accum): Add map(tofrom: tmp) clause.
8175 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8176 (gramSchmidt): Likewise.
8177 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8178 map(tofrom: sum) clause.
8179 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8180 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
8181 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8182 only allowed on the loop iterator.
8183 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8184 * testsuite/libgomp.fortran/taskloop2.f90: New test.
8185 * testsuite/libgomp.fortran/taskloop4.f90: New test.
8186 * testsuite/libgomp.fortran/doacross1.f90: New test.
8187 * testsuite/libgomp.fortran/doacross3.f90: New test.
8188 * testsuite/libgomp.fortran/taskloop1.f90: New test.
8189 * testsuite/libgomp.fortran/taskloop3.f90: New test.
8190 * testsuite/libgomp.fortran/doacross2.f90: New test.
8191 * testsuite/libgomp.c/doacross-1.c (main): Add missing
8192 #pragma omp atomic read.
8193 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8194 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8195
8196 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
8197 Nathan Sidwell <nathan@acm.org>
8198
8199 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8200 to determine default geometry.
8201 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8202 dimension.
8203
8204 2016-11-01 Jakub Jelinek <jakub@redhat.com>
8205
8206 * hashtab.h: Use standard GPLv3 with runtime exception
8207 boilerplate.
8208
8209 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
8210
8211 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8212 size when allocating new thread.
8213
8214 2016-09-14 Marek Polacek <polacek@redhat.com>
8215
8216 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8217
8218 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8219
8220 PR fortran/71014
8221 * testsuite/libgomp.fortran/pr71014.f90: New test.
8222
8223 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8224
8225 PR middle-end/70895
8226 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8227 firstprivate clauses.
8228 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8229 copy clauses.
8230 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8242
8243 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
8244
8245 PR fortran/70598
8246 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8247
8248 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8249
8250 PR c++/58706
8251 * testsuite/libgomp.c++/pr58706.C: New test.
8252
8253 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
8254
8255 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8256 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8257 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8258 Likewise.
8259 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8260 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8261 Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8263
8264 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8265 test, and don't hardcode -O0.
8266
8267 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8268
8269 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8270
8271 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8272
8273 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8274 test.
8275
8276 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
8277
8278 PR middle-end/71734
8279 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8280 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8281
8282 2016-07-01 Jakub Jelinek <jakub@redhat.com>
8283
8284 PR fortran/71717
8285 * testsuite/libgomp.fortran/associate3.f90: New test.
8286
8287 2016-06-17 Jakub Jelinek <jakub@redhat.com>
8288
8289 * testsuite/libgomp.c++/target-21.C: New test.
8290
8291 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8292
8293 * testsuite/libgomp.c++/target-20.C: New test.
8294
8295 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8296 Cesar Philippidis <cesar@codesourcery.com>
8297
8298 PR middle-end/71373
8299 * libgomp.oacc-c/nested-function-1.c: New file.
8300 * libgomp.oacc-c/nested-function-2.c: Likewise.
8301 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8302 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8303 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8304
8305 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8306
8307 PR c/71381
8308 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8309 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8310 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8311
8312 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
8313
8314 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8315 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8316
8317 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
8318
8319 PR c/70688
8320 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8321
8322 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8323
8324 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8325 instead of invalid schedule(static, 0).
8326 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8327
8328 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8329
8330 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8331 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8332 parameter, use to set async stream around call to gomp_unmap_vars,
8333 call gomp_unmap_vars() with 'do_copyfrom' set to true.
8334 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8335 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8336 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8337 (event_add): Add int parameter, initialize 'val' field when
8338 adding new ptx_event struct.
8339 (nvptx_evec): Adjust event_add() call arguments.
8340 (nvptx_host2dev): Likewise.
8341 (nvptx_dev2host): Likewise.
8342 (nvptx_wait_async): Likewise.
8343 (nvptx_wait_all_async): Likewise.
8344 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8345 pass to event_add() call.
8346 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8347 parameter.
8348 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8349 call openacc.register_async_cleanup_func() hook.
8350 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8351 * target.c (gomp_copy_from_async): Delete function.
8352 (gomp_map_vars): Remove async_refcount.
8353 (gomp_unmap_vars): Likewise.
8354 (gomp_load_image_to_device): Likewise.
8355 (omp_target_associate_ptr): Likewise.
8356 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8357 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8358 (gomp_copy_from_async): Remove.
8359
8360 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8361
8362 * target.c (gomp_device_copy): New function.
8363 (gomp_copy_host2dev): Likewise.
8364 (gomp_copy_dev2host): Likewise.
8365 (gomp_free_device_memory): Likewise.
8366 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8367 (gomp_map_pointer): Likewise.
8368 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8369 NULL value from alloc_func plugin hook.
8370 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8371 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8372 (gomp_unmap_vars): Likewise.
8373 (gomp_update): Adjust to call gomp_copy_dev2host and
8374 gomp_copy_host2dev functions.
8375 (gomp_unload_image_from_device): Handle false value from
8376 unload_image_func plugin hook.
8377 (gomp_init_device): Handle false value from init_device_func
8378 plugin hook.
8379 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8380 (omp_target_free): Adjust to call gomp_free_device_memory.
8381 (omp_target_memcpy): Handle return values from host2dev_func,
8382 dev2host_func, and dev2dev_func plugin hooks.
8383 (omp_target_memcpy_rect_worker): Likewise.
8384 (gomp_target_fini): Handle false value from fini_device_func
8385 plugin hook.
8386 * libgomp.h (struct gomp_device_descr): Adjust return type of
8387 init_device_func, fini_device_func, unload_image_func, free_func,
8388 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8389 * oacc-init.c (acc_shutdown_1): Handle false value from
8390 fini_device_func plugin hook.
8391 * oacc-host.c (host_init_device): Change return type to bool.
8392 (host_fini_device): Likewise.
8393 (host_unload_image): Likewise.
8394 (host_free): Likewise.
8395 (host_dev2host): Likewise.
8396 (host_host2dev): Likewise.
8397 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8398 (acc_memcpy_to_device): Likewise.
8399 (acc_memcpy_from_device): Likewise.
8400 (delete_copyout): Add libfnname parameter, handle free_func
8401 hook fatal error case.
8402 (acc_delete): Adjust delete_copyout call.
8403 (acc_copyout): Likewise.
8404 (update_dev_host): Move gomp_mutex_unlock to after
8405 host2dev/dev2host hook calls.
8406
8407 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8408 to 'hsa_error_msg', for clarity.
8409 (hsa_fatal): Likewise.
8410 (hsa_error): New function.
8411 (init_hsa_context): Change return type to bool, adjust to return
8412 false on error.
8413 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8414 return value.
8415 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8416 return false on error.
8417 (get_agent_info): Adjust to return NULL on error.
8418 (destroy_hsa_program): Change return type to bool, adjust to
8419 return false on error.
8420 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8421 (destroy_module): Change return type to bool, adjust to
8422 return false on error.
8423 (GOMP_OFFLOAD_unload_image): Likewise.
8424 (GOMP_OFFLOAD_fini_device): Likewise.
8425 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8426 (GOMP_OFFLOAD_free): Change to return false when called.
8427 (GOMP_OFFLOAD_dev2host): Likewise.
8428 (GOMP_OFFLOAD_host2dev): Likewise.
8429 (GOMP_OFFLOAD_dev2dev): Likewise.
8430
8431 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8432 (CUDA_CALL): Likewise.
8433 (CUDA_CALL_ASSERT): Likewise.
8434 (map_init): Change return type to bool, use CUDA_CALL* macros.
8435 (map_fini): Likewise.
8436 (init_streams_for_device): Change return type to bool, adjust
8437 call to map_init.
8438 (fini_streams_for_device): Change return type to bool, adjust
8439 call to map_fini.
8440 (select_stream_for_async): Release stream_lock before calls to
8441 GOMP_PLUGIN_fatal, adjust call to map_init.
8442 (nvptx_init): Use CUDA_CALL* macros.
8443 (nvptx_attach_host_thread_to_device): Change return type to bool,
8444 use CUDA_CALL* macros.
8445 (nvptx_open_device): Use CUDA_CALL* macros.
8446 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8447 macros.
8448 (nvptx_get_num_devices): Use CUDA_CALL* macros.
8449 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8450 (nvptx_exec): Use CUDA_CALL* macros.
8451 (nvptx_alloc): Use CUDA_CALL* macros.
8452 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8453 (nvptx_host2dev): Likewise.
8454 (nvptx_dev2host): Likewise.
8455 (nvptx_wait): Use CUDA_CALL* macros.
8456 (nvptx_wait_async): Likewise.
8457 (nvptx_wait_all): Likewise.
8458 (nvptx_wait_all_async): Likewise.
8459 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8460 use CUDA_CALL* macros, adjust call to map_fini.
8461 (GOMP_OFFLOAD_init_device): Change return type to bool,
8462 adjust code accordingly.
8463 (GOMP_OFFLOAD_fini_device): Likewise.
8464 (GOMP_OFFLOAD_load_image): Adjust calls to
8465 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8466 use CUDA_CALL* macros.
8467 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8468 return code.
8469 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8470 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8471 handle error return.
8472 (GOMP_OFFLOAD_dev2host): Likewise.
8473 (GOMP_OFFLOAD_host2dev): Likewise.
8474 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8475 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8476
8477 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8478
8479 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8480 (acc_free): Likewise.
8481 (acc_memcpy_to_device): Likewise.
8482 (acc_memcpy_from_device): Likewise.
8483 (acc_deviceptr): Likewise.
8484 (acc_hostptr): Likewise.
8485 (acc_is_present): Likewise.
8486 (acc_map_data): Likewise.
8487 (acc_unmap_data): Likewise.
8488 (present_create_copy): Likewise.
8489 (delete_copyout): Likewise.
8490 (update_dev_host): Likewise.
8491 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8492 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8493 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8494 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8496 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8497 it only runs on nvptx targets.
8498 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8499 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8500 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8501 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8503 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8504 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8505 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8506 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8507 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8508 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8509 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8511 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8521
8522 2016-05-23 Martin Jambor <mjambor@suse.cz>
8523
8524 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8525
8526 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
8527
8528 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8529 to gomp_init_targets_once.
8530 (acc_set_device_type): Remove !cached_base_dev condition on call to
8531 gomp_init_targets_once, move call to before acc_device_lock acquire,
8532 to avoid deadlock.
8533 (acc_get_device_num): Remove !cached_base_dev condition on call to
8534 gomp_init_targets_once.
8535 (acc_set_device_num): Likewise.
8536
8537 2016-05-16 Martin Jambor <mjambor@suse.cz>
8538
8539 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8540
8541 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8542
8543 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8544 expected partitioning.
8545
8546 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8547
8548 PR middle-end/70626
8549 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8550 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8551 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8552
8553 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
8554
8555 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8556 non-fatal.
8557
8558 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8559
8560 PR middle-end/70680
8561 * testsuite/libgomp.c/pr70680-1.c: New test.
8562 * testsuite/libgomp.c/pr70680-2.c: New test.
8563
8564 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8565
8566 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8567 pass parameter variables to subroutines.
8568
8569 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8570
8571 PR middle-end/70643
8572 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8573
8574 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
8575
8576 PR testsuite/68242
8577 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8578 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8579
8580 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
8581
8582 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8583 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8584 GOACC_declare prototype.
8585
8586 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8587 Merge this file, and...
8588 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8589 ... this file, and...
8590 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8591 ... this file, and...
8592 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8593 ... this file, and...
8594 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8595 ... this file, and...
8596 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8597 ... this file, and...
8598 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8599 ... this file, and...
8600 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8601 ... this file, and...
8602 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8603 ... this file, and...
8604 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8605 ... this file, and...
8606 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8607 ... this file, and...
8608 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8609 ... this file, and...
8610 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8611 ... this file into...
8612 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8613 file.
8614
8615 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8616 Make failure observable.
8617
8618 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8619
8620 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8621 field.
8622 * target.c (gomp_target_fallback_firstprivate,
8623 gomp_target_unshare_firstprivate): Removed.
8624 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8625 before waiting for dependencies.
8626 (gomp_target_task_fn): Don't copy firstprivate vars here.
8627 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8628 firstprivate_copies here.
8629 (gomp_create_target_task): Don't initialize firstprivate_copies field.
8630 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8631 explicit/implicit firstprivate.
8632
8633 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8634
8635 PR lto/70289
8636 PR ipa/70348
8637 PR tree-optimization/70373
8638 PR middle-end/70533
8639 PR middle-end/70534
8640 PR middle-end/70535
8641 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8642 test.
8643 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8644 test.
8645 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8646 test.
8647 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8648 test.
8649 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8650 test.
8651 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8652 test.
8653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8654 test.
8655 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8656 test.
8657 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8658 test.
8659 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8660 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8661 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8662 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8663 test.
8664 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8665 test.
8666 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8667 test.
8668 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8669 test.
8670 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8671 coverage.
8672 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8673 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8674 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8675 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8676 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8677 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8678 coverage.
8679 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8680 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8682 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8684 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8685 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8686 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8687 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8688 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8689 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8690 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8691 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8692 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8693 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8694
8695 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
8696 James Norris <jnorris@codesourcery.com>
8697 Nathan Sidwell <nathan@codesourcery.com>
8698 Julian Brown <julian@codesourcery.com>
8699 Cesar Philippidis <cesar@codesourcery.com>
8700 Chung-Lin Tang <cltang@codesourcery.com>
8701 Tom de Vries <tom@codesourcery.com>
8702
8703 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8704 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8705 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8706 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8707 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8708 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8709 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8710 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8711 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8712 XFAIL.
8713 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8714 Incorporate...
8715 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8716 file.
8717 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8718 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8719 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8721 Likewise.
8722 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8723 Likewise.
8724 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8728 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8729 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8730 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8731 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8732 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8733 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8734 Likewise.
8735 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8736 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8737 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8738 file...
8739 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8740 file into...
8741 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8742 file. Update.
8743 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8744 file.
8745 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8746 Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8748 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8749 ... this new file. Update.
8750 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8751 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8752 ... this new file. Update.
8753 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8754 file. Incorporate...
8755 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8756 file, and...
8757 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8758 file, and...
8759 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8760 file.
8761 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8762
8763 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
8764
8765 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8766 set-torture-options.
8767
8768 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
8769
8770 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8771 gcc-dg-runtest.
8772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8773 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8774 -fno-builtin-acc_on_device instead of -O0.
8775 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8776 -O0.
8777 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8779 Likewise.
8780 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8781 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8782 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8783 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8784 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8785 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8786 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8787 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8789 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8791 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8792 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8793 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8794 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8798 Don't specify -O2.
8799 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8800 Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8802 Likewise.
8803
8804 2016-03-24 Martin Liska <mliska@suse.cz>
8805
8806 * plugin/plugin-hsa.c (packet_store_release): New function
8807 that is taken from the HSA runtime manual.
8808 (GOMP_OFFLOAD_run): Use the function.
8809
8810 2016-03-23 Jakub Jelinek <jakub@redhat.com>
8811
8812 PR c++/70376
8813 * testsuite/libgomp.c++/pr70376.C: New test.
8814
8815 2016-03-23 Tom de Vries <tom@codesourcery.com>
8816
8817 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8818 initialization of lresult and lvresult.
8819 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8820
8821 2016-03-23 James Norris <jnorris@codesourcery.com>
8822 Daichi Fukuoka <dc-fukuoka@sgi.com>
8823
8824 PR libgomp/69414
8825 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8826 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8827 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8828 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8829
8830 2016-03-23 Martin Liska <mliska@suse.cz>
8831
8832 PR hsa/70337
8833 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8834 argument just in case a dispatched kernel uses that argument.
8835
8836 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
8837
8838 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8839 -ftree-parallelize-loops/-fopenacc changes.
8840 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8841 Likewise.
8842 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8843 Likewise.
8844 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8845 Likewise.
8846 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8847 Likewise.
8848 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8849 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8850
8851 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
8852
8853 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8854 always_ld_library_path the path to libgcc_s.
8855
8856 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
8857
8858 PR testsuite/70009
8859 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8860
8861 2016-03-09 Tom de Vries <tom@codesourcery.com>
8862
8863 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8864 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8865 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8866 Same.
8867 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8868 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8869 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8870 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8871
8872 2016-03-07 Martin Jambor <mjambor@suse.cz>
8873
8874 * testsuite/lib/libgomp.exp
8875 (check_effective_target_hsa_offloading_selected_nocache): New.
8876 (check_effective_target_hsa_offloading_selected): Likewise.
8877 * testsuite/libgomp.hsa.c/c.exp: Likewise.
8878 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8879 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8880 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8881 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8882 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8883 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8884 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8885 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8886 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8887 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8888 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8889 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8890 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8891 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8892 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8893 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8894
8895 2016-03-07 Martin Jambor <mjambor@suse.cz>
8896
8897 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8898 non-shared memory accelerators.
8899 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8900 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8901 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8902 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8903 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8904 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8905 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8906 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8907 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8908
8909 2016-03-07 Martin Jambor <mjambor@suse.cz>
8910
8911 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8912 ALWAYS_CFLAGS.
8913
8914 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR libgomp/69555
8917 * testsuite/libgomp.c++/pr69555-1.C: New test.
8918 * testsuite/libgomp.c++/pr69555-2.C: New test.
8919
8920 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
8921 Martin Jambor <mjambor@suse.cz>
8922
8923 * testsuite/lib/libgomp.exp
8924 (check_effective_target_offload_device_shared_as): New proc.
8925 * testsuite/libgomp.c++/declare_target-1.C: New test.
8926
8927 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8928
8929 PR driver/68463
8930 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8931
8932 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
8933
8934 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8935 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8936 dims.
8937 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8938 -ftree-parallelize-loops/-fopenacc changes.
8939 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8940 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8941 Likewise.
8942 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8943 Likewise.
8944 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8945 Likewise.
8946 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8947 Likewise.
8948 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8949 Likewise.
8950 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8951 Likewise.
8952 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8953 Likewise.
8954 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8955 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8956 Likewise.
8957 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8958 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8959 Likewise.
8960 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8961 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8962 Likewise.
8963
8964 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
8965
8966 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8967
8968 2016-02-19 Jakub Jelinek <jakub@redhat.com>
8969
8970 PR driver/69805
8971 * testsuite/libgomp.c/pr69805.c: New test.
8972
8973 2016-02-16 Tom de Vries <tom@codesourcery.com>
8974
8975 PR lto/67709
8976 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8977
8978 2016-02-09 Tom de Vries <tom@codesourcery.com>
8979
8980 PR tree-optimization/69599
8981 * testsuite/libgomp.c/omp-nested-3.c: New test.
8982 * testsuite/libgomp.c/pr46032-2.c: New test.
8983 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8984 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8985
8986 2016-02-09 Tom de Vries <tom@codesourcery.com>
8987
8988 PR lto/69707
8989 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8990
8991 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8992
8993 * testsuite/libgomp.c/target-31.c: Fix testcase.
8994
8995 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
8996
8997 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8998 clause.
8999 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9000 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9001 reduction and map clauses.
9002 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9003
9004 2016-02-02 James Norris <jnorris@codesourcery.com>
9005
9006 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9007
9008 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
9009
9010 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9011 * oacc-parallel.c (GOACC_host_data): Remove function definition.
9012
9013 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9014 cases.
9015
9016 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9017 variables.
9018 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9019 (hsa_kmt_lib): Set variables.
9020 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9021 always_ld_library_path.
9022 * Makefile.in: Regenerate.
9023 * configure: Likewise.
9024 * testsuite/Makefile.in: Likewise.
9025
9026 * plugin/configfrag.ac (offload_additional_options)
9027 (offload_additional_lib_paths): Don't amend for hsa offloading.
9028 * configure: Regenerate.
9029
9030 * plugin/configfrag.ac: Don't configure for offloading target if
9031 we don't build the corresponding plugin.
9032 * configure: Regenerate.
9033
9034 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
9035
9036 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9037 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9038
9039 2016-01-26 Tom de Vries <tom@codesourcery.com>
9040
9041 PR tree-optimization/69110
9042 * testsuite/libgomp.c/pr69110.c: New test.
9043
9044 2016-01-25 Richard Biener <rguenther@suse.de>
9045
9046 PR lto/69393
9047 * testsuite/libgomp.c++/pr69393.C: New testcase.
9048
9049 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
9050
9051 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9052 function wasn't mapped to the device with non-shared memory.
9053
9054 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
9055
9056 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9057
9058 2016-01-19 Martin Jambor <mjambor@suse.cz>
9059 Martin Liska <mliska@suse.cz>
9060
9061 * plugin/Makefrag.am: Add HSA plugin requirements.
9062 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9063 (HSA_RUNTIME_LIB): Likewise.
9064 (HSA_RUNTIME_CPPFLAGS): Likewise.
9065 (HSA_RUNTIME_INCLUDE): New substitution.
9066 (HSA_RUNTIME_LIB): Likewise.
9067 (HSA_RUNTIME_LDFLAGS): Likewise.
9068 (hsa-runtime): New configure option.
9069 (hsa-runtime-include): Likewise.
9070 (hsa-runtime-lib): Likewise.
9071 (PLUGIN_HSA): New substitution variable.
9072 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9073 configure options.
9074 (PLUGIN_HSA_CPPFLAGS): Likewise.
9075 (PLUGIN_HSA_LDFLAGS): Likewise.
9076 (PLUGIN_HSA_LIBS): Likewise.
9077 Check that we have access to HSA run-time.
9078 * libgomp-plugin.h (offload_target_type): New element
9079 OFFLOAD_TARGET_TYPE_HSA.
9080 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9081 args.
9082 (bool gomp_create_target_task): Updated.
9083 (gomp_device_descr): Extra parameter of run_func and async_run_func,
9084 new field can_run_func.
9085 * libgomp_g.h (GOMP_target_ext): Update prototype.
9086 * oacc-host.c (host_run): Added a new parameter args.
9087 * target.c (calculate_firstprivate_requirements): New function.
9088 (copy_firstprivate_data): Likewise.
9089 (gomp_target_fallback_firstprivate): Use them.
9090 (gomp_target_unshare_firstprivate): New function.
9091 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9092 devices.
9093 (GOMP_target): Do host fallback for all shared memory devices. Do not
9094 pass any args to plugins.
9095 (GOMP_target_ext): Introduce device-specific argument parameter args.
9096 Allow host fallback if device shares memory. Do not remap data if
9097 device has shared memory.
9098 (gomp_target_task_fn): Likewise. Also treat shared memory devices
9099 like host fallback for mappings.
9100 (GOMP_target_data): Treat shared memory devices like host fallback.
9101 (GOMP_target_data_ext): Likewise.
9102 (GOMP_target_update): Likewise.
9103 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
9104 gomp_create_target_task.
9105 (GOMP_target_enter_exit_data): Likewise.
9106 (omp_target_alloc): Treat shared memory devices like host fallback.
9107 (omp_target_free): Likewise.
9108 (omp_target_is_present): Likewise.
9109 (omp_target_memcpy): Likewise.
9110 (omp_target_memcpy_rect): Likewise.
9111 (omp_target_associate_ptr): Likewise.
9112 (gomp_load_plugin_for_device): Also load can_run.
9113 * task.c (GOMP_PLUGIN_target_task_completion): Free
9114 firstprivate_copies.
9115 (gomp_create_target_task): Accept new argument args and store it to
9116 ttask.
9117 * plugin/plugin-hsa.c: New file.
9118
9119 2016-01-18 Tom de Vries <tom@codesourcery.com>
9120
9121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9123 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9125 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9126 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9127 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9130 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9132 Same.
9133 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9134 Same.
9135 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9136 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9137 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9139 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9141 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9142 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9143 Same.
9144 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9145
9146 2016-01-15 Jakub Jelinek <jakub@redhat.com>
9147
9148 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9149
9150 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
9151
9152 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9153
9154 2016-01-12 James Norris <jnorris@codesourcery.com>
9155
9156 * libgomp.texi: Updates for OpenACC.
9157
9158 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
9159
9160 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9161
9162 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9163
9164 PR fortran/66680
9165 * testsuite/libgomp.fortran/pr66680.f90: New test.
9166
9167 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9168
9169 PR middle-end/68960
9170 * testsuite/libgomp.c/pr68960.c: New test.
9171
9172 2016-01-06 Nathan Sidwell <nathan@acm.org>
9173
9174 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9175 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9176
9177 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9178
9179 Update copyright years.
9180
9181 * libgomp.texi: Bump @copying's copyright year.
9182
9183 2015-12-31 Nathan Sidwell <nathan@acm.org>
9184
9185 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9186 dg-additional-options syntax.
9187 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9188 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9189 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9190 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9191 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9192 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9193 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9194 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9195 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9196 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9197 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9198 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9199 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9200 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9201 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9202 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9203 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9204 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9205
9206 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
9207
9208 * libgomp.h (REFCOUNT_LINK): Define.
9209 (struct splay_tree_key_s): Add link_key.
9210 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9211 Replace target address of the pointer with target address of newly
9212 mapped object in the splay tree. Set link pointer on target to the
9213 device address of the mapped object.
9214 (gomp_unmap_vars): Restore target address of the pointer in the splay
9215 tree for REFCOUNT_LINK objects after unmapping.
9216 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9217 declare target link" objects.
9218 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
9219 "omp declare target link" objects, which were mapped for the image.
9220 (gomp_exit_data): Restore target address of the pointer in the splay
9221 tree for REFCOUNT_LINK objects after unmapping.
9222 * testsuite/libgomp.c/target-link-1.c: New file.
9223
9224 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
9225
9226 * libgomp.h (gomp_device_state): New enum.
9227 (struct gomp_device_descr): Replace is_initialized with state.
9228 (gomp_fini_device): Remove declaration.
9229 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9230 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9231 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
9232 (acc_set_device_type): Use state instead of is_initialized.
9233 (acc_set_device_num): Likewise.
9234 * target.c (resolve_device): Use state instead of is_initialized.
9235 Do not initialize finalized device.
9236 (gomp_map_vars): Do nothing if device is finalized.
9237 (gomp_unmap_vars): Likewise.
9238 (gomp_update): Likewise.
9239 (GOMP_offload_register_ver): Use state instead of is_initialized.
9240 (GOMP_offload_unregister_ver): Likewise.
9241 (gomp_init_device): Likewise.
9242 (gomp_unload_device): Likewise.
9243 (gomp_fini_device): Remove.
9244 (gomp_get_target_fn_addr): Do nothing if device is finalized.
9245 (GOMP_target): Go to host fallback if device is finalized.
9246 (GOMP_target_ext): Likewise.
9247 (gomp_exit_data): Do nothing if device is finalized.
9248 (gomp_target_task_fn): Go to host fallback if device is finalized.
9249 (gomp_target_fini): New static function.
9250 (gomp_target_init): Use state instead of is_initialized.
9251 Call gomp_target_fini at exit.
9252
9253 2015-12-09 Tom de Vries <tom@codesourcery.com>
9254
9255 PR tree-optimization/68716
9256 * testsuite/libgomp.c/omp-nested-2.c: New test.
9257
9258 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
9259
9260 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9261 target openacc_nvidia_accel_selected.
9262 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9263 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9264 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9265 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9266
9267 2015-12-01 Julian Brown <julian@codesourcery.com>
9268 James Norris <James_Norris@mentor.com>
9269
9270 * oacc-parallel.c (GOACC_host_data): New function.
9271 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9272 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9273 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9274 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9275 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9276 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9277 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9278
9279 2015-11-30 James Norris <jnorris@codesourcery.com>
9280 Cesar Philippidis <cesar@codesourcery.com>
9281
9282 libgomp/
9283 * libgomp.oacc-fortran/routine-5.f90: New test.
9284 * libgomp.oacc-fortran/routine-7.f90: New test.
9285 * libgomp.oacc-fortran/routine-9.f90: New test.
9286
9287 2015-11-30 Tom de Vries <tom@codesourcery.com>
9288
9289 PR tree-optimization/46032
9290 * testsuite/libgomp.c/pr46032.c: New test.
9291
9292 2015-11-27 Jakub Jelinek <jakub@redhat.com>
9293
9294 PR libgomp/68579
9295 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9296 (gomp_create_target_task): Call it before freeing
9297 GOMP_TARGET_TASK_DATA tasks.
9298
9299 PR c/63326
9300 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9301 in between case label and OpenMP standalone directives.
9302 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9303
9304 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
9305
9306 * configure: Regenerate.
9307
9308 2015-11-26 Jakub Jelinek <jakub@redhat.com>
9309
9310 * testsuite/libgomp.c/target-35.c: New test.
9311
9312 2015-11-22 James Norris <jnorris@codesourcery.com>
9313 Cesar Philippidis <cesar@codesourcery.com>
9314
9315 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9316 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9317 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9318 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9319 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9320
9321 2015-11-20 Jakub Jelinek <jakub@redhat.com>
9322
9323 PR middle-end/68221
9324 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9325 * testsuite/libgomp.c/reduction-12.c: Likewise.
9326 * testsuite/libgomp.c++/reduction-11.C: Likewise.
9327 * testsuite/libgomp.c++/reduction-12.C: Likewise.
9328
9329 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
9330
9331 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9332 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9333 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9334 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9335 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9336 and fix.
9337 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9338 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9339
9340 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
9341
9342 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9343 worker & gang cases.
9344 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9345
9346 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
9347
9348 * config/nvptx/priority_queue.c: New file.
9349
9350 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9351
9352 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9353 sections.
9354
9355 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9356 Aldy Hernandez <aldyh@redhat.com>
9357 Ilya Verbin <ilya.verbin@intel.com>
9358
9359 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9360 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9361 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9362 iterators or IV by chunk size.
9363 * parallel.c (gomp_resolve_num_threads): Don't assume that
9364 if thr->ts.team is non-NULL, then pool must be non-NULL.
9365 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9366 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9367 GOMP_PLUGIN_target_task_completion.
9368 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9369 * Makefile.in: Regenerate.
9370 * libgomp.h: Shuffle prototypes and forward definitions around so
9371 priority queues can be defined.
9372 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9373 (enum gomp_target_task_state): New enum.
9374 (struct gomp_target_task): Add state, tgt, task and team fields.
9375 (gomp_create_target_task): Change return type to bool, add
9376 state argument.
9377 (gomp_target_task_fn): Change return type to bool.
9378 (struct gomp_device_descr): Add async_run_func.
9379 (struct gomp_task): Remove children, next_child, prev_child,
9380 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9381 Add pnode field.
9382 (struct gomp_taskgroup): Remove children.
9383 Add taskgroup_queue.
9384 (struct gomp_team): Change task_queue type to a priority queue.
9385 (splay_compare): Define inline.
9386 (priority_queue_offset): New.
9387 (priority_node_to_task): New.
9388 (task_to_priority_node): New.
9389 * oacc-mem.c: Do not include splay-tree.h.
9390 * priority_queue.c: New file.
9391 * priority_queue.h: New file.
9392 * splay-tree.c: Do not include splay-tree.h.
9393 (splay_tree_foreach_internal): New.
9394 (splay_tree_foreach): New.
9395 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9396 (splay_tree_callback): Define typedef.
9397 * target.c (splay_compare): Move to libgomp.h.
9398 (GOMP_target): Don't adjust *thr in any way around running offloaded
9399 task.
9400 (GOMP_target_ext): Likewise. Handle target nowait.
9401 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9402 return value from gomp_create_target_task, if false, fallthrough
9403 as if no dependencies exist.
9404 (gomp_target_task_fn): Change return type to bool, return true
9405 if the task should have another part scheduled later. Handle
9406 target nowait.
9407 (gomp_load_plugin_for_device): Initialize async_run.
9408 * task.c (gomp_init_task): Initialize children_queue.
9409 (gomp_clear_parent_in_list): New.
9410 (gomp_clear_parent_in_tree): New.
9411 (gomp_clear_parent): Handle priorities.
9412 (GOMP_task): Likewise.
9413 (priority_queue_move_task_first,
9414 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9415 New functions.
9416 (gomp_create_target_task): Use priority queues. Change return type
9417 to bool, add state argument, return false if for async
9418 {{enter,exit} data,update} constructs no dependencies need to be
9419 waited for, handle target nowait. Set task->fn to NULL instead of
9420 gomp_target_task_fn.
9421 (verify_children_queue): Remove.
9422 (priority_list_upgrade_task): New.
9423 (priority_queue_upgrade_task): New.
9424 (verify_task_queue): Remove.
9425 (priority_list_downgrade_task): New.
9426 (priority_queue_downgrade_task): New.
9427 (gomp_task_run_pre): Use priority queues.
9428 Abstract code out to priority_queue_downgrade_task.
9429 (gomp_task_run_post_handle_dependers): Use priority queues.
9430 (gomp_task_run_post_remove_parent): Likewise.
9431 (gomp_task_run_post_remove_taskgroup): Likewise.
9432 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
9433 tasks specially.
9434 (GOMP_taskwait): Likewise.
9435 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
9436 priority-queue_upgrade_task.
9437 (GOMP_taskgroup_start): Use priority queues.
9438 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
9439 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
9440 barrier.
9441 * taskloop.c (GOMP_taskloop): Handle priorities.
9442 * team.c (gomp_new_team): Call priority_queue_init.
9443 (free_team): Call priority_queue_free.
9444 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9445 team created for target nowait in implicit parallel region.
9446 (gomp_team_start): For nested check, test thr->ts.level instead of
9447 thr->ts.team != NULL.
9448 * testsuite/libgomp.c/doacross-3.c: New test.
9449 * testsuite/libgomp.c/ordered-5.c: New test.
9450 * testsuite/libgomp.c/priority.c: New test.
9451 * testsuite/libgomp.c/target-31.c: New test.
9452 * testsuite/libgomp.c/target-32.c: New test.
9453 * testsuite/libgomp.c/target-33.c: New test.
9454 * testsuite/libgomp.c/target-34.c: New test.
9455
9456 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9457
9458 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9459
9460 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9461 loop is sequential.
9462
9463 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9464
9465 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9466 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9467
9468 2015-11-12 James Norris <jnorris@codesourcery.com>
9469 Joseph Myers <joseph@codesourcery.com>
9470
9471 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9472 * oacc-parallel.c (GOACC_declare): New function.
9473 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9474 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9475 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9476 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9477 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9478
9479 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
9480
9481 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9482
9483 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
9484
9485 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9486 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9487
9488 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9489
9490 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9491 inadvertent commit.
9492
9493 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9494
9495 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9496 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9497 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9498 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9499 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9500
9501 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
9502
9503 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9504 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9505
9506 2015-11-05 Jakub Jelinek <jakub@redhat.com>
9507 Ilya Verbin <ilya.verbin@intel.com>
9508
9509 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9510 GOMP_loop_nonmonotonic_dynamic_start,
9511 GOMP_loop_nonmonotonic_guided_next,
9512 GOMP_loop_nonmonotonic_guided_start,
9513 GOMP_loop_ull_nonmonotonic_dynamic_next,
9514 GOMP_loop_ull_nonmonotonic_dynamic_start,
9515 GOMP_loop_ull_nonmonotonic_guided_next,
9516 GOMP_loop_ull_nonmonotonic_guided_start,
9517 GOMP_parallel_loop_nonmonotonic_dynamic,
9518 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9519 (GOMP_target_41): Renamed to ...
9520 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9521 arguments.
9522 (GOMP_target_data_41): Renamed to ...
9523 (GOMP_target_data_ext): ... this.
9524 (GOMP_target_update_41): Renamed to ...
9525 (GOMP_target_update_ext): ... this.
9526 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9527 GOMP_target_data_ext and GOMP_target_update_ext instead of
9528 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9529 Export GOMP_loop_nonmonotonic_dynamic_next,
9530 GOMP_loop_nonmonotonic_dynamic_start,
9531 GOMP_loop_nonmonotonic_guided_next,
9532 GOMP_loop_nonmonotonic_guided_start,
9533 GOMP_loop_ull_nonmonotonic_dynamic_next,
9534 GOMP_loop_ull_nonmonotonic_dynamic_start,
9535 GOMP_loop_ull_nonmonotonic_guided_next,
9536 GOMP_loop_ull_nonmonotonic_guided_start,
9537 GOMP_parallel_loop_nonmonotonic_dynamic and
9538 GOMP_parallel_loop_nonmonotonic_guided.
9539 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9540 GOMP_parallel_loop_nonmonotonic_guided,
9541 GOMP_loop_nonmonotonic_dynamic_start,
9542 GOMP_loop_nonmonotonic_guided_start,
9543 GOMP_loop_nonmonotonic_dynamic_next,
9544 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9545 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9546 GOMP_loop_ull_nonmonotonic_guided_start,
9547 GOMP_loop_ull_nonmonotonic_dynamic_next,
9548 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9549 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9550 functions.
9551 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
9552 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9553 Use gomp_map_val function.
9554 (gomp_target_fallback_firstprivate): New static function.
9555 (GOMP_target_41): Renamed to ...
9556 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9557 arguments. Move firstprivate fallback handling into a new
9558 function.
9559 (GOMP_target_data_41): Renamed to ...
9560 (GOMP_target_data_ext): ... this.
9561 (GOMP_target_update_41): Renamed to ...
9562 (GOMP_target_update_ext): ... this.
9563 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9564 gomp_map_0len_lookup instead of gomp_map_lookup.
9565 (omp_target_is_present): Use gomp_map_0len_lookup instead of
9566 gomp_map_lookup.
9567 * testsuite/libgomp.c/target-28.c: Likewise.
9568 * testsuite/libgomp.c/monotonic-1.c: New test.
9569 * testsuite/libgomp.c/monotonic-2.c: New test.
9570 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9571 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9572 * testsuite/libgomp.c/pr66199-5.c: New test.
9573 * testsuite/libgomp.c/pr66199-6.c: New test.
9574 * testsuite/libgomp.c/pr66199-7.c: New test.
9575 * testsuite/libgomp.c/pr66199-8.c: New test.
9576 * testsuite/libgomp.c/pr66199-9.c: New test.
9577 * testsuite/libgomp.c/reduction-11.c: New test.
9578 * testsuite/libgomp.c/reduction-12.c: New test.
9579 * testsuite/libgomp.c/reduction-13.c: New test.
9580 * testsuite/libgomp.c/reduction-14.c: New test.
9581 * testsuite/libgomp.c/reduction-15.c: New test.
9582 * testsuite/libgomp.c/target-12.c (main): Adjust for
9583 omp_target_is_present change for one-past-last element.
9584 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9585 the same var is both mapped and privatized.
9586 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9587 handling of zero-length array sections.
9588 * testsuite/libgomp.c/target-28.c: New test.
9589 * testsuite/libgomp.c/target-29.c: New test.
9590 * testsuite/libgomp.c/target-30.c: New test.
9591 * testsuite/libgomp.c/target-teams-1.c: New test.
9592 * testsuite/libgomp.c++/member-6.C: New test.
9593 * testsuite/libgomp.c++/member-7.C: New test.
9594 * testsuite/libgomp.c++/monotonic-1.C: New test.
9595 * testsuite/libgomp.c++/monotonic-2.C: New test.
9596 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9597 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9598 * testsuite/libgomp.c++/pr66199-3.C: New test.
9599 * testsuite/libgomp.c++/pr66199-4.C: New test.
9600 * testsuite/libgomp.c++/pr66199-5.C: New test.
9601 * testsuite/libgomp.c++/pr66199-6.C: New test.
9602 * testsuite/libgomp.c++/pr66199-7.C: New test.
9603 * testsuite/libgomp.c++/pr66199-8.C: New test.
9604 * testsuite/libgomp.c++/pr66199-9.C: New test.
9605 * testsuite/libgomp.c++/reduction-11.C: New test.
9606 * testsuite/libgomp.c++/reduction-12.C: New test.
9607 * testsuite/libgomp.c++/target-13.C: New test.
9608 * testsuite/libgomp.c++/target-14.C: New test.
9609 * testsuite/libgomp.c++/target-15.C: New test.
9610 * testsuite/libgomp.c++/target-16.C: New test.
9611 * testsuite/libgomp.c++/target-17.C: New test.
9612 * testsuite/libgomp.c++/target-18.C: New test.
9613 * testsuite/libgomp.c++/target-19.C: New test.
9614
9615 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9616
9617 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9618 and reduction copy.
9619 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9620 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9621 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9622 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9623 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9624 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9625 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9626 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9627 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9628 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9629 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9630 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9631 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9632 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9633
9634 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9635
9636 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9637 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9638 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9639 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9640 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9641 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9642 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9643 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9644
9645 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
9646
9647 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9648 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9649 (GOMP_OFFLOAD_openacc_parallel): Likewise.
9650 * oacc-host.c (host_openacc_exec): Likewise.
9651 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9652
9653 2015-11-03 Julian Brown <julian@codesourcery.com>
9654 Thomas Schwinge <thomas@codesourcery.com>
9655
9656 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9657 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9658 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9659 Likewise.
9660 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9661 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9662
9663 2015-11-03 James Norris <jnorris@codesourcery.com>
9664
9665 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9666 file.
9667 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9668 Likewise.
9669 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9670 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9671 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9672 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9673 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9674
9675 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9676
9677 * openacc.h (enum acc_device_t): Reformat. Ensure layout
9678 compatibility.
9679 (enum acc_async_t): Reformat.
9680 (acc_on_device): Declare compatible with builtin and provide C++
9681 wrapper.
9682 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9683
9684 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
9685 Cesar Philippidis <cesar@codesourcery.com>
9686
9687 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9688 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9689 ... this. Add a description of the test at the top of the file.
9690 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9691 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9692 ... this. Add a description of the test at the top of the file.
9693
9694 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9695
9696 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9697 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9698 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9699 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9700 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9701 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9702
9703 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9704
9705 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9706 dimensions.
9707
9708 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9709
9710 PR testsuite/68063
9711 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9712
9713 2015-10-27 James Norris <jnorris@codesourcery.com>
9714
9715 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9716 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9717
9718 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
9719
9720 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9721 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9722
9723 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9724 acc_device_nvidia usage.
9725 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9726 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9727 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9728
9729 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9730 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9731
9732 PR libgomp/66518
9733 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9734
9735 PR libgomp/65437
9736 PR libgomp/66518
9737 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9738 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9739
9740 2015-10-23 Tom de Vries <tom@codesourcery.com>
9741
9742 PR testsuite/68063
9743 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9744
9745 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
9746
9747 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9748 vector_length.
9749 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9750
9751 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
9752 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
9753
9754 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9755 to 0 when mapnum is 0.
9756
9757 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
9758
9759 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9760 Cast to int from int32_t.
9761
9762 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9763 Aldy Hernandez <aldyh@redhat.com>
9764 Ilya Verbin <ilya.verbin@intel.com>
9765
9766 * config/linux/affinity.c (omp_get_place_num_procs,
9767 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9768 * config/linux/doacross.h: New file.
9769 * config/posix/affinity.c (omp_get_place_num_procs,
9770 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9771 * config/posix/doacross.h: New file.
9772 * env.c: Include gomp-constants.h.
9773 (struct gomp_task_icv): Rename run_sched_modifier to
9774 run_sched_chunk_size.
9775 (gomp_max_task_priority_var): New variable.
9776 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9777 (handle_omp_display_env): Change _OPENMP value from 201307 to
9778 201511. Print OMP_MAX_TASK_PRIORITY.
9779 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9780 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9781 chunk_size and run_sched_modifier to run_sched_chunk_size.
9782 (omp_get_max_task_priority, omp_get_initial_device,
9783 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9784 omp_get_partition_place_nums): New functions.
9785 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9786 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9787 to chunk_size.
9788 (omp_get_num_places_, omp_get_place_num_procs_,
9789 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9790 omp_get_place_proc_ids_8_, omp_get_place_num_,
9791 omp_get_partition_num_places_, omp_get_partition_place_nums_,
9792 omp_get_partition_place_nums_8_, omp_get_initial_device_,
9793 omp_get_max_task_priority_): New functions.
9794 * libgomp_g.h (GOMP_loop_doacross_static_start,
9795 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9796 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9797 GOMP_loop_ull_doacross_dynamic_start,
9798 GOMP_loop_ull_doacross_guided_start,
9799 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9800 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9801 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9802 GOMP_target_data_41, GOMP_target_update_41,
9803 GOMP_target_enter_exit_data): New prototypes.
9804 (GOMP_task): Add prototype argument.
9805 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9806 (struct gomp_doacross_work_share): New type.
9807 (struct gomp_work_share): Add doacross field.
9808 (struct gomp_task_icv): Rename run_sched_modifier to
9809 run_sched_chunk_size.
9810 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9811 GOMP_TASK_UNDEFERRED. Add comments.
9812 (struct gomp_task_depend_entry): Add comments.
9813 (struct gomp_task): Likewise.
9814 (struct gomp_taskgroup): Likewise.
9815 (struct gomp_target_task): New type.
9816 (struct gomp_team): Add comment.
9817 (gomp_get_place_proc_ids_8, gomp_doacross_init,
9818 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9819 gomp_create_target_task, gomp_target_task_fn): New prototypes.
9820 (struct target_var_desc): New type.
9821 (struct target_mem_desc): Adjust comment. Use struct
9822 target_var_desc instead of splay_tree_key for list.
9823 (REFCOUNT_INFINITY): Define.
9824 (struct splay_tree_key_s): Remove copy_from field.
9825 (struct gomp_device_descr): Add dev2dev_func field.
9826 (enum gomp_map_vars_kind): New enum.
9827 (gomp_map_vars): Add one argument.
9828 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9829 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9830 omp_get_place_num_procs, omp_get_place_num_procs_,
9831 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9832 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9833 omp_get_place_num_, omp_get_partition_num_places,
9834 omp_get_partition_num_places_, omp_get_partition_place_nums,
9835 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9836 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9837 omp_target_free, omp_target_is_present, omp_target_memcpy,
9838 omp_target_memcpy_rect, omp_target_associate_ptr and
9839 omp_target_disassociate_ptr.
9840 (GOMP_4.0.2): Renamed to ...
9841 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
9842 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9843 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9844 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9845 GOMP_loop_doacross_static_start, GOMP_doacross_post,
9846 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9847 GOMP_loop_ull_doacross_guided_start,
9848 GOMP_loop_ull_doacross_runtime_start,
9849 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9850 GOMP_doacross_ull_wait.
9851 * libgomp.texi: Document omp_get_max_task_priority.
9852 Rename modifier argument to chunk_size for omp_set_schedule and
9853 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
9854 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9855 to run_sched_chunk_size renaming.
9856 (GOMP_loop_ordered_runtime_start): Likewise.
9857 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9858 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9859 GOMP_parallel_loop_runtime_start): New functions.
9860 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9861 to run_sched_chunk_size renaming.
9862 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9863 GOMP_loop_doacross_guided_start): New functions or aliases.
9864 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9865 run_sched_modifier to run_sched_chunk_size renaming.
9866 (GOMP_loop_ull_ordered_runtime_start): Likewise.
9867 (gomp_loop_ull_doacross_static_start,
9868 gomp_loop_ull_doacross_dynamic_start,
9869 gomp_loop_ull_doacross_guided_start,
9870 GOMP_loop_ull_doacross_runtime_start): New functions.
9871 (GOMP_loop_ull_doacross_static_start,
9872 GOMP_loop_ull_doacross_dynamic_start,
9873 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9874 * oacc-mem.c (acc_map_data, present_create_copy,
9875 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9876 to gomp_map_vars.
9877 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9878 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9879 instead of false to gomp_map_vars.
9880 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
9881 * omp.h.in (omp_lock_hint_t): New type.
9882 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9883 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9884 omp_get_place_num, omp_get_partition_num_places,
9885 omp_get_partition_place_nums, omp_get_initial_device,
9886 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9887 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9888 omp_target_associate_ptr, omp_target_disassociate_ptr): New
9889 prototypes.
9890 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9891 (omp_lock_hint_none, omp_lock_hint_uncontended,
9892 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9893 omp_lock_hint_speculative): New parameters.
9894 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9895 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9896 omp_get_place_num, omp_get_partition_num_places,
9897 omp_get_partition_place_nums, omp_get_initial_device,
9898 omp_get_max_task_priority): New interfaces.
9899 (omp_set_schedule, omp_get_schedule): Rename modifier argument
9900 to chunk_size.
9901 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9902 (omp_lock_hint_none, omp_lock_hint_uncontended,
9903 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9904 omp_lock_hint_speculative): New parameters.
9905 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9906 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9907 omp_get_place_num, omp_get_partition_num_places,
9908 omp_get_partition_place_nums, omp_get_initial_device,
9909 omp_get_max_task_priority): New functions and subroutines.
9910 * ordered.c: Include stdarg.h and string.h.
9911 (MAX_COLLAPSED_BITS): Define.
9912 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9913 gomp_doacross_ull_init, GOMP_doacross_ull_post,
9914 GOMP_doacross_ull_wait): New functions.
9915 * target.c: Include errno.h.
9916 (resolve_device): If device is not initialized, call
9917 gomp_init_device on it.
9918 (gomp_map_lookup): New function.
9919 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9920 Don't bump refcount if REFCOUNT_INFINITY. Handle
9921 GOMP_MAP_ALWAYS_TO_P.
9922 (get_kind): Rename is_openacc argument to short_mapkind.
9923 (gomp_map_pointer): Use gomp_map_lookup.
9924 (gomp_map_fields_existing): New function.
9925 (gomp_map_vars): Rename is_openacc argument to short_mapkind
9926 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
9927 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9928 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9929 Adjust for tgt->list changed type and copy_from living in there.
9930 (gomp_copy_from_async): Adjust for tgt->list changed type and
9931 copy_from living in there.
9932 (gomp_unmap_vars): Likewise.
9933 (gomp_update): Likewise. Rename is_openacc argument to
9934 short_mapkind. Don't fail if object is not mapped.
9935 (gomp_load_image_to_device): Initialize refcount to
9936 REFCOUNT_INFINITY.
9937 (gomp_target_fallback): New function.
9938 (gomp_get_target_fn_addr): Likewise.
9939 (GOMP_target): Adjust gomp_map_vars caller, use
9940 gomp_get_target_fn_addr and gomp_target_fallback.
9941 (GOMP_target_41): New function.
9942 (gomp_target_data_fallback): New function.
9943 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9944 (GOMP_target_data_41): New function.
9945 (GOMP_target_update): Adjust gomp_update caller.
9946 (GOMP_target_update_41): New function.
9947 (gomp_exit_data, GOMP_target_enter_exit_data,
9948 gomp_target_task_fn, omp_target_alloc, omp_target_free,
9949 omp_target_is_present, omp_target_memcpy,
9950 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9951 omp_target_associate_ptr, omp_target_disassociate_ptr,
9952 gomp_load_plugin_for_device): New functions.
9953 * task.c: Include gomp-constants.h. Include taskloop.c
9954 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9955 (gomp_task_handle_depend): New function.
9956 (GOMP_task): Use it. Add priority argument. Use
9957 gomp-constant.h constants instead of hardcoded numbers.
9958 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9959 (gomp_create_target_task): New function.
9960 (verify_children_queue, verify_taskgroup_queue,
9961 verify_task_queue): New functions.
9962 (gomp_task_run_pre): Call verify_*_queue functions.
9963 If an upcoming tied task is about to leave the sibling or
9964 taskgroup queues in an invalid state, adjust appropriately.
9965 Remove taskgroup argument. Add comments.
9966 (gomp_task_run_post_handle_dependers): Add comments.
9967 (gomp_task_run_post_remove_parent): Likewise.
9968 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9969 (GOMP_taskwait): Likewise. Add comments.
9970 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9971 problem such that the first non parent_depends_on task does not
9972 end up at the end of the children queue.
9973 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9974 GOMP_TASK_UNDEFERRED.
9975 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9976 * taskloop.c: New file.
9977 * testsuite/lib/libgomp.exp
9978 (check_effective_target_offload_device_nonshared_as): New proc.
9979 * testsuite/libgomp.c/affinity-2.c: New test.
9980 * testsuite/libgomp.c/doacross-1.c: New test.
9981 * testsuite/libgomp.c/doacross-2.c: New test.
9982 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9983 Add map clause to target.
9984 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9985 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9986 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9987 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9988 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9989 Likewise.
9990 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9991 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9992 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9993 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9994 not defined. Use those where needed.
9995 * testsuite/libgomp.c/for-4.c: New test.
9996 * testsuite/libgomp.c/for-5.c: New test.
9997 * testsuite/libgomp.c/for-6.c: New test.
9998 * testsuite/libgomp.c/linear-1.c: New test.
9999 * testsuite/libgomp.c/ordered-4.c: New test.
10000 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10001 only allowed on the loop iterator.
10002 * testsuite/libgomp.c/pr66199-3.c: New test.
10003 * testsuite/libgomp.c/pr66199-4.c: New test.
10004 * testsuite/libgomp.c/reduction-7.c: New test.
10005 * testsuite/libgomp.c/reduction-8.c: New test.
10006 * testsuite/libgomp.c/reduction-9.c: New test.
10007 * testsuite/libgomp.c/reduction-10.c: New test.
10008 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10009 map(tofrom:s).
10010 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10011 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10012 * testsuite/libgomp.c/target-11.c: New test.
10013 * testsuite/libgomp.c/target-12.c: New test.
10014 * testsuite/libgomp.c/target-13.c: New test.
10015 * testsuite/libgomp.c/target-14.c: New test.
10016 * testsuite/libgomp.c/target-15.c: New test.
10017 * testsuite/libgomp.c/target-16.c: New test.
10018 * testsuite/libgomp.c/target-17.c: New test.
10019 * testsuite/libgomp.c/target-18.c: New test.
10020 * testsuite/libgomp.c/target-19.c: New test.
10021 * testsuite/libgomp.c/target-20.c: New test.
10022 * testsuite/libgomp.c/target-21.c: New test.
10023 * testsuite/libgomp.c/target-22.c: New test.
10024 * testsuite/libgomp.c/target-23.c: New test.
10025 * testsuite/libgomp.c/target-24.c: New test.
10026 * testsuite/libgomp.c/target-25.c: New test.
10027 * testsuite/libgomp.c/target-26.c: New test.
10028 * testsuite/libgomp.c/target-27.c: New test.
10029 * testsuite/libgomp.c/taskloop-1.c: New test.
10030 * testsuite/libgomp.c/taskloop-2.c: New test.
10031 * testsuite/libgomp.c/taskloop-3.c: New test.
10032 * testsuite/libgomp.c/taskloop-4.c: New test.
10033 * testsuite/libgomp.c++/ctor-13.C: New test.
10034 * testsuite/libgomp.c++/doacross-1.C: New test.
10035 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10036 Replace offload_device with offload_device_nonshared_as.
10037 * testsuite/libgomp.c++/for-12.C: New test.
10038 * testsuite/libgomp.c++/for-13.C: New test.
10039 * testsuite/libgomp.c++/for-14.C: New test.
10040 * testsuite/libgomp.c++/linear-1.C: New test.
10041 * testsuite/libgomp.c++/member-1.C: New test.
10042 * testsuite/libgomp.c++/member-2.C: New test.
10043 * testsuite/libgomp.c++/member-3.C: New test.
10044 * testsuite/libgomp.c++/member-4.C: New test.
10045 * testsuite/libgomp.c++/member-5.C: New test.
10046 * testsuite/libgomp.c++/ordered-1.C: New test.
10047 * testsuite/libgomp.c++/reduction-5.C: New test.
10048 * testsuite/libgomp.c++/reduction-6.C: New test.
10049 * testsuite/libgomp.c++/reduction-7.C: New test.
10050 * testsuite/libgomp.c++/reduction-8.C: New test.
10051 * testsuite/libgomp.c++/reduction-9.C: New test.
10052 * testsuite/libgomp.c++/reduction-10.C: New test.
10053 * testsuite/libgomp.c++/reference-1.C: New test.
10054 * testsuite/libgomp.c++/simd14.C: New test.
10055 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10056 * testsuite/libgomp.c++/target-5.C: New test.
10057 * testsuite/libgomp.c++/target-6.C: New test.
10058 * testsuite/libgomp.c++/target-7.C: New test.
10059 * testsuite/libgomp.c++/target-8.C: New test.
10060 * testsuite/libgomp.c++/target-9.C: New test.
10061 * testsuite/libgomp.c++/target-10.C: New test.
10062 * testsuite/libgomp.c++/target-11.C: New test.
10063 * testsuite/libgomp.c++/target-12.C: New test.
10064 * testsuite/libgomp.c++/taskloop-1.C: New test.
10065 * testsuite/libgomp.c++/taskloop-2.C: New test.
10066 * testsuite/libgomp.c++/taskloop-3.C: New test.
10067 * testsuite/libgomp.c++/taskloop-4.C: New test.
10068 * testsuite/libgomp.c++/taskloop-5.C: New test.
10069 * testsuite/libgomp.c++/taskloop-6.C: New test.
10070 * testsuite/libgomp.c++/taskloop-7.C: New test.
10071 * testsuite/libgomp.c++/taskloop-8.C: New test.
10072 * testsuite/libgomp.c++/taskloop-9.C: New test.
10073 * testsuite/libgomp.fortran/affinity1.f90: New test.
10074 * testsuite/libgomp.fortran/affinity2.f90: New test.
10075
10076 2015-10-13 Tom de Vries <tom@codesourcery.com>
10077
10078 PR tree-optimization/67476
10079 * testsuite/libgomp.c/autopar-3.c: New test.
10080 * testsuite/libgomp.c/autopar-4.c: New test.
10081 * testsuite/libgomp.c/autopar-5.c: New test.
10082 * testsuite/libgomp.c/autopar-6.c: New test.
10083 * testsuite/libgomp.c/autopar-7.c: New test.
10084 * testsuite/libgomp.c/autopar-8.c: New test.
10085
10086 2015-10-12 James Norris <jnorris@codesourcery.com>
10087
10088 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10089 initializer.
10090
10091 2015-10-09 David Malcolm <dmalcolm@redhat.com>
10092
10093 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10094 using load_gcc_lib.
10095
10096 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10097
10098 * oacc-ptx.h: Remove file, moving its content into...
10099 * config/nvptx/fortran.c: ... here...
10100 * config/nvptx/oacc-init.c: ..., here...
10101 * config/nvptx/oacc-parallel.c: ..., and here.
10102 * config/nvptx/openacc.f90: New file.
10103 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10104 (link_ptx): Don't link in predefined bits of PTX code.
10105
10106 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10107 Bernd Schmidt <bernds@codesourcery.com>
10108
10109 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10110 (struct targ_ptx_obj): New.
10111 (nvptx_tdata): Move earlier, change data format.
10112 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
10113 objects.
10114 (GOMP_OFFLOAD_load_image): Adjust.
10115
10116 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10117
10118 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10119 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10122 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10123 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10124 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10125 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10126 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10127 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10128 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10129 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10130 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10131 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10132 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10133 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10134 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10135 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10136 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10137 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10138 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10139 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10140 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10141 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10142 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10143 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10144 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10145 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10146 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10147 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10148 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10149 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10150 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10151 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10152 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10153 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10154 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10155 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10156 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10157 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10158 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10159 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10160 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10161 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10162 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10163 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10164 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10167 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10168 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10169 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10170 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10171 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10172 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10173 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10174 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10175 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10176 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10177 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10178 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10179 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10180 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10181
10182 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10183
10184 * oacc-init.c (acc_on_device): Force optimization level.
10185
10186 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10187
10188 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10189 (cuda_errlist): Delete.
10190 (cuda_error): Reimplement.
10191
10192 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10193
10194 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10195 array.
10196 * libgomp.map (GOACC_parallel_keyed): New.
10197 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
10198 all callers.
10199 (GOACC_parallel_keyed): New interface. Lose geometry arguments
10200 and take keyed varargs list. Adjust call to exec_func.
10201 (GOACC_parallel): Force host fallback.
10202 * libgomp_g.h (GOACC_parallel): Remove.
10203 (GOACC_parallel_keyed): Declare.
10204 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10205 (struct targ_gn_descriptor): Replace name field with launch field.
10206 (nvptx_exec): Lose separate geometry args, take array. Process
10207 dynamic dimensions and adjust.
10208 (struct nvptx_tdata): Replace fn_names field with fn_descs.
10209 (GOMP_OFFLOAD_load_image): Adjust for change in function table
10210 data.
10211 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10212 passing.
10213 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10214 passing.
10215
10216 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10217
10218 PR libgomp/67141
10219 * oacc-int.h (goacc_host_init): Add declaration.
10220 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10221 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10222
10223 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10224 Sebastian Pop <s.pop@samsung.com>
10225
10226 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10227 match o/p.
10228 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10229 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10230 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10231 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10232 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10233
10234 2015-09-03 Jakub Jelinek <jakub@redhat.com>
10235
10236 * configure.tgt: Add missing ;; in between nvptx and rtems
10237 snippets.
10238
10239 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10240
10241 * config/posix/pool.h (gomp_adjust_thread_attr): New.
10242 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10243 (gomp_thread_pool_reservoir): Add priority member.
10244 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10245 priority.
10246 (parse_thread_pools): Likewise.
10247 * team.c (gomp_team_start): Call configuration provided
10248 gomp_adjust_thread_attr(). Destroy thread attributes if
10249 necessary.
10250 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10251
10252 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10253
10254 * config/posix/pool.h: New.
10255 * config/rtems/pool.h: Likewise.
10256 * config/rtems/proc.c: Likewise.
10257 * libgomp.h (gomp_thread_destructor): Declare.
10258 * team.c: Include configuration provided "pool.h".
10259 (gomp_get_thread_pool): Define in configuration.
10260 (gomp_team_end): Call configuration defined
10261 gomp_release_thread_pool().
10262
10263 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10264
10265 * config/rtems/bar.c: New.
10266 * config/rtems/bar.h: Likewise.
10267 * config/rtems/mutex.c: Likewise.
10268 * config/rtems/mutex.h: Likewise.
10269 * config/rtems/sem.c: Likewise.
10270 * config/rtems/sem.h: Likewise.
10271 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10272 <sys/lock.h> header file.
10273 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10274 supported by Newlib.
10275 * configure: Regenerate.
10276
10277 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10278
10279 * team.c (gomp_new_thread_pool): Delete and move content to ...
10280 (gomp_get_thread_pool): ... new function. Allocate and
10281 initialize thread pool on demand.
10282 (get_last_team): Use gomp_get_thread_pool().
10283 (gomp_team_start): Delete thread pool initialization.
10284
10285 2015-09-03 Tom de Vries <tom@codesourcery.com>
10286
10287 PR tree-optimization/65637
10288 * testsuite/libgomp.c/autopar-2.c: New test.
10289
10290 2015-08-29 Tom de Vries <tom@codesourcery.com>
10291
10292 PR tree-optimization/46193
10293 * testsuite/libgomp.c/pr46193.c: New test.
10294
10295 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10296
10297 libgomp/
10298 * libgomp.map: Add 4.0.2 version.
10299 * target.c (offload_image_descr): Add version field.
10300 (gomp_load_image_to_device): Add version argument. Adjust plugin
10301 call. Improve load mismatch diagnostic.
10302 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10303 call.
10304 (GOMP_offload_regster): Make stub function, move bulk to ...
10305 (GOMP_offload_register_ver): ... here. Process version argument.
10306 (GOMP_offload_unregister): Make stub function, move bulk to ...
10307 (GOMP_offload_unregister_ver): ... here. Process version argument.
10308 (gomp_init_device): Process version field.
10309 (gomp_unload_device): Process version field.
10310 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10311 macros. Check plugin version.
10312 * libgomp.h (gomp_device_descr): Add version function field. Adjust
10313 loader and unloader types.
10314 * oacc-host.c: Include gomp-constants.h.
10315 (host_version): New.
10316 (host_load_image, host_unload_image): Adjust.
10317 (host_dispatch): Add host_version.
10318 * plugin/plugin-nvptx.c: Include gomp-constants.h.
10319 (GOMP_OFFLOAD_version): New.
10320 (GOMP_OFFLOAD_load_image): Add version arg and check it.
10321 (GOMP_OFFLOAD_unload_image): Likewise.
10322 * plugin/plugin-host.c: Include gomp-constants.h.
10323 (GOMP_OFFLOAD_version): New.
10324 (GOMP_OFFLOAD_load_image): Add version arg.
10325 (GOMP_OFFLOAD_unload_image): Likewise.
10326
10327 2015-08-24 Tom de Vries <tom@codesourcery.com>
10328
10329 PR tree-optimization/65468
10330 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10331
10332 2015-08-24 Tom de Vries <tom@codesourcery.com>
10333
10334 PR tree-optimization/65468
10335 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10336
10337 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
10338
10339 PR libgomp/66761
10340 PR libgomp/67303
10341 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10342 (gomp_iter_guided_next): Idem.
10343 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10344 (gomp_iter_ull_guided_next): Idem.
10345 * config/linux/wait.h (do_spin): Idem.
10346
10347 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10348
10349 * libgomp-plugin.h (enum offload_target_type): Remove
10350 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10351 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10352 * openacc.h (enum acc_device_t): Likewise.
10353 * openacc_lib.h: Likewise.
10354 * oacc-init.c (name_of_acc_device_t): Don't handle it.
10355 (acc_on_device): Just use __builtin_acc_on_device.
10356 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10357 of acc_on_device builtin.
10358 * plugin/plugin-host.h: Remove file.
10359 * plugin/plugin-host.c: Likewise, but salvage some content into...
10360 * oacc-host.c: ... this file.
10361 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10362 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10363 * Makefile.in: Regenerate.
10364 * configure: Likewise.
10365 * testsuite/lib/libgomp.exp
10366 (check_effective_target_openacc_host_nonshm_selected): Remove.
10367 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10368 ACC_DEVICE_TYPE=host_nonshm.
10369 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10370 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10371 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10372 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10373 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10374 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10375
10376 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10377 Jakub Jelinek <jakub@redhat.com>
10378
10379 * config/nvptx/affinity.c: New file.
10380 * config/nvptx/alloc.c: Likewise.
10381 * config/nvptx/bar.c: Likewise.
10382 * config/nvptx/barrier.c: Likewise.
10383 * config/nvptx/critical.c: Likewise.
10384 * config/nvptx/env.c: Likewise.
10385 * config/nvptx/error.c: Likewise.
10386 * config/nvptx/fortran.c: Likewise.
10387 * config/nvptx/iter.c: Likewise.
10388 * config/nvptx/iter_ull.c: Likewise.
10389 * config/nvptx/libgomp-plugin.c: Likewise.
10390 * config/nvptx/lock.c: Likewise.
10391 * config/nvptx/loop.c: Likewise.
10392 * config/nvptx/loop_ull.c: Likewise.
10393 * config/nvptx/mutex.c: Likewise.
10394 * config/nvptx/oacc-async.c: Likewise.
10395 * config/nvptx/oacc-cuda.c: Likewise.
10396 * config/nvptx/oacc-host.c: Likewise.
10397 * config/nvptx/oacc-init.c: Likewise.
10398 * config/nvptx/oacc-mem.c: Likewise.
10399 * config/nvptx/oacc-parallel.c: Likewise.
10400 * config/nvptx/oacc-plugin.c: Likewise.
10401 * config/nvptx/omp-lock.h: Likewise.
10402 * config/nvptx/ordered.c: Likewise.
10403 * config/nvptx/parallel.c: Likewise.
10404 * config/nvptx/proc.c: Likewise.
10405 * config/nvptx/ptrlock.c: Likewise.
10406 * config/nvptx/sections.c: Likewise.
10407 * config/nvptx/sem.c: Likewise.
10408 * config/nvptx/single.c: Likewise.
10409 * config/nvptx/splay-tree.c: Likewise.
10410 * config/nvptx/target.c: Likewise.
10411 * config/nvptx/task.c: Likewise.
10412 * config/nvptx/team.c: Likewise.
10413 * config/nvptx/time.c: Likewise.
10414 * config/nvptx/work.c: Likewise.
10415 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10416 * configure: Regenerate.
10417 * configure.tgt (config_path): Set to "nvptx" for target
10418 nvptx*-*-*.
10419
10420 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10421
10422 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10423
10424 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
10425
10426 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10427 (cuda_errlist): Constify.
10428 (errmsg): Move into ...
10429 (cuda_error): ... here. Make smaller.
10430 (_XSTR, _STR): Delete.
10431 (cuda_synames): Delete.
10432 (verify_device_library): Delete.
10433 (nvptx_init): Don't call it.
10434
10435 2015-07-28 Tom de Vries <tom@codesourcery.com>
10436
10437 * testsuite/libgomp.c/uns-outer-4.c: New test.
10438
10439 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10440
10441 * testsuite/libgomp.c/pr66714.c: New test.
10442
10443 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
10444
10445 PR libgomp/66950
10446 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10447 (fib_ref): New function.
10448 (fib): Correct corner cases in the recursion.
10449 (main): Replace the non-simd loop with fib_ref call.
10450 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10451 subroutine.
10452 (fibonacci): Lower the parameter N to 30. Correct accordingly check
10453 for the last array element value. Replace the non-simd loop with
10454 fib_ref call. Remove redundant b_ref array. Remove the comparison
10455 of the last array element with according Fibonacci sequence element.
10456 (fib): Correct corner cases in the recursion.
10457
10458 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10459
10460 * target.c (gomp_offload_image_to_device): Rename to ...
10461 (gomp_load_image_to_device): ... here.
10462 (GOMP_offload_register): Adjust call.
10463 (gomp_init_device): Likewise.
10464 (gomp_unload_image_from_device): New. Broken out of ...
10465 (GOMP_offload_unregister): ... here. Call it.
10466 (gomp_unload_device): New.
10467 * libgomp.h (gomp_unload_device): Declare.
10468 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10469 mem maps.
10470
10471 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
10472
10473 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10474 wait=-specific if.
10475 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10476 !=0 condition.
10477 (goacc_waits): Move !num_waits handling to ...
10478 (GOACC_wait): ... here, the only caller that might have zero waits.
10479
10480 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10481 (struct ptx_image_data): Move earlier, add fns field.
10482 (struct ptx_device): Add images and image_lock fields.
10483 (ptx_images, ptx_image_lock): Delete.
10484 (nvptx_open_device): Initialize images and image_lock fields.
10485 (nvptx_close_device): Destroy image_lock.
10486 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10487 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10488 fields.
10489
10490 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10491
10492 * target.c (GOMP_offload_register): Use int for device type arg.
10493 (GOMP_offload_unregister): Likewise.
10494
10495 * target.c (struct_offload_image_descr): Constify host_table.
10496 (gomp_offload_image_to_device): Likewise.
10497 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10498
10499 * libgomp.h (gomp_device_descr): Constify target data arguments.
10500 * target.c (struct offload_image_descr): Constify target_data.
10501 (gomp_offload_image_to_device): Likewise.
10502 (GOMP_offload_register): Likewise.
10503 (GOMP_offload_unregister): Likewise.
10504 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10505 GOMP_OFFLOAD_unload_image): Constify target data.
10506 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10507 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10508
10509 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10510
10511 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10512 Workaround driver library const error.
10513 (struct nvptx_tdata, nvptx_tdata_t): New.
10514 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10515 type.
10516
10517 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
10518
10519 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10520 of EPS parameter from integer to real.
10521 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10522 type of EPS parameter from integer to real.
10523
10524 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10525
10526 * team.c (get_last_team): New.
10527 (gomp_new_team): Recycle last non-nested team if possible.
10528 (gomp_team_end): Move team work share list free lock destruction
10529 to ...
10530 (free_team): ... here.
10531
10532 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
10533
10534 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10535 and ref from int to double. Replaced their comparison with
10536 an inequality of their difference and EPS.
10537 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10538 comparison of pri and a reference number with an inequality of their
10539 difference and EPS.
10540 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10541 the comparison of sum and sum_ref with an inequality of their
10542 difference and EPS.
10543 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10544 the comparison of pri and a reference number with an inequality of
10545 their difference and EPS.
10546
10547 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
10548
10549 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10550 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10551 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10552 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10553 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10554 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10555 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10556 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10557 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10558 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10559 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10560 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10561 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10562 variables.
10563 (vec_mult): Likewise. Add #pragma omp taskwait.
10564 (main): Adjust caller.
10565 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10566 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10567 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10568 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10569 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10570 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10571 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10572 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10573 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10574 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10575 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10576 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10577 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10578 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10579 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10580 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10581 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10582 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10583 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10584 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10585 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10586 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10587 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10588 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10589 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10590 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10591 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10592 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10593 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10594 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10595 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10596 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10597 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10598 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10599 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10600 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10601 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10602 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10603 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10604 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10605 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10606 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10607 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10608 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10609 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10610 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10611 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10612 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10613 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10614 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10615 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10616 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10617 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10618 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10619 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10620 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10621 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10622 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10623 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10624 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10625 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10626 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10627 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10628 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10629 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10630 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10631 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10632 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10633 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10634 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10635 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10636 (vec_mult): Add !$omp taskwait.
10637 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10638 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10639 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10640 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10641 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10642 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10643 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10644 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10645 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10646 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10647 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10648 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10649 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10650 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10651 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10652 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10653 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10654 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10655 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10656 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10657 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10658 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10659 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10660 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10661 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10662 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10663 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10664 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10665 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10666 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10667 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10668 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10669 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10670 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10671 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10672 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10673 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10674 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10675 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10676 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10677 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10678 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10679 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10680 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10681 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10682 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10683 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10684 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10685 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10686 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10687 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10688 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10689 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10690 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10691 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10692 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10693 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10694 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10695 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10696 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10697 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10698 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10699 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10700 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10701 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10702 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10703 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10704
10705 2015-07-10 Tom de Vries <tom@codesourcery.com>
10706
10707 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10708 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10709
10710 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
10711
10712 PR libgomp/65099
10713 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10714 in a 64-bit configuration.
10715 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10716 offloading testing if no such device is available.
10717 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10718 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10719
10720 2015-07-08 Tom de Vries <tom@codesourcery.com>
10721
10722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10723 second call to f.
10724 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10725
10726 2015-07-07 Tom de Vries <tom@codesourcery.com>
10727
10728 PR tree-optimization/66642
10729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10730 iteration count case.
10731 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10732 function, factor out of ...
10733 (main): ... here. Test low iteration count case.
10734
10735 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
10736
10737 * libgomp.h (gomp_thread_pool): Comment last_team field.
10738
10739 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
10740
10741 * testsuite/libgomp.c++/pr66702-1.C: Require
10742 vect_simd_clones effective target.
10743 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10744
10745 2015-06-30 Tom de Vries <tom@codesourcery.com>
10746
10747 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10748 already set. Use DEFAULT_CFLAGS in dg-runtest.
10749 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10750 "-O2".
10751
10752 2015-06-30 Tom de Vries <tom@codesourcery.com>
10753
10754 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10755 already set. Use DEFAULT_CFLAGS in dg-runtest.
10756 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10757 * testsuite/libgomp.c++/pr64824.C: Same.
10758 * testsuite/libgomp.c++/pr64868.C: Same.
10759 * testsuite/libgomp.c++/pr66199-1.C: Same.
10760 * testsuite/libgomp.c++/pr66199-2.C: Same.
10761 * testsuite/libgomp.c++/target-2.C: Same.
10762 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10763 -std=<standard> option.
10764 * testsuite/libgomp.c++/udr-11.C: Same.
10765 * testsuite/libgomp.c++/udr-12.C: Same.
10766 * testsuite/libgomp.c++/udr-13.C: Same.
10767 * testsuite/libgomp.c++/udr-14.C: Same.
10768 * testsuite/libgomp.c++/udr-15.C: Same.
10769 * testsuite/libgomp.c++/udr-16.C: Same.
10770 * testsuite/libgomp.c++/udr-17.C: Same.
10771 * testsuite/libgomp.c++/udr-18.C: Same.
10772 * testsuite/libgomp.c++/udr-19.C: Same.
10773 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10774 * testsuite/libgomp.c++/simd-1.C: Same.
10775 * testsuite/libgomp.c++/simd-2.C: Same.
10776 * testsuite/libgomp.c++/simd-3.C: Same.
10777 * testsuite/libgomp.c++/simd-4.C: Same.
10778 * testsuite/libgomp.c++/simd-5.C: Same.
10779 * testsuite/libgomp.c++/simd-6.C: Same.
10780 * testsuite/libgomp.c++/simd-7.C: Same.
10781 * testsuite/libgomp.c++/simd-8.C: Same.
10782 * testsuite/libgomp.c++/simd-9.C: Same.
10783 * testsuite/libgomp.c++/simd10.C: Same.
10784 * testsuite/libgomp.c++/simd11.C: Same.
10785 * testsuite/libgomp.c++/simd12.C: Same.
10786 * testsuite/libgomp.c++/simd13.C: Same.
10787
10788 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10789
10790 PR middle-end/66702
10791 * testsuite/libgomp.c++/pr66702-1.C: New test.
10792 * testsuite/libgomp.c++/pr66702-2.C: New test.
10793
10794 2015-06-30 Tom de Vries <tom@codesourcery.com>
10795
10796 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10797 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10798 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10799 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10800
10801 2015-06-30 Tom de Vries <tom@codesourcery.com>
10802
10803 PR tree-optimization/66652
10804 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10805 using restrict pointers.
10806 (main): Add arguments to calls to f.
10807 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10808
10809 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
10810
10811 * configure.ac: Fix check for header <sys/sysctl.h>.
10812 * configure: Regenerate.
10813 * config.h.in: Likewise.
10814
10815 2015-06-23 Tom de Vries <tom@codesourcery.com>
10816
10817 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10818 abort.
10819 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10820
10821 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
10822
10823 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10824 acc_device_nvidia.
10825
10826 PR libgomp/66518
10827 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10828 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10829
10830 2015-06-15 Tom de Vries <tom@codesourcery.com>
10831
10832 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
10833 dg-additional-options for any remaining options.
10834 * testsuite/libgomp.c/atomic-2.c: Same.
10835 * testsuite/libgomp.c/atomic-4.c: Same.
10836 * testsuite/libgomp.c/atomic-5.c: Same.
10837 * testsuite/libgomp.c/atomic-6.c: Same.
10838 * testsuite/libgomp.c/autopar-1.c: Same.
10839 * testsuite/libgomp.c/copyin-1.c: Same.
10840 * testsuite/libgomp.c/copyin-2.c: Same.
10841 * testsuite/libgomp.c/copyin-3.c: Same.
10842 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10843 * testsuite/libgomp.c/nestedfn-5.c: Same.
10844 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10845 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10846 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10847 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10848 * testsuite/libgomp.c/pr32362-1.c: Same.
10849 * testsuite/libgomp.c/pr32362-2.c: Same.
10850 * testsuite/libgomp.c/pr32362-3.c: Same.
10851 * testsuite/libgomp.c/pr39591-1.c: Same.
10852 * testsuite/libgomp.c/pr39591-2.c: Same.
10853 * testsuite/libgomp.c/pr39591-3.c: Same.
10854 * testsuite/libgomp.c/pr58392.c: Same.
10855 * testsuite/libgomp.c/pr58756.c: Same.
10856 * testsuite/libgomp.c/simd-1.c: Same.
10857 * testsuite/libgomp.c/simd-10.c: Same.
10858 * testsuite/libgomp.c/simd-11.c: Same.
10859 * testsuite/libgomp.c/simd-12.c: Same.
10860 * testsuite/libgomp.c/simd-13.c: Same.
10861 * testsuite/libgomp.c/simd-14.c: Same.
10862 * testsuite/libgomp.c/simd-15.c: Same.
10863 * testsuite/libgomp.c/simd-2.c: Same.
10864 * testsuite/libgomp.c/simd-3.c: Same.
10865 * testsuite/libgomp.c/simd-4.c: Same.
10866 * testsuite/libgomp.c/simd-5.c: Same.
10867 * testsuite/libgomp.c/simd-6.c: Same.
10868 * testsuite/libgomp.c/simd-7.c: Same.
10869 * testsuite/libgomp.c/simd-8.c: Same.
10870 * testsuite/libgomp.c/simd-9.c: Same.
10871
10872 2015-06-15 Tom de Vries <tom@codesourcery.com>
10873
10874 * testsuite/libgomp.c/pr35625.c: Fix typo.
10875
10876 2015-06-15 Tom de Vries <tom@codesourcery.com>
10877
10878 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10879 in dg-options.
10880 * testsuite/libgomp.c/atomic-3.c: Same.
10881 * testsuite/libgomp.c/debug-1.c: Same.
10882 * testsuite/libgomp.c/nqueens-1.c: Same.
10883 * testsuite/libgomp.c/pr26171.c: Same.
10884 * testsuite/libgomp.c/pr48591.c: Same.
10885 * testsuite/libgomp.c/pr64824.c: Same.
10886 * testsuite/libgomp.c/pr64868.c: Same.
10887 * testsuite/libgomp.c/pr66133.c: Same.
10888 * testsuite/libgomp.c/pr66199-1.c: Same.
10889 * testsuite/libgomp.c/pr66199-2.c: Same.
10890 * testsuite/libgomp.c/target-8.c: Same.
10891
10892 2015-06-15 Tom de Vries <tom@codesourcery.com>
10893
10894 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10895 -std={gnu99,c99}.
10896 * testsuite/libgomp.c/for-1.c: Same.
10897 * testsuite/libgomp.c/for-2.c: Same.
10898 * testsuite/libgomp.c/for-3.c: Same.
10899 * testsuite/libgomp.c/pr35625.c: Same.
10900 * testsuite/libgomp.c/pr39154.c: Same.
10901 * testsuite/libgomp.c/simd-16.c: Same.
10902 * testsuite/libgomp.c/simd-17.c: Same.
10903
10904 2015-06-13 Tom de Vries <tom@codesourcery.com>
10905
10906 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10907
10908 2015-06-13 Tom de Vries <tom@codesourcery.com>
10909
10910 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10911 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10912 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10913 (N): Define.
10914 (main): Use N instead of hardcoded constants.
10915
10916 2015-06-05 Tom de Vries <tom@codesourcery.com>
10917
10918 merge from gomp4 branch:
10919 2015-05-28 Tom de Vries <tom@codesourcery.com>
10920
10921 PR tree-optimization/65443
10922 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10923 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10924 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10925
10926 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10927
10928 * testsuite/libgomp.graphite/bounds.c: Adjust for
10929 cleanup-tree-dump removal.
10930 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10931 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10932 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10933 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10934 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10935 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10936 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10937 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10938 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10939 * testsuite/libgomp.graphite/pr41118.c: Likewise.
10940
10941 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
10942
10943 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10944 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10945 (futex_wake) [!__x86_64__]: Ditto.
10946
10947 2015-05-28 Julian Brown <julian@codesourcery.com>
10948
10949 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10950 function comment. Only call gomp_fatal if new argument is true.
10951 (acc_dev_num_out_of_range): New function.
10952 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10953 acc_dev_num_out_of_range as appropriate.
10954 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10955 (acc_get_device_num, acc_set_device_num): Update calls to
10956 resolve_device.
10957 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10958 output.
10959
10960 2015-05-28 Julian Brown <julian@codesourcery.com>
10961
10962 PR libgomp/65742
10963 * oacc-init.c (plugin/plugin-host.h): Include.
10964 (acc_on_device): Check whether we're in an offloaded region for
10965 host_nonshm
10966 plugin. Don't use __builtin_acc_on_device.
10967 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10968 nonshm_exec flag in thread-local data.
10969 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10970 data for host_nonshm plugin.
10971 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10972 for host_nonshm plugin.
10973 * plugin/plugin-host.h: New.
10974
10975 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10976
10977 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10978
10979 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10980
10981 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10982 Declare as int.
10983 (FUTEX_PRIVATE_FLAG): Remove L suffix.
10984 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10985 Declare as int.
10986
10987 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
10988
10989 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10990
10991 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
10992
10993 * target.c (gomp_map_pointer): New function abstracting out
10994 GOMP_MAP_POINTER handling.
10995 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10996 gomp_map_pointer().
10997
10998 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10999
11000 PR middle-end/66199
11001 * testsuite/libgomp.c/pr66199-1.c: New test.
11002 * testsuite/libgomp.c/pr66199-2.c: New test.
11003 * testsuite/libgomp.c++/pr66199-1.C: New test.
11004 * testsuite/libgomp.c++/pr66199-2.C: New test.
11005 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11006 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11007
11008 2015-05-19 Julian Brown <julian@codesourcery.com>
11009
11010 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11011 on cuInit failure.
11012
11013 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR middle-end/66133
11016 * testsuite/libgomp.c/pr66133.c: New test.
11017
11018 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11019
11020 * Makefile.in: Regenerated with automake-1.11.6.
11021 * aclocal.m4: Likewise.
11022 * config.h.in: Likewise.
11023 * configure: Likewise.
11024 * testsuite/Makefile.in: Likewise.
11025
11026 2015-05-08 Jason Merrill <jason@redhat.com>
11027
11028 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11029 _Complex.
11030
11031 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11032
11033 2015-05-06 Julian Brown <julian@codesourcery.com>
11034
11035 * oacc-init.c (acc_device_lock): Add explanatory comment.
11036 (resolve_device): Add comment about locking requirement.
11037 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11038 gomp_init_device and gomp_fini_device calls.
11039 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11040 (acc_get_device_num, acc_set_device_num): Add locking around
11041 resolve_device and gomp_init_device calls.
11042
11043 2015-05-06 Julian Brown <julian@codesourcery.com>
11044
11045 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11046 goacc_thread_lock on error paths.
11047 * oacc-mem.c (lookup_host): Remove locking from function. Note
11048 locking requirement for caller in function comment.
11049 (lookup_dev): Likewise.
11050 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11051 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11052 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11053 Add locking.
11054
11055 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
11056
11057 PR testsuite/65205
11058 PR libgomp/65993
11059 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11060 don't expect "0x" prefix for "%p" format specifier, don't expect
11061 "(nil)" for NULL pointer.
11062 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11063 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11064 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11065 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11066 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11067 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11068 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11069 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11070 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11071 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11072 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11073 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11074 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11075 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11076 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11077 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11078 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11079 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11080 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11081 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11082 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11083 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11084 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11087 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11088 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11089 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11090 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11091 accurately specify what we're looking for.
11092 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11093 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11094 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11095 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11096 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11097
11098 2015-04-30 James Norris <jnorris@codesourcery.com>
11099
11100 PR testsuite/65205
11101 * testsuite/lib/libgomp.exp
11102 (check_effective_target_openacc_host_selected)
11103 (check_effective_target_openacc_host_nonshm_selected): New
11104 procedures.
11105 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11106 dg-shouldfail.
11107 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11108 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11109 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11110 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11111 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11112 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11113 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11114 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11115 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11116 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11117 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11118 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11119 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11120 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11121 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11122 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11123 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11124 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11125 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11126 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11127 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11128 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11129 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11130 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11132 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11133 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11134 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11135 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11136 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11140 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11141 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11142 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11143 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11144 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11145 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11146 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11147 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11148 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11149 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11150
11151 2015-04-08 Julian Brown <julian@codesourcery.com>
11152
11153 * libgomp.h (target_mem_desc: Remove mem_map field.
11154 (acc_dispatch_t): Remove open_device_func, close_device_func,
11155 get_device_num_func, set_device_num_func, target_data members.
11156 Change create_thread_data_func argument to device number instead of
11157 generic pointer.
11158 * oacc-async.c (assert.h): Include.
11159 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11160 (acc_wait_all, acc_wait_all_async): Use current host thread's
11161 active device, not base_dev.
11162 * oacc-cuda.c (acc_get_current_cuda_device)
11163 (acc_get_current_cuda_context, acc_get_cuda_stream)
11164 (acc_set_cuda_stream): Likewise.
11165 * oacc-host.c (host_dispatch): Don't set open_device_func,
11166 close_device_func, get_device_num_func or set_device_num_func.
11167 * oacc-init.c (base_dev, init_key): Remove.
11168 (cached_base_dev): New.
11169 (name_of_acc_device_t): New.
11170 (acc_init_1): Initialise default-numbered device, not zeroth.
11171 (acc_shutdown_1): Close all devices of a given type.
11172 (goacc_destroy_thread): Don't use base_dev.
11173 (lazy_open, lazy_init, lazy_init_and_open): Remove.
11174 (goacc_attach_host_thread_to_device): New.
11175 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11176 (acc_get_num_devices): Don't use base_dev.
11177 (acc_set_device_type): Reimplement.
11178 (acc_get_device_type): Don't use base_dev.
11179 (acc_get_device_num): Tweak logic.
11180 (acc_set_device_num): Likewise.
11181 (acc_on_device): Use acc_get_device_type.
11182 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11183 (goacc_lazy_initialize): Reimplement with acc_init and
11184 goacc_attach_host_thread_to_device.
11185 * oacc-int.h (goacc_thread): Add base_dev field.
11186 (base_dev): Remove extern declaration.
11187 (goacc_attach_host_thread_to_device): Add prototype.
11188 * oacc-mem.c (acc_malloc): Use current thread's device instead of
11189 base_dev.
11190 (acc_free): Likewise.
11191 (acc_memcpy_to_device): Likewise.
11192 (acc_memcpy_from_device): Likewise.
11193 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11194 goacc_lazy_initialize (throughout).
11195 (GOACC_parallel): Use tgt_offset to locate target functions.
11196 * target.c (gomp_map_vars): Don't set tgt->mem_map.
11197 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11198 (gomp_load_plugin_for_device): Remove open_device, close_device,
11199 get_device_num, set_device_num openacc hook initialisation. Don't set
11200 openacc.target_data.
11201 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11202 (GOMP_OFFLOAD_openacc_close_device)
11203 (GOMP_OFFLOAD_openacc_get_device_num)
11204 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11205 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11206 to int.
11207 * plugin/plugin-nvptx.c (ptx_inited): Remove.
11208 (instantiated_devices, ptx_dev_lock): New.
11209 (struct ptx_image_data): New.
11210 (ptx_devices, ptx_images, ptx_image_lock): New.
11211 (fini_streams_for_device): Reorder cuStreamDestroy call.
11212 (nvptx_get_num_devices): Remove forward declaration.
11213 (nvptx_init): Change return type to bool.
11214 (nvptx_fini): Remove.
11215 (nvptx_attach_host_thread_to_device): New.
11216 (nvptx_open_device): Return struct ptx_device* instead of void*.
11217 (nvptx_close_device): Change argument type to struct ptx_device*,
11218 return type to void.
11219 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11220 (kernel_target_data, kernel_host_table): Remove static globals.
11221 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11222 (GOMP_OFFLOAD_init_device): Reimplement.
11223 (GOMP_OFFLOAD_fini_device): Likewise.
11224 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11225 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11226 (GOMP_OFFLOAD_host2dev): Use ORD argument.
11227 (GOMP_OFFLOAD_openacc_open_device)
11228 (GOMP_OFFLOAD_openacc_close_device)
11229 (GOMP_OFFLOAD_openacc_set_device_num)
11230 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11231 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11232 (device number).
11233
11234 testsuite/
11235 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11236
11237 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11238
11239 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11240 * libgomp.h (struct gomp_memory_mapping): Remove.
11241 (struct target_mem_desc): Change type of mem_map from
11242 gomp_memory_mapping * to splay_tree_s *.
11243 (struct gomp_device_descr): Remove register_image_func, get_table_func.
11244 Add load_image_func, unload_image_func.
11245 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11246 Remove offload_regions_registered.
11247 (gomp_init_tables): Remove.
11248 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11249 to splay_tree_s *.
11250 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11251 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11252 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11253 offload_regions_registered.
11254 Initialize load_image_func, unload_image_func, mem_map.root.
11255 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11256 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11257 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11258 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11259 gomp_memory_mapping *. Use dev's lock and splay_tree.
11260 (lookup_dev): Use dev's lock.
11261 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11262 (acc_is_present): Likewise.
11263 (acc_map_data): Likewise.
11264 (acc_unmap_data): Likewise. Use dev's lock.
11265 (present_create_copy): Likewise.
11266 (delete_copyout): Pass dev to lookup_host instead of mem_map.
11267 (update_dev_host): Likewise.
11268 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
11269 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11270 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11271 (GOMP_OFFLOAD_get_table): Remove
11272 (GOMP_OFFLOAD_load_image): New function.
11273 (GOMP_OFFLOAD_unload_image): New function.
11274 * target.c (register_lock): New mutex for offload image registration.
11275 (num_devices): Do not guard with PLUGIN_SUPPORT.
11276 (gomp_realloc_unlock): New static function.
11277 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
11278 before gomp_fatal.
11279 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11280 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
11281 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11282 mem_map's.
11283 (gomp_unmap_vars): Likewise.
11284 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
11285 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
11286 (gomp_offload_image_to_device): New static function.
11287 (GOMP_offload_register): Add mutex lock.
11288 Call gomp_offload_image_to_device for all initialized devices.
11289 Replace gomp_realloc with gomp_realloc_unlock.
11290 (GOMP_offload_unregister): New function.
11291 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
11292 get_table_func from the plugin with calls to init_device_func and
11293 gomp_offload_image_to_device.
11294 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11295 to splay_tree_s *.
11296 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
11297 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
11298 (GOMP_target_data): Do not call gomp_init_tables.
11299 (GOMP_target_update): Likewise. Remove argument from gomp_update.
11300 (gomp_load_plugin_for_device): Replace register_image and get_table
11301 with load_image and unload_image in DLSYM ().
11302 (gomp_register_images_for_device): Remove function.
11303 (gomp_target_init): Do not initialize current_device.mem_map.*,
11304 current_device.offload_regions_registered.
11305 Remove call to gomp_register_images_for_device.
11306 Do not free offload_images and num_offload_images.
11307
11308 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11309
11310 PR fortran/65597
11311 * testsuite/libgomp.fortran/pr65597.f90: New test.
11312
11313 2015-03-27 Tom de Vries <tom@codesourcery.com>
11314
11315 PR testsuite/65594
11316 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11317 (init, check): New function.
11318 (foo): Change return type to void.
11319 (main): Call init and check.
11320
11321 2015-03-27 Tom de Vries <tom@codesourcery.com>
11322
11323 PR testsuite/65594
11324 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11325 (foo): Use M for non-inner loops to scale down test-case.
11326
11327 2015-03-25 Kai Tietz <ktietz@redhat.com>
11328
11329 PR libgomp/64972
11330 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11331 (GOACC_data_start): Likewise.
11332 * target.c (gomp_map_vars): Likewise.
11333
11334 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
11335
11336 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11337 hppa*-*-hpux*.
11338
11339 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11340
11341 * testsuite/libgomp.c/target-10.c: New test.
11342 * testsuite/libgomp.c++/target-4.C: New test.
11343
11344 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11345
11346 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11347 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11348
11349 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
11350
11351 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11352 * configure.ac (*-*-rtems*): Assume Pthread is supported.
11353 (pthread.h): Check for this header file.
11354 * configure: Regenerate.
11355
11356 2015-02-25 Tom de Vries <tom@codesourcery.com>
11357
11358 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11359 (check_reduction_op, check_reduction_macro, max, min):
11360 Declare.
11361 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11362 function.
11363 (main): Use new functions.
11364
11365 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
11366
11367 * target.c (gomp_load_plugin_for_device): Use const char * instead of
11368 char * for variables holding dlerror return values.
11369 (DLSYM_OPT): Ditto.
11370
11371 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11372
11373 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11374
11375 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11376 Cesar Philippidis <cesar@codesourcery.com>
11377
11378 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11379 GOACC_ctaid, and GOACC_nctaid routines.
11380
11381 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11382
11383 PR c/64824
11384 * testsuite/libgomp.c/atomic-18.c: New test.
11385 * testsuite/libgomp.c++/atomic-16.C: New test.
11386
11387 2015-02-04 Jakub Jelinek <jakub@redhat.com>
11388
11389 PR c/64824
11390 PR c/64868
11391 * testsuite/libgomp.c/pr64824.c: New test.
11392 * testsuite/libgomp.c/pr64868.c: New test.
11393 * testsuite/libgomp.c++/pr64824.C: New test.
11394 * testsuite/libgomp.c++/pr64868.C: New test.
11395
11396 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
11397
11398 PR libgomp/64635
11399 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11400 Link with -lpthread.
11401 * config/aix/plugin-suffix.h: Delete.
11402
11403 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
11404
11405 PR libgomp/64635
11406 * configure.tgt (*-*-aix*): Use config_path "aix posix".
11407 (*-*-darwin*): Use config_path "bsd darwin posix".
11408 (*-*-hpux*): Use config_path "hpux posix".
11409 * target.c: Add include of plugin-suffix.h and use
11410 SONAME_SUFFIX macro.
11411 * config/aix/plugin-suffix.h: New file.
11412 * config/darwin/plugin-suffix.h: New file.
11413 * config/hpux/plugin-suffix.h: New file.
11414 * config/posix/plugin-suffix.h: New file.
11415
11416 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11417
11418 PR middle-end/64734
11419 * libgomp.c/pr64734.c: New test.
11420
11421 2015-01-23 Tom de Vries <tom@codesourcery.com>
11422
11423 PR libgomp/64672
11424 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11425
11426 2015-01-23 Tom de Vries <tom@codesourcery.com>
11427
11428 PR libgomp/64707
11429 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11430 dg-options.
11431
11432 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11433
11434 PR libgomp/64625
11435 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11436 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11437 formal parameter. Update all users.
11438 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11439 Document unused formal parameter.
11440
11441 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11442
11443 * oacc-parallel.c: Don't include <alloca.h>.
11444 (GOACC_parallel): Use gomp_alloca instead of alloca.
11445
11446 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
11447
11448 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11449
11450 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11451 James Norris <jnorris@codesourcery.com>
11452 Tom de Vries <tom@codesourcery.com>
11453 Julian Brown <julian@codesourcery.com>
11454 Cesar Philippidis <cesar@codesourcery.com>
11455 Nathan Sidwell <nathan@codesourcery.com>
11456 Tobias Burnus <burnus@net-b.de>
11457
11458 * Makefile.am (search_path): Add $(top_srcdir)/../include.
11459 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11460 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11461 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11462 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11463 Include $(top_srcdir)/plugin/Makefrag.am.
11464 (nodist_libsubinclude_HEADERS): Add openacc.h.
11465 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11466 openacc.f90, openacc.mod, openacc_kinds.mod.
11467 (omp_lib.mod): Generalize into...
11468 (%.mod): ... this new rule.
11469 (openacc_kinds.mod, openacc.mod): New rules.
11470 * plugin/configfrag.ac: New file.
11471 * configure.ac: Move plugin/offloading support into it. Include
11472 it. Instantiate testsuite/libgomp-test-support.pt.exp.
11473 * plugin/Makefrag.am: New file.
11474 * testsuite/Makefile.am (OFFLOAD_TARGETS)
11475 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11476 export.
11477 (libgomp-test-support.exp): New rule.
11478 (all-local): Depend on it.
11479 * Makefile.in: Regenerate.
11480 * testsuite/Makefile.in: Regenerate.
11481 * config.h.in: Likewise.
11482 * configure: Likewise.
11483 * configure.tgt: Harden shell syntax.
11484 * env.c: Include "oacc-int.h".
11485 (parse_acc_device_type): New function.
11486 (gomp_debug_var, goacc_device_type, goacc_device_num): New
11487 variables.
11488 (initialize_env): Initialize those. Call
11489 goacc_runtime_initialize.
11490 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11491 (gomp_fatal): Call gomp_vfatal.
11492 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11493 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11494 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11495 (splay_tree_node, splay_tree, splay_tree_key)
11496 (struct target_mem_desc, struct splay_tree_key_s)
11497 (struct gomp_memory_mapping, struct acc_dispatch_t)
11498 (struct gomp_device_descr, gomp_acc_insert_pointer)
11499 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11500 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11501 (gomp_free_memmap, gomp_fini_device): New declarations.
11502 (gomp_vdebug, gomp_debug): New macros.
11503 Include "splay-tree.h".
11504 * libgomp.map (OACC_2.0): New symbol version. Use for
11505 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11506 acc_set_device_type_h_, acc_get_device_type,
11507 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11508 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11509 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11510 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11511 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11512 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11513 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11514 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11515 acc_copyin_array_h_, acc_present_or_copyin,
11516 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11517 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11518 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11519 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11520 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11521 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11522 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11523 acc_update_device, acc_update_device_32_h_,
11524 acc_update_device_64_h_, acc_update_device_array_h_,
11525 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11526 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11527 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11528 acc_is_present_64_h_, acc_is_present_array_h_,
11529 acc_memcpy_to_device, acc_memcpy_from_device,
11530 acc_get_current_cuda_device, acc_get_current_cuda_context,
11531 acc_get_cuda_stream, acc_set_cuda_stream.
11532 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
11533 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11534 GOACC_update, GOACC_wait, GOACC_get_thread_num,
11535 GOACC_get_num_threads.
11536 (GOMP_PLUGIN_1.0): New symbol version. Use for
11537 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11538 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11539 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11540 GOMP_PLUGIN_acc_thread.
11541 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11542 environment variable.
11543 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11544 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11545 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11546 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11547 (splay_tree_remove): New declarations.
11548 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11549 (splay_tree_remove, splay_tree_lookup): Move into...
11550 * splay-tree.c: ... this new file.
11551 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11552 (splay_tree_node, splay_tree, splay_tree_key)
11553 (struct target_mem_desc, struct splay_tree_key_s)
11554 (struct gomp_device_descr): Don't declare.
11555 (num_devices_openmp): New variable.
11556 (gomp_get_num_devices ): Use it.
11557 (gomp_init_targets_once): New function.
11558 (gomp_get_num_devices ): Use it.
11559 (get_kind, gomp_copy_from_async, gomp_free_memmap)
11560 (gomp_fini_device, gomp_register_image_for_device): New functions.
11561 (gomp_map_vars): Add devaddrs parameter.
11562 (gomp_update): Add mm parameter.
11563 (gomp_init_device): Move most of it into...
11564 (gomp_init_tables): ... this new function.
11565 (gomp_register_images_for_device): Remove function.
11566 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11567 Make them hidden instead of static.
11568 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11569 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11570 (GOMP_target_end_data, GOMP_target_update)
11571 (gomp_load_plugin_for_device, gomp_target_init): Update for
11572 OpenACC changes.
11573 * oacc-async.c: New file.
11574 * oacc-cuda.c: Likewise.
11575 * oacc-host.c: Likewise.
11576 * oacc-init.c: Likewise.
11577 * oacc-int.h: Likewise.
11578 * oacc-mem.c: Likewise.
11579 * oacc-parallel.c: Likewise.
11580 * oacc-plugin.c: Likewise.
11581 * oacc-plugin.h: Likewise.
11582 * oacc-ptx.h: Likewise.
11583 * openacc.f90: Likewise.
11584 * openacc.h: Likewise.
11585 * openacc_lib.h: Likewise.
11586 * plugin/plugin-host.c: Likewise.
11587 * plugin/plugin-nvptx.c: Likewise.
11588 * libgomp-plugin.c: Likewise.
11589 * libgomp-plugin.h: Likewise.
11590 * libgomp_target.h: Remove file after merging content into the
11591 former file. Update all users.
11592 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11593 (offload_targets_s, offload_targets_s_openacc): New variables.
11594 (check_effective_target_openacc_nvidia_accel_present)
11595 (check_effective_target_openacc_nvidia_accel_selected): New
11596 procedures.
11597 (libgomp_init): Update for OpenACC changes.
11598 * testsuite/libgomp-test-support.exp.in: New file.
11599 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11600 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11601 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11602 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11603 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11604 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11605 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11606 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11607 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11608 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11609 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11612 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11613 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11614 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11615 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11616 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11617 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11618 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11619 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11620 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11621 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11622 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11623 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11624 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11625 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11626 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11627 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11628 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11629 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11630 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11631 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11632 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11633 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11634 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11635 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11636 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11637 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11638 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11639 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11640 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11641 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11642 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11643 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11644 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11645 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11646 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11647 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11648 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11649 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11650 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11651 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11652 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11653 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11654 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11655 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11656 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11657 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11658 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11659 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11660 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11661 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11662 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11663 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11664 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11665 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11666 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11667 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11668 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11669 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11670 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11671 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11672 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11673 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11674 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11677 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11678 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11679 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11680 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11681 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11682 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11683 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11684 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11685 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11686 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11687 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11688 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11689 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11690 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11691 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11692 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11693 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11694 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11695 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11696 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11697 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11698 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11699 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11700 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11701 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11702 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11703 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11704 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11705 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11706 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11707 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11708 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11709 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11710 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11711 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11712 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11713 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11714 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11715 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11716 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11717 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11718 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11719 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11720 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11721 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11722 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11723 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11724 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11725 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11726 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11727 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11728 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11729 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11730 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11731 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11732 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11733 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11734 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11735 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11736 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11738 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11739 Likewise.
11740 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11741 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11742 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11743 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11744 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11745 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11746 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11747 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11748 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11749 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11750 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11751 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11752 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11753 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11754 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11755 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11756 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11757 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11758 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11759 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11760 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11761 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11762 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11763 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11764 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11765 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11766 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11767 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11768 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11769 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11770 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11771 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11772 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11773 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11774 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11775 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11776 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11777 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11778 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11779 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11780 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11781 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11782 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11783 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11784 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11785 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11786 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11787 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11788 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11789 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11790 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11791 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11792 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11793 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11794 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11795 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11796 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11797 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11798 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11799 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11800
11801 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
11802 Julian Brown <julian@codesourcery.com>
11803 David Malcolm <dmalcolm@redhat.com>
11804
11805 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11806 to "GNU Offloading and Multi Processing Runtime Library". Change
11807 all users.
11808 * configure: Regenerate.
11809 * libgomp.texi: Update.
11810
11811 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
11812
11813 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11814 "$tgt_dir/lib32".
11815 * configure: Regenerate.
11816
11817 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11818 "intelmic" in $offload_targets.
11819
11820 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11821
11822 Update copyright years.
11823
11824 * libgomp.texi: Bump @copying's copyright year.
11825
11826 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11827
11828 * testsuite/lib/libgomp.exp: Load target-utils.exp.
11829 Move load of target-supports.exp earlier.
11830
11831 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
11832
11833 * testsuite/libgomp.c/target-9.c: New test.
11834
11835 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
11836
11837 * config.h.in: Regenerate.
11838 * configure: Regenerate.
11839 * configure.ac: Add GCC_CHECK_EMUTLS.
11840 * libgomp.h: Add check for USE_EMUTLS: this case
11841 is equal to HAVE_TLS.
11842 * team.c: Likewise.
11843
11844 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
11845
11846 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11847
11848 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
11849 Ilya Verbin <ilya.verbin@intel.com>
11850
11851 * testsuite/libgomp.c/target-critical-1.c: New test.
11852
11853 2014-11-26 Jakub Jelinek <jakub@redhat.com>
11854
11855 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11856 to dg-options unless expensive testing is on.
11857 (TESTITERS): Define to N if not defined.
11858 (main): Use TESTITERS instead of N.
11859 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11860 dg-additional-options depending on whether expensive testing is on.
11861 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11862 Decrease N to 100000 and CHUNKSZ to 10000.
11863
11864 2014-11-24 Jakub Jelinek <jakub@redhat.com>
11865
11866 PR fortran/63938
11867 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11868 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11869
11870 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
11871
11872 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11873
11874 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
11875
11876 PR bootstrap/63784
11877 * configure: Regenerated.
11878
11879 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
11880
11881 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11882 vect_simd_clones effective target.
11883 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11884
11885 2014-11-14 Jakub Jelinek <jakub@redhat.com>
11886
11887 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11888 of 32 as block_size.
11889 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11890 instead of 32 as block_size.
11891
11892 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11893 Ilya Verbin <ilya.verbin@intel.com>
11894
11895 * Makefile.in: Regenerate.
11896 * configure: Regenerate.
11897 * configure.ac: Set up offload_additional_options,
11898 offload_additional_lib_paths and offload_targets.
11899 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11900 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11901 * testsuite/Makefile.in: Regenerate.
11902 * testsuite/lib/libgomp.exp (libgomp_init): Append
11903 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
11904 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
11905 build directory to LD_LIBRARY_PATH for intelmic offload targets.
11906
11907 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
11908 Ilya Verbin <ilya.verbin@intel.com>
11909 Kirill Yukhin <kirill.yukhin@intel.com>
11910 Ilya Tocar <ilya.tocar@intel.com>
11911
11912 * testsuite/lib/libgomp.exp
11913 (check_effective_target_offload_device): New.
11914 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11915 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11916 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11917 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11918 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11919 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11920 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11921 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11922 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11923 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11924 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11925 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11926 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11927 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11928 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11929 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11930 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11931 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11932 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11933 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11934 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11935 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11936 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11937 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11938 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11939 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11940 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11941 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11942 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11943 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11944 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11945 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11946 * testsuite/libgomp.c/target-7.c: Fix test.
11947 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11948 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11949 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11950 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11951 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11952 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11953 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11954 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11955 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11956 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11957 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11958 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11959 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11960 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11961 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11962 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11963 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11964 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11965 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11966 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11967 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11968 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11969 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11970 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11971 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11972 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11973 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11974 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11975 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11976 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11977 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11978
11979 2014-11-13 Jakub Jelinek <jakub@redhat.com>
11980 Ilya Verbin <ilya.verbin@intel.com>
11981 Thomas Schwinge <thomas@codesourcery.com>
11982 Andrey Turetskiy <andrey.turetskiy@intel.com>
11983
11984 * libgomp.map (GOMP_4.0.1): New symbol version.
11985 Add GOMP_offload_register.
11986 * libgomp_target.h: New file.
11987 * splay-tree.h: New file.
11988 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11989 (gomp_target_init): New forward declaration.
11990 (gomp_is_initialized): New static variable.
11991 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11992 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11993 New structures.
11994 (offload_images, num_offload_images, devices, num_devices): New static
11995 variables.
11996 (splay_compare): New static function.
11997 (struct gomp_device_descr): New structure.
11998 (gomp_get_num_devices): Call gomp_target_init.
11999 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12000 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12001 (GOMP_offload_register): New function.
12002 (GOMP_target): Arrange for host callback to be performed in a separate
12003 initial thread and contention group, inheriting ICVs from
12004 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
12005 Add device initialization and lookup for target function in splay tree.
12006 (GOMP_target_data): Add device initialization and call gomp_map_vars.
12007 (GOMP_target_end_data): Call gomp_unmap_vars.
12008 (GOMP_target_update): Add device initialization and call gomp_update.
12009 (gomp_load_plugin_for_device, gomp_register_images_for_device)
12010 (gomp_target_init): New static functions.
12011
12012 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
12013 Thomas Schwinge <thomas@codesourcery.com>
12014 Ilya Verbin <ilya.verbin@intel.com>
12015 Andrey Turetskiy <andrey.turetskiy@intel.com>
12016
12017 * config.h.in: Regenerate.
12018 * configure: Regenerate.
12019 * configure.ac: Check for libdl, required for plugin support.
12020 (PLUGIN_SUPPORT): Define if plugins are supported.
12021 (enable_offload_targets): Support Intel MIC targets.
12022 (OFFLOAD_TARGETS): List of target names suitable for offloading.
12023
12024 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12025
12026 PR target/63610
12027 * configure: Regenerate.
12028
12029 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12030
12031 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12032
12033 2014-10-06 Marek Polacek <polacek@redhat.com>
12034
12035 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12036 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12037 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12038 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12039
12040 2014-10-06 Marek Polacek <polacek@redhat.com>
12041
12042 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12043 * testsuite/libgomp.c/nqueens-1.c: Likewise.
12044 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12045 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12046 * testsuite/libgomp.c/pr36802-2.c: Likewise.
12047 * testsuite/libgomp.c/pr36802-3.c: Likewise.
12048 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12049 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12050 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12051 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12052 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12053 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12054 * testsuite/libgomp.c/omp-single-1.c: Likewise.
12055 * testsuite/libgomp.c/omp-single-2.c: Likewise.
12056 * testsuite/libgomp.c/omp_matvec.c: Likewise.
12057 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12058 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12059 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
12060 declarations.
12061
12062 2014-10-03 Jakub Jelinek <jakub@redhat.com>
12063
12064 PR libgomp/61200
12065 * testsuite/libgomp.c/pr61200.c: New test.
12066
12067 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12068
12069 PR c++/63248
12070 * testsuite/libgomp.c++/pr63248.C: New test.
12071
12072 2014-08-04 Jakub Jelinek <jakub@redhat.com>
12073
12074 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12075 is not zero, but taskgroup->children is NULL and there are
12076 any task->children, schedule those instead of waiting.
12077 * testsuite/libgomp.c/depend-6.c: New test.
12078 * testsuite/libgomp.c/depend-7.c: New test.
12079 * testsuite/libgomp.c/depend-8.c: New test.
12080 * testsuite/libgomp.c/depend-9.c: New test.
12081 * testsuite/libgomp.c/depend-10.c: New test.
12082
12083 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12084
12085 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12086 (struct gomp_taskwait): New type.
12087 (struct gomp_task): Add taskwait and parent_depends_on, remove
12088 in_taskwait and taskwait_sem fields.
12089 (gomp_finish_task): Don't destroy taskwait_sem.
12090 * task.c (gomp_init_task): Don't init in_taskwait, instead init
12091 taskwait and parent_depends_on.
12092 (GOMP_task): For if (0) tasks with depend clause that depend on
12093 earlier tasks don't defer them, instead call
12094 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12095 Initialize redundant_out field, for redundant out entries just
12096 move them at the end of linked list instead of removing them
12097 completely, and set redundant_out flag instead of redundant.
12098 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12099 that task.
12100 (gomp_task_run_post_handle_dependers): If parent is in
12101 gomp_task_maybe_wait_for_dependencies and newly runnable task
12102 is not parent_depends_on, queue it in parent->children linked
12103 list after all runnable tasks with parent_depends_on set.
12104 Adjust for addition of taskwait indirection.
12105 (gomp_task_run_post_remove_parent): If parent is in
12106 gomp_task_maybe_wait_for_dependencies and task to be removed
12107 is parent_depends_on, decrement n_depend and if needed awake
12108 parent. Adjust for addition of taskwait indirection.
12109 (GOMP_taskwait): Adjust for addition of taskwait indirection.
12110 (gomp_task_maybe_wait_for_dependencies): New function.
12111 * testsuite/libgomp.c/depend-5.c: New test.
12112
12113 2014-07-13 Tobias Burnus <burnus@net-b.de>
12114
12115 * testsuite/libgomp.fortran/pr34020.f90: Make compile
12116 with TS 18508/Fortran 2015.
12117
12118 2014-07-06 Marek Polacek <polacek@redhat.com>
12119
12120 PR c/6940
12121 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12122
12123 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12124
12125 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12126 matches regex $lang_source_re, add $lang_include_flags to options.
12127 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12128 * testsuite/libgomp.c++/c++.exp: Likewise.
12129 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
12130 and lang_include_flags instead of adding -fintrinsic-modules-path= to
12131 ALWAYS_CFLAGS.
12132 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12133
12134 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
12135
12136 * testsuite/libgomp.fortran/fortran.exp: Explain
12137 gfortran-dg-runtest usage.
12138
12139 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12140
12141 * testsuite/libgomp.fortran/simd5.f90: New test.
12142 * testsuite/libgomp.fortran/simd6.f90: New test.
12143 * testsuite/libgomp.fortran/simd7.f90: New test.
12144
12145 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12146
12147 * testsuite/libgomp.c/for-2.c: Define SC to static for
12148 #pragma omp for simd testing.
12149 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12150 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12151 SC macro.
12152 * testsuite/libgomp.c/simd-14.c: New test.
12153 * testsuite/libgomp.c/simd-15.c: New test.
12154 * testsuite/libgomp.c/simd-16.c: New test.
12155 * testsuite/libgomp.c/simd-17.c: New test.
12156 * testsuite/libgomp.c++/for-10.C: Define SC to static for
12157 #pragma omp for simd testing.
12158 * testsuite/libgomp.c++/simd10.C: New test.
12159 * testsuite/libgomp.c++/simd11.C: New test.
12160 * testsuite/libgomp.c++/simd12.C: New test.
12161 * testsuite/libgomp.c++/simd13.C: New test.
12162
12163 * testsuite/libgomp.fortran/aligned1.f03: New test.
12164 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12165 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12166 tasks with !$omp parallel !$omp single.
12167 * testsuite/libgomp.fortran/target8.f90: New test.
12168 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12169 not to use trim in the combiner, instead call elemental function.
12170 (fn): New elemental function.
12171 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12172 Make elemental.
12173 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12174 omp_in): Likewise.
12175 * testsuite/libgomp.fortran/udr12.f90: New test.
12176 * testsuite/libgomp.fortran/udr13.f90: New test.
12177 * testsuite/libgomp.fortran/udr14.f90: New test.
12178 * testsuite/libgomp.fortran/udr15.f90: New test.
12179
12180 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12181
12182 * omp_lib.f90.in (openmp_version): Set to 201307.
12183 * omp_lib.h.in (openmp_version): Likewise.
12184 * testsuite/libgomp.c/target-8.c: New test.
12185 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12186 and inbranch clauses.
12187 * testsuite/libgomp.fortran/depend-3.f90: New test.
12188 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12189 openmp_version.
12190 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12191 * testsuite/libgomp.fortran/target1.f90: New test.
12192 * testsuite/libgomp.fortran/target2.f90: New test.
12193 * testsuite/libgomp.fortran/target3.f90: New test.
12194 * testsuite/libgomp.fortran/target4.f90: New test.
12195 * testsuite/libgomp.fortran/target5.f90: New test.
12196 * testsuite/libgomp.fortran/target6.f90: New test.
12197 * testsuite/libgomp.fortran/target7.f90: New test.
12198
12199 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12200
12201 PR fortran/60928
12202 * testsuite/libgomp.fortran/allocatable9.f90: New test.
12203 * testsuite/libgomp.fortran/allocatable10.f90: New test.
12204 * testsuite/libgomp.fortran/allocatable11.f90: New test.
12205 * testsuite/libgomp.fortran/allocatable12.f90: New test.
12206 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12207 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12208 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12209 * testsuite/libgomp.fortran/associate1.f90: New test.
12210 * testsuite/libgomp.fortran/associate2.f90: New test.
12211 * testsuite/libgomp.fortran/procptr1.f90: New test.
12212
12213 2014-06-06 Jakub Jelinek <jakub@redhat.com>
12214
12215 * testsuite/libgomp.fortran/simd1.f90: New test.
12216 * testsuite/libgomp.fortran/udr1.f90: New test.
12217 * testsuite/libgomp.fortran/udr2.f90: New test.
12218 * testsuite/libgomp.fortran/udr3.f90: New test.
12219 * testsuite/libgomp.fortran/udr4.f90: New test.
12220 * testsuite/libgomp.fortran/udr5.f90: New test.
12221 * testsuite/libgomp.fortran/udr6.f90: New test.
12222 * testsuite/libgomp.fortran/udr7.f90: New test.
12223 * testsuite/libgomp.fortran/udr8.f90: New test.
12224 * testsuite/libgomp.fortran/udr9.f90: New test.
12225 * testsuite/libgomp.fortran/udr10.f90: New test.
12226 * testsuite/libgomp.fortran/udr11.f90: New test.
12227
12228 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
12229
12230 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12231 vect_simd_clones effective target.
12232 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12233
12234 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12235
12236 PR middle-end/61252
12237 * testsuite/libgomp.c++/simd-9.C: New test.
12238
12239 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
12240
12241 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12242 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12243 texts according to their @menu entry positions.
12244
12245 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12246
12247 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12248 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12249 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12250 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12251 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12252 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12253 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12254 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12255 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12256 * testsuite/libgomp.fortran/depend-1.f90: New test.
12257 * testsuite/libgomp.fortran/depend-2.f90: New test.
12258 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12259 * testsuite/libgomp.fortran/simd1.f90: New test.
12260 * testsuite/libgomp.fortran/simd2.f90: New test.
12261 * testsuite/libgomp.fortran/simd3.f90: New test.
12262 * testsuite/libgomp.fortran/simd4.f90: New test.
12263 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12264
12265 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12266
12267 * testsuite/libgomp.c/simd-10.c: New test.
12268 * testsuite/libgomp.c/simd-11.c: New test.
12269 * testsuite/libgomp.c/simd-12.c: New test.
12270 * testsuite/libgomp.c/simd-13.c: New test.
12271
12272 2014-04-24 Jakub Jelinek <jakub@redhat.com>
12273
12274 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12275 atomic type clauses in any order and optional comma in between.
12276 * testsuite/libgomp.c++/atomic-15.C: Likewise.
12277 * testsuite/libgomp.c/atomic-17.c: Likewise.
12278
12279 * testsuite/libgomp.c/simd-7.c: New test.
12280 * testsuite/libgomp.c/simd-8.c: New test.
12281 * testsuite/libgomp.c/simd-9.c: New test.
12282 * testsuite/libgomp.c/loop-16.c: New test.
12283
12284 2014-04-02 Richard Henderson <rth@redhat.com>
12285
12286 * config/linux/futex.h (futex_wait): Get error value from errno.
12287 (futex_wake): Likewise.
12288
12289 2014-03-25 Jakub Jelinek <jakub@redhat.com>
12290
12291 PR c++/60331
12292 * testsuite/libgomp.c++/udr-11.C: New test.
12293 * testsuite/libgomp.c++/udr-12.C: New test.
12294 * testsuite/libgomp.c++/udr-13.C: New test.
12295 * testsuite/libgomp.c++/udr-14.C: New test.
12296 * testsuite/libgomp.c++/udr-15.C: New test.
12297 * testsuite/libgomp.c++/udr-16.C: New test.
12298 * testsuite/libgomp.c++/udr-17.C: New test.
12299 * testsuite/libgomp.c++/udr-18.C: New test.
12300 * testsuite/libgomp.c++/udr-19.C: New test.
12301
12302 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12303
12304 Update copyright years
12305
12306 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12307
12308 * hashtab.h: Use the standard form for the copyright notice.
12309
12310 2014-01-02 Tobias Burnus <burnus@net-b.de>
12311
12312 * libgomp.texi: Bump @copying's copyright year.
12313
12314 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
12315
12316 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12317 alloca () with __builtin_alloca ().
12318 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12319 * testsuite/libgomp.c/lock-3.c: Likewise.
12320 * testsuite/libgomp.c/pr48591.c: Likewise.
12321
12322 2013-12-17 Jakub Jelinek <jakub@redhat.com>
12323
12324 PR testsuite/59534
12325 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12326 comparisons.
12327
12328 2013-12-16 Jakub Jelinek <jakub@redhat.com>
12329
12330 PR libgomp/58756
12331 * testsuite/libgomp.c/pr58756.c: New test.
12332
12333 2013-12-12 Jakub Jelinek <jakub@redhat.com>
12334
12335 PR libgomp/59467
12336 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12337 !$omp parallel.
12338
12339 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
12340
12341 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12342 ALWAYS_CFLAGS.
12343 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12344 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12345 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12346 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12347 Likewise.
12348
12349 * libgomp_g.h: Include <stddef.h> for size_t.
12350
12351 * libgomp.spec.in: Update comment about libgomp's dependencies.
12352 * configure.ac: Likewise.
12353 * configure: Regenerate.
12354
12355 2013-10-16 Tobias Burnus <burnus@net-b.de>
12356
12357 * libgomp.texi: (Runtime Library Routines): Update references for
12358 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12359 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12360 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12361 (Environment Variables): Update references for OpenMP 4.0. Add
12362 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12363 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12364 order.
12365
12366 2013-10-14 Jakub Jelinek <jakub@redhat.com>
12367
12368 * env.c (parse_bind_var): Initialize value to avoid
12369 (false positive) warning.
12370
12371 2013-10-12 Jakub Jelinek <jakub@redhat.com>
12372
12373 PR libgomp/58691
12374 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12375 to check variable.
12376 (gomp_init_num_threads): Move i variable declaration into
12377 #ifdef CPU_ALLOC_SIZE block.
12378 * config/linux/affinity.c (gomp_affinity_init_level): Test
12379 gomp_places_list_len == 0 rather than gomp_places_list == 0
12380 when checking for topology reading error.
12381 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12382 * env.c (parse_affinity): Add ignore argument, if true, don't populate
12383 gomp_places_list, only parse env var and always return false.
12384 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
12385 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12386 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12387 and either of these variables were parsed correctly into a places
12388 list.
12389
12390 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12391 Jakub Jelinek <jakub@redhat.com>
12392
12393 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12394 of 5 loopfn matches.
12395 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12396 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12397 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12398 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12399 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12400 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12401 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12402 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12403
12404 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12405
12406 * Makefile.am (omp_lib.mod): Streamline rule.
12407 * Makefile.in: Regenerate.
12408
12409 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12410 exceptions.
12411
12412 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12413 * testsuite/libgomp.fortran/lib1.f90: Likewise.
12414 * testsuite/libgomp.fortran/lib2.f: Likewise.
12415 * testsuite/libgomp.fortran/lib3.f: Likewise.
12416
12417 * configure.ac: Typo fix.
12418 * configure: Regenerate.
12419
12420 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12421 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12422
12423 * omp.h.in: Don't touch the user's namespace.
12424
12425 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12426 Tobias Burnus <burnus@net-b.de>
12427 Richard Henderson <rth@redhat.com>
12428
12429 * target.c: New file.
12430 * Makefile.am (libgomp_la_SOURCES): Add target.c.
12431 * Makefile.in: Regenerated.
12432 * libgomp_g.h (GOMP_task): Add depend argument.
12433 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12434 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12435 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12436 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12437 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12438 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12439 GOMP_taskgroup_start, GOMP_taskgroup_end,
12440 GOMP_parallel_sections): New prototypes.
12441 * fortran.c (omp_is_initial_device): Add ialias_redirect.
12442 (omp_is_initial_device_): New function.
12443 (ULP, STR1, STR2, ialias_redirect): Removed.
12444 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12445 omp_set_default_device_8_, omp_get_default_device_,
12446 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12447 functions.
12448 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12449 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12450 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12451 @@GOMP_4.0.
12452 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12453 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12454 omp_set_default_device, omp_set_default_device_,
12455 omp_set_default_device_8_, omp_get_default_device,
12456 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12457 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12458 omp_get_team_num_): Export @@OMP_4.0.
12459 * team.c (struct gomp_thread_start_data): Add place field.
12460 (gomp_thread_start): Clear thr->thread_pool and
12461 thr->task before returning. Use gomp_team_barrier_wait_final
12462 instead of gomp_team_barrier_wait. Initialize thr->place.
12463 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12464 team_cancelled and task_queued_count fields.
12465 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12466 before calling pthread_exit.
12467 (gomp_free_thread): No longer static. Use
12468 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12469 (gomp_team_start): Add flags argument. Set
12470 thr->thread_pool->threads_busy to nthreads immediately after creating
12471 new pool. Use gomp_managed_threads_lock instead of
12472 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
12473 (gomp_team_end): Use gomp_managed_threads_lock instead of
12474 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
12475 of gomp_team_barrier_wait. If team->team_cancelled, call
12476 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12477 rather than thr->ts.work_share.
12478 (initialize_team): Don't call gomp_sem_init here.
12479 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12480 caller.
12481 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12482 * env.c (gomp_global_icv): Add default_device_var, target_data and
12483 bind_var initializers.
12484 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12485 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12486 gomp_places_list_len): New variables.
12487 (parse_bind_var, parse_one_place, parse_places_var): New functions.
12488 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12489 sized places.
12490 (gomp_cancel_var): New global variable.
12491 (parse_int): New function.
12492 (handle_omp_display_env): New function.
12493 (initialize_env): Use it. Initialize default_device_var.
12494 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
12495 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
12496 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
12497 been successfully parsed (and call gomp_init_affinity in that case).
12498 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12499 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12500 omp_get_team_num, omp_is_initial_device): New functions.
12501 * libgomp.h: Include stdlib.h.
12502 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12503 Define.
12504 (struct target_mem_desc): Forward declare.
12505 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12506 and thread_limit_var fields.
12507 (gomp_get_num_devices): New prototype.
12508 (gomp_cancel_var): New extern decl.
12509 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12510 team_cancelled and task_queued_count fields. Add comments about
12511 task_{,queued_,running_}count.
12512 (gomp_cancel_kind): New enum.
12513 (gomp_work_share_end_cancel): New prototype.
12514 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12515 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12516 and depend fields.
12517 (struct gomp_taskgroup): New type.
12518 (struct gomp_task_depend_entry,
12519 struct gomp_dependers_vec): New types.
12520 (gomp_finish_task): Free depend_hash if non-NULL.
12521 (struct gomp_team_state): Add place_partition_off
12522 and place_partition_len fields.
12523 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12524 gomp_places_list_len): New extern decls.
12525 (struct gomp_thread): Add place field.
12526 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12527 (gomp_init_thread_affinity): Add place argument.
12528 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12529 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12530 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12531 gomp_affinity_init_level, gomp_affinity_print_place): New
12532 prototypes.
12533 (gomp_team_start): Add flags argument.
12534 (gomp_thread_limit_var, gomp_remaining_threads_count,
12535 gomp_remaining_threads_lock): Remove.
12536 (gomp_managed_threads_lock): New variable.
12537 (struct gomp_thread_pool): Add threads_busy field.
12538 (gomp_free_thread): New prototype.
12539 * task.c: Include hashtab.h.
12540 (hash_entry_type): New typedef.
12541 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12542 (gomp_init_task): Clear dependers, depend_hash, depend_count,
12543 copy_ctors_done and taskgroup fields.
12544 (GOMP_task): Add depend argument, handle depend clauses. If
12545 gomp_team_barrier_cancelled or if it's taskgroup has been
12546 cancelled, don't queue or start new tasks. Set copy_ctors_done
12547 field if needed. Initialize taskgroup field. If copy_ctors_done
12548 and already cancelled, don't discard the task. If taskgroup is
12549 non-NULL, enqueue the task into taskgroup queue. Increment
12550 num_children field in taskgroup. Increment task_queued_count.
12551 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12552 gomp_task_run_post_remove_taskgroup): New inline functions.
12553 (gomp_task_run_post_handle_depend_hash,
12554 gomp_task_run_post_handle_dependers,
12555 gomp_task_run_post_handle_depend): New functions.
12556 (GOMP_taskwait): Use them. If more than one new tasks
12557 have been queued, wake other threads if needed.
12558 (gomp_barrier_handle_tasks): Likewise. If
12559 gomp_team_barrier_cancelled, don't start any new tasks, just free
12560 all tasks.
12561 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12562 * omp_lib.f90.in
12563 (omp_proc_bind_kind, omp_proc_bind_false,
12564 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12565 omp_proc_bind_spread): New params.
12566 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12567 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12568 omp_get_team_num, omp_is_initial_device): New interfaces.
12569 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12570 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12571 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12572 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12573 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12574 useless use omp_lib_kinds.
12575 * omp.h.in (omp_proc_bind_t): New typedef.
12576 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12577 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12578 omp_get_team_num, omp_is_initial_device): New prototypes.
12579 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12580 through to gomp_team_start.
12581 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12582 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12583 Adjust gomp_parallel_loop_start callers.
12584 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12585 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12586 GOMP_loop_end_cancel): New functions.
12587 (GOMP_parallel_end): Add ialias_redirect.
12588 * hashtab.h: New file.
12589 * libgomp.texi (Environment Variables): Minor cleanup,
12590 update section refs to OpenMP 4.0rc2.
12591 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12592 environment variables.
12593 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12594 team->work_shares_to_free to thr->ts.work_share before calling
12595 free_work_share.
12596 (gomp_work_share_end_cancel): New function.
12597 * config/linux/proc.c: Include errno.h.
12598 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12599 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12600 sizeof (cpu_set_t) to determine number of iterations. Fix up check
12601 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
12602 gomp_cpuset_size is sizeof (cpu_set_t).
12603 (gomp_init_num_threads): Initialize gomp_cpuset_size,
12604 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12605 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12606 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
12607 contain any logical CPUs.
12608 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12609 is NULL. Use gomp_cpusetp instead of &cpuset and pass
12610 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12611 pthread_getaffinity_np. Check gomp_places_list instead of
12612 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
12613 * config/linux/bar.c (gomp_barrier_wait_end,
12614 gomp_barrier_wait_last): Use BAR_* defines.
12615 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
12616 from state where needed. Set work_share_cancelled to 0 on last
12617 thread.
12618 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12619 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12620 functions.
12621 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12622 Add cpusetsize argument.
12623 (gomp_cpuset_size, gomp_cpusetp): Declare.
12624 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12625 (affinity_counter): Remove.
12626 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12627 if CPU_ALLOC_SIZE isn't defined.
12628 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12629 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12630 bind current thread to the first place.
12631 (gomp_init_thread_affinity): Rewritten. Add place argument, just
12632 pthread_setaffinity_np to gomp_places_list[place].
12633 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12634 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12635 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12636 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12637 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12638 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12639 (gomp_barrier_t): Add awaited_final field.
12640 (gomp_barrier_init): Initialize awaited_final field.
12641 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12642 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12643 prototypes.
12644 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
12645 defines.
12646 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12647 gomp_team_barrier_cancelled): New inline functions.
12648 (gomp_barrier_last_thread,
12649 gomp_team_barrier_set_task_pending,
12650 gomp_team_barrier_clear_task_pending,
12651 gomp_team_barrier_set_waiting_for_tasks,
12652 gomp_team_barrier_waiting_for_tasks,
12653 gomp_team_barrier_done): Use BAR_* defines.
12654 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12655 (gomp_barrier_wait_end): Use BAR_* defines.
12656 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12657 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12658 Use BAR_* defines.
12659 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12660 gomp_team_barrier_cancel): New functions.
12661 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12662 argument.
12663 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12664 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12665 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12666 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12667 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12668 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12669 (gomp_barrier_t): Add cancellable field.
12670 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12671 gomp_team_barrier_cancel): New prototypes.
12672 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12673 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12674 gomp_team_barrier_cancelled): New inline functions.
12675 (gomp_barrier_wait_start, gomp_barrier_last_thread,
12676 gomp_team_barrier_set_task_pending,
12677 gomp_team_barrier_clear_task_pending,
12678 gomp_team_barrier_set_waiting_for_tasks,
12679 gomp_team_barrier_waiting_for_tasks,
12680 gomp_team_barrier_done): Use BAR_* defines.
12681 * barrier.c (GOMP_barrier_cancel): New function.
12682 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12683 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12684 omp_proc_bind_spread): New params.
12685 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12686 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12687 omp_get_team_num, omp_is_initial_device): New externals.
12688 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12689 New functions.
12690 (gomp_resolve_num_threads): Adjust for thread_limit now being in
12691 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12692 infinity. If not nested, just return minimum of max_num_threads
12693 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12694 to the returned value. Otherwise, don't update atomically
12695 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12696 (GOMP_parallel_end): Adjust for thread_limit now being in
12697 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12698 infinity. Adjust threads_busy in the pool rather than
12699 gomp_remaining_threads_count. Remember team->nthreads and call
12700 gomp_team_end before adjusting threads_busy, if not nested
12701 afterwards, just set it to 1 non-atomically. Add ialias.
12702 (GOMP_parallel_start): Adjust gomp_team_start caller.
12703 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12704 * testsuite/libgomp.c/affinity-1.c: New test.
12705 * testsuite/libgomp.c/atomic-15.c: New test.
12706 * testsuite/libgomp.c/atomic-16.c: New test.
12707 * testsuite/libgomp.c/atomic-17.c: New test.
12708 * testsuite/libgomp.c/cancel-for-1.c: New test.
12709 * testsuite/libgomp.c/cancel-for-2.c: New test.
12710 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12711 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12712 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12713 * testsuite/libgomp.c/cancel-sections-1.c: New test.
12714 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12715 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12716 * testsuite/libgomp.c/depend-1.c: New test.
12717 * testsuite/libgomp.c/depend-2.c: New test.
12718 * testsuite/libgomp.c/depend-3.c: New test.
12719 * testsuite/libgomp.c/depend-4.c: New test.
12720 * testsuite/libgomp.c/for-1.c: New test.
12721 * testsuite/libgomp.c/for-1.h: New file.
12722 * testsuite/libgomp.c/for-2.c: New test.
12723 * testsuite/libgomp.c/for-2.h: New file.
12724 * testsuite/libgomp.c/for-3.c: New test.
12725 * testsuite/libgomp.c/pr58392.c: New test.
12726 * testsuite/libgomp.c/simd-1.c: New test.
12727 * testsuite/libgomp.c/simd-2.c: New test.
12728 * testsuite/libgomp.c/simd-3.c: New test.
12729 * testsuite/libgomp.c/simd-4.c: New test.
12730 * testsuite/libgomp.c/simd-5.c: New test.
12731 * testsuite/libgomp.c/simd-6.c: New test.
12732 * testsuite/libgomp.c/target-1.c: New test.
12733 * testsuite/libgomp.c/target-2.c: New test.
12734 * testsuite/libgomp.c/target-3.c: New test.
12735 * testsuite/libgomp.c/target-4.c: New test.
12736 * testsuite/libgomp.c/target-5.c: New test.
12737 * testsuite/libgomp.c/target-6.c: New test.
12738 * testsuite/libgomp.c/target-7.c: New test.
12739 * testsuite/libgomp.c/taskgroup-1.c: New test.
12740 * testsuite/libgomp.c/thread-limit-1.c: New test.
12741 * testsuite/libgomp.c/thread-limit-2.c: New test.
12742 * testsuite/libgomp.c/thread-limit-3.c: New test.
12743 * testsuite/libgomp.c/udr-1.c: New test.
12744 * testsuite/libgomp.c/udr-2.c: New test.
12745 * testsuite/libgomp.c/udr-3.c: New test.
12746 * testsuite/libgomp.c++/affinity-1.C: New test.
12747 * testsuite/libgomp.c++/atomic-10.C: New test.
12748 * testsuite/libgomp.c++/atomic-11.C: New test.
12749 * testsuite/libgomp.c++/atomic-12.C: New test.
12750 * testsuite/libgomp.c++/atomic-13.C: New test.
12751 * testsuite/libgomp.c++/atomic-14.C: New test.
12752 * testsuite/libgomp.c++/atomic-15.C: New test.
12753 * testsuite/libgomp.c++/cancel-for-1.C: New test.
12754 * testsuite/libgomp.c++/cancel-for-2.C: New test.
12755 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12756 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12757 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12758 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12759 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12760 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12761 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12762 * testsuite/libgomp.c++/cancel-test.h: New file.
12763 * testsuite/libgomp.c++/for-9.C: New test.
12764 * testsuite/libgomp.c++/for-10.C: New test.
12765 * testsuite/libgomp.c++/for-11.C: New test.
12766 * testsuite/libgomp.c++/simd-1.C: New test.
12767 * testsuite/libgomp.c++/simd-2.C: New test.
12768 * testsuite/libgomp.c++/simd-3.C: New test.
12769 * testsuite/libgomp.c++/simd-4.C: New test.
12770 * testsuite/libgomp.c++/simd-5.C: New test.
12771 * testsuite/libgomp.c++/simd-6.C: New test.
12772 * testsuite/libgomp.c++/simd-7.C: New test.
12773 * testsuite/libgomp.c++/simd-8.C: New test.
12774 * testsuite/libgomp.c++/target-1.C: New test.
12775 * testsuite/libgomp.c++/target-2.C: New test.
12776 * testsuite/libgomp.c++/target-2-aux.cc: New file.
12777 * testsuite/libgomp.c++/target-3.C: New test.
12778 * testsuite/libgomp.c++/taskgroup-1.C: New test.
12779 * testsuite/libgomp.c++/udr-1.C: New test.
12780 * testsuite/libgomp.c++/udr-2.C: New test.
12781 * testsuite/libgomp.c++/udr-3.C: New test.
12782 * testsuite/libgomp.c++/udr-4.C: New test.
12783 * testsuite/libgomp.c++/udr-5.C: New test.
12784 * testsuite/libgomp.c++/udr-6.C: New test.
12785 * testsuite/libgomp.c++/udr-7.C: New test.
12786 * testsuite/libgomp.c++/udr-8.C: New test.
12787 * testsuite/libgomp.c++/udr-9.C: New test.
12788
12789 2013-09-20 Jakub Jelinek <jakub@redhat.com>
12790
12791 PR testsuite/57605
12792 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12793 ALWAYS_CFLAGS.
12794
12795 2013-09-20 Alan Modra <amodra@gmail.com>
12796
12797 * configure: Regenerate.
12798
12799 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12800
12801 * testsuite/libgomp.c/sections-2.c: New test.
12802
12803 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
12804
12805 * testsuite/libgomp.fortran/strassen.f90:
12806 Add dg-skip-if aarch64_tiny.
12807
12808 2013-06-20 Iain Sandoe <iain@codesourcery.com>
12809 Cesar Philippidis <cesar@codesourcery.com>
12810
12811 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12812 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12813 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12814 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12815 * testsuite/libgomp.graphite/graphite.exp: Likewise.
12816 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12817 Use dg-runtest rather than gfortran-dg-runtest.
12818
12819 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
12820
12821 * testsuite/libgomp.c/icv-2.c: Extend current handling of
12822 Linux-based x86 systems to cover all GNU systems.
12823 * testsuite/libgomp.c/lock-3.c: Likewise.
12824 * testsuite/libgomp.c/pr48591.c: Likewise.
12825
12826 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
12827
12828 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12829 GNU/Hurd, as done for Linux-based systems.
12830
12831 * config/posix/ptrlock.h: Fix comment.
12832
12833 2013-05-27 Tobias Burnus <burnus@net-b.de>
12834
12835 PR fortran/57423
12836 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12837 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12838 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12839 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12840 omp_destroy_nest_lock): Correct arguments to match the one in
12841 the OpenMP spec.
12842 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12843 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12844 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12845 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12846
12847 2013-05-16 Jakub Jelinek <jakub@redhat.com>
12848
12849 * testsuite/libgomp.c/loop-13.c: New test.
12850 * testsuite/libgomp.c/loop-14.c: New test.
12851 * testsuite/libgomp.c/loop-15.c: New test.
12852 * testsuite/libgomp.c++/loop-13.C: New test.
12853 * testsuite/libgomp.c++/loop-14.C: New test.
12854 * testsuite/libgomp.c++/loop-15.C: New test.
12855
12856 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12857
12858 PR middle-end/56217
12859 * testsuite/libgomp.c++/pr56217.C: New test.
12860
12861 2013-02-01 Alan Modra <amodra@gmail.com>
12862
12863 * task.c (GOMP_task, GOMP_taskwait): Comment.
12864
12865 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
12866 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
12867
12868 PR libgomp/55561
12869 * config/linux/wait.h (do_spin): Use atomic load for addr.
12870 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12871 for intptr and ptrlock.
12872 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12873 for ptrlock.
12874
12875 2013-01-22 Alan Modra <amodra@gmail.com>
12876
12877 PR libgomp/51376
12878 PR libgomp/56073
12879 * task.c (GOMP_task): Revert 2011-12-09 change.
12880 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
12881 barrier to read task->children..
12882 (gomp_barrier_handle_tasks): ..and matching atomic store with
12883 release barrier here when setting parent->children to NULL.
12884
12885 2013-01-16 Jakub Jelinek <jakub@redhat.com>
12886 Tobias Burnus <burnus@net-b.de>
12887
12888 PR driver/55884
12889 * testsuite/libgomp.fortran/fortran.exp: Use
12890 -fintrinsic-modules-path= instead of
12891 -fintrinsic-modules-path.
12892
12893 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
12894
12895 Update copyright years.
12896
12897 2012-12-19 Tobias Burnus <burnus@net-b.de>
12898
12899 * testsuite/libgomp.fortran/fortran.exp: Set
12900 -fintrinsic-modules-path.
12901
12902 2012-12-19 Tobias Burnus <burnus@net-b.de>
12903
12904 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12905 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12906
12907 2012-11-21 Jakub Jelinek <jakub@redhat.com>
12908
12909 PR libgomp/55411
12910 * team.c (gomp_free_thread): Decrease gomp_managed_threads
12911 if pool had any threads_used.
12912
12913 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
12914
12915 * testsuite/libgomp.c++/pr24455.C: Use
12916 -Wl,-undefined,dynamic_lookup on darwin.
12917
12918 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
12919
12920 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12921
12922 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
12923
12924 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12925
12926 2012-10-23 Ian Bolton <ian.bolton@arm.com>
12927 Jim MacArthur <jim.macarthur@arm.com>
12928 Marcus Shawcroft <marcus.shawcroft@arm.com>
12929 Nigel Stephens <nigel.stephens@arm.com>
12930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12931 Richard Earnshaw <rearnsha@arm.com>
12932 Sofiane Naci <sofiane.naci@arm.com>
12933 Stephen Thomas <stephen.thomas@arm.com>
12934 Tejas Belagod <tejas.belagod@arm.com>
12935 Yufeng Zhang <yufeng.zhang@arm.com>
12936
12937 * configure.tgt: Add AArch64.
12938
12939 2012-10-04 Jason Merrill <jason@redhat.com>
12940
12941 * testsuite/libgomp.c++/tls-init1.C: New.
12942
12943 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
12944
12945 * configure: Regenerated.
12946
12947 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12948
12949 * config/linux/mips/futex.h (sys_futex0): Change to static
12950 function with noinline, nomips16 attributes under MIPS16. Adjust
12951 asm statement to place 'li v0,SYS_futex' immediately before
12952 syscall insn.
12953
12954 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
12955
12956 * libgomp.texi (Library Index): Renamed from "Index" to prevent
12957 conflict with index.html on case-insensitive file systems.
12958
12959 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
12960
12961 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12962 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12963
12964 2012-07-02 Richard Guenther <rguenther@suse.de>
12965 Michael Matz <matz@suse.de>
12966 Tobias Grosser <tobias@grosser.es>
12967 Sebastian Pop <sebpop@gmail.com>
12968
12969 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12970 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12971 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12972 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12973
12974 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
12975
12976 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12977
12978 2012-06-22 Richard Guenther <rguenther@suse.de>
12979
12980 Merge from graphite branch
12981 2012-01-13 Tobias Grosser <tobias@grosser.es>
12982
12983 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12984 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12985
12986 2012-06-07 Jakub Jelinek <jakub@redhat.com>
12987
12988 PR middle-end/53580
12989 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12990 use GOMP_barrier () call instead.
12991 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12992 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12993 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12994 call GOMP_barrier instead.
12995 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12996
12997 2012-06-06 Jakub Jelinek <jakub@redhat.com>
12998
12999 PR libgomp/52993
13000 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13001 argument to memset call.
13002
13003 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
13004
13005 * configure: Regenerated.
13006
13007 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13008
13009 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13010
13011 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
13012
13013 PR bootstrap/52812
13014 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13015
13016 2012-03-22 Jakub Jelinek <jakub@redhat.com>
13017
13018 PR middle-end/52547
13019 * testsuite/libgomp.c/pr52547.c: New test.
13020
13021 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13022
13023 * testsuite/lib/libgomp.exp: load fortran-modules.exp
13024
13025 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13026
13027 * configure.tgt (mips-sgi-irix6*): Remove.
13028
13029 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13030
13031 * configure.tgt (alpha*-dec-osf*): Remove.
13032
13033 * config/osf/sem.h: Remove.
13034 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13035
13036 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
13037
13038 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13039
13040 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13041
13042 PR libstdc++/52188
13043 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13044 Remove ENABLE_SYMVERS_SOL2.
13045 * configure: Regenerate.
13046 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13047 (PREPROCESS): New variable.
13048 (libgomp.ver): New target.
13049 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13050 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13051 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13052 Use libgomp.ver.
13053 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13054 * Makefile.in: Regenerate.
13055
13056 2012-02-14 Walter Lee <walt@tilera.com>
13057
13058 * configure.tgt: Handle tilegx and tilepro.
13059 * config/linux/tile/futex.h: New file.
13060
13061 2012-02-08 Richard Guenther <rguenther@suse.de>
13062
13063 PR tree-optimization/46886
13064 * testsuite/libgomp.c/pr46886.c: New testcase.
13065
13066 2012-01-25 Matthias Klose <doko@ubuntu.com>
13067
13068 * config/linux/arm: Remove empty directory.
13069 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13070
13071 2011-12-09 Alan Modra <amodra@gmail.com>
13072
13073 PR libgomp/51376
13074 * task.c (GOMP_taskwait): Don't access task->children outside of
13075 task_lock mutex region.
13076 (GOMP_task): Likewise.
13077
13078 2011-12-06 Jakub Jelinek <jakub@redhat.com>
13079
13080 PR libgomp/51132
13081 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13082 to file scope.
13083 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13084 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13085 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13086 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13087 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13088
13089 2011-12-02 Alan Modra <amodra@gmail.com>
13090
13091 * config/linux/affinity.c: Use atomic rather than sync builtin.
13092 * config/linux/lock.c: Likewise.
13093 * config/linux/ptrlock.h: Likewise.
13094 * config/linux/ptrlock.c: Likewise.
13095 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13096 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13097 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13098 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13099 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13100 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13101 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13102 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13103 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13104 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13105
13106 2011-11-30 Alan Modra <amodra@gmail.com>
13107
13108 PR libgomp/51298
13109 * config/linux/bar.h: Use atomic rather than sync builtins.
13110 * config/linux/bar.c: Likewise. Add missing acquire
13111 synchronisation on generation field.
13112 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13113 double unlock.
13114
13115 2011-11-30 Alan Modra <amodra@gmail.com>
13116
13117 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13118 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13119 * config/linux/mutex.h: Use atomic rather than sync builtins.
13120 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
13121 * config/linux/omp-lock.h: Comment fix.
13122 * config/linux/arm/mutex.h: Delete.
13123 * config/linux/powerpc/mutex.h: Delete.
13124 * config/linux/ia64/mutex.h: Delete.
13125 * config/linux/mips/mutex.h: Delete.
13126
13127 2011-11-30 Alan Modra <amodra@gmail.com>
13128
13129 PR libgomp/51249
13130 * config/linux/sem.h: Rewrite.
13131 * config/linux/sem.c: Rewrite.
13132
13133 2011-11-28 Richard Henderson <rth@redhat.com>
13134
13135 * libgomp.h (enum memmodel): New.
13136
13137 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
13138
13139 * configure: Regenerate.
13140
13141 2011-10-10 Matthias Klose <doko@ubuntu.com>
13142
13143 * config/posix95: Remove empty directory.
13144
13145 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13146
13147 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13148
13149 2011-08-19 Jakub Jelinek <jakub@redhat.com>
13150
13151 PR fortran/49792
13152 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13153 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13154
13155 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13156
13157 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13158
13159 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13160
13161 PR libgomp/49965
13162 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13163
13164 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
13165
13166 * config/linux/proc.h: New.
13167 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
13168 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
13169 (gomp_init_num_threads): Update call to cpuset_popcount.
13170 (get_num_procs): Ditto.
13171 * config/linux/affinity.c (gomp_init_affinity): Call
13172 gomp_cpuset_popcount.
13173
13174 2011-08-02 Jakub Jelinek <jakub@redhat.com>
13175
13176 PR fortran/42041
13177 PR fortran/46752
13178 * omp.h.in (omp_in_final): New prototype.
13179 * omp_lib.f90.in (omp_in_final): New interface.
13180 (omp_integer_kind, omp_logical_kind): Remove
13181 and replace all its uses in the module with 4.
13182 (openmp_version): Change to 201107.
13183 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13184 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13185 kind for the parameters.
13186 (omp_in_final): New external.
13187 (openmp_version): Change to 201107.
13188 * task.c (omp_in_final): New function.
13189 (gomp_init_task): Initialize final_task.
13190 (GOMP_task): Remove unused attribute from flags. Handle final
13191 tasks.
13192 (GOMP_taskyield): New function.
13193 (omp_in_final): Return true if if (false) or final (true) task
13194 or descendant of final (true).
13195 * fortran.c (omp_in_final_): New function.
13196 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13197 (GOMP_3.0): Export GOMP_taskyield.
13198 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13199 variables.
13200 (parse_unsigned_long_list): New function.
13201 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
13202 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
13203 even if parse_affinity returned false.
13204 * config/linux/affinity.c (gomp_init_affinity): Handle
13205 gomp_cpu_affinity_len == 0.
13206 * libgomp_g.h (GOMP_taskyield): New prototype.
13207 * libgomp.h (struct gomp_task): Add final_task field.
13208 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13209 * team.c (gomp_team_start): Override new task's nthreads_var icv
13210 if list form OMP_NUM_THREADS has been used and it has value for
13211 the new nesting level.
13212
13213 * testsuite/libgomp.c/atomic-11.c: New test.
13214 * testsuite/libgomp.c/atomic-12.c: New test.
13215 * testsuite/libgomp.c/atomic-13.c: New test.
13216 * testsuite/libgomp.c/atomic-14.c: New test.
13217 * testsuite/libgomp.c/reduction-6.c: New test.
13218 * testsuite/libgomp.c/task-5.c: New test.
13219 * testsuite/libgomp.c++/atomic-2.C: New test.
13220 * testsuite/libgomp.c++/atomic-3.C: New test.
13221 * testsuite/libgomp.c++/atomic-4.C: New test.
13222 * testsuite/libgomp.c++/atomic-5.C: New test.
13223 * testsuite/libgomp.c++/atomic-6.C: New test.
13224 * testsuite/libgomp.c++/atomic-7.C: New test.
13225 * testsuite/libgomp.c++/atomic-8.C: New test.
13226 * testsuite/libgomp.c++/atomic-9.C: New test.
13227 * testsuite/libgomp.c++/task-8.C: New test.
13228 * testsuite/libgomp.c++/reduction-4.C: New test.
13229 * testsuite/libgomp.fortran/allocatable7.f90: New test.
13230 * testsuite/libgomp.fortran/allocatable8.f90: New test.
13231 * testsuite/libgomp.fortran/crayptr3.f90: New test.
13232 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13233 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13234 * testsuite/libgomp.fortran/pointer1.f90: New test.
13235 * testsuite/libgomp.fortran/pointer2.f90: New test.
13236 * testsuite/libgomp.fortran/task4.f90: New test.
13237
13238 2011-08-02 Tobias Burnus <burnus@net-b.de>
13239
13240 * libgomp.texi: Update OpenMP spec references to 3.1.
13241 (omp_in_final,OMP_PROC_BIND): New sections.
13242 (OMP_NUM_THREADS): Document that the value can be now a list.
13243 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13244
13245 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
13246
13247 * config/linux/x86/futex.h: Check __x86_64__ instead of
13248 __LP64__.
13249
13250 2011-07-29 Jakub Jelinek <jakub@redhat.com>
13251
13252 PR middle-end/49897
13253 PR middle-end/49898
13254 * testsuite/libgomp.c/pr49897-1.c: New test.
13255 * testsuite/libgomp.c/pr49897-2.c: New test.
13256 * testsuite/libgomp.c/pr49898-1.c: New test.
13257 * testsuite/libgomp.c/pr49898-2.c: New test.
13258
13259 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13260
13261 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13262 for ia32 instead of ilp32.
13263
13264 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13265 * testsuite/libgomp.c/atomic-6.c: Likewise.
13266
13267 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
13268
13269 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13270 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13271
13272 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13273
13274 PR libgomp/45351
13275 * config/osf/sem.h: New file.
13276 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13277
13278 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13279
13280 PR target/49541
13281 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13282 ldflags.
13283
13284 2011-07-15 Jakub Jelinek <jakub@redhat.com>
13285
13286 * config/linux/wait.h (do_spin): New inline, largely copied
13287 from do_wait, just don't do futex_wait here, instead return true if
13288 it should be done.
13289 (do_wait): Implement using do_spin.
13290 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13291 to prototype.
13292 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13293 __sync_bool_compare_and_swap, pass the oldval to
13294 gomp_mutex_lock_slow.
13295 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13296 If all mutex contenders are just spinning and not sleeping, don't
13297 change state to 2 unnecessarily. Optimize the loop when state has
13298 already become 2 to use just one atomic operation per loop instead
13299 of two.
13300 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13301 to prototype.
13302 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13303 __sync_bool_compare_and_swap, pass the oldval to
13304 gomp_mutex_lock_slow.
13305
13306 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13307
13308 PR libgomp/49490
13309 * iter.c (gomp_iter_static_next): For chunk size 0
13310 only use n ceil/ nthreads size for the first
13311 n % nthreads threads in the team instead of
13312 all threads except for the last few ones which
13313 get less work or none at all.
13314 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13315 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13316 chunk argument, set run_sched_modifier to 0 for static
13317 resp. 1 for other kinds. If chunk argument is 0
13318 and not static, set value to 1.
13319
13320 2011-05-19 Jakub Jelinek <jakub@redhat.com>
13321
13322 PR c++/49043
13323 * testsuite/libgomp.c++/pr49043.C: New test.
13324
13325 PR c++/48869
13326 * testsuite/libgomp.c++/pr48869.C: New test.
13327
13328 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13329
13330 PR fortran/48894
13331 * fortran.c: Include limits.h.
13332 (TO_INT): Define.
13333 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13334 *set.
13335 (omp_set_num_threads_8_, omp_set_schedule_8_,
13336 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13337 omp_get_team_size_8_): Use TO_INT macro.
13338 * testsuite/libgomp.fortran/pr48894.f90: New test.
13339
13340 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13341
13342 PR middle-end/48591
13343 * testsuite/libgomp.c/pr48591.c: New test.
13344
13345 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13346
13347 PR bootstrap/48135
13348 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13349 * configure: Regenerate.
13350
13351 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13352
13353 PR fortran/47886
13354 * testsuite/libgomp.fortran/task3.f90: New test.
13355
13356 2011-02-24 Tobias Burnus <burnus@net-b.de>
13357
13358 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13359
13360 2011-02-23 Jakub Jelinek <jakub@redhat.com>
13361
13362 PR libgomp/47854
13363 * libgomp.texi (omp_get_wtime): Don't say time in the past
13364 must be Unix Epoch.
13365
13366 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13367
13368 PR libgomp/47804
13369 * testsuite/libgomp.fortran/fortran.exp: Check for both
13370 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
13371 but $blddir != "", still append ${blddir}/${lang_library_path}
13372 to ld_library_path.
13373
13374 2011-02-16 Tobias Burnus <burnus@net-b.de>
13375
13376 PR libgomp/47758
13377 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13378 of libquadmath.a before adding its libpath to ldflags.
13379
13380 2011-02-14 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR libgomp/47731
13383 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13384 to FUTEX_WAIT futex syscall.
13385 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13386
13387 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13388
13389 * configure: Regenerate.
13390
13391 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
13392
13393 PR libstdc++/36104
13394 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13395
13396 2011-01-16 Gerald Pfeifer
13397
13398 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13399
13400 2010-12-14 Jakub Jelinek <jakub@redhat.com>
13401
13402 PR fortran/46874
13403 * libgomp.fortran/allocatable6.f90: New test.
13404
13405 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13406
13407 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13408 * configure: Regenerate.
13409
13410 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
13411
13412 PR target/40125
13413 PR lto/46695
13414 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13415 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13416 * aclocal.m4: Regenerate.
13417 * configure: Regenerate.
13418 * Makefile.in: Regenerate.
13419 * testsuite/Makefile.in: Regenerate.
13420
13421 2010-12-02 Jakub Jelinek <jakub@redhat.com>
13422
13423 PR fortran/46753
13424 * libgomp.fortran/pr46753.f90: New test.
13425
13426 PR libgomp/43706
13427 * env.c (initialize_env): Default to spin count 300000
13428 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13429 is specified.
13430
13431 PR libgomp/45240
13432 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13433 at the end if sync builtins aren't supported.
13434
13435 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13436
13437 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13438
13439 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13440
13441 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13442
13443 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
13444
13445 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13446
13447 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13448 Tobias Burnus <burnus@net-b.de>
13449
13450 PR fortran/32049
13451 * configure.ac:
13452 * configure: Regenerate.
13453
13454 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13455
13456 * config/linux/futex.h: New.
13457 * config/linux/arm/mutex.h: New.
13458 * configure.tgt (arm*-*-linux*): Add config path.
13459
13460 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
13461
13462 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13463
13464 2010-09-23 Tobias Burnus <burnus@net-b.de>
13465
13466 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13467 Change Fortran datatype to LOGICAL.
13468 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13469 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13470
13471 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13472
13473 * configure: Regenerate.
13474
13475 2010-07-26 Jakub Jelinek <jakub@redhat.com>
13476
13477 * libgomp.texi: Add function keyword to a couple of Fortran
13478 interfaces, use integer instead of int for Fortran.
13479
13480 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
13481
13482 * libgomp.texi: Fix spelling and pasto problems throughout.
13483 Adjust prototypes to match code.
13484
13485 2010-07-24 Tobias Burnus <burnus@net-b.de>
13486
13487 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13488 silence -fwhole-file warning.
13489
13490 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13491
13492 * configure.tgt (*-*-solaris2.[56]*): Removed.
13493
13494 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13495
13496 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13497 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13498 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13499 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13500 targetting solaris2*.
13501 * configure: Regenerate.
13502 * config.h.in: Regenerate.
13503
13504 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13505 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13506 Add libgomp_version_dep.
13507 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13508 versioning.
13509 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13510 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13511 * Makefile.in: Regenerate.
13512
13513 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13514 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13515 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13516 to common block, protected by
13517 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13518
13519 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13520
13521 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
13522
13523 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
13524
13525 PR bootstrap/43170
13526 * configure: Regenerate.
13527
13528 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13529
13530 PR other/43620
13531 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13532 * configure: Regenerate.
13533 * Makefile.in: Regenerate.
13534 * testsuite/Makefile.in: Regenerate.
13535
13536 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13537
13538 PR c/43893
13539 * testsuite/libgomp.c/pr43893.c: New test.
13540 * testsuite/libgomp.c++/pr43893.C: New test.
13541
13542 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13543
13544 PR middle-end/43570
13545 * testsuite/libgomp.fortran/vla8.f90: New test.
13546
13547 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13548
13549 PR libgomp/43706
13550 * config/linux/affinity.c (gomp_init_affinity): Decrease
13551 gomp_available_cpus if affinity mask confines the process to fewer
13552 CPUs.
13553 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13554 non-NULL, just return gomp_available_cpus.
13555
13556 PR libgomp/43569
13557 * sections.c (gomp_sections_init): Initialize ws->mode.
13558
13559 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13560
13561 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13562 not unused bar variable.
13563 * configure: Regenerate.
13564
13565 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13566
13567 * Makefile.in: Regenerate.
13568 * aclocal.m4: Regenerate.
13569 * testsuite/Makefile.in: Regenerate.
13570
13571 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13572
13573 PR libgomp/42942
13574 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13575 (initialize_env): Adjust callers.
13576 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13577 when the argument is 0.
13578
13579 * testsuite/libgomp.c/pr42942.c: New test.
13580
13581 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13582
13583 PR middle-end/42644
13584 PR middle-end/42130
13585 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13586 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13587
13588 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13589
13590 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13591 * testsuite/libgomp.c++/task-6.C: Likewise.
13592
13593 2010-01-28 Steve Ellcey <sje@cup.hp.com>
13594
13595 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13596
13597 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
13598
13599 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13600 * configure: Regenerate.
13601
13602 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13603
13604 PR fortran/42866
13605 * testsuite/libgomp.fortran/allocatable5.f90: New test.
13606
13607 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
13608
13609 * configure.ac: Test for executability of GFORTRAN.
13610 * configure: Regenerate.
13611
13612 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13613
13614 * configure: Regenerate.
13615
13616 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13617
13618 PR libgomp/42602
13619 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13620
13621 2010-01-03 Richard Guenther <rguenther@suse.de>
13622
13623 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13624
13625 2009-12-23 Sebastian Pop <sebpop@gmail.com>
13626
13627 * testsuite/libgomp.graphite/pr4118.c: New.
13628
13629 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13630
13631 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13632 for darwin, protect the test with require-effective-target tls_runtime.
13633 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13634
13635 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13636
13637 PR target/41605
13638 * testsuite/lib/libgomp.exp: Provide -B options to allow for
13639 link spec %s substitutions for static libraries.
13640
13641 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
13642
13643 PR testsuite/42135
13644 * libgomp.graphite/force-parallel-2.c: Reduce array size.
13645
13646 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13647
13648 * Makefile.in: Regenerate.
13649 * configure: Regenerate.
13650 * testsuite/Makefile.in: Regenerate.
13651
13652 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
13653
13654 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13655 settings for LC_ALL and LANG.
13656
13657 2009-11-25 Jakub Jelinek <jakub@redhat.com>
13658
13659 PR fortran/42162
13660 * testsuite/libgomp.fortran/pr42162.f90: New test.
13661
13662 2009-11-13 Jakub Jelinek <jakub@redhat.com>
13663
13664 PR middle-end/42029
13665 * testsuite/libgomp.c/pr42029.c: New test.
13666
13667 2009-10-26 Jakub Jelinek <jakub@redhat.com>
13668
13669 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13670 *s. Accept ld version without text in ()s.
13671 * configure: Regenerated.
13672
13673 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
13674
13675 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13676
13677 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13678
13679 PR libgomp/41418
13680 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13681 or a hyphen (happens with fortran language disabled).
13682 * configure: Regenerate.
13683
13684 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13685
13686 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13687 use sed script portable to Solaris /bin/sed for extracting ld
13688 version.
13689 * configure: Regenerate.
13690
13691 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
13692
13693 * testsuite/libgomp.graphite/bounds.c: New test.
13694
13695 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13696
13697 * Makefile.am (libgomp_la_LINK): New.
13698 * Makefile.in: Regenerate.
13699
13700 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13701
13702 * configure.ac (AC_PREREQ): Bump to 2.64.
13703
13704 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13705
13706 * Makefile.am (install-html, install-pdf): Remove.
13707 * Makefile.in: Regenerate.
13708
13709 * Makefile.in: Regenerate.
13710 * aclocal.m4: Regenerate.
13711 * config.h.in: Regenerate.
13712 * configure: Regenerate.
13713 * testsuite/Makefile.in: Regenerate.
13714
13715 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13716
13717 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13718 * Makefile.in: Regenerate.
13719
13720 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
13721
13722 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13723 * Makefile.in: Regenerate.
13724
13725 2009-08-19 Tobias Burnus <burnus@net-b.de>
13726
13727 PR fortran/41102
13728 omp_lib.h.in: Fix -std=f95 errors.
13729
13730 2009-08-14 David Edelsohn <edelsohn@gnu.org>
13731
13732 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13733 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13734 * testsuite/libgomp.graphite/graphite.exp: New.
13735
13736 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
13737
13738 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13739 only build.
13740
13741 2009-08-04 David Daney <ddaney@caviumnetworks.com>
13742
13743 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13744 needed memory barrier semantics.
13745 * config/linux/mips/mutex.h: New file.
13746
13747 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13748
13749 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13750
13751 2009-07-16 Joseph Myers <joseph@codesourcery.com>
13752
13753 * configure: Regenerate.
13754
13755 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
13756
13757 PR testsuite/40699
13758 PR testsuite/40707
13759 PR testsuite/40709
13760 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13761 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13762 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13763
13764 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
13765
13766 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13767 options when choosing a multilib.
13768
13769 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
13770
13771 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13772 ld_library_path. Use add_path. Add just find_libgcc_s to
13773 ld_library_path, not every libgcc multilib directory.
13774 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13775 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13776 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13777 Use add_path.
13778 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13779
13780 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
13781
13782 * Makefile.am (LTLDFLAGS): Define.
13783 (LINK): Define.
13784 * Makefile.in: Regenerate.
13785
13786 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
13787
13788 PR fortran/39718
13789 * testsuite/libgomp.fortran/fortran.exp: Don't link with
13790 libgfortranbegin, check existence of libgfortran.a instead of
13791 libgfortranbegin.a.
13792
13793 2009-05-20 Jakub Jelinek <jakub@redhat.com>
13794
13795 PR libgomp/40174
13796 * team.c (gomp_thread_start): Destroy thr->release semaphore.
13797 (gomp_free_pool_helper): Likewise.
13798
13799 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
13800 Jakub Jelinek <jakub@redhat.com>
13801
13802 PR fortran/35423
13803 * testsuite/libgomp.fortran/workshare2.f90: New test.
13804
13805 2009-04-09 Nick Clifton <nickc@redhat.com>
13806
13807 * iter.c: Change copyright header to refer to version 3 of the
13808 GNU General Public License with version 3.1 of the GCC Runtime
13809 Library Exception and to point readers at the COPYING3 and
13810 COPYING3.RUNTIME files and the FSF's license web page.
13811 * alloc.c: Likewise.
13812 * barrier.c: Likewise.
13813 * config/bsd/proc.c: Likewise.
13814 * config/linux/affinity.c: Likewise.
13815 * config/linux/alpha/futex.h: Likewise.
13816 * config/linux/bar.c: Likewise.
13817 * config/linux/bar.h: Likewise.
13818 * config/linux/ia64/futex.h: Likewise.
13819 * config/linux/ia64/mutex.h: Likewise.
13820 * config/linux/lock.c: Likewise.
13821 * config/linux/mips/futex.h: Likewise.
13822 * config/linux/mutex.c: Likewise.
13823 * config/linux/mutex.h: Likewise.
13824 * config/linux/powerpc/futex.h: Likewise.
13825 * config/linux/proc.c: Likewise.
13826 * config/linux/ptrlock.c: Likewise.
13827 * config/linux/ptrlock.h: Likewise.
13828 * config/linux/s390/futex.h: Likewise.
13829 * config/linux/sem.c: Likewise.
13830 * config/linux/sem.h: Likewise.
13831 * config/linux/sparc/futex.h: Likewise.
13832 * config/linux/wait.h: Likewise.
13833 * config/linux/x86/futex.h: Likewise.
13834 * config/mingw32/proc.c: Likewise.
13835 * config/mingw32/time.c: Likewise.
13836 * config/posix/affinity.c: Likewise.
13837 * config/posix/bar.c: Likewise.
13838 * config/posix/bar.h: Likewise.
13839 * config/posix/lock.c: Likewise.
13840 * config/posix/mutex.h: Likewise.
13841 * config/posix/proc.c: Likewise.
13842 * config/posix/ptrlock.h: Likewise.
13843 * config/posix/sem.c: Likewise.
13844 * config/posix/sem.h: Likewise.
13845 * config/posix/time.c: Likewise.
13846 * config/posix95/lock.c: Likewise.
13847 * critical.c: Likewise.
13848 * env.c: Likewise.
13849 * error.c: Likewise.
13850 * fortran.c: Likewise.
13851 * iter_ull.c: Likewise.
13852 * libgomp.h: Likewise.
13853 * libgomp_f.h.in: Likewise.
13854 * libgomp_g.h: Likewise.
13855 * loop.c: Likewise.
13856 * loop_ull.c: Likewise.
13857 * omp.h.in: Likewise.
13858 * omp_lib.f90.in: Likewise.
13859 * omp_lib.h.in: Likewise.
13860 * ordered.c: Likewise.
13861 * parallel.c: Likewise.
13862 * sections.c: Likewise.
13863 * single.c: Likewise.
13864 * task.c: Likewise.
13865 * team.c: Likewise.
13866 * work.c: Likewise.
13867
13868 2009-04-09 Jakub Jelinek <jakub@redhat.com>
13869
13870 * testsuite/config/default.exp: Change copyright header to refer to
13871 version 3 of the GNU General Public License and to point readers
13872 at the COPYING3 file and the FSF's license web page.
13873
13874 2009-04-08 Jakub Jelinek <jakub@redhat.com>
13875
13876 PR middle-end/39573
13877 * libgomp.c++/pr39573.C: New test.
13878
13879 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13880
13881 PR other/39591
13882 * testsuite/libgomp.c/pr39591-1.c: New test.
13883 * testsuite/libgomp.c/pr39591-2.c: New test.
13884 * testsuite/libgomp.c/pr39591-3.c: New test.
13885
13886 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
13887
13888 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13889 * testsuite/libgomp.c/atomic-6.c: Ditto.
13890
13891 2009-03-23 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR c/39495
13894 * testsuite/libgomp.c/loop-12.c: New test.
13895 * testsuite/libgomp.c/loop-11.c: New test.
13896 * testsuite/libgomp.c++/loop-11.C: New test.
13897 * testsuite/libgomp.c++/loop-12.C: New test.
13898 * testsuite/libgomp.c++/for-8.C: New test.
13899
13900 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13901
13902 * configure: Regenerate.
13903
13904 2009-02-11 Jakub Jelinek <jakub@redhat.com>
13905
13906 PR middle-end/39154
13907 * testsuite/libgomp.c/pr39154.c: New test.
13908
13909 2009-01-30 Ian Lance Taylor <iant@google.com>
13910
13911 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13912 libgomp_ld_is_gold. Get gold version number.
13913 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13914 * configure: Rebuild.
13915
13916 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13917
13918 * testsuite/lib/libgomp.exp: Add -B option for targets that
13919 use libgfortran.a%s in their specs.
13920
13921 2009-01-07 Jakub Jelinek <jakub@redhat.com>
13922
13923 PR libgomp/38086
13924 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13925 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13926 HAVE_AS_SYMVER_DIRECTIVE is not defined.
13927 * configure: Regenerated.
13928 * config.h.in: Likewise.
13929
13930 2008-12-28 Jakub Jelinek <jakub@redhat.com>
13931
13932 PR c++/38650
13933 * testsuite/libgomp.c/pr38650.c: New test.
13934 * testsuite/libgomp.c++/pr38650.C: New test.
13935
13936 2008-12-27 Jakub Jelinek <jakub@redhat.com>
13937
13938 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13939
13940 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
13941
13942 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13943
13944 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13945
13946 * configure: Regenerate.
13947
13948 2008-12-08 Jakub Jelinek <jakub@redhat.com>
13949
13950 PR middle-end/36802
13951 * testsuite/libgomp.c/pr36802-1.c: New test.
13952 * testsuite/libgomp.c/pr36802-2.c: New test.
13953 * testsuite/libgomp.c/pr36802-3.c: New test.
13954
13955 2008-12-01 Janis Johnson <janis187@us.ibm.com>
13956
13957 PR libgomp/38270
13958 * config/linux/powerpc/mutex.h: New.
13959
13960 2008-12-01 Jakub Jelinek <jakub@redhat.com>
13961
13962 PR c++/38257
13963 * testsuite/libgomp.c++/for-7.C: New test.
13964
13965 PR c++/38348
13966 * testsuite/libgomp.c++/for-6.C: New test.
13967
13968 2008-11-26 Janis Johnson <janis187@us.ibm.com>
13969
13970 PR testsuite/28870
13971 * testsuite/lib/libgomp.exp: Include new timeout library files.
13972 (libgomp_target_compile): Set timeout value from new proc.
13973
13974 2008-11-13 Steve Ellcey <sje@cup.hp.com>
13975
13976 PR libgomp/37938
13977 * config/linux/ia64/mutex.h: New.
13978
13979 2008-11-04 Tobias Burnus <burnus@net-b.de>
13980
13981 PR libgomp/37935
13982 * libgomp.texi (Runtime library routines, environment variables):
13983 Update for OpenMP version 3.0.
13984
13985 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
13986 Steve Ellcey <sje@cup.hp.com>
13987
13988 * configure: Regenerate for new libtool.
13989 * Makefile.in: Ditto.
13990 * testsuite/Makefile.in: Ditto.
13991
13992 2008-09-19 Jakub Jelinek <jakub@redhat.com>
13993 Andreas Tobler <a.tobler@schweiz.org>
13994
13995 * config/bsd/proc.c: New file.
13996 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13997 * configure.ac: Check for header <sys/sysctl.h>
13998 * configure: Regenerate.
13999 * config.h.in: Likewise.
14000
14001 2008-09-05 Janis Johnson <janis187@us.ibm.com>
14002
14003 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14004
14005 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14006
14007 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14008 * Makefile.in: Regenerated.
14009 * testsuite/Makefile.in: Regenerated.
14010
14011 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
14012
14013 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14014 depend on blddir if blddir exists.
14015 (libgomp_target_compile): Likewise.
14016 * testsuite/libgomp.c++/c++.exp: Likewise.
14017 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14018
14019 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14020
14021 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
14022 Do not list GPL as Invariant Section.
14023
14024 2008-07-28 Ilie Garbacea <ilie@mips.com>
14025 Chao-ying Fu <fu@mips.com>
14026
14027 * configure.tgt: Enable futex for MIPS.
14028 * config/linux/mips/futex.h: New file.
14029
14030 2008-07-16 Jakub Jelinek <jakub@redhat.com>
14031
14032 * team.c (gomp_team_end): Free team immediately if it has
14033 just one thread.
14034
14035 2008-07-08 David Edelsohn <edelsohn@gnu.org>
14036
14037 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14038 * testsuite/libgomp.fortran/fortran.exp: Same.
14039 * testsuite/libgomp.c/c.exp: Same.
14040 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14041 directory to library path first.
14042
14043 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
14044
14045 * env.c (parse_stacksize): Add cast to avoid warning.
14046 (parse_spincount): Likewise.
14047
14048 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14049
14050 * testsuite/libgomp.c/loop-10.c: New test.
14051 * libgomp.c/loop-3.c (main): Add lastprivate clause.
14052 * libgomp.c++/loop-6.C (main): Likewise.
14053
14054 PR debug/36617
14055 * testsuite/libgomp.c/debug-1.c: New test.
14056
14057 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14058
14059 * testsuite/libgomp.c/nqueens-1.c: New test.
14060
14061 PR c++/36523
14062 * testsuite/libgomp.c++/task-7.C: New function.
14063
14064 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14065
14066 * configure: Regenerate.
14067
14068 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14069
14070 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14071 mutex when HAVE_SYNC_BUILTINS isn't defined.
14072
14073 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14074
14075 * libgomp.texi (omp_test_lock): Fix typo.
14076
14077 2008-06-12 Tobias Burnus <burnus@net-b.de>
14078
14079 * omp_lib.f90.in: Add "implicit none".
14080
14081 2008-06-12 Jakub Jelinek <jakub@redhat.com>
14082
14083 PR middle-end/36506
14084 * testsuite/libgomp.c/reduction-5.c: New test.
14085
14086 2008-06-11 Jakub Jelinek <jakub@redhat.com>
14087
14088 * libgomp.h (struct gomp_task): Add in_tied_task field.
14089 * task.c (gomp_init_task): Initialize it.
14090 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
14091 unconditionally. Don't call gomp_team_barrier_wake if
14092 current task is implicit or if(0) from implicit and number of
14093 running tasks is equal to nthreads - 1.
14094
14095 PR libgomp/36471
14096 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14097 omp_get_team_size_8): Fix pastos.
14098
14099 PR libgomp/36469
14100 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14101 * configure: Regenerated.
14102 * config.h.in: Regenerated.
14103 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14104 defined.
14105
14106 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
14107
14108 PR bootstrap/36452
14109 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14110 (GOMP_loop_ull_dynamic_start): Likewise.
14111 (GOMP_loop_ull_guided_start): Likewise.
14112 (GOMP_loop_ull_ordered_static_start): Likewise.
14113 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14114 (GOMP_loop_ull_ordered_guided_start): Likewise.
14115
14116 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14117 Richard Henderson <rth@redhat.com>
14118 Ulrich Drepper <drepper@redhat.com>
14119 Jakob Blomer <jakob.blomer@ira.uka.de>
14120
14121 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14122 Substitute also OMP_*LOCK_25*.
14123 * configure: Regenerated.
14124 * config.h.in: Regenerated.
14125 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14126 ptrlock.c and task.c.
14127 * Makefile.in: Regenerated.
14128 * testsuite/Makefile.in: Regenerated.
14129 * task.c: New file.
14130 * loop_ull.c: New file.
14131 * iter_ull.c: New file.
14132 * libgomp.h: Include ptrlock.h.
14133 (enum gomp_task_kind): New type.
14134 (struct gomp_team): Add task_lock, task_queue, task_count,
14135 task_running_count, single_count fields. Add
14136 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14137 Remove work_share_lock, generation_mask,
14138 oldest_live_gen, num_live_gen and init_work_shares fields, add
14139 work work_share_list_alloc, work_share_list_free and work_share_chunk
14140 fields. Change work_shares from pointer to pointers into an array.
14141 Change ordered_release field into gomp_sem_t ** from flexible array
14142 member. Add implicit_task and initial_work_shares fields.
14143 Move close to the end of the struct.
14144 (struct gomp_team_state): Add single_count, last_work_share,
14145 active_level and level fields, remove work_share_generation.
14146 (gomp_barrier_handle_tasks): New prototype.
14147 (gomp_finish_task): New inline function.
14148 (struct gomp_work_share): Move chunk_size, end, incr into
14149 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14150 next_ll fields. Reshuffle fields. Add next_alloc,
14151 next_ws, next_free and inline_ordered_team_ids fields, change
14152 ordered_team_ids into pointer from flexible array member.
14153 Add mode field. Put lock and next into a different cache line
14154 from most of the write-once fields.
14155 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14156 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14157 gomp_iter_ull_guided_next): New prototypes.
14158 (gomp_new_icv): New prototype.
14159 (struct gomp_thread): Add thread_pool and task fields.
14160 (struct gomp_thread_pool): New type.
14161 (gomp_new_team): New prototype.
14162 (gomp_team_start): Change type of last argument.
14163 (gomp_new_work_share): Removed.
14164 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14165 (gomp_work_share_init_done): New static inline.
14166 (gomp_throttled_spin_count_var, gomp_available_cpus,
14167 gomp_managed_threads): New extern decls.
14168 (gomp_init_task): New prototype.
14169 (gomp_spin_count_var): New extern var decl.
14170 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14171 or no alias support, or if not PIC.
14172 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14173 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14174 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14175 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14176 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14177 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14178 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14179 gomp_test_nest_lock_25): New prototypes.
14180 (omp_lock_symver, strong_alias): Define.
14181 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14182 decls.
14183 (gomp_end_task): New.
14184 (struct gomp_task_icv, gomp_global_icv): New.
14185 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14186 (struct gomp_task): New.
14187 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14188 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14189 (gomp_icv): New.
14190 (gomp_schedule_type): Reorder enum to match
14191 omp_sched_t.
14192 * team.c (struct gomp_thread_start_data): Add thread_pool and task
14193 fields.
14194 (gomp_thread_start): Add gomp_team_barrier_wait call.
14195 For non-nested case remove clearing of docked thread thr fields.
14196 Use pool fields instead of global gomp_* variables. Use
14197 gomp_barrier_wait_last when needed. Initialize ts.active_level.
14198 Create tasks for each member thread.
14199 (free_team): Only destroy team barrier, task_lock here and free it.
14200 (gomp_free_thread): Free last_team if non-NULL.
14201 (gomp_team_end): Call gomp_team_barrier_wait instead of
14202 gomp_barrier_wait. For nested case call one extra
14203 gomp_barrier_wait. Move here some destruction from free_team.
14204 Call free_team on pool->last_team if any, rather than freeing
14205 current team. Destroy work_share_list_free_lock ifndef
14206 HAVE_SYNC_BUILTINS.
14207 (gomp_new_icv): New function.
14208 (gomp_threads, gomp_threads_size, gomp_threads_used,
14209 gomp_threads_dock): Removed.
14210 (gomp_thread_destructor): New variable.
14211 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14212 functions.
14213 (gomp_team_start): Create new pool if current thread doesn't have
14214 one. Use pool fields instead of global gomp_* variables.
14215 Initialize thread_pool field for new threads. Clear single_count.
14216 Change last argument from ws to team, don't create
14217 new team, set ts.work_share to &team->work_shares[0] and clear
14218 ts.last_work_share. Don't clear ts.work_share_generation.
14219 If number of threads changed, adjust atomically gomp_managed_threads.
14220 Use gomp_init_task instead of gomp_new_task,
14221 set thr->task to the corresponding implicit_task array entry.
14222 Create tasks for each member thread. Initialize ts.level.
14223 (initialize_team): Call pthread_key_create on
14224 gomp_thread_destructor.
14225 (team_destructor): New function.
14226 (new_team): Removed.
14227 (gomp_new_team): New function.
14228 (free_team): Free gomp_work_share blocks chained through next_alloc,
14229 instead of freeing work_shares and destroying work_share_lock.
14230 (gomp_team_end): Call gomp_fini_work_share. If number of threads
14231 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
14232 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14233 of gomp_barrier_wait.
14234 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14235 instead of gomp_barrier_wait. Call gomp_work_share_init_done
14236 if gomp_work_share_start returned true. Don't unlock ws->lock.
14237 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14238 of gomp_barrier_wait.
14239 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
14240 gomp_work_share_init_done if gomp_work_share_start returned true.
14241 Don't unlock ws->lock.
14242 * work.c: Include stddef.h.
14243 (free_work_share): Use work_share_list_free_lock instead
14244 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
14245 Call gomp_fini_work_share and then either free ws if orphaned, or
14246 put it into work_share_list_free list of the current team.
14247 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14248 functions.
14249 (gomp_work_share_start, gomp_work_share_end,
14250 gomp_work_share_end_nowait): Rewritten.
14251 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14252 (openmp_version): Set to 200805.
14253 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14254 omp_sched_guided, omp_sched_auto): New parameters.
14255 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14256 omp_set_max_active_levels, omp_get_max_active_levels,
14257 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14258 omp_get_active_level): New interfaces.
14259 * omp_lib.h.in (openmp_version): Set to 200805.
14260 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14261 omp_sched_guided, omp_sched_auto): New parameters.
14262 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14263 omp_set_max_active_levels, omp_get_max_active_levels,
14264 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14265 omp_get_active_level): New externals.
14266 * loop.c: Include limits.h.
14267 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14268 GFS_AUTO.
14269 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14270 Likewise. Use gomp_icv.
14271 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14272 ts.static_trip here.
14273 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14274 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
14275 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14276 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
14277 don't unlock ws->lock, otherwise lock it.
14278 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14279 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
14280 (gomp_parallel_loop_start): Call gomp_new_team instead of
14281 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
14282 Adjust gomp_team_start caller. Pass 0 as second argument to
14283 gomp_resolve_num_threads.
14284 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14285 If adding ws->chunk_size nthreads + 1 times after end won't
14286 overflow, set ws->mode to 1.
14287 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14288 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14289 GOMP_loop_ull_ordered_static_start,
14290 GOMP_loop_ull_ordered_dynamic_start,
14291 GOMP_loop_ull_ordered_guided_start,
14292 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14293 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14294 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14295 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14296 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14297 prototypes.
14298 * libgomp.map: Export lock routines also @@OMP_2.0.
14299 (GOMP_loop_ordered_dynamic_first,
14300 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14301 GOMP_loop_ordered_static_first): Remove.
14302 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14303 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14304 GOMP_loop_ull_ordered_dynamic_next,
14305 GOMP_loop_ull_ordered_dynamic_start,
14306 GOMP_loop_ull_ordered_guided_next,
14307 GOMP_loop_ull_ordered_guided_start,
14308 GOMP_loop_ull_ordered_runtime_next,
14309 GOMP_loop_ull_ordered_runtime_start,
14310 GOMP_loop_ull_ordered_static_next,
14311 GOMP_loop_ull_ordered_static_start,
14312 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14313 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14314 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14315 (omp_set_schedule, omp_get_schedule,
14316 omp_get_thread_limit, omp_set_max_active_levels,
14317 omp_get_max_active_levels, omp_get_level,
14318 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14319 omp_set_schedule_, omp_set_schedule_8_,
14320 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14321 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14322 omp_get_max_active_levels_, omp_get_level_,
14323 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14324 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14325 New exports @@OMP_3.0.
14326 * omp.h.in (omp_sched_t): New type.
14327 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14328 omp_set_max_active_levels, omp_get_max_active_levels,
14329 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14330 omp_get_active_level): New prototypes.
14331 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14332 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14333 gomp_thread_limit_var, gomp_remaining_threads_count,
14334 gomp_remaining_threads_lock): New variables.
14335 (parse_spincount): New function.
14336 (initialize_env): Call gomp_init_num_threads unconditionally.
14337 Initialize gomp_available_cpus. Call parse_spincount,
14338 initialize gomp_{,throttled_}spin_count_var
14339 depending on presence and value of OMP_WAIT_POLICY and
14340 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
14341 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14342 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
14343 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
14344 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
14345 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14346 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14347 (gomp_global_icv): New.
14348 (parse_schedule): Use it. Parse "auto".
14349 (omp_set_num_threads): Use gomp_icv.
14350 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14351 Likewise.
14352 (omp_get_max_threads): Move from parallel.c.
14353 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14354 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14355 add ialias.
14356 (parse_stacksize, parse_wait_policy): New functions.
14357 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14358 both wrappers for compatibility and new locks.
14359 (omp_set_schedule, omp_get_schedule,
14360 omp_get_thread_limit, omp_set_max_active_levels,
14361 omp_get_max_active_levels, omp_get_level,
14362 omp_get_ancestor_thread_num, omp_get_team_size,
14363 omp_get_active_level): New ialias_redirect.
14364 (omp_set_schedule_, omp_set_schedule_8_,
14365 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14366 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14367 omp_get_max_active_levels_, omp_get_level_,
14368 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14369 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14370 New functions.
14371 * parallel.c: Include limits.h.
14372 (gomp_resolve_num_threads): Add count argument. Rewritten.
14373 (GOMP_parallel_start): Call gomp_new_team and pass that as last
14374 argument to gomp_team_start. Pass 0 as second argument to
14375 gomp_resolve_num_threads.
14376 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14377 if gomp_thread_limit_var != ULONG_MAX.
14378 (omp_in_parallel): Implement using ts.active_level.
14379 (omp_get_max_threads): Move to env.c.
14380 (omp_get_level, omp_get_ancestor_thread_num,
14381 omp_get_team_size, omp_get_active_level): New functions,
14382 add ialias.
14383 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14384 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
14385 gomp_iter_dynamic_next instead of the _locked variant and don't take
14386 lock around it, otherwise acquire it before calling
14387 gomp_iter_dynamic_next_locked.
14388 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14389 gomp_iter_dynamic_next instead of the _locked variant and don't take
14390 lock around it.
14391 (GOMP_parallel_sections_start): Call gomp_new_team instead of
14392 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
14393 Adjust gomp_team_start caller. Pass count as second argument to
14394 gomp_resolve_num_threads, don't adjust num_threads after the call.
14395 Use gomp_icv.
14396 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14397 ws->chunk_size by incr.
14398 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
14399 code.
14400 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14401 types.
14402 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14403 (omp_check_defines): Check even the compat defines.
14404 * config/linux/ptrlock.c: New file.
14405 * config/linux/ptrlock.h: New file.
14406 * config/linux/wait.h: New file.
14407 * config/posix/ptrlock.c: New file.
14408 * config/posix/ptrlock.h: New file.
14409 * config/linux/bar.h (gomp_team_barrier_wait,
14410 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14411 (gomp_team_barrier_set_task_pending,
14412 gomp_team_barrier_clear_task_pending,
14413 gomp_team_barrier_set_waiting_for_tasks,
14414 gomp_team_barrier_waiting_for_tasks,
14415 gomp_team_barrier_done): New inlines.
14416 (gomp_barrier_t): Rewritten.
14417 (gomp_barrier_state_t): New typedef.
14418 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14419 gomp_barrier_wait_start): Rewritten.
14420 (gomp_barrier_wait_end): Change second argument to
14421 gomp_barrier_state_t.
14422 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14423 inlines.
14424 * config/linux/bar.c: Include wait.h instead of libgomp.h and
14425 futex.h.
14426 (gomp_barrier_wait_end): Rewritten.
14427 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14428 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14429 * config/posix/bar.h (gomp_barrier_t): Add generation field.
14430 (gomp_barrier_state_t): New typedef.
14431 (gomp_team_barrier_wait,
14432 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14433 (gomp_barrier_wait_start): Or all but low 2 bits from generation
14434 into the return value. Return gomp_barrier_state_t.
14435 (gomp_team_barrier_set_task_pending,
14436 gomp_team_barrier_clear_task_pending,
14437 gomp_team_barrier_set_waiting_for_tasks,
14438 gomp_team_barrier_waiting_for_tasks,
14439 gomp_team_barrier_done): New inlines.
14440 (gomp_barrier_wait_end): Change second argument to
14441 gomp_barrier_state_t.
14442 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14443 inlines.
14444 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14445 (gomp_barrier_wait_end): Change second argument to
14446 gomp_barrier_state_t.
14447 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14448 gomp_team_barrier_wake): New functions.
14449 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14450 futex.h.
14451 (gomp_futex_wake, gomp_futex_wait): New variables.
14452 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14453 * config/linux/lock.c: Rewrite to make locks task owned,
14454 for backwards compatibility provide the old entrypoints
14455 if symbol versioning. Include wait.h instead of libgomp.h and
14456 futex.h.
14457 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14458 * config/posix95/lock.c: Rewrite to make locks task owned,
14459 for backwards compatibility provide the old entrypoints
14460 if symbol versioning.
14461 * config/posix/lock.c: Rewrite to make locks task owned,
14462 for backwards compatibility provide the old entrypoints
14463 if symbol versioning.
14464 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14465 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14466 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14467 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14468 (sys_futex0): Return error code.
14469 (futex_wake, futex_wait): If ENOSYS was returned, clear
14470 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14471 (cpu_relax, atomic_write_barrier): New static inlines.
14472 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14473 (futex_wake, futex_wait): If ENOSYS was returned, clear
14474 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14475 (cpu_relax, atomic_write_barrier): New static inlines.
14476 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14477 (sys_futex0): Return error code.
14478 (futex_wake, futex_wait): If ENOSYS was returned, clear
14479 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14480 (cpu_relax, atomic_write_barrier): New static inlines.
14481 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14482 (sys_futex0): Return error code.
14483 (futex_wake, futex_wait): If ENOSYS was returned, clear
14484 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14485 (cpu_relax, atomic_write_barrier): New static inlines.
14486 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14487 (sys_futex0): Return error code.
14488 (futex_wake, futex_wait): If ENOSYS was returned, clear
14489 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14490 (cpu_relax, atomic_write_barrier): New static inlines.
14491 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14492 (sys_futex0): Return error code.
14493 (futex_wake, futex_wait): If ENOSYS was returned, clear
14494 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14495 (cpu_relax, atomic_write_barrier): New static inlines.
14496 * config/linux/sem.c: Include wait.h instead of libgomp.h and
14497 futex.h.
14498 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14499 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14500 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14501 types.
14502 (omp_nest_lock_t): Change owner into void *, add lock field.
14503 * config/posix95/omp-lock.h: Include semaphore.h.
14504 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14505 (omp_lock_t): Use sem_t instead of mutex if semaphores
14506 aren't broken.
14507 (omp_nest_lock_t): Likewise. Change owner to void *.
14508 * config/posix/omp-lock.h: Include semaphore.h.
14509 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14510 (omp_lock_t): Use sem_t instead of mutex if semaphores
14511 aren't broken.
14512 (omp_nest_lock_t): Likewise. Add owner field.
14513
14514 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14515
14516 * testsuite/libgomp.c/collapse-1.c: New test.
14517 * testsuite/libgomp.c/collapse-2.c: New test.
14518 * testsuite/libgomp.c/collapse-3.c: New test.
14519 * testsuite/libgomp.c/icv-1.c: New test.
14520 * testsuite/libgomp.c/icv-2.c: New test.
14521 * testsuite/libgomp.c/lib-2.c: New test.
14522 * testsuite/libgomp.c/lock-1.c: New test.
14523 * testsuite/libgomp.c/lock-2.c: New test.
14524 * testsuite/libgomp.c/lock-3.c: New test.
14525 * testsuite/libgomp.c/loop-4.c: New test.
14526 * testsuite/libgomp.c/loop-5.c: New test.
14527 * testsuite/libgomp.c/loop-6.c: New test.
14528 * testsuite/libgomp.c/loop-7.c: New test.
14529 * testsuite/libgomp.c/loop-8.c: New test.
14530 * testsuite/libgomp.c/loop-9.c: New test.
14531 * testsuite/libgomp.c/nested-3.c: New test.
14532 * testsuite/libgomp.c/nestedfn-6.c: New test.
14533 * testsuite/libgomp.c/sort-1.c: New test.
14534 * testsuite/libgomp.c/task-1.c: New test.
14535 * testsuite/libgomp.c/task-2.c: New test.
14536 * testsuite/libgomp.c/task-3.c: New test.
14537 * testsuite/libgomp.c/task-4.c: New test.
14538 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14539 to C++ testsuite default compiler options.
14540 * testsuite/libgomp.c++/collapse-1.C: New test.
14541 * testsuite/libgomp.c++/collapse-2.C: New test.
14542 * testsuite/libgomp.c++/ctor-10.C: New test.
14543 * testsuite/libgomp.c++/for-1.C: New test.
14544 * testsuite/libgomp.c++/for-2.C: New test.
14545 * testsuite/libgomp.c++/for-3.C: New test.
14546 * testsuite/libgomp.c++/for-4.C: New test.
14547 * testsuite/libgomp.c++/for-5.C: New test.
14548 * testsuite/libgomp.c++/loop-8.C: New test.
14549 * testsuite/libgomp.c++/loop-9.C: New test.
14550 * testsuite/libgomp.c++/loop-10.C: New test.
14551 * testsuite/libgomp.c++/task-1.C: New test.
14552 * testsuite/libgomp.c++/task-2.C: New test.
14553 * testsuite/libgomp.c++/task-3.C: New test.
14554 * testsuite/libgomp.c++/task-4.C: New test.
14555 * testsuite/libgomp.c++/task-5.C: New test.
14556 * testsuite/libgomp.c++/task-6.C: New test.
14557 * testsuite/libgomp.fortran/allocatable1.f90: New test.
14558 * testsuite/libgomp.fortran/allocatable2.f90: New test.
14559 * testsuite/libgomp.fortran/allocatable3.f90: New test.
14560 * testsuite/libgomp.fortran/allocatable4.f90: New test.
14561 * testsuite/libgomp.fortran/collapse1.f90: New test.
14562 * testsuite/libgomp.fortran/collapse2.f90: New test.
14563 * testsuite/libgomp.fortran/collapse3.f90: New test.
14564 * testsuite/libgomp.fortran/collapse4.f90: New test.
14565 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14566 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14567 * testsuite/libgomp.fortran/lib4.f90: New test.
14568 * testsuite/libgomp.fortran/lock-1.f90: New test.
14569 * testsuite/libgomp.fortran/lock-2.f90: New test.
14570 * testsuite/libgomp.fortran/nested1.f90: New test.
14571 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14572 * testsuite/libgomp.fortran/strassen.f90: New test.
14573 * testsuite/libgomp.fortran/tabs1.f90: New test.
14574 * testsuite/libgomp.fortran/tabs2.f: New test.
14575 * testsuite/libgomp.fortran/task1.f90: New test.
14576 * testsuite/libgomp.fortran/task2.f90: New test.
14577 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14578 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14579 * testsuite/libgomp.c/pr26943-2.c: Likewise.
14580 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14581 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14582
14583 2008-05-23 Jakub Jelinek <jakub@redhat.com>
14584
14585 PR c++/36308
14586 * testsuite/libgomp.c++/ctor-11.C: New test.
14587 * testsuite/libgomp.c++/ctor-12.C: New test.
14588
14589 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14590
14591 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14592
14593 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14594
14595 PR middle-end/36106
14596 * testsuite/libgomp.c/atomic-5.c: New test.
14597 * testsuite/libgomp.c/atomic-6.c: New test.
14598 * testsuite/libgomp.c/autopar-1.c: New test.
14599
14600 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14601
14602 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14603 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14604 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14605 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14606 * configure: Regenerate.
14607 * Makefile.in, testsuite/Makefile.in: Likewise.
14608
14609 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14610
14611 PR bootstrap/35457
14612 * aclocal.m4: Regenerate.
14613 * configure: Regenerate.
14614
14615 2008-03-18 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR middle-end/35611
14618 * testsuite/libgomp.c/atomic-4.c: New test.
14619
14620 PR libgomp/35625
14621 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14622 (gomp_iter_guided_next): Likewise.
14623 * testsuite/libgomp.c/pr35625.c: New test.
14624
14625 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14626
14627 * aclocal.m4: Regenerate.
14628 * configure: Likewise.
14629 * Makefile.in: Likewise.
14630 * testsuite/Makefile.in: Likewise.
14631
14632 2008-03-13 Jakub Jelinek <jakub@redhat.com>
14633
14634 PR middle-end/35185
14635 * testsuite/libgomp.c++/pr35185.C: New test.
14636
14637 2008-03-12 Jakub Jelinek <jakub@redhat.com>
14638
14639 PR middle-end/35549
14640 * testsuite/libgomp.c/pr35549.c: New test.
14641
14642 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14643
14644 * testsuite/libgomp.c/atomic-3.c: New test.
14645
14646 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14647
14648 PR fortran/33197
14649 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14650 .F08 file suffixes.
14651
14652 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
14653
14654 PR libgomp/33131
14655 * configure.ac: Add ACX_HEADER_STRING.
14656 * env.c: Include strings.h.
14657 * aclocal.m4: Regenerate.
14658 * config.h.in: Regenerate.
14659 * configure: Regenerate.
14660 * Makefile.in: Regenerate.
14661 * testsuite/Makefile.in: Regenerate.
14662
14663 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14664
14665 PR middle-end/35196
14666 * testsuite/libgomp.c/pr35196.c: New test.
14667
14668 PR middle-end/35130
14669 * testsuite/libgomp.fortran/pr35130.f90: New test.
14670 * testsuite/libgomp.c/pr35130.c: New test.
14671
14672 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14673
14674 PR middle-end/33880
14675 * testsuite/libgomp.c/pr33880.c: New test.
14676 * testsuite/libgomp.fortran/pr33880.f90: New test.
14677
14678 2008-01-24 David Edelsohn <edelsohn@gnu.org>
14679
14680 * configure: Regenerate.
14681
14682 2008-01-08 Jakub Jelinek <jakub@redhat.com>
14683
14684 * configure.ac: Move futex checking into ../config/futex.m4.
14685 * configure: Rebuilt.
14686 * aclocal.m4: Rebuilt.
14687 * Makefile.in: Rebuilt.
14688
14689 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14690 2007-10-15 ../config/tls.m4 change.
14691
14692 2007-12-19 Jakub Jelinek <jakub@redhat.com>
14693
14694 PR c++/34513
14695 * testsuite/libgomp.c/pr34513.c: New test.
14696 * testsuite/libgomp.c++/pr34513.C: New test.
14697
14698 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
14699
14700 PR target/32765
14701 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14702
14703 2007-12-04 Jakub Jelinek <jakub@redhat.com>
14704
14705 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
14706
14707 2007-12-03 Jakub Jelinek <jakub@redhat.com>
14708
14709 * testsuite/libgomp.c/private-1.c: New test.
14710
14711 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
14712 Paolo Bonzini <bonzini@gnu.org>
14713
14714 * Makefile.am: Use space as vpath separator. Use 'vpath %'
14715 instead of 'VPATH ='.
14716 * Makefile.in: Regenerate.
14717
14718 2007-11-23 Matthias Klose <doko@ubuntu.com>
14719
14720 * configure.ac: Adjust makeinfo version check.
14721 * configure: Regenerate.
14722
14723 2007-11-10 Jakub Jelinek <jakub@redhat.com>
14724
14725 PR fortran/34020
14726 * testsuite/libgomp.fortran/pr34020.f90: New test.
14727
14728 2007-11-06 Jakub Jelinek <jakub@redhat.com>
14729
14730 PR c++/33894
14731 * testsuite/libgomp.c++/atomic-1.C: New test.
14732
14733 2007-10-25 Jakub Jelinek <jakub@redhat.com>
14734
14735 PR libgomp/33275
14736 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14737 Make x and y integers rather than (implicit) reals. Add private (j)
14738 clause to the last omp parallel.
14739
14740 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
14741
14742 * configure: Regenerate following changes to ../config/tls.m4.
14743
14744 2007-09-28 Jakub Jelinek <jakub@redhat.com>
14745
14746 * testsuite/libgomp.fortran/stack.f90: New test.
14747
14748 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
14749
14750 * config/mingw32/proc.c: New file.
14751
14752 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
14753
14754 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14755 (main): Use __get_cpuid to get i386 target fetaures.
14756 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14757 (main): Use __get_cpuid to get x86_64 target fetaures.
14758
14759 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
14760
14761 PR target/32765
14762 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14763 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14764
14765 2007-07-12 Jakub Jelinek <jakub@redhat.com>
14766
14767 PR fortran/32550
14768 * testsuite/libgomp.fortran/pr32550.f90: New test.
14769 * testsuite/libgomp.fortran/crayptr2.f90: New test.
14770
14771 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
14772
14773 * aclocal.m4: Regenerated.
14774
14775 2007-07-05 Tobias Burnus <burnus@net-b.de>
14776
14777 PR fortran/32359
14778 * testsuite/libgomp.fortran/pr32359.f90: New.
14779
14780 2007-07-02 Jakub Jelinek <jakub@redhat.com>
14781
14782 PR libgomp/32468
14783 * sections.c (GOMP_parallel_sections_start): Only decrease
14784 number of threads to COUNT if dyn_var is true.
14785 * testsuite/libgomp.c/pr32468.c: New test.
14786
14787 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14788
14789 PR libgomp/26308
14790 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14791
14792 2007-06-21 Jakub Jelinek <jakub@redhat.com>
14793
14794 PR middle-end/32362
14795 * testsuite/libgomp.c/pr32362-1.c: New test.
14796 * testsuite/libgomp.c/pr32362-2.c: New test.
14797 * testsuite/libgomp.c/pr32362-3.c: New test.
14798
14799 2007-06-07 Jakub Jelinek <jakub@redhat.com>
14800
14801 * team.c (gomp_team_start): Fix setting up thread_attr
14802 stack size.
14803
14804 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
14805
14806 * configure: Regenerate.
14807
14808 2007-05-23 Steve Ellcey <sje@cup.hp.com>
14809
14810 * Makefile.in: Regenerate.
14811 * configure: Regenerate.
14812 * aclocal.m4: Regenerate.
14813 * testsuite/Makefile.in: Regenerate.
14814
14815 2007-05-04 Jakub Jelinek <jakub@redhat.com>
14816
14817 * config/linux/proc.c: New file.
14818
14819 PR libgomp/28482
14820 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14821
14822 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
14823
14824 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14825
14826 2007-04-16 Matthias Klose <doko@debian.org>
14827
14828 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14829 flags if not building with -m64.
14830 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14831 flag for i?86-*-* targets, if current target matches -m64.
14832
14833 2007-04-14 Steve Ellcey <sje@cup.hp.com>
14834
14835 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14836 * Makefile.in: Regenerate.
14837
14838 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14839
14840 PR testsuite/31369
14841 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14842 ld_library_path.
14843 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14844
14845 2007-04-04 Jakub Jelinek <jakub@redhat.com>
14846
14847 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14848 decls.
14849 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14850 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14851 (parse_affinity): New function.
14852 (initialize_env): Call it and gomp_init_affinity.
14853 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14854 create new pthread_attr_t and call gomp_init_thread_affinity
14855 on it for each thread before passing the attribute to pthread_create.
14856 * config/linux/affinity.c: New file.
14857 * config/posix/affinity.c: New file.
14858 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14859 * configure: Rebuilt.
14860 * config.h.in: Rebuilt.
14861 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14862 * Makefile.in: Rebuilt.
14863
14864 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
14865
14866 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14867 *-*-darwin*.
14868 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14869 and use it if found.
14870
14871 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
14872
14873 * testsuite/config/default.exp: New file.
14874 * testsuite/lib/libgomp.exp: New file.
14875 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14876 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14877 load_lib *, load_gcc_lib *): Move to libgomp.exp.
14878 (libgomp_load): Remove.
14879 * testsuite/lib/libgomp.exp (libgomp_init): Compute
14880 always_ld_library_path, not ld_library_path. Set additional_flags
14881 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14882 (target_compile): Do not call libgomp_init. Append lang_library_path
14883 and lang_link_flags to options.
14884 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
14885 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
14886 here.
14887 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14888 always_ld_library_path. Set LD_LIBRARY_PATH here.
14889 * testsuite/libgomp.fortran/fortran.exp: Ditto.
14890 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14891 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14892 CX8 flag.
14893 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14894 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14895 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14896 * testsuite/libgomp.c/pr29947-1.c: Ditto.
14897 * testsuite/libgomp.c/atomic-10.c: Ditto.
14898
14899 2007-03-21 Jakub Jelinek <jakub@redhat.com>
14900
14901 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14902 dg-final cleanup-modules line.
14903 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14904 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14905 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14906 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14907 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14908 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14909 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14910
14911 2007-03-18 Andreas Schwab <schwab@suse.de>
14912
14913 * acinclude.m4: Adjust regular expression for ld version
14914 extraction.
14915 * configure: Regenerate.
14916
14917 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14918
14919 * Makefile.am: Add install-pdf target as copied from
14920 automake v1.10 rules.
14921 * Makefile.in: Regenerate
14922
14923 2007-02-07 Jakub Jelinek <jakub@redhat.com>
14924
14925 PR libgomp/28486
14926 * configure: Regenerate.
14927
14928 PR c++/30703
14929 * testsuite/libgomp.c++/pr30703.C: New test.
14930
14931 2007-02-02 Jakub Jelinek <jakub@redhat.com>
14932
14933 Revert:
14934 2006-07-05 Eric Christopher <echristo@apple.com>
14935 * configure.ac: Depend addition of -pthread on host OS.
14936 * configure: Regenerate.
14937
14938 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14939
14940 * libgomp.texi: Fix spacing after abbreviations.
14941
14942 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
14943
14944 PR libgomp/30546
14945 * configure.ac: Add check for makeinfo
14946 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14947 if an appropriate version of makeinfo is found.
14948 * aclocal.m4: Regenerated.
14949 * configure: Regenerated.
14950 * Makefile.in: Regenerated.
14951 * testsuite/Makefile.in: Regenerated.
14952
14953 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
14954
14955 PR libgomp/30540
14956 * libgomp.texi: More about implementation-dependent settings.
14957
14958 2007-01-26 Tobias Burnus <burnus@net-b.de>
14959
14960 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14961
14962 2007-01-24 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR middle-end/30494
14965 * testsuite/libgomp.c/pr30494.c: New test.
14966
14967 2007-01-15 Tom Tromey <tromey@redhat.com>
14968
14969 * configure: Rebuilt.
14970 * configure.ac: Fixed comment.
14971
14972 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
14973
14974 * libgomp.texi: Document implementation specific default values of
14975 environment variables.
14976
14977 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
14978
14979 PR libgomp/28209
14980 * libgomp.texi: New file.
14981 * configure.ac: Add --enable-generated-files-in-srcdir option.
14982 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14983 files to srcdir.
14984 * Makefile.in: Regenerated.
14985 * config.h.in: Regenerated.
14986 * testsuite/Makefile.in: Regenerated.
14987 * NOTES: Removed.
14988
14989 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
14990
14991 PR libgomp/29949
14992 * env.c (omp_set_num_threads): Set illegal thread count to 1.
14993
14994 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14995
14996 * configure: Regenerate.
14997
14998 2006-12-04 Jakub Jelinek <jakub@redhat.com>
14999
15000 PR libgomp/29947
15001 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
15002 start if there shouldn't be any loop iterations.
15003 (gomp_loop_ordered_static_start): Remove start == end test.
15004 * testsuite/libgomp.c/pr29947-1.c: New test.
15005 * testsuite/libgomp.c/pr29947-2.c: New test.
15006
15007 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15008
15009 * configure.tgt: Force initial-exec TLS model on Linux only.
15010
15011 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
15012
15013 * configure: Regenerated.
15014
15015 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
15016
15017 * env.c (parse_schedule): Reject out of range values.
15018 (parse_unsigned_long): Reject out of range, negative or zero values.
15019
15020 2006-10-29 Jakub Jelinek <jakub@redhat.com>
15021
15022 PR fortran/29629
15023 * testsuite/libgomp.fortran/pr29629.f90: New test.
15024
15025 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
15026
15027 PR libgomp/29494
15028 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15029 * config/posix95: New directory.
15030 * config/posix95/omp-lock.h: New file.
15031 * config/posix95/lock.c: Likewise.
15032
15033 2006-10-14 Geoffrey Keating <geoffk@apple.com>
15034
15035 * aclocal.m4: Regenerate.
15036 * configure: Regenerate.
15037
15038 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15039
15040 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15041 '<' to '<='.
15042
15043 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15044
15045 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15046 test.
15047 * configure: Regenerate.
15048 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15049
15050 2006-09-26 Jakub Jelinek <jakub@redhat.com>
15051
15052 PR middle-end/25261
15053 PR middle-end/28790
15054 * testsuite/libgomp.c/nestedfn-4.c: New test.
15055 * testsuite/libgomp.c/nestedfn-5.c: New test.
15056 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15057
15058 PR fortran/29097
15059 * testsuite/libgomp.fortran/condinc1.f: New test.
15060 * testsuite/libgomp.fortran/condinc2.f: New test.
15061 * testsuite/libgomp.fortran/condinc3.f90: New test.
15062 * testsuite/libgomp.fortran/condinc4.f90: New test.
15063 * testsuite/libgomp.fortran/condinc1.inc: New file.
15064
15065 2006-09-18 Tom Tromey <tromey@redhat.com>
15066
15067 * configure: Rebuilt.
15068
15069 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
15070
15071 PR c/28768
15072 PR preprocessor/14634
15073 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15074 to AC_DEFINE.
15075 * configure: Regenerate.
15076
15077 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15078
15079 * testsuite/libgomp.fortran/reduction3.f90: Change
15080 -2147483648 to -huge(i)-1 to avoid overflow.
15081 * testsuite/libgomp.fortran/reduction4.f90: Change
15082 Z'ffffffff' to not(0) to avoid overflow.
15083
15084 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
15085
15086 PR libgomp/25938
15087 * Makefile.am (libsubincludedir): New.
15088 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15089 * Makefile.in: Regenerate.
15090
15091 2006-08-17 Jakub Jelinek <jakub@redhat.com>
15092
15093 PR libgomp/28725
15094 * env.c: Include ctype.h.
15095 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15096 leading and/or trailing whitespace and compare strings case
15097 insensitively.
15098
15099 2006-07-16 Jakub Jelinek <jakub@redhat.com>
15100
15101 PR fortran/28390
15102 * testsuite/libgomp.fortran/pr28390.f: New test.
15103
15104 2006-07-05 Eric Christopher <echristo@apple.com>
15105
15106 * configure.ac: Depend addition of -pthread on host OS.
15107 * configure: Regenerate.
15108
15109 2006-06-21 Jakub Jelinek <jakub@redhat.com>
15110
15111 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15112 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15113 defined.
15114
15115 2006-06-20 Jakub Jelinek <jakub@redhat.com>
15116
15117 PR libgomp/26175
15118 PR libgomp/26477
15119 * configure.ac: If neither --enable-linux-futex nor
15120 --disable-linux-futex is passed, determine the default by checking
15121 for compiling and/or running against NPTL. With --enable-linux-futex,
15122 check if SYS_gettid and SYS_futex are defined.
15123 * configure: Rebuilt.
15124
15125 2006-06-14 Richard Henderson <rth@redhat.com>
15126
15127 PR libgomp/28008
15128 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15129 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15130
15131 2006-06-09 Richard Henderson <rth@redhat.com>
15132
15133 * env.c (gomp_nthreads_var): Change to unsigned long.
15134 (gomp_run_sched_chunk): Likewise.
15135 (parse_unsigned_long): Rename from parse_num_threads and generalize.
15136 (initialize_env): Initialize gomp_thread_attr.
15137 * libgomp.h (gomp_nthreads_var): Update decl.
15138 (gomp_run_sched_chunk): Likewise.
15139 (gomp_thread_attr): Declare.
15140 * team.c (gomp_thread_attr): Export.
15141 (initialize_team): Don't initialize it.
15142
15143 2006-06-09 Jakub Jelinek <jakub@redhat.com>
15144
15145 PR fortran/27916
15146 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15147 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15148
15149 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15150
15151 * config/mingw32/time.c: New file.
15152 * configure.tgt: Use it.
15153
15154 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
15155
15156 * Makefile.am: Add install-html target. Add install-html to .PHONY
15157 * Makefile.in: Regenerate.
15158
15159 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15160
15161 PR libgomp/27612
15162 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15163 * testsuite/libgomp.c/critical-1.c: Likewise.
15164 * testsuite/libgomp.c/loop-1.c: Likewise.
15165 * testsuite/libgomp.c/loop-2.c: Likewise.
15166 * testsuite/libgomp.c/single-1.c: Likewise.
15167 * testsuite/libgomp.c/ordered-1.c: Likewise.
15168 * testsuite/libgomp.c/ordered-2.c: Likewise.
15169
15170 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15171
15172 PR middle-end/27416
15173 * libgomp.fortran/pr27416-1.f90: New test.
15174
15175 2006-05-03 Jakub Jelinek <jakub@redhat.com>
15176
15177 PR fortran/27395
15178 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15179 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15180
15181 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR c++/26943
15184 * testsuite/libgomp.c/pr26943-1.c: New test.
15185 * testsuite/libgomp.c/pr26943-2.c: New test.
15186 * testsuite/libgomp.c/pr26943-3.c: New test.
15187 * testsuite/libgomp.c/pr26943-4.c: New test.
15188 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15189 * testsuite/libgomp.c++/pr26943.C: New test.
15190
15191 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15192
15193 PR middle-end/27337
15194 * testsuite/libgomp.c++/pr27337.C: New test.
15195
15196 2006-04-26 Jakub Jelinek <jakub@redhat.com>
15197
15198 PR c/26171
15199 * testsuite/libgomp.c/pr26171.c: New test.
15200
15201 2006-04-25 Richard Henderson <rth@redhat.com>
15202
15203 PR libgomp/25865
15204 * configure.ac: Use GCC_CHECK_TLS.
15205 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15206 * Makefile.in, aclocal.m4, configure: Regenerate.
15207
15208 2006-04-10 Matthias Klose <doko@debian.org>
15209
15210 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15211 directory names containing underscores.
15212
15213 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15214
15215 PR c++/26691
15216 * testsuite/libgomp.c++/pr26691.C: New test.
15217
15218 2006-03-13 Jakub Jelinek <jakub@redhat.com>
15219
15220 * testsuite/libgomp.fortran/retval2.f90: New test.
15221
15222 2006-03-09 Diego Novillo <dnovillo@redhat.com>
15223
15224 * testsuite/libgomp.c++: New directory.
15225
15226 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
15227
15228 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15229 * config/posix/sem.c: Implement the above.
15230
15231 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
15232
15233 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15234 define HAVE_BROKEN_POSIX_SEMAPHORES.
15235 * configure: Rebuilt.
15236 * config.h.in: Rebuilt.
15237
15238 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15239
15240 PR bootstrap/26161
15241 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15242 for the other pthread check.
15243 * configure: Regenerate.
15244 * config.h.in: Regenerate.
15245
15246 2006-02-15 Jakub Jelinek <jakub@redhat.com>
15247
15248 PR libgomp/25938
15249 PR libgomp/25984
15250 * Makefile.am (fincludedir): New variable.
15251 (nodist_include_HEADERS): Remove Fortran files.
15252 (nodist_finclude_HEADERS): New variable.
15253 * Makefile.in: Regenerated.
15254
15255 2006-02-13 Jakub Jelinek <jakub@redhat.com>
15256
15257 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15258 Remove tests for returning assumed character length arrays.
15259
15260 2006-02-12 Roger Sayle <roger@eyesopen.com>
15261 John David Anglin <dave@hiauly1.hia.nrc.ca>
15262
15263 PR libgomp/25936
15264 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15265
15266 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
15267
15268 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15269
15270 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
15271
15272 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15273 part of LD_LIBRARY_PATH manually.
15274
15275 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
15276
15277 PR libgomp/25852
15278 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15279 libgomp_init.
15280
15281 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
15282
15283 PR libgomp/25884
15284 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15285 * configure.ac (PERL): Don't set.
15286 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15287 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15288 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15289 * omp.h.in: Wrap the new configure substitutions with @ characters.
15290 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15291 * aclocal.m4, configure, Makefile.in: Regenerate.
15292 * mkomp_h.pl: Delete.
15293
15294 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
15295
15296 PR libgomp/25259
15297 * configure.ac: Use GCC_HEADER_STDINT.
15298 * libgomp.h: Include gstdint.h.
15299 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15300 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15301
15302 2006-01-24 Richard Henderson <rth@redhat.com>
15303
15304 PR libgomp/25942
15305 * configure.ac: Add AM_MAINTAINER_MODE.
15306 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15307
15308 2006-01-24 Diego Novillo <dnovillo@redhat.com>
15309
15310 * Makefile.in: Regenerate.
15311 * testsuite/Makefile.in: Regenerate.
15312 * aclocal.m4: Regenerate.
15313
15314 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15315
15316 * config/posix/proc.c: Conditional include of sys/loadavg.h for
15317 Solaris.
15318 * configure.ac: Add check for loadavg.h.
15319 (link_gomp): Adjust comment.
15320 * configure: Regenerate.
15321 * config.h.in: Regenerate.
15322
15323 2006-01-21 Steve Ellcey <sje@cup.hp.com>
15324
15325 PR libgomp/25877
15326 * configure.ac: Remove check for alloca.h.
15327 * configure: Regenerate.
15328 * config.h.in: Regenerate.
15329 * libgomp.h: define gomp_alloca to be __builtin_alloca.
15330 * team.c: Remove use of alloca.h.
15331 Call gomp_alloca instead of alloca.
15332
15333 2006-01-20 Steve Ellcey <sje@cup.hp.com>
15334
15335 PR libgomp/25877
15336 * team.c: Add include of alloca.h.
15337 * configure.ac: Add check for alloca.h.
15338 * configure: Regenerate.
15339 * config.h.in: Regenerate.
15340
15341 2006-01-17 Jakub Jelinek <jakub@redhat.com>
15342
15343 PR fortran/25219
15344 * testsuite/libgomp.fortran/pr25219.f90: New test.
15345
15346 2005-12-05 Uros Bizjak <uros@kss-loka.si>
15347
15348 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15349 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15350 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15351 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15352 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15353 testsuite/libgomp.fortran/threadprivate1.f90,
15354 testsuite/libgomp.fortran/threadprivate2.f90,
15355 testsuite/libgomp.fortran/threadprivate3.f90,
15356 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15357 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15358 testsuite/libgomp.fortran/omp_parse3.f90: Change required
15359 effective-target to TLS runtime.
15360
15361 * testsuite/libgomp.fortran/pr25162.f: Require
15362 effective-target TLS runtime.
15363
15364 2005-12-01 Jakub Jelinek <jakub@redhat.com>
15365
15366 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15367 * testsuite/libgomp.c/nestedfn-3.c: New test.
15368
15369 2005-11-30 Jakub Jelinek <jakub@redhat.com>
15370
15371 PR fortran/25162
15372 * testsuite/libgomp.fortran/pr25162.f: New test.
15373
15374 2005-11-28 Jakub Jelinek <jakub@redhat.com>
15375
15376 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15377 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15378
15379 2005-11-25 Jakub Jelinek <jakub@redhat.com>
15380
15381 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15382 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15383 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15384 single.c, team.c, work.c, config/linux/alpha/futex.h,
15385 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15386 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15387 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15388 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15389 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15390 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15391 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15392 FSF address.
15393
15394 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15395
15396 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15397 to nodist_noinst_HEADERS.
15398 * Makefile.in: Rebuilt.
15399
15400 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15401 add integer count field.
15402 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15403 omp_nest_lock_t type change.
15404 (omp_init_nest_lock): Likewise. Initialize count to 0.
15405 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15406 Increment count.
15407 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15408 Decrement count.
15409 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15410 Increment count if successful and return the new nesting level.
15411 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15412 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15413 * testsuite/libgomp.c/lib-1.c: New test.
15414 * testsuite/libgomp.fortran/lib1.f90: New test.
15415 * testsuite/libgomp.fortran/lib2.f: New test.
15416 * testsuite/libgomp.fortran/lib3.f: New test.
15417
15418 2005-11-17 Richard Henderson <rth@redhat.com>
15419
15420 PR 24845
15421 * Makefile.am (nodist_toolexeclib_HEADERS): New.
15422 * configure.ac (link_gomp): New. Substitute it.
15423 (AC_CONFIG_FILES): Add libgomp.spec.
15424 * libgomp.spec.in: New file.
15425 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15426 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15427
15428 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15429
15430 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15431 reduction(-:var) behaving the same as reduction(+:var).
15432 * testsuite/libgomp.c/reduction-4.c: New test.
15433
15434 2005-11-15 Uros Bizjak <uros@kss-loka.si>
15435
15436 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15437 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15438 testsuite/libgomp.c/copyin-3.c,
15439 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15440 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15441 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15442 testsuite/libgomp.c++/pr24455.C,
15443 testsuite/libgomp.fortran/threadprivate1.f90,
15444 testsuite/libgomp.fortran/threadprivate2.f90,
15445 testsuite/libgomp.fortran/threadprivate3.f90,
15446 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15447 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15448 testsuite/libgomp.fortran/omp_parse3.f90: Require
15449 effective-target TLS.
15450
15451 2005-11-14 Diego Novillo <dnovillo@redhat.com>
15452
15453 * HEADER: Remove.
15454
15455 2005-11-13 Jakub Jelinek <jakub@redhat.com>
15456
15457 PR libgomp/24797
15458 * team.c (initialize_team): Pass NULL rather than free as
15459 pthread_key_create destructor. Initialize thread specific data
15460 pointer in initial thread to a static local variable rather than
15461 malloced memory.
15462
15463 2005-11-11 Uros Bizjak <uros@kss-loka.si>
15464
15465 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15466 its location to ld_library_path.
15467
15468 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15469
15470 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15471
15472 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15473
15474 * testsuite/libgomp.c: Rename from libgomp.dg.
15475
15476 2005-11-09 Diego Novillo <dnovillo@redhat.com>
15477
15478 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15479 threadprivate variable 'i'.
15480
15481 2005-11-09 Jakub Jelinek <jakub@redhat.com>
15482
15483 * config/linux/s390/futex.h: New file.
15484 * configure.tgt: Use it.
15485
15486 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15487 before the parallel.
15488
15489 2005-11-08 Jakub Jelinek <jakub@redhat.com>
15490
15491 PR c++/24734
15492 * testsuite/libgomp.c++/master-1.C: New test.
15493
15494 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15495
15496 * testsuite/libgomp.dg/copyin-3.c: New test.
15497
15498 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15499
15500 * testsuite/libgomp.fortran/retval1.f90: New test.
15501 * testsuite/libgomp.fortran/vla7.f90: New test.
15502
15503 2005-11-06 Jakub Jelinek <jakub@redhat.com>
15504
15505 * testsuite/libgomp.fortran/vla2.f90: New test.
15506 * testsuite/libgomp.fortran/vla3.f90: New test.
15507 * testsuite/libgomp.fortran/vla4.f90: New test.
15508 * testsuite/libgomp.fortran/vla5.f90: New test.
15509 * testsuite/libgomp.fortran/vla6.f90: New test.
15510
15511 2005-11-01 Jakub Jelinek <jakub@redhat.com>
15512
15513 * config/linux/sparc/futex.h: New file.
15514 * configure.tgt: Use it.
15515 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15516
15517 * critical.c: Include stdlib.h.
15518 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15519 ignoring return value.
15520 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15521 LIBGOMP_CHECK_SYNC_BUILTINS check.
15522 * configure: Rebuilt.
15523
15524 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15525
15526 * testsuite/libgomp.fortran/vla1.f90: New test.
15527
15528 2005-10-31 Richard Henderson <rth@redhat.com>
15529
15530 * testsuite/libgomp.fortran/character2.f90: Fix race condition
15531 setting 's' in different threads.
15532
15533 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15534
15535 * libgomp.h (attribute_hidden, ialias): Define.
15536 * config/posix/proc.c (omp_get_num_procs): Add ialias.
15537 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15538 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15539 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15540 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15541 omp_test_lock, omp_test_nest_lock): Likewise.
15542 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15543 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15544 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15545 omp_test_lock, omp_test_nest_lock): Likewise.
15546 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15547 omp_get_dynamic, omp_get_nested): Likewise.
15548 * parallel.c (omp_get_num_threads, omp_get_max_threads,
15549 omp_get_thread_num, omp_in_parallel): Likewise.
15550 * fortran.c (ialias_redirect): Define.
15551 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15552 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15553 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15554 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15555 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15556 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15557 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15558 omp_get_wtime): Add ialias_redirect.
15559
15560 2005-10-30 Jakub Jelinek <jakub@redhat.com>
15561
15562 * fortran.c: Include stdlib.h.
15563
15564 2005-10-29 Jakub Jelinek <jakub@redhat.com>
15565
15566 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15567 * Makefile.in: Regenerated.
15568
15569 2005-10-28 Jakub Jelinek <jakub@redhat.com>
15570
15571 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15572 * libgomp_f.h.in (omp_check_defines): New function.
15573 * env.c: Include libgomp_f.h.
15574 (initialize_env): Call omp_check_defines.
15575
15576 * testsuite/libgomp.dg/copyin-2.c: New test.
15577 * testsuite/libgomp.c++/copyin-2.C: New test.
15578 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15579
15580 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15581 * testsuite/libgomp.fortran/sharing2.f90: New test.
15582
15583 * testsuite/libgomp.dg/copyin-1.c: New test.
15584 * testsuite/libgomp.c++/copyin-1.C: New test.
15585
15586 2005-10-26 Jakub Jelinek <jakub@redhat.com>
15587
15588 * testsuite/libgomp.fortran/crayptr1.f90: New test.
15589
15590 * testsuite/libgomp.fortran/workshare1.f90: New test.
15591
15592 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15593 only test.
15594 * libgomp.fortran/sharing1.f90: New test.
15595
15596 2005-10-24 Jakub Jelinek <jakub@redhat.com>
15597
15598 PR c++/24502
15599 * testsuite/libgomp.c++/loop-7.C: New test.
15600
15601 * testsuite/libgomp.dg/nestedfn-2.c: New test.
15602
15603 * testsuite/libgomp.dg/nestedfn-1.c: New test.
15604 * testsuite/libgomp.fortran/reduction6.f90: New test.
15605 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15606
15607 2005-10-23 Richard Henderson <rth@redhat.com>
15608
15609 * testsuite/libgomp.c++/ctor-1.C: New.
15610 * testsuite/libgomp.c++/ctor-2.C: New.
15611 * testsuite/libgomp.c++/ctor-3.C: New.
15612 * testsuite/libgomp.c++/ctor-4.C: New.
15613 * testsuite/libgomp.c++/ctor-5.C: New.
15614 * testsuite/libgomp.c++/ctor-6.C: New.
15615 * testsuite/libgomp.c++/ctor-7.C: New.
15616 * testsuite/libgomp.c++/ctor-8.C: New.
15617 * testsuite/libgomp.c++/ctor-9.C: New.
15618
15619 2005-10-21 Diego Novillo <dnovillo@redhat.com>
15620
15621 PR 24455
15622 * testsuite/libgomp.c++/pr24455-1.C: New test.
15623 * testsuite/libgomp.c++/pr24455.C: New test.
15624 * testsuite/libgomp.dg/pr24455-1.c: New test.
15625 * testsuite/libgomp.dg/pr24455.c: New test.
15626
15627 2005-10-20 Richard Henderson <rth@redhat.com>
15628
15629 * testsuite/libgomp.c++/loop-6.C: New.
15630 * testsuite/libgomp.dg/loop-3.c: New.
15631
15632 2005-10-20 Jakub Jelinek <jakub@redhat.com>
15633
15634 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15635 explicitly private.
15636 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15637 explicitly shared.
15638
15639 2005-10-19 Diego Novillo <dnovillo@redhat.com>
15640
15641 * testsuite/libgomp.fortran/jacobi.f: New test.
15642
15643 2005-10-19 Richard Henderson <rth@redhat.com>
15644
15645 * configure.tgt (i?86-linux): Default to with_arch instead of
15646 CFLAGS. Add -mtune to match target_cpu.
15647 (x86_64-linux): Tune to i686.
15648
15649 * fortran.c (omp_test_nest_lock_): Fix typo.
15650
15651 2005-10-19 Jakub Jelinek <jakub@redhat.com>
15652
15653 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15654 gomp_ordered_sync): Do nothing if team->nthreads == 1.
15655 * testsuite/libgomp.dg/ordered-3.c: New test.
15656
15657 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15658 Remove volatile keyword.
15659
15660 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15661 in COMMON block to avoid warnings on 64-bit targets.
15662
15663 2005-10-18 Diego Novillo <dnovillo@redhat.com>
15664
15665 * testsuite/libgomp.dg/shared-3.c: New test.
15666
15667 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15668
15669 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15670 * testsuite/libgomp.fortran/reduction5.f90: New test.
15671
15672 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15673
15674 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15675 dg-options.
15676 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
15677 flush loop now that __sync_synchronize has proper memory barrier.
15678 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15679 Add -ffixed-form to dg-options.
15680
15681 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15682
15683 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15684 from subdirectories.
15685 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15686 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15687 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15688 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15689 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15690 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15691 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15692 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15693 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15694 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15695 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15696 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15697 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15698 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15699 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15700 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15701 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15702 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15703 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15704 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15705 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15706 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15707 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15708 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15709 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15710
15711 2005-10-17 Jakub Jelinek <jakub@redhat.com>
15712
15713 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15714 lang_library_path exists. Use find instead of glob to gather tests.
15715 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15716
15717 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15718
15719 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15720 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15721 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15722 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15723 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15724 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15725 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15726 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15727 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15728 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15729 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15730 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15731 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15732
15733 2005-10-15 Jakub Jelinek <jakub@redhat.com>
15734
15735 * testsuite/libgomp.dg/vla-1.c: New test.
15736
15737 * testsuite/libgomp.fortran/reference2.f90: New test.
15738
15739 * testsuite/libgomp.fortran/character2.f90: Remove explicit
15740 declaration of omp_get_thread_num.
15741 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
15742 use omp_lib.
15743
15744 * testsuite/libgomp.fortran/reduction1.f90: New test.
15745 * testsuite/libgomp.fortran/reduction2.f90: New test.
15746 * testsuite/libgomp.fortran/reduction3.f90: New test.
15747 * testsuite/libgomp.fortran/reduction4.f90: New test.
15748
15749 2005-10-13 Richard Henderson <rth@redhat.com>
15750
15751 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15752 * Makefile.in: Regenerate.
15753 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15754 * libgomp.h: Include bar.h.
15755 (struct gomp_barrier): Remove.
15756 (struct gomp_team): Add barrier. Replace master_barrier with
15757 master_release. Replace threads with ordered_release.
15758 (struct gomp_thread): Replace barrier with release.
15759 * ordered.c (gomp_ordered_first): Update for ordered_release change.
15760 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15761 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15762 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15763 (GOMP_single_copy_end): Likewise.
15764 * team.c (gomp_threads_dock): New.
15765 (gomp_barrier_init, gomp_barrier_destroy): Remove.
15766 (gomp_thread_start): Use gomp_barrier_wait.
15767 (new_team, free_team): Update for gomp_team changes.
15768 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15769 (gomp_team_end): Use gomp_barrier_wait.
15770 (initialize_team): Update for gomp_thread changes.
15771 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15772 (gomp_work_share_end_nowait): Use atomic ops when available.
15773 * config/linux/bar.c, config/linux/bar.h: New files.
15774 * config/posix/bar.c, config/posix/bar.h: New files.
15775
15776 2005-10-13 Jakub Jelinek <jakub@redhat.com>
15777
15778 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15779 * testsuite/libgomp.dg/single-2.c: New test.
15780
15781 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15782 lang_link_flags): Unset, so that they aren't inherited from previously
15783 sourced *.exp.
15784
15785 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15786
15787 2005-10-12 Richard Henderson <rth@redhat.com>
15788
15789 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15790 (libgomp_init): Use lang_test_file, lang_library_path, and
15791 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
15792
15793 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15794 (lang_test_file, lang_link_flags): New.
15795 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15796
15797 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15798 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15799 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15800 testsuite/libgomp.c++/parallel-1.C,
15801 testsuite/libgomp.c++/reduction-1.C,
15802 testsuite/libgomp.c++/reduction-2.C,
15803 testsuite/libgomp.c++/reduction-3.C,
15804 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15805 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15806 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15807 New files, largely cribbed from the C testsuite.
15808
15809 2005-10-12 Jakub Jelinek <jakub@redhat.com>
15810
15811 * testsuite/libgomp.fortran/character1.f90: New test.
15812 * testsuite/libgomp.fortran/character2.f90: New test.
15813
15814 * testsuite/libgomp.dg/nested-1.c: New test.
15815 * testsuite/libgomp.dg/nested-2.c: New test.
15816 * testsuite/libgomp.fortran/do1.f90: New test.
15817 * testsuite/libgomp.fortran/do2.f90: New test.
15818
15819 * testsuite/libgomp.fortran/reference1.f90: New test.
15820
15821 2005-10-11 Jakub Jelinek <jakub@redhat.com>
15822
15823 * testsuite/libgomp.dg/reduction-1.c: New test.
15824 * testsuite/libgomp.dg/reduction-2.c: New test.
15825 * testsuite/libgomp.dg/reduction-3.c: New test.
15826
15827 2005-10-10 Jakub Jelinek <jakub@redhat.com>
15828
15829 * testsuite/libgomp.dg/atomic-1.c: New test.
15830 * testsuite/libgomp.dg/atomic-2.c: New test.
15831
15832 2005-10-09 Richard Henderson <rth@redhat.com>
15833
15834 * critical.c (atomic_lock): New.
15835 (initialize_critical): Initialize it.
15836 (GOMP_atomic_start, GOMP_atomic_end): New.
15837 * libgomp.map: Export them.
15838 * libgomp_g.h: Declare them.
15839
15840 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15841
15842 2005-10-02 Richard Henderson <rth@redhat.com>
15843
15844 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
15845 to XCFLAGS instead of CFLAGS.
15846
15847 2005-09-30 Richard Henderson <rth@redhat.com>
15848
15849 * configure.ac: Determine whether -pthread or -lpthread is needed.
15850 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15851 * Makefile.in, configure: Rebuild.
15852
15853 2005-09-28 Richard Henderson <rth@redhat.com>
15854
15855 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15856 * testsuite/libgomp.dg/omp-single-3.c: New test.
15857
15858 2005-09-28 Diego Novillo <dnovillo@redhat.com>
15859
15860 * testsuite/libgomp.dg/omp-single-2.c: New test.
15861 * testsuite/libgomp.dg/shared-2.c: Fix return code.
15862
15863 2005-09-27 Richard Henderson <rth@redhat.com>
15864
15865 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15866 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15867
15868 2005-09-27 Jakub Jelinek <jakub@redhat.com>
15869
15870 * testsuite/libgomp.dg/omp-loop03.c: New test.
15871
15872 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15873
15874 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15875
15876 2005-09-27 Diego Novillo <dnovillo@redhat.com>
15877
15878 * testsuite/libgomp.dg/omp-single-1.c: New test.
15879 * testsuite/libgomp.dg/shared-1.c: Return 0.
15880 Add prototype for abort.
15881 * testsuite/libgomp.dg/shared-2.c: Likewise.
15882
15883 2005-09-26 Jakub Jelinek <jakub@redhat.com>
15884
15885 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15886 constructs.
15887
15888 2005-09-26 Diego Novillo <dnovillo@redhat.com>
15889
15890 * testsuite/libgomp.dg/shared-1.c: New test.
15891 * testsuite/libgomp.dg/shared-2.c: New test.
15892
15893 2005-09-24 Richard Henderson <rth@redhat.com>
15894
15895 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15896
15897 2005-09-24 Richard Henderson <rth@redhat.com>
15898
15899 * iter.c (gomp_iter_static_next): Round up when computing number
15900 of iterations. Don't bother distributing a remainder equally.
15901
15902 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15903 Don't call srand. Zero b before testing.
15904 (main): New.
15905
15906 2005-09-24 Jakub Jelinek <jakub@redhat.com>
15907
15908 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15909 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15910
15911 2005-09-23 Jakub Jelinek <jakub@redhat.com>
15912
15913 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15914 without !$omp end do, followed immediately by subroutine end.
15915
15916 2005-09-23 Diego Novillo <dnovillo@redhat.com>
15917
15918 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15919
15920 2005-09-22 Richard Henderson <rth@redhat.com>
15921
15922 * critical.c (GOMP_critical_name_start): Change argument to void**.
15923 Reuse the pointer space if the mutex fits.
15924 (GOMP_critical_name_end): Likewise.
15925 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15926 * libgomp_g.h (GOMP_critical_name_start): Update decl.
15927 (GOMP_critical_name_end): Likewise.
15928 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15929 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15930
15931 2005-09-20 Richard Henderson <rth@redhat.com>
15932
15933 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15934 (create_lock_lock): New.
15935 (initialize_critical): Initialize it.
15936 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15937 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15938
15939 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15940
15941 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15942
15943 2005-09-20 Diego Novillo <dnovillo@redhat.com>
15944
15945 * testsuite/libgomp.dg/omp-loop01.c: New test.
15946 * testsuite/libgomp.dg/omp-loop02.c: New test.
15947
15948 2005-09-20 Jakub Jelinek <jakub@redhat.com>
15949
15950 * configure.ac (AC_PROG_FC): Add.
15951 (USE_FORTRAN): New automake conditional.
15952 * configure: Rebuilt.
15953 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15954 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15955 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15956 Add rules to build them.
15957 * Makefile.in: Rebuilt.
15958 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15959 OMP_NEST_LOCK_KIND.
15960 * libgomp.map: Add Fortran wrappers.
15961 * libgomp_f.h.in: New file.
15962 * omp_lib.h.in: New file.
15963 * omp_lib.f90.in: New file.
15964 * fortran.c: New file.
15965 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15966 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15967 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15968 libgfortran has been built.
15969 * testsuite/libgomp.fortran/fortran.exp: New file.
15970 * testsuite/libgomp.fortran/omp_cond1.f: New test.
15971 * testsuite/libgomp.fortran/omp_cond2.f: New test.
15972 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15973 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15974 * testsuite/libgomp.fortran/omp_hello.f: New test.
15975 * testsuite/libgomp.fortran/omp_orphan.f: New test.
15976 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15977 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15978 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15979 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15980 * testsuite/libgomp.fortran/omp_reduction.f: New test.
15981 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15982 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15983
15984 2005-08-30 Richard Henderson <rth@redhat.com>
15985
15986 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15987 function for when aliases are not usable.
15988 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15989 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15990 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15991 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15992 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15993 GOMP_loop_ordered_guided_next): Likewise.
15994 * ordered.c (GOMP_ordered_start): Likewise.
15995
15996 2005-08-01 Diego Novillo <dnovillo@redhat.com>
15997
15998 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15999 * testsuite/libgomp.dg/omp_hello.c: Fix return code
16000 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16001 * testsuite/libgomp.dg/omp_orphan.c: Likewise
16002 * testsuite/libgomp.dg/omp_reduction.c: Likewise
16003 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16004 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16005 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16006 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16007
16008 2005-07-07 Eric Christopher <echristo@redhat.com>
16009 Diego Novillo <dnovillo@redhat.com>
16010
16011 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16012 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16013 up code.
16014 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16015 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16016 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16017 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16018 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16019 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16020 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16021
16022 2005-06-13 Diego Novillo <dnovillo@redhat.com>
16023
16024 * TOPLEVEL.patch: Remove.
16025
16026 2005-05-16 Richard Henderson <rth@redhat.com>
16027
16028 * configure.ac: Test for clock_gettime.
16029 * config.h.in, configure: Rebuild.
16030 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16031 (omp_get_wtime): Use clock_gettime if available.
16032 (omp_get_wtick): Use clock_getres if available.
16033
16034 2005-05-11 Richard Henderson <rth@redhat.com>
16035
16036 * config/linux/ia64/futex.h: New file.
16037 * configure.tgt: Use it.
16038
16039 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16040
16041 2005-05-07 Richard Henderson <rth@redhat.com>
16042
16043 * config/linux/powerpc/futex.h: New file.
16044 * configure.tgt: Use it.
16045
16046 * config/linux/i486/futex.h: Merge ...
16047 * config/linux/x86_64/futex.h: ... into ...
16048 * config/linux/x86/futex.h: ... here.
16049 * configure.tgt: Update to match.
16050
16051 2005-05-06 Richard Henderson <rth@redhat.com>
16052
16053 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16054 * config/linux/i486/futex.h: Likewise.
16055 * config/linux/x86_64/futex.h: Likewise.
16056
16057 * config/linux/lock.c: New file.
16058 * config/linux/omp-lock.h: New file.
16059
16060 * critical.c, env.h: Don't include omp.h
16061 * config/posix/lock.c: Include libgomp.h instead of omp.h.
16062 * config/posix/time.c: Likewise.
16063 * config/posix/omp-lock.h: New file.
16064 * libgomp.h: Include omp-lock.h and omp.h.
16065 * Makefile.am (nodist_include_HEADERS): New.
16066 (omp.h): New rule.
16067 * configure.ac (PERL): New.
16068 * mkomp_h.pl: New file.
16069 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16070 with templates.
16071 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16072
16073 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16074 build directory. Re-add -march=i486 hack.
16075
16076 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16077 (libgomp_link_flags): Remove.
16078 (libgomp_initialized): Remove.
16079 (libgomp_init): Don't protect from reinitialization. Copy code
16080 from libstdc++ for getting the multilib set correctly.
16081
16082 2005-05-05 Richard Henderson <rth@redhat.com>
16083
16084 * config/linux/alpha/futex.h: New file.
16085 * configure.tgt (alpha*-*-linux*): Use it.
16086
16087 * config/posix/mutex.c: New file.
16088 * config/posix/sem.c: Use libgomp.h.
16089
16090 * configure.tgt (x86_64-linux): Also test CC for -m32.
16091 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16092
16093 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16094 after $gccpath.
16095
16096 * Makefile.am (SUBDIRS): New.
16097 (libgomp_la_LDFLAGS): Add -lpthread.
16098 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16099 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16100
16101 * libgomp_g.h: New file.
16102 * libgomp.h: Split out all public declarations to libgomp_g.h.
16103 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16104 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16105 * config/linux/sem.h: Likewise.
16106 * config/posix/sem.h: Likewise.
16107
16108 * Makefile.am (AM_LDFLAGS): New.
16109 (libgomp_version_script): Split out from ...
16110 (libgomp_la_LDFLAGS): ... here.
16111 (libgomp_version_info): New.
16112 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16113 (LIBGOMP_ENABLE): New.
16114 (LIBGOMP_CHECK_LINKER_FEATURES): New.
16115 (LIBGOMP_ENABLE_SYMVERS): New.
16116 * configure.ac (AC_INIT): Version 1.0.
16117 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16118 (enable-linux-futex): Likewise. Rename from enable-futex.
16119 (libtool_VERSION): New.
16120 (LIBGOMP_ENABLE_SYMVERS): Use it.
16121 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16122 * Makefile.in, aclocal.m4, configure: Rebuild.
16123
16124 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16125 (gomp_mutex_unlock_slow): Fix typo.
16126 * config/linux/sem.c: Similarly.
16127 (gomp_sem_post_slow): Fix typo.
16128 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16129 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16130 [__PIC__] (sys_futex0): Don't use tmp output in asm.
16131
16132 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16133 (libgomp_la_LDFLAGS): Add top_srcdir to path.
16134 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16135 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
16136 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16137 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16138 LDFLAGS. Pull enable_futex check to top-level.
16139 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
16140 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16141
16142 First attempt at real configury.
16143 * Makefile, config.h: Remove file.
16144 * Makefile.am, Makefile.in: New file.
16145 * acinclude.m4 aclocal.m4: New file.
16146 * configure.ac, configure.tgt, configure: New file.
16147
16148 * config/posix/lock.c: Rename from sys-lock.c.
16149 * config/posix/mutex.h: Rename from sys-mutex.h.
16150 * config/posix/sem.c: Rename from sys-sem.c.
16151 * config/posix/sem.h: Rename from sys-sem.h.
16152 * config/posix/proc.c: Rename from sys-proc.c.
16153 * config/posix/time.c: Rename from sys-proc.c.
16154
16155 * config/linux/mutex.c: New file.
16156 * config/linux/mutex.h: New file.
16157 * config/linux/sem.c: New file.
16158 * config/linux/sem.h: New file.
16159 * config/linux/i486/futex.h: New file.
16160 * config/linux/x86_64/futex.h: New file.
16161
16162 2005-05-04 Richard Henderson <rth@redhat.com>
16163
16164 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16165 * libgomp.h: Declare them.
16166 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16167 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16168
16169 2005-05-04 Richard Henderson <rth@redhat.com>
16170
16171 * libgomp-1 code drop
16172
16173 2005-05-04 Richard Henderson <rth@redhat.com>
16174
16175 * iter.c (gomp_iter_static_next): Return tri-state on 0.
16176 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16177 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16178 (gomp_iter_static_next): Update.
16179 (gomp_ordered_static_next): Update.
16180 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16181 (gomp_loop_ordered_static_start): Likewise. Exit early for a
16182 totally empty range.
16183 (gomp_loop_ordered_static_next): Refine test for calling
16184 gomp_ordered_static_next.
16185 * testsuite/ordered-1.c: Add case for more threads than iterations.
16186
16187 * iter.c (gomp_iter_runtime_next_locked): Remove.
16188 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16189 gomp_loop_guided_start, gomp_loop_ordered_static_start,
16190 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16191 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16192 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16193 gomp_loop_ordered_guided_next): Downcase name, make static, add
16194 an external alias with the old name.
16195 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16196 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16197 switch and call one of the above static functions.
16198 * libgomp.h: Update.
16199
16200 * work.c (gomp_work_share_start): Lock the mutex for !first too.
16201 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16202 GOMP_loop_guided_start, GOMP_loop_runtime_start,
16203 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16204 GOMP_loop_ordered_guided_start): Update to match.
16205 * sections.c (GOMP_sections_start): Likewise.
16206 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16207
16208 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16209 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16210 Use bounds check instead of modulus.
16211 (gomp_ordered_sync): Split out of GOMP_ordered_start.
16212 (gomp_ordered_last): Don't sync with ordered_owner here.
16213 (gomp_ordered_next): Likewise.
16214 (gomp_ordered_static_loop_next): Likewise.
16215 * loop.c, libgomp.h: Update to match.
16216
16217 * libgomp.h (GOMP_barrier): Declare.
16218
16219 * testsuite/barrier-1.c: New file.
16220 * testsuite/critical-1.c: New file.
16221 * testsuite/ordered-2.c: New file.
16222 * testsuite/ordered-1.c: New file.
16223 * testsuite/sections-1.c: New file.
16224 * testsuite/single-1.c: New file.
16225 * testsuite/Makefile (TESTS): Add them.
16226
16227 2005-05-04 Richard Henderson <rth@redhat.com>
16228
16229 * libgomp.h (struct gomp_work_share): Add ordered_owner.
16230 * loop.c (GOMP_loop_static_start): If not the startup thread,
16231 acquire the mutex to wait for initialization complete.
16232 (GOMP_loop_ordered_static_start): Likewise.
16233 (GOMP_loop_ordered_runtime_start): Likewise.
16234 (GOMP_loop_ordered_static_first): Remove.
16235 (GOMP_loop_ordered_dynamic_first): Remove.
16236 (GOMP_loop_ordered_guided_first): Remove.
16237 (GOMP_loop_ordered_runtime_first): Remove.
16238 * ordered.c (gomp_ordered_loop_first): Post to own release when
16239 we're the first thread.
16240 (gomp_ordered_loop_last): Wait on release if not owner.
16241 (gomp_ordered_loop_next): Likewise.
16242 (gomp_ordered_static_loop_init): New.
16243 (gomp_ordered_static_loop_next): Use ordered_owner.
16244 (GOMP_ordered_start): Likewise.
16245 * work.c (gomp_new_work_share): Initialize ordered_owner.
16246
16247 2005-05-03 Richard Henderson <rth@redhat.com>
16248
16249 * Makefile (OPT): New.
16250 (CFLAGS): Use it.
16251
16252 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16253 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16254 * libgomp.h, libgomp.map, NOTES: Update to match.
16255
16256 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16257 Add initialized and thr members.
16258 (gomp_thread_start): Pause when initially spawned to wait for
16259 the whole team to be created.
16260 (gomp_team_start): Release team members at the end.
16261
16262 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
16263 (f_foo_1): Use GOMP_loop_end.
16264 (f_foo_2): Use GOMP_loop_end_nowait.
16265
16266 * testsuite/loop-2.c: New file.
16267 * testsuite/Makefile (TESTS): Add it.
16268
16269 2005-05-03 Richard Henderson <rth@redhat.com>
16270
16271 * iter.c (gomp_iter_static_next): Fix overflow check typo.
16272 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16273 * team.c (new_team): Initialize oldest_live_gen to 1 if no
16274 initial work_share.
16275
16276 * testsuite/Makefile: New file.
16277 * testsuite/loop-1.c: New file.
16278
16279 2005-05-03 Richard Henderson <rth@redhat.com>
16280
16281 Initial implementation and checkin.
16282 \f
16283 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16284
16285 Copying and distribution of this file, with or without modification,
16286 are permitted in any medium without royalty provided the copyright
16287 notice and this notice are preserved.