1 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4 * testsuite/libgomp.fortran/atomic-19.f90: New test.
6 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
8 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
9 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
10 table, not individual symbols.
12 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
14 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
15 "target offload_device_nonshared_as"
16 * testsuite/libgomp.c++/target-this-3.C: Likewise.
17 * testsuite/libgomp.c++/target-this-4.C: Likewise.
19 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
21 * target.c (gomp_map_vars_existing): Make sure attached pointer is
22 not overwritten during cross-host/device copying.
23 (gomp_update): Likewise.
24 (gomp_exit_data): Likewise.
25 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
26 * testsuite/libgomp.c++/target-12.C: Likewise.
27 * testsuite/libgomp.c++/target-15.C: Likewise.
28 * testsuite/libgomp.c++/target-16.C: Likewise.
29 * testsuite/libgomp.c++/target-17.C: Likewise.
30 * testsuite/libgomp.c++/target-21.C: Likewise.
31 * testsuite/libgomp.c++/target-23.C: Likewise.
32 * testsuite/libgomp.c/target-23.c: Likewise.
33 * testsuite/libgomp.c/target-29.c: Likewise.
34 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
36 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
39 * libgomp.h (gomp_attach_pointer): Add bool parameter.
40 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
41 (goacc_enter_data_internal): Likewise.
42 * target.c (gomp_map_vars_existing): Update assert condition to
43 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
44 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
45 parameter, add support for mapping a pointer with NULL target.
46 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
47 parameter, add support for attaching a pointer with NULL target.
48 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
49 gomp_attach_pointer, add handling for
50 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
51 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
52 * testsuite/libgomp.c++/target-23.C: New testcase.
53 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
54 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
55 * testsuite/libgomp.c++/target-this-1.C: New testcase.
56 * testsuite/libgomp.c++/target-this-2.C: New testcase.
57 * testsuite/libgomp.c++/target-this-3.C: New testcase.
58 * testsuite/libgomp.c++/target-this-4.C: New testcase.
59 * testsuite/libgomp.c++/target-this-5.C: New testcase.
61 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
63 * libgomp.texi (OpenMP 5.1): Update status.
65 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
67 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
69 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
72 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
73 * testsuite/libgomp.fortran/pr90030.f90: New test.
75 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
76 Thomas Schwinge <thomas@codesourcery.com>
78 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
81 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
82 Thomas Schwinge <thomas@codesourcery.com>
84 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
87 2021-11-29 Richard Biener <rguenther@suse.de>
89 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
92 2021-11-24 Jakub Jelinek <jakub@redhat.com>
95 * testsuite/libgomp.c/declare-variant-2.c: New test.
97 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
99 * alloc.c (gomp_aligned_alloc): Fix typo.
101 2021-11-18 Jakub Jelinek <jakub@redhat.com>
104 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
105 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
106 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
107 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
108 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
109 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
110 gomp_aligned_alloc instead of team_malloc.
112 2021-11-18 Jakub Jelinek <jakub@redhat.com>
115 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
116 memalign over posix_memalign over aligned_alloc over fallback
117 with malloc instead of aligned_alloc over _aligned_alloc over
118 posix_memalign over memalign over fallback with malloc. For
119 aligned_alloc, round up size up to multiple of al.
121 2021-11-16 Jakub Jelinek <jakub@redhat.com>
123 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
124 construct as implemented.
126 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
128 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
130 2021-11-15 Jakub Jelinek <jakub@redhat.com>
132 * task.c (gomp_create_target_task): Copy args array as well.
133 * target.c (gomp_target_fallback): Add args argument.
134 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
135 (GOMP_target): Adjust gomp_target_fallback caller.
136 (GOMP_target_ext): Likewise.
137 (gomp_target_task_fn): Likewise.
138 * config/nvptx/team.c (gomp_nvptx_main): Set
139 gomp_global_icv.thread_limit_var.
140 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
142 2021-11-15 Jakub Jelinek <jakub@redhat.com>
144 * config/nvptx/team.c (__gomp_team_num): Define as
145 __attribute__((shared)) var.
146 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
147 * config/nvptx/target.c (__gomp_team_num): Declare as
148 extern __attribute__((shared)) var.
149 (GOMP_teams4): Use __gomp_team_num as the team number instead of
150 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
151 is bigger than num_blocks, use num_teams_lower teams and arrange for
152 bumping of __gomp_team_num if !first and returning false once we run
154 * config/nvptx/teams.c (__gomp_team_num): Declare as
155 extern __attribute__((shared)) var.
156 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
158 2021-11-15 Jakub Jelinek <jakub@redhat.com>
160 * testsuite/libgomp.c/teams-5.c: New test.
162 2021-11-12 Jakub Jelinek <jakub@redhat.com>
165 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
167 * config/gcn/teams.c: ... here. New file.
169 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
171 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
172 implicit map handling to allow a "superset" existing map as valid case.
173 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
174 (get_implicit): New function to extract implicit status.
175 (gomp_map_fields_existing): Adjust arguments in calls to
176 gomp_map_vars_existing, and add uses of get_implicit.
177 (gomp_map_vars_internal): Likewise.
178 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
180 2021-11-12 Jakub Jelinek <jakub@redhat.com>
182 * libgomp_g.h (GOMP_teams4): Declare.
183 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
184 * target.c (GOMP_teams4): New function.
185 * config/nvptx/target.c (GOMP_teams): Remove.
186 (GOMP_teams4): New function.
187 * config/gcn/target.c (GOMP_teams): Remove.
188 (GOMP_teams4): New function.
189 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
190 teams instead of <= 2.
191 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
193 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
195 * testsuite/libgomp.fortran/teams-1.f90: New test.
197 2021-11-11 Jakub Jelinek <jakub@redhat.com>
199 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
200 * team.c (struct gomp_thread_start_data): Likewise.
201 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
202 (gomp_team_start): Initialize start_data->num_teams and
203 start_data->team_num. Update nthr->num_teams and nthr->team_num.
204 * teams.c (gomp_num_teams, gomp_team_num): Remove.
205 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
206 instead of gomp_num_teams and gomp_team_num.
207 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
208 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
209 * testsuite/libgomp.c/teams-4.c: New test.
211 2021-11-11 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
215 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
217 * env.c (parse_gomp_openacc_dim): Restore parsing.
219 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
222 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
224 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
225 * testsuite/libgomp.c/target-3.c: Likewise.
226 * testsuite/libgomp.c/target-5.c: Likewise.
227 * testsuite/libgomp.c/target-6.c: Likewise.
228 * testsuite/libgomp.c/target-teams-1.c: Likewise.
229 * testsuite/libgomp.c/teams-1.c: Likewise.
230 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
231 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
232 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
233 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
234 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
235 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
236 * testsuite/libgomp.fortran/teams1.f90: Likewise.
238 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
240 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
241 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
243 2021-10-27 Jakub Jelinek <jakub@redhat.com>
245 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
246 aren't implemented for Fortran yet.
248 2021-10-27 Jakub Jelinek <jakub@redhat.com>
250 * testsuite/libgomp.c/loop-26.c: New test.
251 * testsuite/libgomp.c/loop-27.c: New test.
253 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
256 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
257 instead of #include <alloca.h> + alloca.
259 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
261 * libgomp.texi (Support of strictly structured blocks in Fortran):
263 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
265 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
267 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
268 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
270 2021-10-20 Jakub Jelinek <jakub@redhat.com>
273 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
274 (struct gomp_work_share): Only use aligned(64) attribute if
275 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
276 add padding before lock to ensure lock is at offset 64 bytes
278 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
279 New poor man's static assertions.
280 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
281 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
283 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
284 Richard Biener <rguenther@suse.de>
286 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
288 2021-10-18 Jakub Jelinek <jakub@redhat.com>
290 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
291 && gomp_places_list_len < count after nfirst <= nlast loop condition.
293 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
302 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
304 2021-10-15 Jakub Jelinek <jakub@redhat.com>
306 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
307 type from char [50] to const char *.
308 (places_array): Add a testcase for simplified syntax place followed
309 by length or length and stride.
311 2021-10-15 Jakub Jelinek <jakub@redhat.com>
313 * env.c (parse_one_place): Handle non-negative-number the same
314 as { non-negative-number }. Reject even !number:1 and
315 !number:1:stride or !place:1 or !place:1:stride instead of just
317 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
318 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
319 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
321 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
324 2021-10-15 Jakub Jelinek <jakub@redhat.com>
326 * env.c (parse_schedule): For strtoul or strtoull calls which don't
327 clearly reject return value 0 as invalid handle the case where end
328 pointer is the same as first argument as invalid.
329 (parse_unsigned_long_1): Likewise.
330 (parse_one_place): Likewise.
331 (parse_places_var): Likewise.
332 (parse_stacksize): Likewise.
333 (parse_spincount): Likewise.
334 (parse_affinity): Likewise.
335 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
337 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
338 For strtoul calls which don't clearly reject return value 0 as
339 invalid handle the case where end pointer is the same as first
341 (gomp_affinity_init_level_1): Likewise.
342 (gomp_affinity_init_numa_domains): Likewise.
343 * config/rtems/proc.c (parse_thread_pools): Likewise.
345 2021-10-15 Jakub Jelinek <jakub@redhat.com>
347 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
348 after creating count places clean up and return immediately.
349 * testsuite/libgomp.c/places-6.c: New test.
350 * testsuite/libgomp.c/places-7.c: New test.
351 * testsuite/libgomp.c/places-8.c: New test.
352 * testsuite/libgomp.c/places-9.c: New test.
353 * testsuite/libgomp.c/places-10.c: New test.
355 2021-10-15 Jakub Jelinek <jakub@redhat.com>
357 * env.c (parse_places_var): Handle numa_domains as level 5.
358 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
360 (gomp_affinity_init_level): Use it instead of
361 gomp_affinity_init_level_1 for level == 5.
362 * testsuite/libgomp.c/places-5.c: New test.
364 2021-10-15 Jakub Jelinek <jakub@redhat.com>
366 * env.c (parse_places_var): Handle ll_caches as level 4.
367 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
369 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
371 (gomp_affinity_init_level): Likewise.
372 * testsuite/libgomp.c/places-1.c: New test.
373 * testsuite/libgomp.c/places-2.c: New test.
374 * testsuite/libgomp.c/places-3.c: New test.
375 * testsuite/libgomp.c/places-4.c: New test.
377 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
379 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
382 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
384 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
386 2021-10-12 Julian Brown <julian@codesourcery.com>
388 * target.c (gomp_copy_host2dev): Release device lock on cbuf
391 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
393 * testsuite/libgomp.fortran/icv-3.f90: New.
394 * testsuite/libgomp.fortran/icv-4.f90: New.
396 2021-10-12 Jakub Jelinek <jakub@redhat.com>
398 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
399 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
400 OMP_TEAMS_THREAD_LIMIT): Document.
402 2021-10-12 Jakub Jelinek <jakub@redhat.com>
404 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
405 to avoid makeinfo warnings.
407 2021-10-12 Jakub Jelinek <jakub@redhat.com>
409 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
410 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
412 2021-10-12 Jakub Jelinek <jakub@redhat.com>
416 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
417 allocation sizes from 420 to 320 and from 768 to 568.
418 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
419 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
422 2021-10-12 Jakub Jelinek <jakub@redhat.com>
424 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
425 * testsuite/libgomp.c/scan-12.c: Likewise.
426 * testsuite/libgomp.c/scan-13.c: Likewise.
427 * testsuite/libgomp.c/scan-14.c: Likewise.
428 * testsuite/libgomp.c/scan-15.c: Likewise.
429 * testsuite/libgomp.c/scan-16.c: Likewise.
430 * testsuite/libgomp.c/scan-17.c: Likewise.
431 * testsuite/libgomp.c/scan-18.c: Likewise.
432 * testsuite/libgomp.c/scan-19.c: Likewise.
433 * testsuite/libgomp.c/scan-20.c: Likewise.
434 * testsuite/libgomp.c/scan-21.c: Likewise.
435 * testsuite/libgomp.c/scan-22.c: Likewise.
436 * testsuite/libgomp.c++/scan-9.C: Likewise.
437 * testsuite/libgomp.c++/scan-10.C: Likewise.
438 * testsuite/libgomp.c++/scan-11.C: Likewise.
439 * testsuite/libgomp.c++/scan-12.C: Likewise.
440 * testsuite/libgomp.c++/scan-13.C: Likewise.
441 * testsuite/libgomp.c++/scan-14.C: Likewise.
442 * testsuite/libgomp.c++/scan-15.C: Likewise.
443 * testsuite/libgomp.c++/scan-16.C: Likewise.
445 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
447 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
449 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
451 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
453 * omp.h.in: Add deprecated flag for omp_atv_sequential.
454 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
455 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
456 * testsuite/libgomp.fortran/alloc-12.f90: New test.
458 2021-10-11 Jakub Jelinek <jakub@redhat.com>
460 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
461 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
462 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
463 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
464 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
465 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
466 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
467 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
468 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
469 omp_set_teams_thread_limit{,_,_8_}.
470 * icv.c (omp_set_num_teams, omp_get_max_teams,
471 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
473 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
474 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
475 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
477 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
478 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
479 is not specified, use gomp_nteams_var.
480 * fortran.c (omp_set_num_teams, omp_get_max_teams,
481 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
483 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
484 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
485 omp_get_teams_thread_limit_): New functions.
487 2021-10-09 liuhongt <hongtao.liu@intel.com>
489 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
490 * testsuite/libgomp.c++/scan-11.C: Ditto.
491 * testsuite/libgomp.c++/scan-12.C: Ditto.
492 * testsuite/libgomp.c++/scan-13.C: Ditto.
493 * testsuite/libgomp.c++/scan-14.C: Ditto.
494 * testsuite/libgomp.c++/scan-15.C: Ditto.
495 * testsuite/libgomp.c++/scan-16.C: Ditto.
496 * testsuite/libgomp.c++/scan-9.C: Ditto.
497 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
498 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
499 * testsuite/libgomp.c/scan-11.c: Ditto.
500 * testsuite/libgomp.c/scan-12.c: Ditto.
501 * testsuite/libgomp.c/scan-13.c: Ditto.
502 * testsuite/libgomp.c/scan-14.c: Ditto.
503 * testsuite/libgomp.c/scan-15.c: Ditto.
504 * testsuite/libgomp.c/scan-16.c: Ditto.
505 * testsuite/libgomp.c/scan-17.c: Ditto.
506 * testsuite/libgomp.c/scan-18.c: Ditto.
507 * testsuite/libgomp.c/scan-19.c: Ditto.
508 * testsuite/libgomp.c/scan-20.c: Ditto.
509 * testsuite/libgomp.c/scan-21.c: Ditto.
510 * testsuite/libgomp.c/scan-22.c: Ditto.
512 2021-10-09 Jakub Jelinek <jakub@redhat.com>
514 * libgomp.texi (OpenMP 5.1): Mention implemented support for
515 structured block sequences in C/C++. Mention support for
516 unconstrained/reproducible modifiers on order clause.
517 Mention partial (C/C++ only) support of extentensions to atomics
518 construct. Mention partial (C/C++ on clause only) support of
519 align/allocator modifiers on allocate clause.
521 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
523 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
524 based on libgomp.c-c++-common/order-reproducible-1.c.
525 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
526 * testsuite/libgomp.fortran/my-usleep.c: New test.
528 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
530 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
531 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
532 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
533 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
534 based on libgomp.c-c++-common/alloc-9.c.
536 2021-10-01 Jakub Jelinek <jakub@redhat.com>
538 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
539 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
541 2021-10-01 Jakub Jelinek <jakub@redhat.com>
543 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
545 * env.c (handle_omp_display_env): Use ialias_call.
546 * icv-device.c: Move ialias right below each function.
547 (omp_get_device_num): Use ialias_call.
548 * fortran.c (omp_fulfill_event): Add ialias_redirect.
549 * icv.c (omp_get_active_level): Add ialias_redirect.
551 2021-10-01 Jakub Jelinek <jakub@redhat.com>
553 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
554 __alloc_align__ (1) attribute.
555 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
557 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
559 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
560 for -fintrinsic-modules-path= warning of the C compiler.
561 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
562 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
564 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
566 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
567 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
568 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
570 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
572 * testsuite/libgomp.fortran/alloc-10.f90: New test.
573 * testsuite/libgomp.fortran/alloc-6.f90: New test.
574 * testsuite/libgomp.fortran/alloc-7.c: New test.
575 * testsuite/libgomp.fortran/alloc-7.f90: New test.
576 * testsuite/libgomp.fortran/alloc-8.f90: New test.
577 * testsuite/libgomp.fortran/alloc-9.f90: New test.
579 2021-09-30 Jakub Jelinek <jakub@redhat.com>
581 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
582 omp_realloc): New prototypes.
583 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
585 * allocator.c: Include string.h.
586 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
587 variable and use it instead of alignment so that when retrying the old
588 alignment is used again. Don't retry if new alignment is the same
589 as old alignment, unless allocator had pool size.
590 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
591 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
592 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
593 omp_aligned_calloc and omp_realloc.
594 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
595 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
596 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
597 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
598 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
599 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
601 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
604 * configure.ac: Only check for int-type = 2*size_t support when
605 building with Fortran support.
606 * configure: Regenerate.
608 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
610 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
611 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
613 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
615 * team.c: Initialize start_data.
616 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
617 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
619 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
621 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
622 dg-message back to dg-note.
624 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
627 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
628 expected dg-note output.
630 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
633 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
634 r12-3722 by removing -Wno-missing-include-dirs.
635 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
637 2021-09-22 Jakub Jelinek <jakub@redhat.com>
639 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
640 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
642 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
645 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
647 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
649 2021-09-18 Jakub Jelinek <jakub@redhat.com>
651 * testsuite/libgomp.c++/default-1.C: New test.
652 * testsuite/libgomp.c-c++-common/default-1.c: New test.
653 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
654 to default clause in C and C++" as implemented.
656 2021-09-17 Julian Brown <julian@codesourcery.com>
658 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
660 2021-09-17 Julian Brown <julian@codesourcery.com>
662 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
664 2021-09-17 Jakub Jelinek <jakub@redhat.com>
666 * libgomp.texi (OpenMP 5.1): Spelling fix,
667 declare variante -> declare variant.
669 2021-09-17 Jakub Jelinek <jakub@redhat.com>
671 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
672 Use /* */ comments instead of //.
673 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
674 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
675 * testsuite/libgomp.c++/atomic-16.C: New test.
676 * testsuite/libgomp.c++/atomic-17.C: New test.
678 2021-09-10 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
681 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
682 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
684 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
686 * libgomp.texi (OpenMP Implementation Status): Extend
688 (OpenACC Profiling Interface): Fix typo.
690 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
692 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
693 not to 4.5; link to new section.
694 (OpenMP Implementation Status): New.
696 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
698 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
700 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
702 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
704 * testsuite/libgomp.fortran/error-1.f90: Likewise.
706 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
707 Jakub Jelinek <jakub@redhat.com>
709 * testsuite/libgomp.c/address-space-1.c: New file.
711 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
713 * testsuite/lib/libgomp.exp
714 (check_effective_target_offload_target_intelmic): Remove 'proc'.
715 (check_effective_target_offload_device_intel_mic): New 'proc'.
716 * testsuite/libgomp.c-c++-common/on_device_arch.h
717 (device_arch_intel_mic, on_device_arch_intel_mic): New.
718 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
720 * testsuite/libgomp.fortran/target10.f90: Likewise.
722 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
724 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
725 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
726 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
727 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
729 2021-08-23 Jakub Jelinek <jakub@redhat.com>
731 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
732 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
733 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
735 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
737 * config/nvptx/error.c (fwrite, exit): Override, too.
738 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
739 of offloading testing.
740 * testsuite/libgomp.fortran/error-1.f90: Likewise.
742 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
744 * testsuite/libgomp.fortran/error-1.f90: New test.
746 2021-08-20 Jakub Jelinek <jakub@redhat.com>
748 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
749 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
750 * error.c (GOMP_warning, GOMP_error): New functions.
751 * testsuite/libgomp.c-c++-common/error-1.c: New test.
753 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
755 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
756 omp_target_free. omp_target_is_present, omp_target_memcpy,
757 omp_target_memcpy_rect, omp_target_associate_ptr,
758 omp_target_disassociate_ptr): Add interface.
759 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
760 omp_target_free. omp_target_is_present, omp_target_memcpy,
761 omp_target_memcpy_rect, omp_target_associate_ptr,
762 omp_target_disassociate_ptr): Add interface.
763 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
764 interface block for omp_alloc + omp_free.
765 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
766 * testsuite/libgomp.fortran/refcount-1.f90: New test.
767 * testsuite/libgomp.fortran/target-12.f90: New test.
769 2021-08-18 Jakub Jelinek <jakub@redhat.com>
771 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
773 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
775 * testsuite/libgomp.fortran/scope-1.f90: New test.
776 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
778 2021-08-17 Jakub Jelinek <jakub@redhat.com>
780 * Makefile.am (libgomp_la_SOURCES): Add scope.c
781 * Makefile.in: Regenerated.
782 * libgomp_g.h (GOMP_scope_start): Declare.
783 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
785 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
786 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
788 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
790 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
793 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
795 * testsuite/libgomp.fortran/masked-1.f90: New test.
797 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
799 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
801 2021-08-12 Jakub Jelinek <jakub@redhat.com>
803 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
805 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
807 * env.c (parse_bind_var): Accept 'primary' as alias for
809 (omp_display_env): Add TODO comment to
810 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
811 * libgomp.texi: Change 'master thread' to 'primary thread'
812 in line with OpenMP 5.1.
813 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
814 omp_proc_bind_master is an alias of it.
815 (OMP_PROC_BIND): Mention 'PRIMARY'.
816 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
817 (omp_proc_bind_primary): Add.
818 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
819 * omp_lib.f90.in (omp_proc_bind_primary): Add.
820 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
821 * omp_lib.h.in (omp_proc_bind_primary): Add.
822 * testsuite/libgomp.c/affinity-1.c: Check that
823 'primary' works and is identical to 'master'.
825 2021-08-09 Julian Brown <julian@codesourcery.com>
826 Kwok Cheung Yeung <kcy@codesourcery.com>
827 Thomas Schwinge <thomas@codesourcery.com>
829 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
831 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
832 [acc_device_radeon]: Update.
833 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
834 [ACC_DEVICE_TYPE_radeon]: Likewise.
835 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
836 [acc_device_radeon]: Likewise.
837 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
838 [ACC_DEVICE_TYPE_radeon]: Likewise.
839 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
840 'openacc_radeon_accel_selected' and '-O0'.
841 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
843 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
845 * icv-device.c (omp_get_device_num): New API function, host side.
846 * fortran.c (omp_get_device_num_): New interface function.
847 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
848 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
850 * libgomp.texi (omp_get_device_num): Add documentation for new API
852 * omp.h.in (omp_get_device_num): Add declaration.
853 * omp_lib.f90.in (omp_get_device_num): Likewise.
854 * omp_lib.h.in (omp_get_device_num): Likewise.
855 * target.c (gomp_load_image_to_device): If additional entry for device
856 number exists at end of returned entries from 'load_image_func' hook,
857 copy the assigned device number over to the device variable.
858 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
859 (omp_get_device_num): New API function, device side.
860 * plugin/plugin-gcn.c ("symcat.h"): Add include.
861 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
862 at end of returned 'target_table' entries.
863 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
864 (omp_get_device_num): New API function, device side.
865 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
866 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
867 at end of returned 'target_table' entries.
868 * testsuite/lib/libgomp.exp
869 (check_effective_target_offload_target_intelmic): New function for
870 testing for intelmic offloading.
871 * testsuite/libgomp.c-c++-common/target-45.c: New test.
872 * testsuite/libgomp.fortran/target10.f90: New test.
874 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
875 Ulrich Drepper <drepper@redhat.com>
877 * fortran.c (omp_display_env_, omp_display_env_8_): Only
878 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
880 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
881 Julian Brown <julian@codesourcery.com>
882 Kwok Cheung Yeung <kcy@codesourcery.com>
884 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
885 's%oaccdevlow%oaccloops%g'.
886 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
887 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
888 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
890 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
892 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
894 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
896 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
898 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
900 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
902 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
904 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
906 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
908 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
910 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
912 2021-07-27 Ulrich Drepper <drepper@gmail.com>
914 * env.c (wait_policy, stacksize): New static variables,
915 move out of handle_omp_display_env.
916 (omp_display_env): New function. The meat of the old
917 handle_omp_display_env function.
918 (handle_omp_display_env): Change to not take parameters
919 and instead use the global variables. Only perform
920 parsing, defer to omp_display_env for the implementation.
921 (initialize_env): Remove local variables wait_policy and
922 stacksize. Don't pass parameters to handle_omp_display_env.
923 * fortran.c: Add ialias_redirect for omp_display_env.
924 (omp_display_env_, omp_display_env_8_): New functions.
925 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
926 omp_display_env_, and omp_display_env_8_.
927 * omp.h.in: Declare omp_display_env.
928 * omp_lib.f90.in: Likewise.
929 * omp_lib.h.in: Likewise.
931 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
932 Julian Brown <julian@codesourcery.com>
934 * target.c (gomp_coalesce_buf_add): Update comment.
935 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
937 (gomp_map_vars_internal): Only 'if (!aq)', do
938 'gomp_coalesce_buf_add'.
939 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
942 2021-07-27 Julian Brown <julian@codesourcery.com>
943 Thomas Schwinge <thomas@codesourcery.com>
945 * libgomp.h (gomp_copy_host2dev): Update prototype.
946 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
947 argument to gomp_copy_host2dev (false).
948 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
949 (copy_data): Don't free src.
950 (queue_push_copy): Remove free_src handling.
951 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
952 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
954 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
956 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
957 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
958 data when true, and set up deferred freeing of temporary buffer.
959 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
960 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
961 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
962 calls to gomp_copy_host2dev with appropriate ephemeral argument.
963 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
966 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
967 Tom de Vries <tom@codesourcery.com>
969 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
970 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
972 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
974 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
975 sequencing of 'async' data copying vs. profiling events.
976 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
979 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
980 Julian Brown <julian@codesourcery.com>
982 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
983 'async'/'wait' issue.
984 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
985 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
986 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
988 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
989 Joseph Myers <joseph@codesourcery.com>
990 Cesar Philippidis <cesar@codesourcery.com>
992 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
994 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
996 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
998 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
1000 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
1003 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
1004 '-Wno-error=array-bounds'.
1005 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
1006 * libgomp.h [__AMDGCN__]: Likewise.
1008 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
1011 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
1012 * libgomp.h [__AMDGCN__]: Likewise.
1014 2021-07-13 Jakub Jelinek <jakub@redhat.com>
1015 Florian Weimer <fweimer@redhat.com>
1017 * config/linux/sem.h: Don't include limits.h.
1018 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
1019 * config/linux/affinity.c: Include limits.h.
1021 2021-07-01 Jakub Jelinek <jakub@redhat.com>
1024 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
1026 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
1029 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
1030 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
1031 avoid disabling other offload targets.
1032 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
1033 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1034 * testsuite/libgomp.c/target-44.c: Likewise.
1036 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
1038 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
1039 target has shared memory and disable some scalar pointer/allocatable
1040 checks if not as firstprivate does not work.
1042 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
1045 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
1046 Add "target offload_device_nonshared_as" condition for enabling test.
1048 2021-06-24 Jakub Jelinek <jakub@redhat.com>
1050 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
1051 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
1052 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
1053 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
1055 2021-06-23 Jakub Jelinek <jakub@redhat.com>
1057 PR middle-end/101167
1058 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
1060 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
1062 * hashtab.h (htab_clear): New function with initialization code
1063 factored out from...
1064 (htab_create): ...here, adjust to use htab_clear function.
1065 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
1066 special refcount values, add comments.
1067 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
1068 (REFCOUNT_LINK): Likewise.
1069 (REFCOUNT_STRUCTELEM): New special refcount range for structure
1071 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
1073 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
1074 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
1075 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
1076 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
1077 (struct splay_tree_key_s): Add structelem_refcount and
1078 structelem_refcount_ptr fields into a union with dynamic_refcount.
1080 (gomp_map_vars): Delete declaration.
1081 (gomp_map_vars_async): Likewise.
1082 (gomp_unmap_vars): Likewise.
1083 (gomp_unmap_vars_async): Likewise.
1084 (goacc_map_vars): New declaration.
1085 (goacc_unmap_vars): Likewise.
1086 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
1087 (goacc_enter_datum): Likewise.
1088 (goacc_enter_data_internal): Likewise.
1089 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
1090 and goacc_unmap_vars.
1091 (GOACC_data_start): Adjust to use goacc_map_vars.
1092 (GOACC_data_end): Adjust to use goacc_unmap_vars.
1093 * target.c (hash_entry_type): New typedef.
1094 (htab_alloc): New function hook for hashtab.h.
1095 (htab_free): Likewise.
1096 (htab_hash): Likewise.
1097 (htab_eq): Likewise.
1098 (hashtab.h): Add file include.
1099 (gomp_increment_refcount): New function.
1100 (gomp_decrement_refcount): Likewise.
1101 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
1102 gomp_increment_refcount.
1103 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
1104 to gomp_map_vars_existing.
1105 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
1106 variable to guard OpenMP specific paths, adjust calls to
1107 gomp_map_vars_existing, add structure element sibling splay_tree_key
1108 sequence creation code, adjust Fortran map case to avoid increment
1110 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
1111 local refcount_set if caller passed in NULL, adjust call to
1112 gomp_map_vars_internal.
1113 (gomp_map_vars_async): Adjust and rename into...
1114 (goacc_map_vars): ...this new function, adjust call to
1115 gomp_map_vars_internal.
1116 (gomp_remove_splay_tree_key): New function with code factored out from
1117 gomp_remove_var_internal.
1118 (gomp_remove_var_internal): Add code to handle removing multiple
1119 splay_tree_key sequence for structure elements, adjust code to use
1120 gomp_remove_splay_tree_key for splay-tree key removal.
1121 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
1122 gomp_decrement_refcount.
1123 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
1124 local refcount_set if caller passed in NULL, adjust call to
1125 gomp_unmap_vars_internal.
1126 (gomp_unmap_vars_async): Adjust and rename into...
1127 (goacc_unmap_vars): ...this new function, adjust call to
1128 gomp_unmap_vars_internal.
1129 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
1131 (GOMP_target_ext): Likewise.
1132 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
1133 (GOMP_target_data): Likewise.
1134 (GOMP_target_data_ext): Likewise.
1135 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
1136 (gomp_exit_data): Add refcount_set parameter, adjust to use
1137 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
1139 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
1140 gomp_map_vars and gomp_exit_data.
1141 (gomp_target_task_fn): Likewise.
1142 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
1143 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
1144 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
1145 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
1146 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
1147 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
1149 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
1152 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
1154 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
1155 Thomas Schwinge <thomas@codesourcery.com>
1157 * libgomp.map (GOACC_2.0.2): New symbol version.
1158 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
1159 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1161 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
1162 Andrew Stubbs <ams@codesourcery.com>
1164 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1166 (GOACC_enter_exit_data): ... here.
1167 (GOACC_declare): Use it.
1169 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
1171 * oacc-parallel.c (GOACC_declare): Move...
1172 * oacc-mem.c: ... here.
1173 * libgomp_g.h: Adjust.
1175 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
1176 Thomas Schwinge <thomas@codesourcery.com>
1178 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1181 2021-06-10 Jakub Jelinek <jakub@redhat.com>
1183 PR tree-optimization/100981
1184 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1185 dsdotr and dsdoti to 0.
1187 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
1189 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1190 if atomic compare-and-swap is supported on 'int'.
1192 2021-06-09 Richard Biener <rguenther@suse.de>
1194 PR tree-optimization/100981
1195 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1197 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1199 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1201 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1203 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1206 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1208 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1209 '-DACC_MEM_SHARED=0'.
1210 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1211 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1213 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1214 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1215 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1217 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1218 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1219 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1220 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1221 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1223 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1224 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1225 'acc_device_radeon' testing.
1226 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1227 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1228 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1229 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1230 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1231 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1232 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1233 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1234 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1235 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1236 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1237 for non-'openacc_nvidia_accel_selected'.
1238 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1239 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1240 all implement this checking".
1241 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1243 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1245 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1247 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1249 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1250 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1252 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1254 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1255 for 'acc_device_radeon'.
1257 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1259 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1260 for non-'acc_device_nvidia'.
1262 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1264 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1265 'acc_device_radeon' testing.
1266 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1267 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1268 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1270 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1272 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1273 require 'openacc_nvidia_accel_selected'. Fix up for
1274 'ACC_DEVICE_TYPE_radeon'.
1276 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1278 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1279 'openacc_nvidia_accel_selected'.
1280 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1282 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1284 * testsuite/lib/libgomp.exp
1285 (check_effective_target_openacc_radeon_accel_selected):
1288 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1290 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1293 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
1295 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1296 <acc_device_nvidia>: Update comment.
1298 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
1300 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1302 2021-05-27 Jakub Jelinek <jakub@redhat.com>
1304 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1305 check_effective_target_openacc_cublas,
1306 check_effective_target_openacc_cudart): New.
1307 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1308 target openacc_cublas.
1309 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1310 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1311 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1312 target openacc_cuda.
1313 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1314 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1315 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1316 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1317 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1318 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1319 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1320 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1324 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1325 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1326 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1327 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1328 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1329 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1330 targets openacc_cublas and openacc_cudart.
1331 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1332 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1333 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1334 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1335 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1336 Require effective target openacc_cudart.
1337 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1338 for effective target openacc_cuda and add && defined USE_CUDA_H to
1339 preprocessor conditionals. Guard -lcuda also on openacc_cuda
1342 2021-05-26 Jakub Jelinek <jakub@redhat.com>
1345 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1346 GOMP_target_end_data, GOMP_target_update_ext,
1347 GOMP_target_enter_exit_data): New dummy entrypoints.
1348 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1349 GOMP_target_end_data, GOMP_target_update_ext,
1350 GOMP_target_enter_exit_data): Likewise.
1351 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1352 OMPFROM, OMPTO): Define.
1353 (main): Remove #pragma omp target teams around all the tests.
1354 * testsuite/libgomp.c-c++-common/target-41.c: New test.
1355 * testsuite/libgomp.c-c++-common/target-42.c: New test.
1357 2021-05-25 Jakub Jelinek <jakub@redhat.com>
1360 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1362 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
1365 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1366 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1367 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1369 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
1372 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1373 uninteresting/varying diagnostics.
1375 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1378 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1379 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1381 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1384 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1386 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1387 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1388 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1390 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1392 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1394 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1396 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1398 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1400 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1402 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1404 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1406 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1408 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1410 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1412 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1414 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1416 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1418 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1420 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1422 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1424 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1426 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1428 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1430 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1431 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1432 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1433 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1434 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1438 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1439 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1440 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1441 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1442 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1443 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1444 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1446 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1448 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1450 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1452 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1453 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1455 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1456 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1457 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1458 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1459 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1460 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1461 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1463 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1465 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1467 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1469 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1471 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1473 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1475 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1477 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1479 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1485 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1487 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1488 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1489 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1491 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1493 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1494 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1495 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1497 2021-05-21 Julian Brown <julian@codesourcery.com>
1498 Chung-Lin Tang <cltang@codesourcery.com>
1499 Thomas Schwinge <thomas@codesourcery.com>
1502 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1504 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1506 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1509 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1511 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1512 for nvptx offloading.
1514 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
1516 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1518 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
1521 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1523 2021-05-19 Julian Brown <julian@codesourcery.com>
1525 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1527 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1529 * testsuite/lib/libgomp.exp
1530 (check_effective_target_offload_target_nvptx): Don't shadow global
1531 'offload_targets' variable.
1533 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1535 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1536 '-latomic' to nvptx offloading compilation.
1537 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1539 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1541 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1542 offloading compilation.
1544 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1546 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1547 if new tasks generated.
1548 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1550 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
1552 * testsuite/libgomp.fortran/parallel-master.f90: New test.
1554 2021-05-13 Martin Liska <mliska@suse.cz>
1557 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1558 * testsuite/libgomp.c/pr46032-2.c: Likewise.
1559 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1562 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
1564 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1565 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1567 2021-05-11 Jakub Jelinek <jakub@redhat.com>
1569 PR middle-end/100471
1570 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1571 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1573 * testsuite/libgomp.c/task-reduction-4.c: New test.
1575 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
1576 Tom de Vries <tdevries@suse.de>
1578 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1579 complex/floating-point || + && reduction with 'omp target'.
1580 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1582 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1584 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1585 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1586 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1587 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1589 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
1592 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1593 declaration to scope of non-'depend'-guarded assignment to avoid races.
1595 2021-05-03 Tom de Vries <tdevries@suse.de>
1598 * testsuite/libgomp.c/target-44.c: New test.
1600 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
1602 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1604 2021-04-29 Tom de Vries <tdevries@suse.de>
1606 * testsuite/libgomp.c/pr81778.c: New test.
1608 2021-04-29 Tom de Vries <tdevries@suse.de>
1611 * testsuite/libgomp.c/target-43.c: New file.
1613 2021-04-28 Jakub Jelinek <jakub@redhat.com>
1614 Tobias Burnus <tobias@codesourcery.com>
1616 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1617 * target.c (gomp_load_plugin_for_device): If set and if a plugin
1618 can't be dlopened, silently assume it has no devices.
1619 * Makefile.in: Regenerate.
1620 * config.h.in: Regenerate.
1621 * configure: Regenerate.
1623 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1625 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1626 Use [Ww]arning in dg-bogus as FE diagnostic and default
1627 diagnostic differ and the result depends on ENABLE_OFFLOAD.
1628 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1629 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1630 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1632 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
1634 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1635 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1636 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1637 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1638 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1640 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1641 Nathan Sidwell <nathan@codesourcery.com>
1642 Tom de Vries <vries@codesourcery.com>
1643 Julian Brown <julian@codesourcery.com>
1644 Kwok Cheung Yeung <kcy@codesourcery.com>
1646 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1647 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1648 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1649 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1650 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1651 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1652 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1654 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1655 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1656 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1657 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1659 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1660 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1662 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1663 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1664 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1665 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1666 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1667 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1669 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1670 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1671 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1672 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1673 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1674 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1675 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1676 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1677 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1678 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1679 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1681 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
1683 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1685 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1686 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1688 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1689 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1690 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1691 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1692 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1693 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1694 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1696 2021-04-22 Richard Biener <rguenther@suse.de>
1698 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1701 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1703 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1704 omp_depend_kind instead of defining it as 16.
1706 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1708 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1709 New, based on check_effective_target_offload_target_nvptx.
1710 (check_effective_target_offload_target_nvptx): Call it.
1711 (check_effective_target_offload_target_amdgcn): New.
1712 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1713 Require target offload_target_nvptx || offload_target_amdgcn.
1714 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1715 * testsuite/libgomp.c/pr86416-1.c: Likewise.
1716 * testsuite/libgomp.c/pr86416-2.c: Likewise.
1718 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
1720 * testsuite/libgomp.fortran/depobj-1.f90: New test.
1722 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
1724 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1725 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1726 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1728 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1730 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1732 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
1735 * testsuite/lib/libgomp.exp
1736 (check_effective_target_offload_device_nvptx): New.
1737 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1738 resolved, make sure that we exit quickly, with error status,
1740 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1741 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1743 2021-04-14 Jakub Jelinek <jakub@redhat.com>
1746 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1747 cp = omp_alloc with cp, p arguments instead of cq, q and call
1748 c_f_pointer after last cq = omp_alloc with cq, q.
1750 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1753 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1754 for loop with GT/GE condition.
1755 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1757 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
1762 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1764 2021-04-09 Jakub Jelinek <jakub@redhat.com>
1767 * team.c (gomp_thread_start): Call pthread_setspecific for
1768 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1769 has been initialized to avoid false positive warning.
1771 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
1774 * testsuite/lib/on_device_arch.c: Move to ...
1775 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1776 * testsuite/libgomp.fortran/on_device_arch.c: New file;
1777 #include on_device_arch.h.
1778 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1779 on_device_arch.h instead of using dg-additional-source.
1780 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1781 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1782 on_device_arch.c without relative paths.
1784 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1786 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1787 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1788 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1789 * config.h.in: Regenerate.
1790 * configure: Likewise.
1792 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1795 * testsuite/lib/on_device_arch.c: New file.
1796 * testsuite/libgomp.c/pr99555-1.c: Likewise.
1797 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1798 skip for nvptx offloading, with error status.
1799 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1801 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
1803 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1804 OpenACC 'serial' construct diagnostic for nvptx offloading.
1806 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
1809 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1811 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
1814 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1816 2021-03-04 Jakub Jelinek <jakub@redhat.com>
1818 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1819 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1820 checking of -m32 or -mx32 options on the command line.
1821 * config.h.in: Regenerated.
1822 * configure: Regenerated.
1824 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
1826 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1827 support from the target.
1829 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1830 Jakub Jelinek <jakub@redhat.com>
1833 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1834 (struct gomp_task): Replace detach and completion_sem fields with
1835 union containing completion_sem and detach_team. Add deferred_p
1837 (struct gomp_team): Remove task_detach_queue.
1838 * task.c: Include assert.h.
1839 (gomp_init_task): Initialize deferred_p and completion_sem fields.
1840 Rearrange initialization order of fields.
1841 (task_fulfilled_p): Delete.
1842 (GOMP_task): Use address of task as the event handle. Remove
1843 initialization of detach field. Initialize deferred_p field.
1844 Use automatic local for completion_sem. Initialize detach_team field
1846 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1847 Set kind of suspended detach task to GOMP_TASK_DETACHED and
1848 decrement task_running_count. Move finish_cancelled block out of
1849 else branch. Relocate call to gomp_team_barrier_done.
1850 (GOMP_taskwait): Handle tasks with completion events that have not
1852 (GOMP_taskgroup_end): Likewise.
1853 (omp_fulfill_event): Use address of task as event handle. Post to
1854 completion_sem for undeferred tasks. Clear detach_team if task
1855 has not finished. For finished tasks, handle post-execution tasks,
1856 call gomp_team_barrier_wake if necessary, and free task.
1857 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1858 (free_team): Remove free of task_detach_queue.
1859 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1860 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1861 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1862 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1863 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1864 Change data-sharing of detach events on enclosing parallel to private.
1865 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
1867 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1868 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1869 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1870 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1871 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1872 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1873 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1874 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1875 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1876 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1877 Change data-sharing of detach events on enclosing parallel to private.
1878 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
1880 * testsuite/libgomp.fortran/task-detach-7.f90: New.
1881 * testsuite/libgomp.fortran/task-detach-8.f90: New.
1882 * testsuite/libgomp.fortran/task-detach-9.f90: New.
1883 * testsuite/libgomp.fortran/task-detach-10.f90: New.
1884 * testsuite/libgomp.fortran/task-detach-11.f90: New.
1886 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
1889 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1891 2021-02-17 Julian Brown <julian@codesourcery.com>
1893 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1896 2021-02-17 Julian Brown <julian@codesourcery.com>
1898 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1899 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1901 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1903 * config/linux/x86/futex.h (__futex_wait):
1904 Revert output type back to long.
1905 (__futex_wake): Ditto.
1906 (futex_wait): Update for revert.
1907 (futex_wake): Ditto.
1909 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
1911 * config/linux/x86/futex.h (__futex_wait): New static inline
1912 wrapper function. Correct output type to int and
1913 timeout type to void *.
1914 (__futex_wake): New static inline wrapper function.
1915 Correct output type to int.
1916 (futex_wait): Use __futex_wait.
1917 (futex_wake): Use __futex_wake.
1919 2021-02-10 Julian Brown <julian@codesourcery.com>
1922 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1925 2021-02-04 Julian Brown <julian@codesourcery.com>
1927 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1929 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
1931 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1932 EF_AMDGPU_MACH_AMDGCN_GFX908.
1933 (gcn_gfx908_s): New constant string.
1934 (isa_hsa_name): Add gfx908.
1935 (isa_code): Add gfx908.
1937 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1939 * libgomp.texi (omp_fulfill_event): New entry.
1941 2021-01-20 Jakub Jelinek <jakub@redhat.com>
1943 * task.c (GOMP_task): Rename priority argument to priority_arg,
1944 add priority automatic variable and modify that variable. Instead of
1945 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1946 check flags for that bit.
1948 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
1951 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1953 2021-01-18 Andreas Schwab <schwab@suse.de>
1955 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1957 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1959 * config/rtems/sem.h (gomp_sem_getcount): New function.
1961 2021-01-18 Jakub Jelinek <jakub@redhat.com>
1963 * config/linux/sem.h (gomp_sem_getcount): New function.
1964 * config/posix/sem.h (gomp_sem_getcount): New function.
1965 * config/posix/sem.c (gomp_sem_getcount): New function.
1966 * config/accel/sem.h (gomp_sem_getcount): New function.
1967 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1968 (omp_fulfill_event): Likewise.
1970 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1972 * fortran.c (omp_fulfill_event_): New.
1973 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1974 (struct gomp_team): Add task_detach_queue and task_detach_count
1976 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1977 * libgomp_g.h (GOMP_task): Add extra argument.
1978 * omp.h.in (enum omp_event_handle_t): New.
1979 (omp_fulfill_event): New.
1980 * omp_lib.f90.in (omp_event_handle_kind): New.
1981 (omp_fulfill_event): New.
1982 * omp_lib.h.in (omp_event_handle_kind): New.
1983 (omp_fulfill_event): Declare.
1984 * priority_queue.c (priority_tree_find): New.
1985 (priority_list_find): New.
1986 (priority_queue_find): New.
1987 * priority_queue.h (priority_queue_predicate): New.
1988 (priority_queue_find): New.
1989 * task.c (gomp_init_task): Initialize detach field.
1990 (task_fulfilled_p): New.
1991 (GOMP_task): Add detach argument. Ignore detach argument if
1992 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
1993 field. Copy address of completion_sem into detach argument and
1994 into the start of the data record. Wait for detach event if task
1996 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1997 Remove completed tasks and requeue dependent tasks.
1998 (omp_fulfill_event): New.
1999 * team.c (gomp_new_team): Initialize task_detach_queue and
2000 task_detach_count fields.
2001 (free_team): Free task_detach_queue field.
2002 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
2003 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
2004 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
2005 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
2006 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
2007 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
2008 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
2009 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
2010 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
2011 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
2012 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
2013 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
2015 2021-01-15 Jakub Jelinek <jakub@redhat.com>
2018 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
2019 be added through preprocessor check on
2020 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2022 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
2025 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
2027 * configure: Regenerate.
2028 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
2031 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
2033 * configure: Re-generate.
2035 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
2037 * configure: Re-generate.
2039 2021-01-05 Julian Brown <julian@codesourcery.com>
2041 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
2042 (struct ptx_device): Add omp_stacks struct.
2043 (nvptx_open_device): Initialise cached-stacks housekeeping info.
2044 (nvptx_close_device): Free cached stacks block and mutex.
2045 (nvptx_stacks_free): New function.
2046 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
2047 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
2048 (nvptx_stacks_alloc): Rename to...
2049 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
2050 size or smaller is required.
2051 (nvptx_stacks_free): Remove.
2052 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
2053 during kernel execution.
2055 2021-01-01 Jakub Jelinek <jakub@redhat.com>
2057 * libgomp.texi: Bump @copying's copyright year.
2059 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
2061 * libgomp.texi (Top): Avoid bad "up" link.
2063 2020-12-18 Jakub Jelinek <jakub@redhat.com>
2065 * testsuite/libgomp.c/task-6.c: New test.
2067 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
2069 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
2070 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
2072 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
2074 * testsuite/libgomp.fortran/scan-1.f90: New test.
2076 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
2079 * configure: Regenerate.
2081 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
2083 * configure: Regenerate.
2085 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
2087 * testsuite/libgomp.oacc-c++/cache-1.C: New.
2088 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
2090 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
2092 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
2095 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
2097 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
2098 (reserved): Delete unused define.
2100 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
2102 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
2103 Tcl 8.5-specific behavior.
2104 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2106 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2108 * env.c (gomp_global_icv): Remove nest_var field. Add
2109 max_active_levels_var field.
2110 (gomp_max_active_levels_var): Remove.
2111 (parse_boolean): Return true on success.
2112 (handle_omp_display_env): Express OMP_NESTED in terms of
2113 max_active_levels_var. Change format specifier for
2114 max_active_levels_var.
2115 (initialize_env): Set max_active_levels_var from
2116 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
2118 * icv.c (omp_set_nested): Express in terms of
2119 max_active_levels_var.
2120 (omp_get_nested): Likewise.
2121 (omp_set_max_active_levels): Use max_active_levels_var field instead
2122 of gomp_max_active_levels_var.
2123 (omp_get_max_active_levels): Likewise.
2124 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
2125 max_active_levels_var field.
2126 (gomp_supported_active_levels): Set to UCHAR_MAX.
2127 (gomp_max_active_levels_var): Delete.
2128 * libgomp.texi (omp_get_nested): Update documentation.
2129 (omp_set_nested): Likewise.
2130 (OMP_MAX_ACTIVE_LEVELS): Likewise.
2131 (OMP_NESTED): Likewise.
2132 (OMP_NUM_THREADS): Likewise.
2133 (OMP_PROC_BIND): Likewise.
2134 * parallel.c (gomp_resolve_num_threads): Replace reference
2135 to nest_var with max_active_levels_var. Use max_active_levels_var
2136 field instead of gomp_max_active_levels_var.
2138 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
2140 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
2141 nvptx_usleep; use also for device={arch(gcn)}.
2143 2020-11-14 Jakub Jelinek <jakub@redhat.com>
2145 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
2146 (foo): Add tests for non-VLA private and firstprivate clauses on
2148 (bar): Likewise. Remove taking of address from private/firstprivate
2150 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
2151 (foo): Add p, q, px and s arguments. Add tests for array reductions
2152 and for non-VLA private and firstprivate clauses on omp task.
2154 (main): Adjust foo caller. Don't call bar.
2156 2020-11-13 Gergö Barany <gergo@codesourcery.com>
2157 Thomas Schwinge <thomas@codesourcery.com>
2159 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2161 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2163 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2165 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2166 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2168 2020-11-13 Gergö Barany <gergo@codesourcery.com>
2169 Thomas Schwinge <thomas@codesourcery.com>
2172 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2174 2020-11-13 Jakub Jelinek <jakub@redhat.com>
2176 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2177 for array reductions.
2178 (main): Adjust foo callers.
2180 2020-11-12 Jakub Jelinek <jakub@redhat.com>
2182 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2183 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2184 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2185 * allocator.c (omp_aligned_alloc): New for now static function,
2186 add alignment argument and handle it.
2187 (omp_alloc): Reimplement using omp_aligned_alloc.
2188 (GOMP_alloc, GOMP_free): New functions.
2189 (omp_free): Add ialias.
2190 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2191 * testsuite/libgomp.c++/allocate-1.C: New test.
2193 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
2196 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2198 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
2200 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2202 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2203 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2204 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2205 (goacc_enter_data_internal): Likewise.
2206 * target.c (gomp_map_vars_internal):
2207 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2208 of gomp_attach_pointer for OpenMP cases.
2209 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2210 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2211 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2213 2020-11-05 Ulrich Drepper <drepper@redhat.com>
2214 Kwok Cheung Yeung <kcy@codesourcery.com>
2216 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2217 * Makefile.in: Regenerate.
2218 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2219 pragmas to ignore -Wdeprecated-declarations warnings.
2221 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2222 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2223 and omp_get_nested with __GOMP_DEPRECATED_5_0.
2224 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2226 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2228 * testsuite/libgomp.c/affinity-1.c: Likewise.
2229 * testsuite/libgomp.c/affinity-2.c: Likewise.
2230 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2231 * testsuite/libgomp.c/lib-1.c: Likewise.
2232 * testsuite/libgomp.c/nested-1.c: Likewise.
2233 * testsuite/libgomp.c/nested-2.c: Likewise.
2234 * testsuite/libgomp.c/nested-3.c: Likewise.
2235 * testsuite/libgomp.c/pr32362-1.c: Likewise.
2236 * testsuite/libgomp.c/pr32362-2.c: Likewise.
2237 * testsuite/libgomp.c/pr32362-3.c: Likewise.
2238 * testsuite/libgomp.c/pr35549.c: Likewise.
2239 * testsuite/libgomp.c/pr42942.c: Likewise.
2240 * testsuite/libgomp.c/pr61200.c: Likewise.
2241 * testsuite/libgomp.c/sort-1.c: Likewise.
2242 * testsuite/libgomp.c/target-5.c: Likewise.
2243 * testsuite/libgomp.c/target-6.c: Likewise.
2244 * testsuite/libgomp.c/teams-1.c: Likewise.
2245 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2246 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2247 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2248 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2249 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2250 * testsuite/libgomp.fortran/lib2.f: Likewise.
2251 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2252 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2254 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2257 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2258 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2259 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2261 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
2265 * testsuite/lib/libgomp.exp (libgomp_init): Set
2266 'gcc_warning_prefix', 'gcc_error_prefix'.
2268 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2270 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2271 even in field_tgt_clear initializer.
2273 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2275 * testsuite/libgomp.c/target-42.c: New test.
2277 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2278 Tom de Vries <tdevries@suse.de>
2281 * testsuite/libgomp.c/usleep.h: New file.
2282 * testsuite/libgomp.c/target-32.c: Include usleep.h.
2283 (main): Use tgt_usleep instead of usleep.
2284 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2285 (main): Use tgt_usleep instead of usleep.
2287 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2290 * testsuite/libgomp.c/declare-variant-1.c: New test.
2292 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2294 * testsuite/libgomp.c/target-41.c: New test.
2296 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2298 * icv.c (omp_get_initial_device): Remove including corresponding
2300 * icv-device.c (omp_get_initial_device): New function. Return
2301 gomp_get_num_devices (). Add ialias.
2302 * target.c (resolve_device): Don't fail with
2303 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2304 gomp_get_num_devices ().
2305 (omp_target_alloc, omp_target_free, omp_target_is_present,
2306 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2307 omp_target_disassociate_ptr, omp_pause_resource): Use
2308 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2309 first use in the functions, in uses dominated by the
2310 gomp_get_num_devices call use num_devices_openmp instead.
2311 * libgomp.texi (omp_get_initial_device): Document.
2312 * config/gcn/icv-device.c (omp_get_initial_device): New function.
2314 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2315 * testsuite/libgomp.c/target-40.c: New test.
2317 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2319 * env.c (parse_target_offload): Change new_offload var type to int,
2320 preinitialize to -1, remove found var and test new_offload != -1
2323 2020-10-20 Jakub Jelinek <jakub@redhat.com>
2325 * target.c (gomp_target_init): Inside of the function, use automatic
2326 variables corresponding to num_devices, num_devices_openmp and devices
2327 global variables and update the globals only at the end of the
2330 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
2332 * env.c (gomp_target_offload_var): New.
2333 (parse_target_offload): New.
2334 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2335 (initialize_env): Parse OMP_TARGET_OFFLOAD.
2336 * libgomp.h (gomp_target_offload_t): New.
2337 (gomp_target_offload_var): New.
2338 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2339 * target.c (resolve_device): Generate error if device not found and
2340 offloading is mandatory.
2341 (gomp_target_fallback): Generate error if offloading is mandatory.
2342 (GOMP_target): Add argument in call to gomp_target_fallback.
2343 (GOMP_target_ext): Likewise.
2344 (gomp_target_data_fallback): Generate error if offloading is mandatory.
2345 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2346 (GOMP_target_data_ext): Likewise.
2347 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2348 (gomp_target_init): Return early if offloading is disabled.
2350 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2352 * libgomp.texi (omp_get_max_active_levels): Modify description.
2353 (omp_get_supported_active_levels): Make descriptions consistent.
2355 2020-10-14 Jakub Jelinek <jakub@redhat.com>
2357 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2359 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2361 * env.c (gomp_max_active_levels_var): Initialize to
2362 gomp_supported_active_levels.
2363 (initialize_env): Limit gomp_max_active_levels_var to be at most
2364 equal to gomp_supported_active_levels.
2365 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2366 (omp_get_supported_active_levels_): New.
2367 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2368 to at most equal to gomp_supported_active_levels.
2369 (omp_get_supported_active_levels): New.
2370 * libgomp.h (gomp_supported_active_levels): New.
2371 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2372 omp_get_supported_active_levels_.
2373 * libgomp.texi (omp_get_supported_active_levels): New.
2374 (omp_set_max_active_levels): Update. Add reference to
2375 omp_get_supported_active_levels.
2376 * omp.h.in (omp_get_supported_active_levels): New.
2377 * omp_lib.f90.in (omp_get_supported_active_levels): New.
2378 * omp_lib.h.in (omp_get_supported_active_levels): New.
2379 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2380 against omp_get_supported_active_levels.
2381 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2383 2020-10-11 Clement Chigot <clement.chigot@atos.net>
2385 * config/t-aix: Delete and recreate libgomp before creating
2388 2020-10-08 Tom de Vries <tdevries@suse.de>
2391 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2394 2020-10-06 Tom de Vries <tdevries@suse.de>
2396 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2398 2020-10-06 Tom de Vries <tdevries@suse.de>
2401 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2403 2020-10-05 Tom de Vries <tdevries@suse.de>
2406 * testsuite/libgomp.fortran/pr95654.f90: New test.
2408 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
2410 * Makefile.in: Regenerate with automake 1.15.1.
2411 * aclocal.m4: Likewise.
2412 * configure: Likewise.
2413 * testsuite/Makefile.in: Likewise.
2415 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
2417 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2420 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2422 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2424 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
2426 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2427 total number of threads is one.
2428 (gomp_team_barrier_wake): Likewise.
2429 (gomp_team_barrier_wait_end): Likewise.
2430 (gomp_team_barrier_wait_cancel_end): Likewise.
2431 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2432 (gomp_team_barrier_wake): Likewise.
2433 (gomp_team_barrier_wait_end): Likewise.
2434 (gomp_team_barrier_wait_cancel_end): Likewise.
2435 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2437 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
2440 * testsuite/libgomp.c++/pr96390.C: New test.
2441 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2443 2020-09-27 Clement Chigot <clement.chigot@atos.net>
2445 * config/t-aix: Use $(AR) without -X32_64.
2447 2020-09-25 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.c/loop-25.c: New test.
2451 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
2454 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2456 2020-09-22 Tom de Vries <tdevries@suse.de>
2458 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2461 2020-09-16 Nathan Sidwell <nathan@acm.org>
2463 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2465 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2468 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2470 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2473 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2474 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2475 (gomp_map_vars_existing): Update call to it.
2476 (gomp_map_fields_existing): Likewise
2477 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2478 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2480 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2482 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2483 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2485 2020-09-14 Tom de Vries <tdevries@suse.de>
2487 * config/nvptx/atomic.c: New file. Add
2488 __sync_val_compare_and_swap_16.
2489 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2490 target offload_target_nvptx.
2492 2020-09-08 Julian Brown <julian@codesourcery.com>
2494 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2495 iteration-ordering assumptions.
2497 2020-09-08 Julian Brown <julian@codesourcery.com>
2499 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2500 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2502 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
2504 * plugin/plugin-nvptx.c (nvptx_free):
2505 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2506 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2509 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
2511 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2513 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
2515 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2517 2020-08-13 Jakub Jelinek <jakub@redhat.com>
2519 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2520 * testsuite/libgomp.c/loop-23.c (main): Likewise.
2521 * testsuite/libgomp.c/loop-24.c: New test.
2523 2020-08-08 Jakub Jelinek <jakub@redhat.com>
2524 Tobias Burnus <tobias@codesourcery.com>
2527 * testsuite/libgomp.fortran/pr93553.f90: New test.
2529 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2531 * testsuite/libgomp.c/loop-22.c: New test.
2532 * testsuite/libgomp.c/loop-23.c: New test.
2534 2020-08-05 Jakub Jelinek <jakub@redhat.com>
2537 * testsuite/libgomp.c/teams-3.c: New test.
2538 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2540 (N(test)): Use it before all N(f*) calls.
2541 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2542 (main): Don't call all test_* functions from within
2543 #pragma omp teams reduction(|:err), call them directly.
2545 2020-08-04 Tom de Vries <tdevries@suse.de>
2548 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2549 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2551 2020-08-03 Julian Brown <julian@codesourcery.com>
2552 Thomas Schwinge <thomas@codesourcery.com>
2554 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2555 shared-memory devices. Extend with further checking.
2557 2020-08-03 Martin Jambor <mjambor@suse.cz>
2559 * plugin/Makefrag.am: Remove configuration of HSA plugin.
2560 * aclocal.m4: Regenerated.
2561 * Makefile.in: Regenerated.
2562 * config.h.in: Regenerated.
2563 * configure: Regenerated.
2564 * plugin/configfrag.ac: Likewise.
2565 * plugin/hsa_ext_finalize.h: Removed.
2566 * plugin/plugin-hsa.c: Likewise.
2567 * testsuite/Makefile.in: Regenerated.
2568 * testsuite/lib/libgomp.exp
2569 (offload_target_to_openacc_device_type): Remove hsa case.
2570 (check_effective_target_hsa_offloading_selected_nocache): Removed
2571 (check_effective_target_hsa_offloading_selected): Likewise.
2572 (libgomp_init): Do not add -Wno-hsa to additional_flags.
2573 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2574 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2575 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2576 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2577 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2578 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2579 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2580 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2581 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2582 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2583 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2584 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2585 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2586 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2587 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2588 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2589 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2590 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2591 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2592 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2593 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2594 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2595 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2596 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2598 2020-07-27 Julian Brown <julian@codesourcery.com>
2599 Thomas Schwinge <thomas@codesourcery.com>
2601 * libgomp.h (struct target_var_desc): Rename do_detach field to
2603 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
2604 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2605 (goacc_enter_data_internal): Don't affect reference counts
2606 for attach mappings.
2607 (goacc_exit_data_internal): Don't affect reference counts for detach
2609 * target.c (gomp_map_vars_existing): Don't affect reference counts for
2611 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2612 mark attach mappings.
2613 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2614 reference count for attach mappings.
2615 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2616 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2617 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2618 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2620 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2621 gracefully in no-finalize mode.
2622 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2624 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
2626 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2628 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2629 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2631 2020-07-23 Julian Brown <julian@codesourcery.com>
2632 Thomas Schwinge <thomas@codesourcery.com>
2634 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2635 finalization for detach operation.
2636 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2639 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
2641 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2642 * libgomp_f.h.in (omp_check_defines): Check whether
2643 sizeof of determined Fortran kind and C typedef match.
2644 * omp_lib.f90.in: Add omp_depened_kind.
2645 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2646 * configure: Regenerate.
2647 * Makefile.in: Regenerate.
2648 * testsuite/Makefile.in: Regenerate.
2650 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2652 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2653 gcc/testsuite/c-c++-common/gomp/.
2654 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2655 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2656 from gcc/testsuite/gfortran.dg/gomp/.
2657 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2659 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
2661 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2662 * omp_lib.h.in: Likewise.
2664 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
2667 * testsuite/libgomp.c/pr95620.c: New test.
2669 2020-07-16 Julian Brown <julian@codesourcery.com>
2670 Thomas Schwinge <thomas@codesourcery.com>
2672 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2673 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2675 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2677 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2678 avoid conversion on 32bit systems from 32bit to 64bit due
2679 to -fdefault-integer-8.
2681 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2683 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2684 variables; add character(kind=4) tests; update TODO comment.
2686 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
2688 * allocator.c: Add ialias for omp_init_allocator and
2689 omp_destroy_allocator.
2690 * configure.ac: Set INTPTR_T_KIND.
2691 * configure: Regenerate.
2692 * Makefile.in: Regenerate.
2693 * testsuite/Makefile.in: Regenerate.
2694 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2695 omp_set_default_allocator_, omp_get_default_allocator_): New
2696 functions and ialias_redirect.
2697 * icv.c: Add ialias for omp_set_default_allocator and
2698 omp_get_default_allocator.
2699 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2700 omp_destroy_allocator_, omp_set_default_allocator_ and
2701 omp_get_default_allocator_.
2702 * omp_lib.f90.in: Add allocator traits parameters, declare
2703 allocator routines and add related kind parameters.
2704 * omp_lib.h.in: Likewise.
2705 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2706 * testsuite/libgomp.fortran/alloc-1.F90: New test.
2707 * testsuite/libgomp.fortran/alloc-2.F90: New test.
2708 * testsuite/libgomp.fortran/alloc-3.F: New test.
2709 * testsuite/libgomp.fortran/alloc-4.f90: New test.
2710 * testsuite/libgomp.fortran/alloc-5.f90: New test.
2712 2020-07-14 Tom de Vries <tom@codesourcery.com>
2713 Cesar Philippidis <cesar@codesourcery.com>
2714 Thomas Schwinge <thomas@codesourcery.com>
2715 Kwok Cheung Yeung <kcy@codesourcery.com>
2717 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2719 (acc_init_1): Set acc_init_thread to pthread_self (). Set
2720 acc_init_state to initializing at the start, and to initialized at the
2722 (self_initializing_p): New function.
2723 (acc_get_device_type): Return acc_device_none if called by thread that
2724 is currently executing acc_init_1.
2725 * libgomp.texi (acc_get_device_type): Update documentation.
2726 (Implementation Status and Implementation-Defined Behavior): Likewise.
2727 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2729 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
2731 * config/t-aix: Set BITS from compiler cpp macro.
2733 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2735 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2737 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
2740 * testsuite/libgomp.fortran/target-map-1.f90: New test.
2742 2020-07-14 Jakub Jelinek <jakub@redhat.com>
2744 * testsuite/libgomp.c/loop-21.c: New test.
2746 2020-07-13 Julian Brown <julian@codesourcery.com>
2747 Thomas Schwinge <thomas@codesourcery.com>
2749 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2751 2020-07-10 Julian Brown <julian@codesourcery.com>
2752 Thomas Schwinge <thomas@codesourcery.com>
2754 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2756 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2757 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2759 (acc_unmap_data): Update comment.
2760 (goacc_map_var_existing, goacc_enter_datum): Adjust for
2761 dynamic_refcount semantics.
2762 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2763 Adjust for dynamic_refcount semantics.
2764 (goacc_enter_data_internal): Implement "present" case of dynamic
2765 memory-map handling here. Update "non-present" case for
2766 dynamic_refcount semantics.
2767 (goacc_exit_data_internal): Use goacc_exit_datum_1.
2768 * target.c (gomp_map_vars_internal): Remove
2769 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
2771 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2772 (gomp_load_image_to_device): Substitute dynamic_refcount for
2774 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2775 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2776 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2777 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2778 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2780 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2782 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2784 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2785 Remove stale comment.
2786 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2787 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2788 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2789 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2790 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2791 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2793 2020-07-10 Julian Brown <julian@codesourcery.com>
2794 Thomas Schwinge <thomas@codesourcery.com>
2796 * oacc-mem.c (goacc_map_var_existing): New function.
2797 (goacc_enter_datum): Use above function.
2798 (goacc_exit_datum_1): New function.
2799 (goacc_exit_datum): Use above function.
2801 2020-07-09 Julian Brown <julian@codesourcery.com>
2802 Thomas Schwinge <thomas@codesourcery.com>
2805 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2806 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2808 2020-07-09 Julian Brown <julian@codesourcery.com>
2810 * oacc-mem.c (find_group_last): Group data-movement clauses
2811 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2812 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
2814 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2816 * testsuite/libgomp.c/loop-19.c: New test.
2817 * testsuite/libgomp.c/loop-20.c: New test.
2819 2020-07-09 Jakub Jelinek <jakub@redhat.com>
2821 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2822 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
2823 it. Remove __omp_alloctrait_value_max__.
2824 * allocator.c (omp_init_allocator): Handle omp_atv_default for
2825 omp_atk_alignment and omp_atk_pool_size.
2827 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2829 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2830 behavior for 'GOMP_MAP_FORCE_FROM'.
2831 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2833 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
2835 * oacc-mem.c (goacc_exit_data_internal): Remove
2836 'GOMP_MAP_ALWAYS_FROM' handling.
2838 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2840 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2841 'scan-assembler' with 'scan-offload-rtl'.
2842 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2843 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2844 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2845 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2847 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
2849 * target.c (gomp_map_vars_existing): Assert 'kind !=
2851 (gomp_map_vars_internal): Clean up.
2853 2020-06-27 Jakub Jelinek <jakub@redhat.com>
2855 * testsuite/libgomp.c/loop-17.c: New test.
2856 * testsuite/libgomp.c/loop-18.c: New test.
2858 2020-06-26 Marek Polacek <polacek@redhat.com>
2860 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2862 2020-06-23 Alexandre Oliva <oliva@adacore.com>
2864 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2865 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2867 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
2869 * Makefile.am: Use -include.
2870 * Makefile.in: Regenerate.
2872 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
2874 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2875 * Makefile.in: Regenerate
2876 * configure.ac (tmake_file): Substitute.
2877 * configure: Regenerate.
2878 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2879 * config/t-aix: New file.
2881 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
2884 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2887 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
2889 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2890 variant for HSA_RUNTIME_LIB name.
2891 (find_executable_symbol_1): Delete.
2892 (find_executable_symbol): Delete.
2893 (init_kernel_properties): Add ".kd" suffix to symbol names.
2894 (find_load_offset): Delete.
2895 (create_and_finalize_hsa_program): Remove relocation handling.
2897 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
2899 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2901 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
2905 * testsuite/libgomp.fortran/target-var.f90: New test.
2907 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2908 Julian Brown <julian@codesourcery.com>
2910 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2913 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
2914 Julian Brown <julian@codesourcery.com>
2916 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2919 2020-06-05 Julian Brown <julian@codesourcery.com>
2921 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2922 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2924 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2926 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2927 Evaluate 'copyfrom' individually for each entry.
2928 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2930 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2932 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2933 Evaluate 'finalize' individually for each entry.
2934 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2935 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2938 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2940 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2942 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2944 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2945 Julian Brown <julian@codesourcery.com>
2947 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2949 (acc_unmap_data, goacc_exit_data_internal): Restore
2950 'is_tgt_unmapped' checking.
2951 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2953 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2954 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2955 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2956 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2957 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2958 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2960 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2961 Julian Brown <julian@codesourcery.com>
2963 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2965 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2968 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2970 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2973 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2976 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2977 Julian Brown <julian@codesourcery.com>
2979 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2981 (acc_map_data): Clean up accordingly.
2983 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
2985 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2986 of over-eager 'finalize' clause.
2987 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2989 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2990 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2991 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2992 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2993 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2994 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2995 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2996 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2998 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3000 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
3002 2020-06-04 Julian Brown <julian@codesourcery.com>
3004 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
3006 (goacc_detach_internal): Likewise.
3008 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
3010 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
3012 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3013 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3014 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3015 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3016 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3018 2020-06-02 Jakub Jelinek <jakub@redhat.com>
3020 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
3023 2020-05-30 Jakub Jelinek <jakub@redhat.com>
3025 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
3027 2020-05-30 Jakub Jelinek <jakub@redhat.com>
3029 * allocator.c (omp_alloc): For size == 0, return NULL early.
3031 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
3034 * configure: Regenerated.
3036 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
3039 * testsuite/libgomp.fortran/async_io_9.f90: New test.
3041 2020-05-19 Jakub Jelinek <jakub@redhat.com>
3043 * omp.h.in (omp_uintptr_t): New typedef.
3044 (__GOMP_UINTPTR_T_ENUM): Define.
3045 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
3046 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
3047 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
3048 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
3049 omp_get_default_allocator, omp_alloc, omp_free): Declare.
3050 * libgomp.h (struct gomp_team_state): Add def_allocator field.
3051 (gomp_def_allocator): Declare.
3052 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
3053 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
3054 omp_alloc and omp_free.
3055 * team.c (gomp_team_start): Copy over ts.def_allocator.
3056 * env.c (gomp_def_allocator): New variable.
3057 (parse_wait_policy): Adjust function comment.
3058 (parse_allocator): New function.
3059 (handle_omp_display_env): Print OMP_ALLOCATOR.
3060 (initialize_env): Call parse_allocator.
3061 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
3062 * allocator.c: New file.
3063 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
3065 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
3066 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
3067 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
3068 * Makefile.in: Regenerated.
3070 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
3073 * configure: Regenerated.
3075 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
3078 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
3080 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
3082 * configure: Regenerated.
3084 2020-05-14 Jakub Jelinek <jakub@redhat.com>
3086 * testsuite/libgomp.c-c++-common/target-40.c: New test.
3088 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
3091 * testsuite/libgomp.fortran/pr66199-3.f90: New.
3092 * testsuite/libgomp.fortran/pr66199-4.f90: New.
3093 * testsuite/libgomp.fortran/pr66199-5.f90: New.
3094 * testsuite/libgomp.fortran/pr66199-6.f90: New.
3095 * testsuite/libgomp.fortran/pr66199-7.f90: New.
3096 * testsuite/libgomp.fortran/pr66199-8.f90: New.
3097 * testsuite/libgomp.fortran/pr66199-9.f90: New.
3099 2020-05-12 Jakub Jelinek <jakub@redhat.com>
3101 * testsuite/libgomp.c/target-39.c: New test.
3103 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
3105 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
3106 * openacc.f90 (acc_device_current): Likewise.
3107 * openacc.h (acc_device_current): Likewise.
3108 * openacc_lib.h (acc_device_current): Likewise.
3111 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
3112 'dg-allow-blank-lines-in-output'.
3114 * oacc-init.c (get_openacc_name): Handle 'gcn'.
3115 * testsuite/lib/libgomp.exp
3116 (offload_target_to_openacc_device_type) [amdgcn*]: Return
3117 'radeon'. Adjust all users.
3118 (check_effective_target_openacc_amdgcn_accel_present): Rename
3120 (check_effective_target_openacc_radeon_accel_present): ... this.
3122 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
3123 (check_effective_target_openacc_radeon_accel_selected): ... this.
3126 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
3129 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
3133 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
3135 (GOMP_OFFLOAD_init_device): Check return values from both calls to
3136 hsa_agent_iterate_regions.
3138 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
3141 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
3144 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
3147 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
3150 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
3153 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
3155 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
3158 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3160 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3162 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3164 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3166 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3168 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3170 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3172 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3174 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3176 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3180 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3182 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3184 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3186 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3188 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3190 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3192 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3194 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3196 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3198 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3200 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3202 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3204 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3206 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3208 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3210 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3212 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3214 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3216 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3218 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3220 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3223 2020-04-10 Julian Brown <julian@codesourcery.com>
3224 Thomas Schwinge <thomas@codesourcery.com>
3227 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3229 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3231 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3233 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3235 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3237 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3239 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3241 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3243 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3245 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3247 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3249 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3251 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3253 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3255 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3257 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3260 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
3262 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3265 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
3268 * libgomp.oacc-c++/declare-pr94120.C: New.
3270 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
3272 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3274 * configure: Regenerate.
3275 * testsuite/libgomp-site-extra.exp.in: New file.
3276 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3278 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3280 * testsuite/Makefile.in: Regenerate.
3282 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
3284 PR tree-optimization/89713
3286 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3288 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3290 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
3292 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3293 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3295 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
3298 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3300 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
3303 * target.c (gomp_load_image_to_device): Fix link
3306 2020-03-19 Jakub Jelinek <jakub@redhat.com>
3309 * testsuite/libgomp.c++/pr93931.C: New test.
3311 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
3313 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3314 dg-allow-blank-lines-in-output.
3316 2020-03-18 Julian Brown <julian@codesourcery.com>
3317 Tobias Burnus <tobias@codesourcery.com>
3319 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3320 it work concurrently.
3322 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
3324 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3325 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3326 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3328 2020-03-14 Jakub Jelinek <jakub@redhat.com>
3331 * testsuite/libgomp.c/pr93566.c: New test.
3333 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
3335 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3336 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3337 integer(acc_device_property) for the type of the return value of
3340 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
3342 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3343 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3344 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3345 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3346 (acc_set_device_num): Fix Fortran argument name, use same name for C.
3347 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3348 corrections; add note about the previous interface and named constant.
3349 (OpenACC library and environment variables): Fix two typos.
3350 * openacc.f90: Use for all procedures the argument names from the spec
3351 as for …_h they are user visible.
3352 (openacc_kinds): Rename acc_device_property to
3353 acc_device_property_kinds and change value to int32 ; and update users.
3354 Re-add acc_device_property for for backward compatibility.
3355 (acc_get_property_string_h): Clean up as acc_device_property_kind
3357 (acc_get_property_h): Likewise and return c_size_t instead of
3358 acc_device_property.
3359 (openacc): Also export acc_device_property_kinds.
3360 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3361 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3362 handling; check against /= 0 instead of == 1 to match C.
3363 * openacc_lib.h: Use for all procedures the argument names from the spec
3364 as for …_h they are user visible. Place !GCC$ into the first column to
3365 be active also for fixed-form souce form.
3366 (acc_device_current, acc_device_property_kind, acc_device_property,
3367 acc_property_memory, acc_property_free_memory, acc_property_name,
3368 acc_property_vendor, acc_property_driver): New named constants.
3369 (acc_get_property, acc_get_property_string): New generic interface.
3371 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
3374 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3375 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3377 (gomp_target_task_fn): Assert "devicep->async_run_func".
3378 (clear_unsupported_flags): New function to remove unsupported flags
3379 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3380 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3381 * testsuite/libgomp.c/target-33.c:
3382 Remove xfail for offload_target_nvptx.
3383 * testsuite/libgomp.c/target-34.c: Likewise.
3385 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
3387 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3388 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3389 * testsuite/libgomp.c/target-34.c: Likewise.
3390 * testsuite/libgomp.c/target-link-1.c: Add xfail for
3391 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3393 2020-02-09 Jakub Jelinek <jakub@redhat.com>
3395 * testsuite/libgomp.c/target-38.c: New test.
3397 2020-02-06 Jakub Jelinek <jakub@redhat.com>
3400 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3402 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
3404 * testsuite/lib/libgomp.exp
3405 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3406 and not as 'source' argument to libgomp_target_compile.
3408 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
3410 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3411 (gcn_gfx801_s): Remove.
3412 (isa_hsa_name): Remove gfx801.
3413 (isa_gcc_name): Remove gfx801/carizzo.
3414 (isa_code): Remove gfx801.
3416 2020-02-03 Julian Brown <julian@codesourcery.com>
3417 Tobias Burnus <tobias@codesourcery.com>
3419 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3420 and *_finalize variants; document acc_attach and acc_detach; update
3421 references from OpenACC 2.0 to 2.6.
3422 * openacc.f90 (openacc_version): Update to 201711.
3423 * openacc_lib.h (openacc_version): Update to 201711.
3424 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3425 openacc_version to 201711.
3426 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3428 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
3430 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3431 and vgpr_count fields.
3432 (struct kernel_info): Add a field for a hsa_kernel_description.
3433 (run_kernel): Reduce the number of threads/workers if the requested
3434 number would require too many VGPRs.
3435 (init_basic_kernel_info): Initialize description field with
3436 the hsa_kernel_description entry for the kernel.
3438 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
3441 * plugin/configfrag.ac (enable_offload_targets): Skip
3442 HSA and GCN plugin besides -m32 also for -mx32.
3443 * configure: Regenerate.
3445 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3447 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3449 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
3451 * plugin-gcn.c (struct agent_info): Add fields "name" and
3453 (GOMP_OFFLOAD_init_device): ... and init from here.
3454 (struct hsa_context_info): Add field "driver_version_s" ...
3455 (init_hsa_contest): ... and init from here.
3456 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3458 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3459 Enable test execution for amdgcn and host offloading targets.
3460 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3461 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3462 (expect_device_properties): Split function into ...
3463 (expect_device_string_properties): ... this new function ...
3464 (expect_device_memory): ... and this new function.
3465 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3468 2020-01-28 Julian Brown <julian@codesourcery.com>
3470 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3471 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3472 component/non-component variable refs in a single directive.
3473 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3475 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3477 * configure.ac: Handle `--with-toolexeclibdir='.
3478 * Makefile.in: Regenerate.
3479 * aclocal.m4: Regenerate.
3480 * configure: Regenerate.
3481 * testsuite/Makefile.in: Regenerate.
3483 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
3485 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3486 (expect_device_properties): Remove "expected_free_mem" argument,
3487 change "expected_total_mem" argument type to size_t;
3488 change types of acc_get_property results to size_t,
3489 adapt format strings.
3490 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3491 Use %zu instead of %zd to print size_t values.
3492 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3494 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3495 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3497 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3499 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
3501 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3504 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
3506 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3507 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3508 Adjust test dimensions for amdgcn.
3509 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3510 gang/worker/vector expectations dynamically.
3511 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3513 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3514 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3515 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3516 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3517 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3518 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3519 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3520 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3521 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3522 (acc_gang): Recognise acc_device_radeon.
3523 (acc_worker): Likewise.
3524 (acc_vector): Likewise.
3525 (main): Set expectations for amdgcn.
3526 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3527 (main): Adjust gang/worker/vector expectations dynamically.
3528 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3529 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3530 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3534 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
3536 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3538 (openacc): Likewise.
3539 * openacc.f90 (openacc_kinds): Likewise.
3540 (openacc): Likewise.
3541 * openacc.h (acc_device_t): Likewise.
3542 * openacc_lib.h: Likewise.
3543 * testsuite/lib/libgomp.exp
3544 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3545 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3546 (cb_compute_construct_end): Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3548 (cb_enqueue_launch_start): Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3550 (cb_enter_data_end): Likewise.
3551 (cb_exit_data_start): Likewise.
3552 (cb_exit_data_end): Likewise.
3553 (cb_compute_construct_end): Likewise.
3554 (cb_enqueue_launch_start): Likewise.
3555 (cb_enqueue_launch_end): Likewise.
3556 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3559 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
3561 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
3562 to use this instead of 'enum gomp_device_property'.
3563 (GOMP_OFFLOAD_get_property): Rename to...
3564 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
3565 * libgomp.h (struct gomp_device_descr): Move
3566 'GOMP_OFFLOAD_openacc_get_property'...
3567 (struct acc_dispatch_t): ... here. Adjust all users.
3568 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3570 * target.c (gomp_map_vars_internal)
3571 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3574 2020-01-10 Jakub Jelinek <jakub@redhat.com>
3577 * libgomp.h (gomp_print_string): Change return type from void to int.
3578 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
3579 not all characters have been written.
3581 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
3583 * libgomp.texi: Fix typos, use https.
3585 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
3587 * testsuite/libgomp.fortran/optional-map.f90: Add test for
3588 unallocated/disassociated actual arguments to nonallocatable/nonpointer
3589 dummy arguments; those are/shall be regarded as absent arguments.
3590 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3591 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3593 2020-01-01 Jakub Jelinek <jakub@redhat.com>
3595 Update copyright years.
3597 * libgomp.texi: Bump @copying's copyright year.
3599 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
3602 * oacc-init.c (goacc_runtime_deinitialize): New function.
3604 2019-12-28 Jakub Jelinek <jakub@redhat.com>
3607 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3608 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
3610 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
3611 Frederik Harwath <frederik@codesourcery.com>
3612 Thomas Schwinge <tschwinge@codesourcery.com>
3614 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3615 * libgomp-plugin.h (gomp_device_property_value): New union.
3616 (gomp_device_property_value): New prototype.
3617 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3619 (acc_device_property_t): New enum.
3620 (acc_get_property, acc_get_property_string): New prototypes.
3621 * oacc-init.c (acc_get_device_type): Also assert that result
3622 is not `acc_device_current'.
3623 (get_property_any, acc_get_property, acc_get_property_string):
3625 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3626 `acc_property_memory', `acc_property_free_memory',
3627 `acc_property_name', `acc_property_vendor' and
3628 `acc_property_driver' constants. Add `acc_device_property' data
3630 (openacc_internal): Add `acc_get_property' and
3631 `acc_get_property_string' interfaces. Add `acc_get_property_h',
3632 `acc_get_property_string_h', `acc_get_property_l' and
3633 `acc_get_property_string_l'.
3634 * oacc-host.c (host_get_property): New function.
3635 (host_dispatch): Wire it.
3636 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3637 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3638 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3639 * libgomp.texi (OpenACC Runtime Library Routines): Add
3641 (acc_get_property): New node.
3642 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3644 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3645 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3646 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3648 (GOMP_OFFLOAD_get_property): New function.
3649 (struct ptx_device): Add new field "name".
3650 (cuda_driver_version_s): Add new static variable ...
3651 (nvptx_init): ... and init from here.
3653 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3654 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3655 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3656 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3657 with test helper functions.
3659 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3661 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
3663 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3666 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
3668 * target.c (gomp_map_vars_internal): Restore 'omp declare target
3671 2019-12-19 Julian Brown <julian@codesourcery.com>
3673 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3674 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3675 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3677 2019-12-19 Julian Brown <julian@codesourcery.com>
3678 Cesar Philippidis <cesar@codesourcery.com>
3680 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3681 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3682 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3683 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3684 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3685 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3686 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3687 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3688 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3689 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3690 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3691 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3692 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3694 2019-12-19 Julian Brown <julian@codesourcery.com>
3696 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3697 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3698 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3699 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3700 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3701 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3702 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3703 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3704 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3705 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3706 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3707 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3709 2019-12-19 Julian Brown <julian@codesourcery.com>
3711 * libgomp.h (struct target_var_desc): Add do_detach flag.
3712 * oacc-init.c (acc_shutdown_1): Free aux block if present.
3713 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3714 struct components. Tidy up and add some new checks.
3715 (goacc_enter_data_internal): Update call to find_group_last.
3716 (goacc_exit_data_internal): Support detach operations and
3718 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3719 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
3720 attach/detach in enter/exit data detection code.
3721 * target.c (gomp_map_vars_existing): Initialise do_detach field of
3723 (gomp_map_vars_internal): Support attach.
3724 (gomp_unmap_vars_internal): Support detach.
3726 2019-12-19 Julian Brown <julian@codesourcery.com>
3727 Thomas Schwinge <thomas@codesourcery.com>
3729 * libgomp.h (struct splay_tree_aux): Add attach_count field.
3730 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3731 * libgomp.map (OACC_2.6): New section. Add acc_attach,
3732 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3733 acc_detach_finalize_async.
3734 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3735 acc_detach, acc_detach_async, acc_detach_finalize,
3736 acc_detach_finalize_async): New functions.
3737 * openacc.h (acc_attach, acc_attach_async, acc_detach,
3738 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3740 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3741 (gomp_remove_var_internal): Free attachment counts if present.
3742 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3743 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3745 2019-12-19 Julian Brown <julian@codesourcery.com>
3746 Cesar Philippidis <cesar@codesourcery.com>
3748 * libgomp.h (gomp_map_val): Add prototype.
3749 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3750 open-coding device-address calculation.
3751 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3754 2019-12-19 Julian Brown <julian@codesourcery.com>
3756 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3757 field for virtual_refcount.
3758 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3759 (gomp_free_memmap): Remove prototype.
3760 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3761 instead of calling gomp_free_memmap.
3762 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3764 (acc_unmap_data): Open code instead of forcing target_mem_desc's
3765 to_free field to NULL then calling gomp_unmap_vars. Handle
3766 REFCOUNT_INFINITY on target blocks.
3767 (goacc_enter_data): Rename to...
3768 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
3769 handling for mapping groups. Use virtual_refcount instead of
3770 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3771 map_map_vars_async call. Re-do lookup for target pointer return value.
3772 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3773 renamed goacc_enter_datum function.
3774 (goacc_exit_data): Rename to...
3775 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
3776 (acc_delete, acc_delete_async, acc_delete_finalize,
3777 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3778 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3779 goacc_exit_datum function.
3780 (gomp_acc_remove_pointer, find_pointer): Remove functions.
3781 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3783 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3784 goacc_exit_data_internal helper functions.
3785 * target.c (gomp_map_vars_internal): Handle
3786 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
3788 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3789 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3790 virtual_refcount field instead of dynamic_refcount.
3791 (gomp_free_memmap): Remove function.
3792 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3793 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3794 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3796 2019-12-19 Julian Brown <julian@codesourcery.com>
3797 Thomas Schwinge <thomas@codesourcery.com>
3799 * libgomp.h (struct splay_tree_aux): New.
3800 (struct splay_tree_key_s): Replace link_key field with aux pointer.
3801 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3803 (gomp_remove_var_internal): Free aux block if present.
3804 (gomp_load_image_to_device): Zero-initialise aux field instead of
3806 (omp_target_associate_pointer): Zero-initialise aux field.
3808 2019-12-18 Jakub Jelinek <jakub@redhat.com>
3811 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3813 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3816 2019-12-19 Julian Brown <julian@codesourcery.com>
3817 Maciej W. Rozycki <macro@codesourcery.com>
3818 Tobias Burnus <tobias@codesourcery.com>
3819 Thomas Schwinge <thomas@codesourcery.com>
3821 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3822 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3823 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3824 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3825 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3826 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3827 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3828 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3829 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3831 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
3833 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3835 (goacc_insert_pointer): ... from here, "present" case.
3836 (goacc_insert_pointer): Inline function into...
3837 (GOACC_enter_exit_data): ... here, and simplify.
3839 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3841 (goacc_insert_pointer): ... from here, "not present" case.
3843 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
3846 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3847 'goacc_enter_data', 'goacc_exit_data'.
3849 * oacc-mem.c (delete_copyout): Refactor into...
3850 (goacc_exit_data): ... this. Adjust all users.
3852 * oacc-mem.c (present_create_copy): Refactor into...
3853 (goacc_enter_data): ... this. Adjust all users.
3855 * target.c (gomp_unmap_vars_internal): Add a safeguard to
3858 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3859 like 'GOMP_MAP_FROM'.
3864 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3866 (GOACC_enter_exit_data): Simplify accordingly.
3867 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3869 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3870 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3872 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3874 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3875 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3877 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3879 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3881 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3882 'finalize' handling.
3885 * oacc-mem.c (acc_map_data, present_create_copy)
3886 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3887 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3888 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3889 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3890 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3893 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3896 * target.c (gomp_unmap_tgt): Make it 'static'.
3897 * libgomp.h (gomp_unmap_tgt): Remove.
3899 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
3902 * testsuite/libgomp.c/pr86416-1.c: New.
3903 * testsuite/libgomp.c/pr86416-2.c: New.
3905 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
3907 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3908 all symbols as public except for the 'use …, only' imported symbol,
3910 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3911 all symbols from module openacc_kinds as PUBLIC
3912 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3914 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3916 2019-12-13 Julian Brown <julian@codesourcery.com>
3920 * libgomp.h (gomp_remove_var_async): Add prototype.
3921 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3923 * target.c (gomp_unref_tgt): Change return type to bool, indicating
3924 whether target_mem_desc was unmapped.
3925 (gomp_unref_tgt_void): New.
3926 (gomp_remove_var): Reimplement in terms of...
3927 (gomp_remove_var_internal): ...this new helper function.
3928 (gomp_remove_var_async): New, implemented using above helper function.
3929 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3932 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
3934 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3935 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3936 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3937 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3938 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3940 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3941 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3943 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
3945 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3946 as public except for the 'use …, only' imported symbol, which is
3948 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3949 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3950 attributes for acc_copyout_finalize and acc_delete_finalize.
3952 2019-12-11 Jakub Jelinek <jakub@redhat.com>
3955 * testsuite/libgomp.fortran/atomic1.f90: New test.
3957 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3960 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3961 reference counting for structured 'REFCOUNT_INFINITY'. Add some
3963 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3964 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3965 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3966 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3969 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3970 * oacc-mem.c: ... here.
3971 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3972 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3973 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3975 * libgomp_g.h: Update.
3977 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3978 * oacc-async.c: ... here.
3979 * oacc-int.h (goacc_wait): Declare.
3980 * libgomp_g.h: Update
3983 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3985 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3987 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3989 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3991 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3993 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3996 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
3997 Julian Brown <julian@codesourcery.com>
3999 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
4000 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
4002 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
4004 * omp_lib.h.in: Fix spelling of function declaration
4005 omp_get_cancell(l)ation.
4006 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
4008 * env.c: Fix comment typos.
4009 * oacc-host.c: Likewise.
4010 * ordered.c: Likewise.
4013 * config/gcn/task.c: Likewise.
4014 * config/gcn/team.c: Likewise.
4015 * config/nvptx/task.c: Likewise.
4016 * config/nvptx/team.c: Likewise.
4017 * plugin/plugin-gcn.c: Likewise.
4018 * testsuite/libgomp.fortran/jacobi.f: Likewise.
4019 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
4022 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
4024 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
4025 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
4026 unnecessary 'dg-additional-options "-w"'.
4028 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
4029 Julian Brown <julian@codesourcery.com>
4034 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
4035 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
4037 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4039 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4041 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
4043 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
4046 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
4047 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
4049 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
4051 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
4053 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
4055 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4057 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4059 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4060 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4061 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4071 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
4072 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
4073 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
4075 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
4077 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
4079 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4080 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
4083 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
4085 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
4087 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
4089 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
4091 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4092 ... with their content moved into, and extended in this new file.
4093 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
4095 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
4097 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
4099 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
4102 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
4105 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
4107 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
4109 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
4111 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
4113 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
4115 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
4116 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
4117 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
4118 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
4120 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
4121 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
4123 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
4125 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
4127 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
4128 Kwok Cheung Yeung <kcy@codesourcery.com>
4130 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
4131 if input it a NULL pointer.
4132 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
4133 diagnostic of NULL pointer.
4134 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
4135 * testsuite/libgomp.fortran/optional-map.f90: New.
4136 * testsuite/libgomp.fortran/use_device_addr-1.f90
4137 (test_dummy_opt_callee_1_absent): New.
4138 (test_dummy_opt_call_1): Call it.
4139 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4140 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
4141 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4142 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
4143 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
4144 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
4145 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
4146 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
4147 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
4148 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
4149 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
4150 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
4151 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
4152 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
4153 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
4154 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
4156 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
4158 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
4159 expect dg-output of 'Error termination.' for GCN.
4160 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4161 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4163 2019-12-04 Jakub Jelinek <jakub@redhat.com>
4166 * testsuite/libgomp.fortran/teams1.f90: New test.
4167 * testsuite/libgomp.fortran/teams2.f90: New test.
4169 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
4171 * oacc-init.c (acc_known_device_type): Add function.
4172 (unknown_device_type_error): Add function.
4173 (name_of_acc_device_t): Change to call unknown_device_type_error
4175 (resolve_device): Use acc_known_device_type.
4176 (acc_init): Fail if acc_device_t argument is not valid.
4177 (acc_shutdown): Likewise.
4178 (acc_get_num_devices): Likewise.
4179 (acc_set_device_type): Likewise.
4180 (acc_get_device_num): Likewise.
4181 (acc_set_device_num): Likewise.
4182 (acc_on_device): Add comment that argument validity is not checked.
4184 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
4186 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4188 (check_effective_target_openacc_amdgcn_accel_present): New proc.
4189 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4190 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4191 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4192 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4194 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4197 * configure.tgt: Avoid IE tls on *-*-musl*.
4199 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
4201 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4202 adding a common-block test case.
4204 2019-11-29 Jakub Jelinek <jakub@redhat.com>
4207 * testsuite/libgomp.c++/udr-20.C: New test.
4208 * testsuite/libgomp.c++/udr-21.C: New test.
4210 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
4212 * testsuite/lib/libgomp.exp
4213 (check_effective_target_offload_target_nvptx): New proc.
4214 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4216 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4217 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4218 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4220 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4223 * testsuite/libgomp.c/pr39591-2.c: Likewise.
4224 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4225 * testsuite/libgomp.c/private-1.c: Likewise.
4226 * testsuite/libgomp.c/task-1.c: Likewise.
4227 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4229 2019-11-20 Julian Brown <julian@codesourcery.com>
4231 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4233 (queue_push_launch): Lock aq->mutex before calling
4234 wait_for_queue_nonfull.
4235 (queue_push_callback): Likewise.
4236 (queue_push_asyncwait): Likewise.
4237 (queue_push_placeholder): Likewise.
4239 2019-11-20 Julian Brown <julian@codesourcery.com>
4241 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4242 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4243 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4246 2019-11-20 Julian Brown <julian@codesourcery.com>
4250 * oacc-mem.c (present_create_copy): Fix device pointer return value in
4251 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
4252 in non-present/create case.
4253 (delete_copyout): Change error condition to fail only on copies outside
4254 of mapped block. Adjust error message accordingly.
4255 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4256 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4257 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4259 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4260 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4261 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4263 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
4265 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4266 libatomic in build-tree testing.
4268 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
4270 * testsuite/Makefile.in: Regenerate.
4272 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
4274 * testsuite/libgomp.c/target-print-1.c: New file.
4275 * testsuite/libgomp.fortran/target-print-1.f90: New file.
4276 * testsuite/libgomp.oacc-c/print-1.c: New file.
4277 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4279 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4280 Kwok Cheung Yeung <kcy@codesourcery.com>
4281 Julian Brown <julian@codesourcery.com>
4282 Tom de Vries <tom@codesourcery.com>
4284 * plugin/Makefrag.am: Add amdgcn plugin support.
4285 * plugin/configfrag.ac: Likewise.
4286 * plugin/plugin-gcn.c: New file.
4287 * configure: Regenerate.
4288 * Makefile.in: Regenerate.
4289 * testsuite/Makefile.in: Regenerate.
4291 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4293 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4294 and use team_malloc variants.
4295 (gomp_gcn_exit_kernel): Use team_free.
4296 * libgomp.h (TEAM_ARENA_SIZE): Define.
4297 (TEAM_ARENA_START): Define.
4298 (TEAM_ARENA_FREE): Define.
4299 (TEAM_ARENA_END): Define.
4300 (team_malloc): New function.
4301 (team_malloc_cleared): New function.
4302 (team_free): New function.
4303 * team.c (gomp_new_team): Initialize and use team_malloc.
4304 (free_team): Use team_free.
4305 (gomp_free_thread): Use team_free.
4306 (gomp_pause_host): Use team_free.
4307 * work.c (gomp_init_work_share): Use team_malloc.
4308 (gomp_fini_work_share): Use team_free.
4310 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4311 Kwok Cheung Yeung <kcy@codesourcery.com>
4312 Julian Brown <julian@codesourcery.com>
4313 Tom de Vries <tom@codesourcery.com>
4315 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4316 * Makefile.in: Regenerate.
4317 * config.h.in (PLUGIN_GCN): Add new undef.
4318 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4319 * config/gcn/affinity-fmt.c: New file.
4320 * config/gcn/bar.c: New file.
4321 * config/gcn/bar.h: New file.
4322 * config/gcn/doacross.h: New file.
4323 * config/gcn/icv-device.c: New file.
4324 * config/gcn/oacc-target.c: New file.
4325 * config/gcn/simple-bar.h: New file.
4326 * config/gcn/target.c: New file.
4327 * config/gcn/task.c: New file.
4328 * config/gcn/team.c: New file.
4329 * config/gcn/time.c: New file.
4330 * configure.ac: Add amdgcn*-*-*.
4331 * configure: Regenerate.
4332 * configure.tgt: Add amdgcn*-*-*.
4333 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4334 * libgomp.h (gcn_thrs): Add amdgcn variant.
4335 (set_gcn_thrs): Likewise.
4336 (gomp_thread): Likewise.
4337 * oacc-int.h (goacc_thread): Likewise.
4338 * oacc-target.c: New file.
4339 * openacc.f90 (acc_device_gcn): New parameter.
4340 * openacc.h (acc_device_t): Add acc_device_gcn.
4341 * team.c (gomp_free_pool_helper): Add amdgcn support.
4343 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4344 Julian Brown <julian@codesourcery.com>
4346 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4348 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4350 * oacc-host.c (host_openacc_async_construct): Add device parameter.
4351 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4354 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4356 * configure.tgt (nvptx*-*-*): Add "accel" directory.
4357 * config/nvptx/libgomp-plugin.c: Move ...
4358 * config/accel/libgomp-plugin.c: ... to here.
4359 * config/nvptx/lock.c: Move ...
4360 * config/accel/lock.c: ... to here.
4361 * config/nvptx/mutex.c: Move ...
4362 * config/accel/mutex.c: ... to here.
4363 * config/nvptx/mutex.h: Move ...
4364 * config/accel/mutex.h: ... to here.
4365 * config/nvptx/oacc-async.c: Move ...
4366 * config/accel/oacc-async.c: ... to here.
4367 * config/nvptx/oacc-cuda.c: Move ...
4368 * config/accel/oacc-cuda.c: ... to here.
4369 * config/nvptx/oacc-host.c: Move ...
4370 * config/accel/oacc-host.c: ... to here.
4371 * config/nvptx/oacc-init.c: Move ...
4372 * config/accel/oacc-init.c: ... to here.
4373 * config/nvptx/oacc-mem.c: Move ...
4374 * config/accel/oacc-mem.c: ... to here.
4375 * config/nvptx/oacc-plugin.c: Move ...
4376 * config/accel/oacc-plugin.c: ... to here.
4377 * config/nvptx/omp-lock.h: Move ...
4378 * config/accel/omp-lock.h: ... to here.
4379 * config/nvptx/openacc.f90: Move ...
4380 * config/accel/openacc.f90: ... to here.
4381 * config/nvptx/pool.h: Move ...
4382 * config/accel/pool.h: ... to here.
4383 * config/nvptx/proc.c: Move ...
4384 * config/accel/proc.c: ... to here.
4385 * config/nvptx/ptrlock.c: Move ...
4386 * config/accel/ptrlock.c: ... to here.
4387 * config/nvptx/ptrlock.h: Move ...
4388 * config/accel/ptrlock.h: ... to here.
4389 * config/nvptx/sem.c: Move ...
4390 * config/accel/sem.c: ... to here.
4391 * config/nvptx/sem.h: Move ...
4392 * config/accel/sem.h: ... to here.
4393 * config/nvptx/thread-stacksize.h: Move ...
4394 * config/accel/thread-stacksize.h: ... to here.
4396 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4397 Tobias Burnus <tobias@codesourcery.com>
4398 Frederik Harwath <frederik@codesourcery.com>
4399 Thomas Schwinge <thomas@codesourcery.com>
4402 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4403 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4404 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4406 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4407 Kwok Cheung Yeung <kcy@codesourcery.com>
4409 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4410 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4412 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4414 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4416 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4418 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4419 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4421 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
4423 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4424 Add expected warnings about missing reduction clauses.
4425 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4427 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4429 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4432 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4434 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4435 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4436 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4437 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4438 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4439 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4441 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4444 * testsuite/libgomp.fortran/allocatable2.f90: Use
4445 unique numbers with 'stop'.
4446 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4447 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4448 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4449 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4450 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4452 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4454 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4455 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4456 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4457 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4458 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4459 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4461 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4463 * testsuite/libgomp.fortran/target9.f90: New.
4465 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4467 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4468 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4469 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4470 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4471 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4472 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4473 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4474 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4475 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4476 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4477 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4478 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4479 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4480 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4481 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4482 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4483 * testsuite/libgomp.fortran/associate1.f90: Ditto.
4484 * testsuite/libgomp.fortran/associate2.f90: Ditto.
4485 * testsuite/libgomp.fortran/associate3.f90: Ditto.
4486 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4487 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4488 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4489 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4490 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4491 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4492 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4493 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4494 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4495 * testsuite/libgomp.fortran/character1.f90: Ditto.
4496 * testsuite/libgomp.fortran/character2.f90: Ditto.
4497 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4498 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4499 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4500 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4501 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4502 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4503 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4504 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4505 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4506 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4507 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4508 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4509 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4510 * testsuite/libgomp.fortran/do1.f90: Ditto.
4511 * testsuite/libgomp.fortran/do2.f90: Ditto.
4512 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4513 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4514 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4515 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4516 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4517 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4518 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4519 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4520 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4521 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4522 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4523 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4524 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4525 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4526 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4527 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4528 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4529 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4530 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4531 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4532 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4533 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4534 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4535 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4536 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4537 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4538 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4539 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4540 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4541 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4542 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4543 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4544 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4545 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4546 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4547 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4548 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4549 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4550 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4551 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4552 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4553 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4554 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4555 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4556 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4557 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4558 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4559 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4560 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4561 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4562 * testsuite/libgomp.fortran/lib1.f90: Ditto.
4563 * testsuite/libgomp.fortran/lib4.f90: Ditto.
4564 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4565 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4566 * testsuite/libgomp.fortran/nested1.f90: Ditto.
4567 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4568 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4569 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4570 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4571 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4572 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4573 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4574 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4575 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4576 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4577 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4578 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4579 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4580 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4581 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4582 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4583 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4584 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4585 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4586 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4587 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4588 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4589 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4590 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4591 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4592 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4593 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4594 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4595 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4596 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4597 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4598 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4599 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4600 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4601 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4602 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4603 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4604 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4605 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4606 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4607 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4608 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4609 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4610 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4611 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4612 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4613 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4614 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4615 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4616 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4617 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4618 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4619 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4620 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4621 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4622 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4623 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4624 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4625 * testsuite/libgomp.fortran/reference1.f90: Ditto.
4626 * testsuite/libgomp.fortran/reference2.f90: Ditto.
4627 * testsuite/libgomp.fortran/retval1.f90: Ditto.
4628 * testsuite/libgomp.fortran/retval2.f90: Ditto.
4629 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4630 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4631 * testsuite/libgomp.fortran/simd1.f90: Ditto.
4632 * testsuite/libgomp.fortran/simd2.f90: Ditto.
4633 * testsuite/libgomp.fortran/simd3.f90: Ditto.
4634 * testsuite/libgomp.fortran/simd4.f90: Ditto.
4635 * testsuite/libgomp.fortran/simd5.f90: Ditto.
4636 * testsuite/libgomp.fortran/simd6.f90: Ditto.
4637 * testsuite/libgomp.fortran/simd7.f90: Ditto.
4638 * testsuite/libgomp.fortran/stack.f90: Ditto.
4639 * testsuite/libgomp.fortran/strassen.f90: Ditto.
4640 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4641 * testsuite/libgomp.fortran/tabs2.f: Ditto.
4642 * testsuite/libgomp.fortran/target1.f90: Ditto.
4643 * testsuite/libgomp.fortran/target2.f90: Ditto.
4644 * testsuite/libgomp.fortran/target3.f90: Ditto.
4645 * testsuite/libgomp.fortran/target4.f90: Ditto.
4646 * testsuite/libgomp.fortran/target5.f90: Ditto.
4647 * testsuite/libgomp.fortran/target6.f90: Ditto.
4648 * testsuite/libgomp.fortran/target7.f90: Ditto.
4649 * testsuite/libgomp.fortran/target8.f90: Ditto.
4650 * testsuite/libgomp.fortran/task1.f90: Ditto.
4651 * testsuite/libgomp.fortran/task2.f90: Ditto.
4652 * testsuite/libgomp.fortran/task3.f90: Ditto.
4653 * testsuite/libgomp.fortran/task4.f90: Ditto.
4654 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4655 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4656 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4657 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4658 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4659 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4660 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4661 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4662 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4663 * testsuite/libgomp.fortran/udr1.f90: Ditto.
4664 * testsuite/libgomp.fortran/udr10.f90: Ditto.
4665 * testsuite/libgomp.fortran/udr11.f90: Ditto.
4666 * testsuite/libgomp.fortran/udr12.f90: Ditto.
4667 * testsuite/libgomp.fortran/udr13.f90: Ditto.
4668 * testsuite/libgomp.fortran/udr14.f90: Ditto.
4669 * testsuite/libgomp.fortran/udr15.f90: Ditto.
4670 * testsuite/libgomp.fortran/udr2.f90: Ditto.
4671 * testsuite/libgomp.fortran/udr3.f90: Ditto.
4672 * testsuite/libgomp.fortran/udr4.f90: Ditto.
4673 * testsuite/libgomp.fortran/udr5.f90: Ditto.
4674 * testsuite/libgomp.fortran/udr6.f90: Ditto.
4675 * testsuite/libgomp.fortran/udr7.f90: Ditto.
4676 * testsuite/libgomp.fortran/udr8.f90: Ditto.
4677 * testsuite/libgomp.fortran/udr9.f90: Ditto.
4678 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4679 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4680 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4681 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4682 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4683 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4684 * testsuite/libgomp.fortran/vla7.f90: Ditto.
4685 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4686 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4687 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4689 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4691 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4692 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4693 Ditto; add 'dg-do run' for torture testing.
4694 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
4695 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4696 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4697 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4698 * testsuite/libgomp.fortran/pr28390.f: Ditto.
4699 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4700 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4701 * testsuite/libgomp.fortran/task2.f90: Ditto.
4702 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4703 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4704 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4705 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4706 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4707 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4709 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
4711 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4712 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4713 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4714 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4715 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4716 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4717 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4718 Use 'stop' not abort().
4719 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4720 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4721 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4722 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4723 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4724 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4725 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4726 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4727 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4728 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4729 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4730 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4731 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4732 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4733 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4734 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4735 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4737 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4739 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4741 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4743 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4745 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4747 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4749 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4751 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4753 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4755 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4757 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4759 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4761 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4763 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4764 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4765 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4766 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4767 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4768 Likewise and also add 'dg-do run'.
4769 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4772 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4773 Tobias Burnus <tobias@codesourcery.com>
4775 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4776 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4777 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4779 2019-10-14 Jakub Jelinek <jakub@redhat.com>
4782 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4785 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4787 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4788 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4790 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
4793 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4796 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
4799 * testsuite/libgomp.fortran/fortran.exp: Conditionally
4801 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4803 2019-10-09 Jakub Jelinek <jakub@redhat.com>
4806 * target.c (gomp_map_vars_internal): Readd the previous
4807 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4808 though do that just in the !not_found_cnt case.
4810 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
4812 * gfortran.dg/gomp/target-simd.f90: New.
4814 2019-10-02 Julian Brown <julian@codesourcery.com>
4815 Cesar Philippidis <cesar@codesourcery.com>
4817 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4818 * target.c (FIELD_TGT_EMPTY): Define.
4819 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
4820 as switch instead of list of ifs.
4821 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4823 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
4825 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4826 include. Replace alloca () with __builtin_alloca ().
4827 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4829 2019-10-01 Jakub Jelinek <jakub@redhat.com>
4831 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4832 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4833 * oacc-parallel.c: Don't include "libgomp_g.h".
4834 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4835 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4836 * aclocal.m4: Regenerated.
4837 * config.h.in: Regenerated.
4838 * configure: Regenerated.
4839 * Makefile.in: Regenerated.
4841 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4843 * libgomp_g.h: Include stdint.h instead of gstdint.h.
4845 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
4847 * configure: Regenerate.
4849 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
4851 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4852 string is initialized.
4854 2019-09-06 Florian Weimer <fweimer@redhat.com>
4856 * configure: Regenerate.
4858 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
4861 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4862 scanning to conform to the GNU Coding Standards.
4863 * configure: Regenerate.
4865 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4868 * testsuite/libgomp.c/scan-21.c: New test.
4869 * testsuite/libgomp.c/scan-22.c: New test.
4871 2019-08-27 Jakub Jelinek <jakub@redhat.com>
4874 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4876 * testsuite/libgomp.c/scan-12.c: Likewise.
4877 * testsuite/libgomp.c/scan-13.c: Likewise.
4878 * testsuite/libgomp.c/scan-14.c: Likewise.
4879 * testsuite/libgomp.c/scan-15.c: Likewise.
4880 * testsuite/libgomp.c/scan-16.c: Likewise.
4881 * testsuite/libgomp.c/scan-17.c: Likewise.
4882 * testsuite/libgomp.c/scan-18.c: Likewise.
4883 * testsuite/libgomp.c/scan-19.c: Likewise.
4884 * testsuite/libgomp.c/scan-20.c: Likewise.
4885 * testsuite/libgomp.c++/scan-9.C: Likewise.
4886 * testsuite/libgomp.c++/scan-10.C: Likewise.
4887 * testsuite/libgomp.c++/scan-11.C: Likewise.
4888 * testsuite/libgomp.c++/scan-12.C: Likewise.
4889 * testsuite/libgomp.c++/scan-14.C: Likewise.
4890 * testsuite/libgomp.c++/scan-15.C: Likewise.
4891 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
4892 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4893 * testsuite/libgomp.c++/scan-16.C: Likewise.
4895 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
4898 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4899 -std=legacy so invalid code in the test case is accepted.
4901 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4904 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4907 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4909 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4910 perform the lookup in the first loop only if !not_found_cnt, otherwise
4911 perform lookups for it in the second loop guarded with
4912 if (not_found_cnt || has_firstprivate).
4913 * testsuite/libgomp.c/target-37.c: New test.
4914 * testsuite/libgomp.c++/target-22.C: New test.
4916 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4918 * testsuite/libgomp.c/target-18.c (struct S): New type.
4919 (foo): Use use_device_addr clause instead of use_device_ptr clause
4920 where required by OpenMP 5.0, add further tests for both use_device_ptr
4921 and use_device_addr clauses.
4922 * testsuite/libgomp.c++/target-9.C (struct S): New type.
4923 (foo): Use use_device_addr clause instead of use_device_ptr clause
4924 where required by OpenMP 5.0, add further tests for both use_device_ptr
4925 and use_device_addr clauses. Add t and u arguments.
4926 (main): Adjust caller.
4928 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4930 * testsuite/libgomp.c++/loop-13.C: New test.
4931 * testsuite/libgomp.c++/loop-14.C: New test.
4932 * testsuite/libgomp.c++/loop-15.C: New test.
4934 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4937 * testsuite/libgomp.c++/for-27.C: New test.
4939 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
4941 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4942 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4944 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4946 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4948 2019-07-08 Jakub Jelinek <jakub@redhat.com>
4950 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4951 * testsuite/libgomp.c++/scan-16.C: Likewise.
4953 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4955 * testsuite/libgomp.c/scan-19.c: New test.
4956 * testsuite/libgomp.c/scan-20.c: New test.
4958 * testsuite/libgomp.c/scan-11.c: New test.
4959 * testsuite/libgomp.c/scan-12.c: New test.
4960 * testsuite/libgomp.c/scan-13.c: New test.
4961 * testsuite/libgomp.c/scan-14.c: New test.
4962 * testsuite/libgomp.c/scan-15.c: New test.
4963 * testsuite/libgomp.c/scan-16.c: New test.
4964 * testsuite/libgomp.c/scan-17.c: New test.
4965 * testsuite/libgomp.c/scan-18.c: New test.
4966 * testsuite/libgomp.c++/scan-9.C: New test.
4967 * testsuite/libgomp.c++/scan-10.C: New test.
4968 * testsuite/libgomp.c++/scan-11.C: New test.
4969 * testsuite/libgomp.c++/scan-12.C: New test.
4970 * testsuite/libgomp.c++/scan-13.C: New test.
4971 * testsuite/libgomp.c++/scan-14.C: New test.
4972 * testsuite/libgomp.c++/scan-15.C: New test.
4973 * testsuite/libgomp.c++/scan-16.C: New test.
4975 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4977 * testsuite/libgomp.c/scan-9.c: New test.
4978 * testsuite/libgomp.c/scan-10.c: New test.
4980 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4982 * testsuite/libgomp.c++/scan-1.C: New test.
4983 * testsuite/libgomp.c++/scan-2.C: New test.
4984 * testsuite/libgomp.c++/scan-3.C: New test.
4985 * testsuite/libgomp.c++/scan-4.C: New test.
4986 * testsuite/libgomp.c++/scan-5.C: New test.
4987 * testsuite/libgomp.c++/scan-6.C: New test.
4988 * testsuite/libgomp.c++/scan-7.C: New test.
4989 * testsuite/libgomp.c++/scan-8.C: New test.
4990 * testsuite/libgomp.c/scan-1.c: New test.
4991 * testsuite/libgomp.c/scan-2.c: New test.
4992 * testsuite/libgomp.c/scan-3.c: New test.
4993 * testsuite/libgomp.c/scan-4.c: New test.
4994 * testsuite/libgomp.c/scan-5.c: New test.
4995 * testsuite/libgomp.c/scan-6.c: New test.
4996 * testsuite/libgomp.c/scan-7.c: New test.
4997 * testsuite/libgomp.c/scan-8.c: New test.
4999 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5001 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
5002 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
5005 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
5008 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
5010 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
5013 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5016 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
5018 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
5019 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
5020 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
5021 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
5027 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
5029 2019-06-16 Tom de Vries <tdevries@suse.de>
5031 PR tree-optimization/89376
5032 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
5034 2019-06-15 Tom de Vries <tdevries@suse.de>
5036 PR tree-optimization/89713
5037 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
5038 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
5040 2019-06-15 Jakub Jelinek <jakub@redhat.com>
5043 * testsuite/libgomp.c/pr90779.c: New test.
5044 * testsuite/libgomp.fortran/pr90779.f90: New test.
5046 2019-06-15 Tom de Vries <tdevries@suse.de>
5048 PR tree-optimization/90009
5049 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
5051 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
5053 PR tree-optimization/89713
5054 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
5056 2019-06-11 Jakub Jelinek <jakub@redhat.com>
5059 * testsuite/libgomp.c/pr90811.c: New test.
5061 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5063 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
5064 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
5066 2019-06-04 Jakub Jelinek <jakub@redhat.com>
5068 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
5069 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
5070 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
5071 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
5073 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5075 * configure.ac: Call AX_COUNT_CPUS.
5076 Substitute CPU_COUNT.
5077 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
5079 * aclocal.m4: Regenerate.
5080 * configure: Regenerate.
5081 * Makefile.in, testsuite/Makefile.in: Regenerate.
5083 2019-05-29 Jakub Jelinek <jakub@redhat.com>
5085 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
5087 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
5088 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
5089 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
5091 2019-05-27 Jakub Jelinek <jakub@redhat.com>
5093 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5095 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
5098 * work.c (gomp_init_work_share): Instead of aligning final ordered
5099 value to multiples of long long alignment, align to that the
5100 first part (ordered team ids) and if inline_ordered_team_ids
5101 is not on a long long alignment boundary within the structure,
5102 use __alignof__ (long long) - 1 pad size always.
5103 * loop.c (GOMP_loop_start): Fix *mem computation if
5104 inline_ordered_team_ids is not aligned on long long alignment boundary
5105 within the structure.
5106 * loop-ull.c (GOMP_loop_ull_start): Likewise.
5107 * sections.c (GOMP_sections2_start): Likewise.
5109 2019-05-24 Jakub Jelinek <jakub@redhat.com>
5111 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
5112 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
5115 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
5116 HAVE_INTTYPES_H is defined.
5117 (print_uint64_t): New typedef.
5118 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
5119 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
5120 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
5121 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
5122 before casting to void *.
5123 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
5124 * oacc-mem.c: Don't include config.h nor stdint.h.
5125 * target.c: Don't include config.h.
5126 * oacc-cuda.c: Likewise.
5127 * oacc-host.c: Don't include stdint.h.
5129 2019-05-20 Jakub Jelinek <jakub@redhat.com>
5132 * alloc.c (_GNU_SOURCE): Define.
5134 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
5136 * acc_prof.h: New file.
5137 * oacc-profiling.c: Likewise.
5138 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
5139 Add these, respectively.
5140 * Makefile.in: Regenerate.
5141 * env.c (initialize_env): Call goacc_profiling_initialize.
5142 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
5143 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
5144 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
5145 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
5146 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
5147 acc_prof_register, acc_prof_unregister, and acc_register_library.
5148 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
5149 GOMP_PLUGIN_goacc_thread.
5150 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
5151 prof_callbacks_enabled members.
5152 (goacc_prof_enabled, goacc_profiling_initialize)
5153 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
5154 (goacc_profiling_dispatch): Declare.
5155 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
5156 (GOACC_PROFILING_SETUP_P): Define.
5157 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
5158 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
5159 OpenACC Profiling Interface.
5160 * oacc-cuda.c (acc_get_current_cuda_device)
5161 (acc_get_current_cuda_context, acc_get_cuda_stream)
5162 (acc_set_cuda_stream): Likewise.
5163 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5164 (acc_init, acc_set_device_type, acc_get_device_type)
5165 (acc_get_device_num, goacc_lazy_initialize): Likewise.
5166 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5167 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5168 (acc_unmap_data, present_create_copy, delete_copyout)
5169 (update_dev_host): Likewise.
5170 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5171 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5173 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5174 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5176 * libgomp.texi: Update.
5177 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5179 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5180 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5182 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5184 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5186 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5189 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
5191 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5192 (struct goacc_asyncqueue_list): Likewise.
5193 (goacc_aq): Likewise.
5194 (goacc_aq_list): Likewise.
5195 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5196 (GOMP_OFFLOAD_openacc_async_test): Remove.
5197 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5198 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5199 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5200 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5201 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5202 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5203 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5204 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5205 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5206 (GOMP_OFFLOAD_openacc_async_exec): Declare.
5207 (GOMP_OFFLOAD_openacc_async_construct): Declare.
5208 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5209 (GOMP_OFFLOAD_openacc_async_test): Declare.
5210 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5211 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5212 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5213 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5214 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5216 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5217 (gomp_acc_insert_pointer): Adjust declaration.
5218 (gomp_copy_host2dev): New declaration.
5219 (gomp_copy_dev2host): Likewise.
5220 (gomp_map_vars_async): Likewise.
5221 (gomp_unmap_tgt): Likewise.
5222 (gomp_unmap_vars_async): Likewise.
5223 (gomp_fini_device): Likewise.
5225 * oacc-async.c (get_goacc_thread): New function.
5226 (get_goacc_thread_device): New function.
5227 (lookup_goacc_asyncqueue): New function.
5228 (get_goacc_asyncqueue): New function.
5229 (acc_async_test): Adjust code to use new async design.
5230 (acc_async_test_all): Likewise.
5231 (acc_wait): Likewise.
5232 (acc_wait_async): Likewise.
5233 (acc_wait_all): Likewise.
5234 (acc_wait_all_async): Likewise.
5235 (goacc_async_free): New function.
5236 (goacc_init_asyncqueues): Likewise.
5237 (goacc_fini_asyncqueues): Likewise.
5238 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5240 (acc_set_cuda_stream): Likewise.
5241 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5242 (host_openacc_register_async_cleanup): Remove.
5243 (host_openacc_async_exec): New function.
5244 (host_openacc_async_test): Adjust parameters.
5245 (host_openacc_async_test_all): Remove.
5246 (host_openacc_async_wait): Remove.
5247 (host_openacc_async_wait_async): Remove.
5248 (host_openacc_async_wait_all): Remove.
5249 (host_openacc_async_wait_all_async): Remove.
5250 (host_openacc_async_set_async): Remove.
5251 (host_openacc_async_synchronize): New function.
5252 (host_openacc_async_serialize): New function.
5253 (host_openacc_async_host2dev): New function.
5254 (host_openacc_async_dev2host): New function.
5255 (host_openacc_async_queue_callback): New function.
5256 (host_openacc_async_construct): New function.
5257 (host_openacc_async_destruct): New function.
5258 (struct gomp_device_descr host_dispatch): Remove initialization of old
5259 interface, add initialization of new async sub-struct.
5260 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5261 (goacc_attach_host_thread_to_device): Remove old async code usage.
5262 * oacc-int.h (goacc_init_asyncqueues): New declaration.
5263 (goacc_fini_asyncqueues): Likewise.
5264 (goacc_async_copyout_unmap_vars): Likewise.
5265 (goacc_async_free): Likewise.
5266 (get_goacc_asyncqueue): Likewise.
5267 (lookup_goacc_asyncqueue): Likewise.
5268 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5270 (present_create_copy): Adjust code to use new async design.
5271 (delete_copyout): Likewise.
5272 (update_dev_host): Likewise.
5273 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5275 (gomp_acc_remove_pointer): Adjust code to use new async design.
5276 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5278 (GOACC_enter_exit_data): Likewise.
5279 (goacc_wait): Likewise.
5280 (GOACC_update): Likewise.
5281 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5282 when called, warn as obsolete in comment.
5283 * target.c (goacc_device_copy_async): New function.
5284 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5285 add goacc_device_copy_async case.
5286 (gomp_copy_dev2host): Likewise.
5287 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5288 (gomp_map_pointer): Likewise.
5289 (gomp_map_fields_existing): Likewise.
5290 (gomp_map_vars_internal): New always_inline function, renamed from
5292 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5293 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5294 passing goacc_asyncqueue argument.
5295 (gomp_unmap_tgt): Remove static, add attribute_hidden.
5296 (gomp_unref_tgt): New function.
5297 (gomp_unmap_vars_internal): New always_inline function, renamed from
5299 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5300 (gomp_unmap_vars_async): Implement by calling
5301 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5302 (gomp_fini_device): New function.
5303 (gomp_exit_data): Adjust gomp_copy_dev2host call.
5304 (gomp_load_plugin_for_device): Remove old interface, adjust to load
5305 new async interface.
5306 (gomp_target_fini): Adjust code to call gomp_fini_device.
5308 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5309 (struct ptx_stream): Remove.
5310 (struct nvptx_thread): Remove current_stream field.
5311 (cuda_map_create): Remove.
5312 (cuda_map_destroy): Remove.
5317 (struct goacc_asyncqueue): Define.
5318 (struct nvptx_callback): Define.
5319 (struct ptx_free_block): Define.
5320 (struct ptx_device): Remove null_stream, active_streams, async_streams,
5321 stream_lock, and next fields.
5322 (enum ptx_event_type): Remove.
5323 (struct ptx_event): Remove.
5324 (ptx_event_lock): Remove.
5325 (ptx_events): Remove.
5326 (init_streams_for_device): Remove.
5327 (fini_streams_for_device): Remove.
5328 (select_stream_for_async): Remove.
5329 (nvptx_init): Remove ptx_events and ptx_event_lock references.
5330 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5332 (nvptx_open_device): Add free_blocks initialization, remove
5333 init_streams_for_device call.
5334 (nvptx_close_device): Remove fini_streams_for_device call, add
5335 free_blocks destruct code.
5337 (event_add): Remove.
5338 (nvptx_exec): Adjust parameters and code.
5339 (nvptx_free): Likewise.
5340 (nvptx_host2dev): Remove.
5341 (nvptx_dev2host): Remove.
5342 (nvptx_set_async): Remove.
5343 (nvptx_async_test): Remove.
5344 (nvptx_async_test_all): Remove.
5345 (nvptx_wait): Remove.
5346 (nvptx_wait_async): Remove.
5347 (nvptx_wait_all): Remove.
5348 (nvptx_wait_all_async): Remove.
5349 (nvptx_get_cuda_stream): Remove.
5350 (nvptx_set_cuda_stream): Remove.
5351 (GOMP_OFFLOAD_alloc): Adjust code.
5352 (GOMP_OFFLOAD_free): Likewise.
5353 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5354 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5355 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5356 (GOMP_OFFLOAD_openacc_async_wait): Remove.
5357 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5358 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5359 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5360 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5361 (cuda_free_argmem): New function.
5362 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5363 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5364 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5365 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5366 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5367 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5368 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5369 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5370 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5371 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5372 (cuda_callback_wrapper): New function.
5373 (cuda_memcpy_sanity_check): New function.
5374 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5375 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5376 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5377 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5379 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
5382 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5384 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
5386 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5388 2019-03-27 Kevin Buettner <kevinb@redhat.com>
5390 * team.c (gomp_team_start): Initialize pool->threads[0].
5392 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5394 * testsuite/libgomp.oacc-c++/c++.exp: Specify
5395 "-foffload=$offload_target".
5396 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5397 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5398 * testsuite/lib/libgomp.exp
5399 (check_effective_target_openacc_nvidia_accel_configured): Remove,
5400 as (conceptually) merged into
5401 check_effective_target_openacc_nvidia_accel_selected. Adjust all
5404 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5405 * testsuite/libgomp-test-support.exp.in: Adjust.
5406 * testsuite/lib/libgomp.exp: Likewise. Don't populate
5407 openacc_device_types_s.
5408 (offload_target_to_openacc_device_type): New proc.
5409 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5410 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5411 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5412 * Makefile.in: Regenerate.
5413 * configure: Likewise.
5414 * testsuite/Makefile.in: Likewise.
5416 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5417 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5418 instead of OFFLOAD_TARGETS.
5419 * target.c (gomp_target_init): Adjust.
5420 * testsuite/libgomp-test-support.exp.in: Likewise.
5421 * testsuite/lib/libgomp.exp: Likewise. Populate
5422 openacc_device_types_s instead of offload_targets_s_openacc.
5423 (check_effective_target_openacc_nvidia_accel_selected)
5424 (check_effective_target_openacc_host_selected): Adjust.
5425 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5426 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5427 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5428 * Makefile.in: Regenerate.
5429 * config.h.in: Likewise.
5430 * configure: Likewise.
5431 * testsuite/Makefile.in: Likewise.
5433 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5434 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
5435 "offloading: supported, but hardware not accessible".
5436 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5437 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5439 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
5442 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5444 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5445 and related adjustment.
5447 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5450 * testsuite/libgomp.c++/pr88988.C: New test.
5452 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5455 * testsuite/libgomp.c/pr89002.c: New test.
5457 2019-01-28 Richard Biener <rguenther@suse.de>
5460 PR tree-optimization/86865
5461 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5463 2019-01-24 Tom de Vries <tdevries@suse.de>
5465 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5466 once instantiated_devices drops to 0.
5468 2019-01-23 Tom de Vries <tdevries@suse.de>
5471 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5473 (nvptx_exec): Don't call map_push if mapnum == 0.
5474 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5476 2019-01-23 Tom de Vries <tdevries@suse.de>
5480 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5481 (map_fini): Remove "assert (!s->map->active)".
5482 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5484 2019-01-23 Tom de Vries <tdevries@suse.de>
5487 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5488 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5490 2019-01-15 Tom de Vries <tdevries@suse.de>
5493 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5496 2019-01-12 Tom de Vries <tdevries@suse.de>
5498 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5499 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5500 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5501 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5503 2019-01-12 Tom de Vries <tdevries@suse.de>
5505 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5507 2019-01-12 Tom de Vries <tdevries@suse.de>
5509 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5510 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5511 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5513 2019-01-12 Tom de Vries <tdevries@suse.de>
5516 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5517 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5519 2019-01-12 Tom de Vries <tdevries@suse.de>
5522 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5523 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5525 2019-01-12 Tom de Vries <tdevries@suse.de>
5527 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5528 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5529 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5531 2019-01-12 Tom de Vries <tdevries@suse.de>
5533 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5534 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5535 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5537 2019-01-12 Tom de Vries <tdevries@suse.de>
5539 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5540 resources diagnostic.
5542 2019-01-12 Tom de Vries <tdevries@suse.de>
5544 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5545 vector length to be 128.
5546 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5547 length 2097152 to be reduced to 1024 instead of 32.
5549 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
5550 James Norris <jnorris@codesourcery.com>
5552 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5553 Library Routines", and "Environment Variables".
5555 2019-01-11 Tom de Vries <tdevries@suse.de>
5557 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5560 2019-01-11 Tom de Vries <tdevries@suse.de>
5562 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5564 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5565 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5566 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5567 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5569 2019-01-11 Tom de Vries <tdevries@suse.de>
5571 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5574 2019-01-10 Nathan Sidwell <nathan@acm.org>
5575 Julian Brown <julian@codesourcery.com>
5578 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5579 * testsuite/libgomp.oacc-c++/pr71959.C: New.
5581 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5583 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5586 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5588 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
5589 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5592 2019-01-09 Tom de Vries <tdevries@suse.de>
5595 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5596 #define instead of "const int".
5597 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5598 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5599 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5600 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5602 2019-01-09 Tom de Vries <tdevries@suse.de>
5604 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5607 2019-01-07 Tom de Vries <tdevries@suse.de>
5609 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5610 GOMP_OPENACC_DIM argument.
5612 2019-01-03 Tom de Vries <tdevries@suse.de>
5614 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5615 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5617 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5619 Update copyright years.
5621 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5623 * libgomp.texi: Bump @copying's copyright year.
5625 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5627 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5628 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5629 (GOACC_declare): Redefine the "device" argument to "flags".
5631 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
5632 Cesar Philippidis <cesar@codesourcery.com>
5634 * target.c (struct gomp_coalesce_chunk): New structure.
5635 (struct gomp_coalesce_buf): Update the chunks member to use that
5636 type. Adjust all users.
5638 2018-12-19 Tom de Vries <tdevries@suse.de>
5640 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5641 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5642 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5644 2018-12-19 Tom de Vries <tdevries@suse.de>
5646 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5647 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5648 gcc/testsuite/gcc.dg/goacc.
5649 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5651 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5652 Chung-Lin Tang <cltang@codesourcery.com>
5654 * oacc-mem.c (acc_present_or_create): Remove definition and change
5655 to alias of acc_create.
5656 (acc_present_or_copyin): Remove definition and change to alias of
5658 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5659 of acc_present_or_create.
5660 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5661 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5662 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5663 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5664 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5665 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5666 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5667 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5668 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5669 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5670 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5671 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5672 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5673 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5674 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5675 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5677 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5680 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5681 "identical parameters".
5682 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5683 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5686 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5687 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5690 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5691 (nvptx_wait_async): Unseen async-argument is a no-op.
5692 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5693 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5694 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5695 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5696 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5697 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5698 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
5699 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5700 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
5702 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5703 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5705 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
5707 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5708 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5709 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5711 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
5714 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5715 (acc_set_cuda_stream): Clarify.
5716 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5718 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5720 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5721 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5722 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5723 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5725 2018-12-14 Tom de Vries <tdevries@suse.de>
5727 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5728 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5729 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5730 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5731 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5733 2018-12-13 Tom de Vries <tdevries@suse.de>
5735 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5736 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5737 * fortran.c (omp_display_affinity_): ... here.
5738 * libgomp.h (gomp_print_string): Declare.
5739 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
5740 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5743 2018-12-13 Jakub Jelinek <jakub@redhat.com>
5746 * testsuite/libgomp.c++/for-24.C (results): Include it in
5747 omp declare target region.
5748 (main): Use map (always, tofrom: results) instead of
5749 map (tofrom: results).
5751 2018-12-12 Jakub Jelinek <jakub@redhat.com>
5754 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5755 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5757 * testsuite/libgomp.c-c++-common/for-16.c: New test.
5759 2018-12-12 Andreas Schwab <schwab@suse.de>
5761 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5764 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
5767 * testsuite/libgomp.fortran/async_io_8.f90: New test.
5769 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
5770 Jakub Jelinek <jakub@redhat.com>
5772 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5773 devicep->host2dev_func.
5775 2018-12-08 Jakub Jelinek <jakub@redhat.com>
5778 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5779 tls_runtime effective target.
5780 (t): New threadprivate variable.
5781 (main): Set t in threads which execute iterations of the worksharing
5782 loop. Propagate that to the task after the loop and don't abort
5783 if the current taskgroup hasn't been cancelled.
5785 2018-12-02 Jakub Jelinek <jakub@redhat.com>
5787 * testsuite/libgomp.c/task-reduction-3.c: New test.
5789 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5791 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
5794 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5795 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5797 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
5799 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5801 2018-10-19 Richard Biener <rguenther@suse.de>
5803 PR tree-optimization/88182
5804 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5806 2018-11-26 Jakub Jelinek <jakub@redhat.com>
5808 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5809 (RUNTEST): Don't define.
5810 (RUNTESTDEFAULTFLAGS): Add.
5811 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5812 (distclean-am): Depend on distclean-DEJAGNU.
5813 (check-am): If -j% option is present in MFLAGS and if
5814 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5815 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5816 * testsuite/Makefile.in: Regenerated.
5818 2018-11-26 Richard Biener <rguenther@suse.de>
5820 PR tree-optimization/88182
5821 * testsuite/libgomp.c++/pr88182.C: New testcase.
5823 2018-11-20 Jakub Jelinek <jakub@redhat.com>
5826 * config/mingw32/affinity-fmt.c: New file.
5828 2018-11-09 Jakub Jelinek <jakub@redhat.com>
5830 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5831 (gomp_display_affinity): Use __builtin_choose_expr to handle
5832 properly handle argument having integral, or pointer or some other
5833 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
5834 with uint64_t type instead of %llx and unsigned long long.
5836 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5837 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5839 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841 * affinity.c: Include <string.h>, <stdio.h>.
5842 (gomp_display_affinity_place): Remove cpusetp.
5843 * teams.c: Include <limits.h>.
5845 2018-11-08 Jakub Jelinek <jakub@redhat.com>
5847 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5848 in_reduction clause for s[0].
5850 * affinity.c (gomp_display_affinity_place): New function.
5851 * affinity-fmt.c: New file.
5852 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5853 * config/linux/affinity.c (gomp_display_affinity_place): New function.
5854 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5855 Move these functions to ...
5856 * config/nvptx/teams.c: ... here. New file.
5857 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5859 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5861 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5862 and _aligned_malloc.
5863 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5864 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5865 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5866 gomp_affinity_format_len): New variables.
5867 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5868 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
5869 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5870 modifiers. Display (non-default) chunk sizes. Print
5871 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5872 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
5873 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5874 * fortran.c: Include stdio.h and string.h.
5875 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5876 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5877 (omp_set_affinity_format_, omp_get_affinity_format_,
5878 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5879 omp_pause_resource_all_): New functions.
5880 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5882 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5884 * teams.c: ... here. New file.
5885 * libgomp_g.h: Include gstdint.h.
5886 (GOMP_loop_nonmonotonic_runtime_start,
5887 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5888 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5889 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5890 GOMP_parallel_loop_nonmonotonic_runtime,
5891 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5892 GOMP_loop_ull_nonmonotonic_runtime_start,
5893 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5894 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5895 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5896 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5897 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5898 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5899 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5900 GOMP_teams_reg): Declare.
5901 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5902 gomp_aligned_alloc uses fallback implementation.
5903 (gomp_aligned_alloc, gomp_aligned_free): Declare.
5904 (enum gomp_schedule_type): Add GFS_MONOTONIC.
5905 (struct gomp_doacross_work_share): Add extra field.
5906 (struct gomp_work_share): Add task_reductions field.
5907 (struct gomp_taskgroup): Add workshare and reductions fields.
5908 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5909 (gomp_thread_handle): New typedef.
5910 (gomp_display_affinity_place, gomp_set_affinity_format,
5911 gomp_display_string, gomp_display_affinity,
5912 gomp_display_affinity_thread): Declare.
5913 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5914 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5915 gomp_workshare_task_reduction_register): Declare.
5916 (gomp_team_start): Add taskgroup argument.
5917 (gomp_pause_host): Declare.
5918 (gomp_init_work_share, gomp_work_share_start): Change bool argument
5920 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5921 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5922 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5923 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5924 GOMP_loop_ull_doacross_start,
5925 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5926 GOMP_loop_maybe_nonmonotonic_runtime_next,
5927 GOMP_loop_maybe_nonmonotonic_runtime_start,
5928 GOMP_loop_nonmonotonic_runtime_next,
5929 GOMP_loop_nonmonotonic_runtime_start,
5930 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5931 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5932 GOMP_loop_ull_nonmonotonic_runtime_next,
5933 GOMP_loop_ull_nonmonotonic_runtime_start,
5934 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5935 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5936 GOMP_taskgroup_reduction_register,
5937 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5938 GOMP_teams_reg and GOMP_taskwait_depend.
5939 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5940 omp_{capture,display}_affinity{,_}, and
5941 omp_[gs]et_affinity_format{,_}.
5942 * loop.c: Include string.h.
5943 (GOMP_loop_runtime_next): Add ialias.
5944 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5945 (gomp_loop_static_start, gomp_loop_dynamic_start,
5946 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5947 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5948 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5949 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5950 or gomp_doacross_init callers.
5951 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5952 GOMP_loop_doacross_start): New functions.
5953 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5954 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5955 Mask off GFS_MONOTONIC bit.
5956 (GOMP_loop_maybe_nonmonotonic_runtime_next,
5957 GOMP_loop_maybe_nonmonotonic_runtime_start,
5958 GOMP_loop_nonmonotonic_runtime_next,
5959 GOMP_loop_nonmonotonic_runtime_start,
5960 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5961 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5963 (gomp_parallel_loop_start): Pass NULL as taskgroup to
5965 * loop_ull.c: Include string.h.
5966 (GOMP_loop_ull_runtime_next): Add ialias.
5967 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5968 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5969 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5970 gomp_loop_ull_ordered_dynamic_start,
5971 gomp_loop_ull_ordered_guided_start,
5972 gomp_loop_ull_doacross_static_start,
5973 gomp_loop_ull_doacross_dynamic_start,
5974 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5975 and gomp_doacross_ull_init callers.
5976 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5977 GOMP_loop_ull_doacross_start): New functions.
5978 (GOMP_loop_ull_runtime_start,
5979 GOMP_loop_ull_ordered_runtime_start,
5980 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5981 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5982 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5983 GOMP_loop_ull_nonmonotonic_runtime_next,
5984 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5985 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5986 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5987 (omp_pause_resource_t, omp_depend_t): New typedefs.
5988 (enum omp_lock_hint_t): Renamed to ...
5989 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
5990 enumerators using numbers and omp_lock_hint_* as their aliases.
5991 (omp_lock_hint_t): New typedef. Rename to ...
5992 (omp_sync_hint_t): ... this.
5993 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5994 omp_sync_hint_t instead of omp_lock_hint_t.
5995 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5996 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5998 (omp_target_is_present, omp_target_disassociate_ptr):
5999 Change first argument from void * to const void *.
6000 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
6001 from void * to const void *.
6002 (omp_target_associate_ptr): Change first and second arguments from
6003 void * to const void *.
6004 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
6005 omp_pause_hard): New parameters.
6006 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
6007 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
6009 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
6010 omp_pause_hard): New parameters.
6011 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
6012 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
6014 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
6015 EXTRA argument. If not needed to prepare array, if extra is 0,
6016 clear ws->doacross, otherwise allocate just doacross structure and
6017 extra payload. If array is needed, allocate also extra payload.
6018 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
6019 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
6021 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
6023 (GOMP_parallel): Likewise. Formatting fix.
6024 (GOMP_parallel_reductions): New function.
6025 (GOMP_cancellation_point): If taskgroup has workshare
6026 flag set, check cancelled of prev taskgroup if any.
6027 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
6028 on prev taskgroup if any.
6029 * sections.c: Include string.h.
6030 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
6031 (GOMP_sections_start): Adjust gomp_work_share_start caller.
6032 (GOMP_sections2_start): New function.
6033 (GOMP_parallel_sections_start, GOMP_parallel_sections):
6034 Pass NULL as taskgroup to gomp_team_start.
6035 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
6036 gomp_work_share_start callers.
6037 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
6038 If taskgroup has workshare flag set, check cancelled on prev
6039 taskgroup if any. Guard all cancellation tests with
6040 gomp_cancel_var test.
6041 (omp_target_is_present, omp_target_disassociate_ptr):
6042 Change ptr argument from void * to const void *.
6043 (omp_target_memcpy): Change src argument from void * to const void *.
6044 (omp_target_memcpy_rect): Likewise.
6045 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
6046 instead of char * where needed.
6047 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
6048 from void * to const void *.
6049 (omp_pause_resource, omp_pause_resource_all): New functions.
6050 * task.c (gomp_task_handle_depend): Handle new depend array format
6051 in addition to the old. Handle mutexinoutset kinds the same as
6052 inout for now, handle unspecified kinds.
6053 (gomp_create_target_task): If taskgroup has workshare flag set, check
6054 cancelled on prev taskgroup if any. Guard all cancellation tests with
6055 gomp_cancel_var test. Handle new depend array format count in
6056 addition to the old.
6057 (GOMP_task): Likewise. Adjust function comment.
6058 (gomp_task_run_pre): If taskgroup has workshare flag set, check
6059 cancelled on prev taskgroup if any. Guard all cancellation tests with
6060 gomp_cancel_var test.
6061 (GOMP_taskwait_depend): New function.
6062 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
6063 format in addition to the old. Handle mutexinoutset kinds the same as
6064 inout for now, handle unspecified kinds. Fix a function comment typo.
6065 (gomp_taskgroup_init): New function.
6066 (GOMP_taskgroup_start): Use it.
6067 (gomp_reduction_register, gomp_create_artificial_team,
6068 GOMP_taskgroup_reduction_register,
6069 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
6070 gomp_parallel_reduction_register,
6071 gomp_workshare_task_reduction_register,
6072 gomp_workshare_taskgroup_start,
6073 GOMP_workshare_task_reduction_unregister): New functions.
6074 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
6075 check cancelled on prev taskgroup if any. Guard all cancellation
6076 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
6077 by calling GOMP_taskgroup_reduction_register.
6078 * team.c (gomp_thread_attr): Remove comment.
6079 (struct gomp_thread_start_data): Add handle field.
6080 (gomp_thread_start): Call pthread_detach.
6081 (gomp_new_team): Adjust gomp_init_work_share caller.
6082 (gomp_free_pool_helper): Call pthread_detach.
6083 (gomp_team_start): Add taskgroup argument, initialize implicit
6084 tasks' taskgroup field to that. Don't call
6085 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
6086 (gomp_team_end): Determine nesting by thr->ts.level != 0
6087 rather than thr->ts.team != NULL.
6088 (gomp_pause_pool_helper, gomp_pause_host): New functions.
6089 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
6090 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
6091 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
6092 if more than 1 allocate also extra payload at the end of array. Never
6093 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
6094 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
6095 return true instead of ws.
6096 * Makefile.in: Regenerated.
6097 * configure: Regenerated.
6098 * config.h.in: Regenerated.
6099 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
6101 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
6102 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
6103 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
6104 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
6105 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
6106 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
6107 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
6108 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
6109 * testsuite/libgomp.c-c++-common/for-10.c: New test.
6110 * testsuite/libgomp.c-c++-common/for-11.c: New test.
6111 * testsuite/libgomp.c-c++-common/for-12.c: New test.
6112 * testsuite/libgomp.c-c++-common/for-13.c: New test.
6113 * testsuite/libgomp.c-c++-common/for-14.c: New test.
6114 * testsuite/libgomp.c-c++-common/for-15.c: New test.
6115 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
6116 define a different N(test), don't define N(f0) to N(f14), but instead
6117 define N(f20) to N(f34) using != comparisons.
6118 * testsuite/libgomp.c-c++-common/for-7.c: New test.
6119 * testsuite/libgomp.c-c++-common/for-8.c: New test.
6120 * testsuite/libgomp.c-c++-common/for-9.c: New test.
6121 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
6122 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
6123 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
6124 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
6125 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
6126 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
6127 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
6128 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
6129 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
6130 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
6131 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
6132 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
6133 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
6134 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
6135 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
6136 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
6137 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
6138 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
6139 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
6140 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
6141 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
6142 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
6143 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
6144 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
6145 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
6146 * testsuite/libgomp.c++/depend-1.C: New test.
6147 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
6148 * testsuite/libgomp.c++/depobj-1.C: New test.
6149 * testsuite/libgomp.c++/for-16.C: New test.
6150 * testsuite/libgomp.c++/for-21.C: New test.
6151 * testsuite/libgomp.c++/for-22.C: New test.
6152 * testsuite/libgomp.c++/for-23.C: New test.
6153 * testsuite/libgomp.c++/for-24.C: New test.
6154 * testsuite/libgomp.c++/for-25.C: New test.
6155 * testsuite/libgomp.c++/for-26.C: New test.
6156 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
6157 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
6158 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
6159 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
6160 * testsuite/libgomp.c++/task-reduction-10.C: New test.
6161 * testsuite/libgomp.c++/task-reduction-11.C: New test.
6162 * testsuite/libgomp.c++/task-reduction-12.C: New test.
6163 * testsuite/libgomp.c++/task-reduction-13.C: New test.
6164 * testsuite/libgomp.c++/task-reduction-14.C: New test.
6165 * testsuite/libgomp.c++/task-reduction-15.C: New test.
6166 * testsuite/libgomp.c++/task-reduction-16.C: New test.
6167 * testsuite/libgomp.c++/task-reduction-17.C: New test.
6168 * testsuite/libgomp.c++/task-reduction-18.C: New test.
6169 * testsuite/libgomp.c++/task-reduction-19.C: New test.
6170 * testsuite/libgomp.c/task-reduction-1.c: New test.
6171 * testsuite/libgomp.c++/task-reduction-1.C: New test.
6172 * testsuite/libgomp.c/task-reduction-2.c: New test.
6173 * testsuite/libgomp.c++/task-reduction-2.C: New test.
6174 * testsuite/libgomp.c++/task-reduction-3.C: New test.
6175 * testsuite/libgomp.c++/task-reduction-4.C: New test.
6176 * testsuite/libgomp.c++/task-reduction-5.C: New test.
6177 * testsuite/libgomp.c++/task-reduction-6.C: New test.
6178 * testsuite/libgomp.c++/task-reduction-7.C: New test.
6179 * testsuite/libgomp.c++/task-reduction-8.C: New test.
6180 * testsuite/libgomp.c++/task-reduction-9.C: New test.
6181 * testsuite/libgomp.c/teams-1.c: New test.
6182 * testsuite/libgomp.c/teams-2.c: New test.
6183 * testsuite/libgomp.c/thread-limit-4.c: New test.
6184 * testsuite/libgomp.c/thread-limit-5.c: New test.
6185 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6187 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
6189 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6190 acc_memcpy_to/from_device functions, now with async parameter.
6191 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6192 (acc_memcpy_from_device): Likewise.
6193 (acc_memcpy_to_device_async): New API function.
6194 (acc_memcpy_from_device_async): Likewise.
6195 (present_create_copy): Add async parameter and async setting/unsetting.
6196 (acc_create): Adjust present_create_copy call.
6197 (acc_copyin): Likewise.
6198 (acc_present_or_create): Likewise.
6199 (acc_present_or_copyin): Likewise.
6200 (acc_create_async): New API function.
6201 (acc_copyin_async): New API function.
6202 (delete_copyout): Add async parameter and async setting/unsetting.
6203 (acc_delete): Adjust delete_copyout call.
6204 (acc_copyout): Likewise.
6205 (acc_delete_async): New API function.
6206 (acc_copyout_async): Likewise.
6207 (update_dev_host): Add async parameter and async setting/unsetting.
6208 (acc_update_device): Adjust update_dev_host call.
6209 (acc_update_self): Likewise.
6210 (acc_update_device_async): New API function.
6211 (acc_update_self_async): Likewise.
6212 * openacc.h (acc_copyin_async): Declare new API function.
6213 (acc_create_async): Likewise.
6214 (acc_copyout_async): Likewise.
6215 (acc_delete_async): Likewise.
6216 (acc_update_device_async): Likewise.
6217 (acc_update_self_async): Likewise.
6218 (acc_memcpy_to_device_async): Likewise.
6219 (acc_memcpy_from_device_async): Likewise.
6220 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6221 (acc_copyin_async_64_h): New subroutine.
6222 (acc_copyin_async_array_h): New subroutine.
6223 (acc_create_async_32_h): New subroutine.
6224 (acc_create_async_64_h): New subroutine.
6225 (acc_create_async_array_h): New subroutine.
6226 (acc_copyout_async_32_h): New subroutine.
6227 (acc_copyout_async_64_h): New subroutine.
6228 (acc_copyout_async_array_h): New subroutine.
6229 (acc_delete_async_32_h): New subroutine.
6230 (acc_delete_async_64_h): New subroutine.
6231 (acc_delete_async_array_h): New subroutine.
6232 (acc_update_device_async_32_h): New subroutine.
6233 (acc_update_device_async_64_h): New subroutine.
6234 (acc_update_device_async_array_h): New subroutine.
6235 (acc_update_self_async_32_h): New subroutine.
6236 (acc_update_self_async_64_h): New subroutine.
6237 (acc_update_self_async_array_h): New subroutine.
6238 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6239 (acc_copyin_async_64_h): New subroutine.
6240 (acc_copyin_async_array_h): New subroutine.
6241 (acc_create_async_32_h): New subroutine.
6242 (acc_create_async_64_h): New subroutine.
6243 (acc_create_async_array_h): New subroutine.
6244 (acc_copyout_async_32_h): New subroutine.
6245 (acc_copyout_async_64_h): New subroutine.
6246 (acc_copyout_async_array_h): New subroutine.
6247 (acc_delete_async_32_h): New subroutine.
6248 (acc_delete_async_64_h): New subroutine.
6249 (acc_delete_async_array_h): New subroutine.
6250 (acc_update_device_async_32_h): New subroutine.
6251 (acc_update_device_async_64_h): New subroutine.
6252 (acc_update_device_async_array_h): New subroutine.
6253 (acc_update_self_async_32_h): New subroutine.
6254 (acc_update_self_async_64_h): New subroutine.
6255 (acc_update_self_async_array_h): New subroutine.
6256 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6257 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6258 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6259 acc_memcpy_to_device_async*, acc_update_device_async*, and
6260 acc_update_self_async* entries.
6261 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6262 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6263 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6265 2018-10-31 Joseph Myers <joseph@codesourcery.com>
6268 * Makefile.am: Include multilib.am
6269 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6270 (CLEANFILES): Remove libgomp.info.
6271 * configure.ac: Remove AC_PREREQ.
6272 * testsuite/Makefile.am (RUNTEST): Remove quotes.
6273 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6276 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6277 Julian Brown <julian@codesourcery.com>
6279 * testsuite/libgomp.oacc-c++/this.C: New.
6281 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
6283 * plugin/plugin-nvptx.c (struct cuda_map): New.
6284 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6285 h_tail with (cuda_map *) map.
6286 (cuda_map_create): New function.
6287 (cuda_map_destroy): New function.
6288 (map_init): Update to use a linked list of cuda_map objects.
6289 (map_fini): Likewise.
6290 (map_pop): Likewise.
6291 (map_push): Likewise. Return CUdeviceptr instead of void.
6292 (init_streams_for_device): Remove stales references to ptx_stream
6294 (select_stream_for_async): Likewise.
6295 (nvptx_exec): Update call to map_init.
6297 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
6298 Julian Brown <julian@codesourcery.com>
6301 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6303 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
6304 Thomas Koenig <tkoenig@gcc.gnu.org>
6307 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6308 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6309 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6310 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6311 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6312 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6313 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6315 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
6316 Tom de Vries <tdevries@suse.de>
6319 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6320 (cuOccupancyMaxPotentialBlockSize): Declare.
6321 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6322 CUDA_ONE_CALL_MAYBE_NULL.
6323 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6324 CUoccupancyB2DSize and declare
6325 cuOccupancyMaxPotentialBlockSize.
6326 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6327 default num_gangs and num_workers when the driver supports it.
6329 2018-08-08 Tom de Vries <tdevries@suse.de>
6331 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6332 CUDA_ONE_CALL_MAYBE_NULL.
6333 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6334 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6335 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6338 2018-08-08 Tom de Vries <tdevries@suse.de>
6340 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6341 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6344 2018-08-08 Tom de Vries <tdevries@suse.de>
6346 * plugin/plugin-nvptx.c
6347 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6348 (nvptx_open_device): Use
6349 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6351 2018-08-08 Tom de Vries <tdevries@suse.de>
6353 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6354 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
6356 2018-08-07 Tom de Vries <tdevries@suse.de>
6358 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6359 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6360 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
6361 corresponding call in CUDA_ONE_CALL. Add def/undef of
6362 CUDA_ONE_CALL_MAYBE_NULL.
6363 (CUDA_CALL_EXISTS): Define.
6365 2018-08-07 Tom de Vries <tdevries@suse.de>
6367 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6368 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6369 corresponding undefs right after.
6371 2018-08-04 Tom de Vries <tdevries@suse.de>
6373 * plugin/configfrag.ac: For --without-cuda-driver, set
6374 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
6375 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6376 * configure: Regenerate.
6378 2018-08-02 Tom de Vries <tdevries@suse.de>
6381 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6382 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6383 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6385 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6386 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6387 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6389 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6390 Thomas Schwinge <thomas@codesourcery.com>
6392 * config/nvptx/oacc-parallel.c: Truncate.
6394 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
6395 James Norris <jnorris@codesourcery.com>
6397 * plugin/plugin-nvptx.c (struct map): Removed.
6398 (map_init, map_pop): Remove use of struct map.
6399 (map_push): Likewise and change argument list.
6400 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6402 2018-08-01 Tom de Vries <tdevries@suse.de>
6404 * plugin/cuda-lib.def: New file. Factor out of ...
6405 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6406 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6409 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6411 Revert 'AsyncI/O patch committed'.
6412 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6413 Thomas Koenig <tkoenig@gcc.gnu.org>
6416 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6417 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6418 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6419 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6420 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6421 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6422 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6424 2018-07-30 Tom de Vries <tdevries@suse.de>
6426 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6427 (nvptx_exec): Ensure worker and vector default dims don't exceed
6428 targ_fn->max_threads_per_block.
6430 2018-07-30 Tom de Vries <tdevries@suse.de>
6432 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6433 (nvptx_open_device): Init default_dims for device.
6434 (nvptx_exec): Use default_dims from device.
6436 2018-07-26 Jakub Jelinek <jakub@redhat.com>
6439 * testsuite/libgomp.c++/for-15.C (results): Include it in
6440 omp declare target region.
6441 (main): Use map (always, tofrom: results) instead of
6442 map (tofrom: results).
6445 * testsuite/libgomp.c/pr86660.c: New test.
6447 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6448 Tom de Vries <tdevries@suse.de>
6450 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6451 sufficient resources to launch a kernel, and give a hint on how to fix
6454 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
6455 Tom de Vries <tdevries@suse.de>
6457 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6458 max_threads_per_block and max_threads_per_multiprocessor fields.
6459 (nvptx_open_device): Initialize new fields.
6460 (nvptx_exec): Use num_sms, and new fields.
6462 2018-07-26 Tom de Vries <tdevries@suse.de>
6464 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6465 to correct locations. Remove xfail.
6467 2018-07-26 Tom de Vries <tdevries@suse.de>
6469 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6470 acc_wait. Move acc_async_test calls to correct locations. Remove
6473 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
6474 Thomas Koenig <tkoenig@gcc.gnu.org>
6477 * testsuite/libgomp.fortran/async_io_1.f90: New test.
6478 * testsuite/libgomp.fortran/async_io_2.f90: New test.
6479 * testsuite/libgomp.fortran/async_io_3.f90: New test.
6480 * testsuite/libgomp.fortran/async_io_4.f90: New test.
6481 * testsuite/libgomp.fortran/async_io_5.f90: New test.
6482 * testsuite/libgomp.fortran/async_io_6.f90: New test.
6483 * testsuite/libgomp.fortran/async_io_7.f90: New test.
6485 2018-07-17 Jakub Jelinek <jakub@redhat.com>
6488 * testsuite/libgomp.c++/pr86542.C: New test.
6491 * testsuite/libgomp.c++/pr86539.C: New test.
6493 2018-07-11 Jakub Jelinek <jakub@redhat.com>
6496 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6497 (results): Make sure the variable is not inside declare target region.
6498 (qux): Remove unused function.
6500 2018-07-10 Jakub Jelinek <jakub@redhat.com>
6503 * testsuite/libgomp.c++/for-15.C: New test.
6505 2018-06-26 Jakub Jelinek <jakub@redhat.com>
6508 * testsuite/libgomp.c++/pr86291.C: New test.
6510 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
6512 * libgomp.texi (Top): Move www.openmp.org to https.
6513 (Enabling OpenMP): Ditto.
6514 (omp_get_active_level): Ditto.
6515 (omp_get_ancestor_thread_num): Ditto.
6516 (omp_get_cancellation): Ditto.
6517 (omp_get_default_device): Ditto.
6518 (omp_get_dynamic): Ditto.
6519 (omp_get_level): Ditto.
6520 (omp_get_max_active_levels): Ditto.
6521 (omp_get_max_task_priority): Ditto.
6522 (omp_get_max_threads): Ditto.
6523 (omp_get_nested): Ditto.
6524 (omp_get_num_devices): Ditto.
6525 (omp_get_num_procs): Ditto.
6526 (omp_get_num_teams): Ditto.
6527 (omp_get_num_threads): Ditto.
6528 (omp_get_proc_bind): Ditto.
6529 (omp_get_schedule): Ditto.
6530 (omp_get_team_num): Ditto.
6531 (omp_get_team_size): Ditto.
6532 (omp_get_thread_limit): Ditto.
6533 (omp_get_thread_num): Ditto.
6534 (omp_in_parallel): Ditto.
6535 (omp_in_final): Ditto.
6536 (omp_is_initial_device): Ditto.
6537 (omp_set_default_device): Ditto.
6538 (omp_set_dynamic): Ditto.
6539 (omp_set_max_active_levels): Ditto.
6540 (omp_set_nested): Ditto.
6541 (omp_set_num_threads): Ditto.
6542 (omp_set_schedule): Ditto.
6543 (omp_init_lock): Ditto.
6544 (omp_set_lock): Ditto.
6545 (omp_test_lock): Ditto.
6546 (omp_unset_lock): Ditto.
6547 (omp_destroy_lock): Ditto.
6548 (omp_init_nest_lock): Ditto.
6549 (omp_set_nest_lock): Ditto.
6550 (omp_test_nest_lock): Ditto.
6551 (omp_unset_nest_lock): Ditto.
6552 (omp_destroy_nest_lock): Ditto.
6553 (omp_get_wtick): Ditto.
6554 (omp_get_wtime): Ditto.
6555 (OMP_CANCELLATION): Ditto.
6556 (OMP_DISPLAY_ENV): Ditto.
6557 (OMP_DEFAULT_DEVICE): Ditto.
6558 (OMP_DYNAMIC): Ditto.
6559 (OMP_MAX_ACTIVE_LEVELS): Ditto.
6560 (OMP_MAX_TASK_PRIORITY): Ditto.
6561 (OMP_NESTED): Ditto.
6562 (OMP_NUM_THREADS): Ditto.
6563 (OMP_PROC_BIND): Ditto.
6564 (OMP_PLACES): Ditto.
6565 (OMP_STACKSIZE): Ditto.
6566 (OMP_SCHEDULE): Ditto.
6567 (OMP_THREAD_LIMIT): Ditto.
6568 (OMP_WAIT_POLICY): Ditto.
6570 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
6571 James Norris <jnorris@codesourcery.com>
6572 Julian Brown <julian@codesourcery.com>
6573 Thomas Schwinge <thomas@codesourcery.com>
6574 Tom de Vries <tom@codesourcery.com>
6576 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6577 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6578 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6579 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6580 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6581 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6582 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6583 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6584 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6587 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6589 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6591 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6593 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6595 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6607 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6609 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6613 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6615 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6617 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6625 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6627 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6629 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6631 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6633 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6635 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6637 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6639 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6640 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6641 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6642 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6643 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6644 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6645 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6646 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6647 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6649 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6651 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6652 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6653 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6655 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6656 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6657 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6671 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6673 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6675 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6677 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6679 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6685 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6687 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6688 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6689 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6690 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6691 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6692 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6693 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6695 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
6696 Thomas Schwinge <thomas@codesourcery.com>
6697 Cesar Philippidis <cesar@codesourcery.com>
6699 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6700 (gomp_acc_remove_pointer): Update declaration.
6701 (gomp_acc_declare_allocate): Declare.
6702 (gomp_remove_var): Declare.
6703 * libgomp.map (OACC_2.5): Define.
6704 * oacc-mem.c (acc_map_data): Update refcount.
6705 (acc_unmap_data): Likewise.
6706 (present_create_copy): Likewise.
6707 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6708 (acc_copyin): Likewise.
6709 (FLAG_FINALIZE): Define.
6710 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6711 (acc_delete_finalize): New function.
6712 (acc_delete_finalize_async): New function.
6713 (acc_copyout_finalize): New function.
6714 (acc_copyout_finalize_async): New function.
6715 (gomp_acc_insert_pointer): Update refcounts.
6716 (gomp_acc_remove_pointer): Return if data is not present on the
6718 * oacc-parallel.c (find_pset): Rename to find_pointer.
6719 (find_pointer): Add support for GOMP_MAP_POINTER.
6720 (handle_ftn_pointers): New function.
6721 (GOACC_parallel_keyed): Update refcounts of variables.
6722 (GOACC_enter_exit_data): Add support for finalized data mappings.
6723 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6725 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6726 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6727 for GOMP_MAP_FORCE_FROM.
6728 * openacc.f90 (module openacc_internal): Add
6729 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6730 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6731 acc_copyout_finalize and acc_delete_finalize.
6732 (acc_copyout_finalize_32_h): New subroutine.
6733 (acc_copyout_finalize_64_h): New subroutine.
6734 (acc_copyout_finalize_array_h): New subroutine.
6735 (acc_delete_finalize_32_h): New subroutine.
6736 (acc_delete_finalize_64_h): New subroutine.
6737 (acc_delete_finalize_array_h): New subroutine.
6738 * openacc.h (acc_copyout_finalize): Declare.
6739 (acc_copyout_finalize_async): Declare.
6740 (acc_delete_finalize): Declare.
6741 (acc_delete_finalize_async): Declare.
6742 * openacc_lib.h (acc_copyout_finalize): New interface.
6743 (acc_delete_finalize): New interface.
6744 * target.c (gomp_map_vars): Update dynamic_refcount.
6745 (gomp_remove_var): New function.
6746 (gomp_unmap_vars): Use it.
6747 (gomp_unload_image_from_device): Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6749 case to utilize OpenACC 2.5 data clause semantics.
6750 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6755 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6761 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6762 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6763 utilize OpenACC 2.5 data clause semantics.
6764 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6765 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6766 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6767 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6768 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6769 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6770 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6771 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6772 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6774 2018-05-21 Janus Weil <janus@gcc.gnu.org>
6778 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6779 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6780 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6781 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6782 * testsuite/libgomp.fortran/task2.f90: Ditto.
6783 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6784 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6785 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6786 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6787 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6788 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6789 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6790 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6791 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6793 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
6796 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6798 2018-05-09 Tom de Vries <tom@codesourcery.com>
6801 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6802 to GOACC_enter_exit_data.
6804 2018-05-09 Tom de Vries <tom@codesourcery.com>
6807 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6808 (async_synchronous_p): New function.
6809 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6811 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6812 async_valid_stream_id_p.
6813 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6814 * oacc-parallel.c (GOACC_parallel_keyed): Same.
6816 2018-05-07 Tom de Vries <tom@codesourcery.com>
6819 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6820 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6822 2018-05-03 Tom de Vries <tom@codesourcery.com>
6825 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6826 extra_tool_flags if it contains an -foffload=-fdump-* flag.
6827 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6828 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6830 2018-05-02 Tom de Vries <tom@codesourcery.com>
6833 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6834 GOMP_OPENACC_DIM ...
6835 * env.c (parse_gomp_openacc_dim): ... here. New function.
6836 (initialize_env): Call parse_gomp_openacc_dim.
6837 (goacc_default_dims): Define.
6838 * libgomp.h (goacc_default_dims): Declare.
6839 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6840 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6841 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6842 GOMP_PLUGIN_acc_default_dim.
6843 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6844 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6846 2018-05-02 Tom de Vries <tom@codesourcery.com>
6849 * testsuite/libgomp.c++/udr-9.C: Update.
6850 * testsuite/libgomp.c++/atomic-16.C: Remove.
6851 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6852 * testsuite/libgomp.c++/loop-13.C: Remove.
6853 * testsuite/libgomp.c++/loop-14.C: Remove.
6854 * testsuite/libgomp.c++/loop-15.C: Remove.
6855 * testsuite/libgomp.c++/monotonic-1.C: Remove.
6856 * testsuite/libgomp.c++/monotonic-2.C: Remove.
6857 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6858 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6859 * testsuite/libgomp.c++/ordered-1.C: Remove.
6860 * testsuite/libgomp.c++/pr45784.C: Remove.
6861 * testsuite/libgomp.c++/pr64824.C: Remove.
6862 * testsuite/libgomp.c++/pr64868.C: Remove.
6863 * testsuite/libgomp.c++/pr66199-1.C: Remove.
6864 * testsuite/libgomp.c++/pr66199-2.C: Remove.
6865 * testsuite/libgomp.c++/pr66199-3.C: Remove.
6866 * testsuite/libgomp.c++/pr66199-4.C: Remove.
6867 * testsuite/libgomp.c++/pr66199-5.C: Remove.
6868 * testsuite/libgomp.c++/pr66199-6.C: Remove.
6869 * testsuite/libgomp.c++/pr66199-7.C: Remove.
6870 * testsuite/libgomp.c++/pr66199-8.C: Remove.
6871 * testsuite/libgomp.c++/pr66199-9.C: Remove.
6872 * testsuite/libgomp.c++/pr69389.C: Remove.
6873 * testsuite/libgomp.c++/simd10.C: Remove.
6874 * testsuite/libgomp.c++/simd11.C: Remove.
6875 * testsuite/libgomp.c++/simd12.C: Remove.
6876 * testsuite/libgomp.c++/simd13.C: Remove.
6877 * testsuite/libgomp.c++/target-1.C: Remove.
6878 * testsuite/libgomp.c++/target-3.C: Remove.
6879 * testsuite/libgomp.c++/target-4.C: Remove.
6880 * testsuite/libgomp.c++/target-5.C: Remove.
6881 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6882 * testsuite/libgomp.c++/taskloop-1.C: Remove.
6883 * testsuite/libgomp.c++/taskloop-2.C: Remove.
6884 * testsuite/libgomp.c++/taskloop-3.C: Remove.
6885 * testsuite/libgomp.c++/taskloop-4.C: Remove.
6886 * testsuite/libgomp.c++/udr-9.C: Remove.
6887 * testsuite/libgomp.c++/for-10.C: Remove.
6888 * testsuite/libgomp.c++/for-11.C: Remove.
6889 * testsuite/libgomp.c++/for-12.C: Remove.
6890 * testsuite/libgomp.c++/for-13.C: Remove.
6891 * testsuite/libgomp.c++/for-14.C: Remove.
6892 * testsuite/libgomp.c++/for-9.C: Remove.
6893 * testsuite/libgomp.c/atomic-18.c: Move ...
6894 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6895 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6896 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6897 * testsuite/libgomp.c/loop-13.c: Move ...
6898 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6899 * testsuite/libgomp.c/loop-14.c: Move ...
6900 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6901 * testsuite/libgomp.c/loop-15.c: Remove.
6902 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6903 * testsuite/libgomp.c/monotonic-1.c: Move ...
6904 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6905 * testsuite/libgomp.c/monotonic-2.c: Move ...
6906 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6907 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6908 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6909 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6910 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6911 * testsuite/libgomp.c/ordered-4.c: Move ...
6912 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6913 * testsuite/libgomp.c/pr45784.c: Move ...
6914 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6915 * testsuite/libgomp.c/pr64824.c: Move ...
6916 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6917 * testsuite/libgomp.c/pr64868.c: Move ...
6918 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6919 * testsuite/libgomp.c/pr66199-1.c: Move ...
6920 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6921 * testsuite/libgomp.c/pr66199-2.c: Move ...
6922 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6923 * testsuite/libgomp.c/pr66199-3.c: Move ...
6924 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6925 * testsuite/libgomp.c/pr66199-4.c: Move ...
6926 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6927 * testsuite/libgomp.c/pr66199-5.c: Move ...
6928 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6929 * testsuite/libgomp.c/pr66199-6.c: Move ...
6930 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6931 * testsuite/libgomp.c/pr66199-7.c: Move ...
6932 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6933 * testsuite/libgomp.c/pr66199-8.c: Move ...
6934 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6935 * testsuite/libgomp.c/pr66199-9.c: Move ...
6936 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6937 * testsuite/libgomp.c/pr69389.c: Move ...
6938 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6939 * testsuite/libgomp.c/simd-14.c: Move ...
6940 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6941 * testsuite/libgomp.c/simd-15.c: Move ...
6942 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6943 * testsuite/libgomp.c/simd-16.c: Move ...
6944 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6945 * testsuite/libgomp.c/simd-17.c: Move ...
6946 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6947 * testsuite/libgomp.c/target-1.c: Move ...
6948 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6949 * testsuite/libgomp.c/target-10.c: Move ...
6950 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6951 * testsuite/libgomp.c/target-13.c: Move ...
6952 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6953 * testsuite/libgomp.c/target-2.c: Move ...
6954 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6955 * testsuite/libgomp.c/taskgroup-1.c: Move ...
6956 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6957 * testsuite/libgomp.c/taskloop-1.c: Move ...
6958 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6959 * testsuite/libgomp.c/taskloop-2.c: Move ...
6960 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6961 * testsuite/libgomp.c/taskloop-3.c: Move ...
6962 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6963 * testsuite/libgomp.c/taskloop-4.c: Move ...
6964 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6965 * testsuite/libgomp.c/udr-1.c: Move ...
6966 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6967 * testsuite/libgomp.c/for-1.c: Move ...
6968 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6969 * testsuite/libgomp.c/for-1.h: Move ...
6970 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6971 * testsuite/libgomp.c/for-2.c: Move ...
6972 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6973 * testsuite/libgomp.c/for-2.h: Move ...
6974 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6975 * testsuite/libgomp.c/for-3.c: Move ...
6976 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6977 * testsuite/libgomp.c/for-4.c: Move ...
6978 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6979 * testsuite/libgomp.c/for-5.c: Move ...
6980 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6981 * testsuite/libgomp.c/for-6.c: Move ...
6982 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6984 2018-05-02 Tom de Vries <tom@codesourcery.com>
6987 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6988 __builtin_goacc_parlevel_{id,size}.
6989 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6990 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6991 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6992 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6993 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6994 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6995 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6996 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6997 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6998 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6999 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
7000 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
7001 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
7002 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
7003 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
7004 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
7005 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
7006 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
7007 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
7008 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
7009 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
7010 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
7011 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
7013 2018-05-02 Tom de Vries <tom@codesourcery.com>
7016 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
7018 2018-05-02 Tom de Vries <tom@codesourcery.com>
7021 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
7023 2018-04-29 Julian Brown <julian@codesourcery.com>
7024 Tom de Vries <tom@codesourcery.com>
7027 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
7028 arbitrary order for iterations of atomic subtract check.
7030 2018-04-28 Tom de Vries <tom@codesourcery.com>
7033 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
7034 atomic capture results obtained in parallel loop to an array, instead of
7037 2018-04-26 Tom de Vries <tom@codesourcery.com>
7040 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
7041 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
7042 (process_GOMP_NVPTX_JIT): New function.
7043 (link_ptx): Use process_GOMP_NVPTX_JIT.
7045 2018-04-26 Richard Biener <rguenther@suse.de>
7046 Tom de Vries <tom@codesourcery.com>
7049 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
7051 2018-04-26 Tom de Vries <tom@codesourcery.com>
7054 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
7055 recursion depth from 25 to 23.
7056 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
7058 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
7060 * configure: Regenerated.
7062 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
7063 Tom de Vries <tom@codesourcery.com>
7066 * testsuite/libgomp.oacc-c++/ref-1.C: New.
7068 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
7071 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
7072 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7073 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7074 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7075 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7076 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7079 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
7081 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7083 2018-04-19 Jakub Jelinek <jakub@redhat.com>
7085 * configure: Regenerated.
7087 2018-04-18 David Malcolm <dmalcolm@redhat.com>
7090 * configure: Regenerate.
7092 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
7093 Tom de Vries <tom@codesourcery.com>
7096 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7097 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7099 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7103 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
7104 test from gfortran.dg to here.
7106 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
7108 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
7109 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
7111 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
7114 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7115 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7117 2018-04-05 Tom de Vries <tom@codesourcery.com>
7120 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
7122 2018-03-26 Tom de Vries <tom@codesourcery.com>
7124 PR tree-optimization/85063
7125 * testsuite/libgomp.c/switch-conversion-2.c: New test.
7126 * testsuite/libgomp.c/switch-conversion.c: New test.
7127 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
7128 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
7130 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
7133 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
7134 call abort by STOP n.
7135 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
7136 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
7137 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
7138 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
7139 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
7140 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
7141 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
7142 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
7143 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
7144 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
7145 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
7146 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
7147 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
7148 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
7149 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
7150 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
7151 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
7152 * testsuite/libgomp.fortran/associate1.f90: Likewise.
7153 * testsuite/libgomp.fortran/associate2.f90: Likewise.
7154 * testsuite/libgomp.fortran/associate3.f90: Likewise.
7155 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
7156 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
7157 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
7158 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
7159 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
7160 * testsuite/libgomp.fortran/character1.f90: Likewise.
7161 * testsuite/libgomp.fortran/character2.f90: Likewise.
7162 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7163 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7164 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7165 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7166 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7167 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7168 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7169 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7170 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7171 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7172 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7173 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7174 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7175 * testsuite/libgomp.fortran/do1.f90: Likewise.
7176 * testsuite/libgomp.fortran/do2.f90: Likewise.
7177 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7178 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7179 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7180 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7181 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7182 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7183 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7184 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7185 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7186 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7187 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7188 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7189 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7190 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7191 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7192 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7193 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7194 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7195 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7196 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7197 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7198 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7199 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7200 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7201 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7202 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7203 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7204 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7205 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7206 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7207 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7208 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7209 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7210 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7211 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7212 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7213 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7214 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7215 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7216 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7217 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7218 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7219 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7220 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7221 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7222 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7223 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7224 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7225 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7226 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7227 * testsuite/libgomp.fortran/lib2.f: Likewise.
7228 * testsuite/libgomp.fortran/lib3.f: Likewise.
7229 * testsuite/libgomp.fortran/lib4.f90: Likewise.
7230 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7231 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7232 * testsuite/libgomp.fortran/nested1.f90: Likewise.
7233 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7234 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7235 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7236 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7237 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7238 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7239 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7240 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7241 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7242 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7243 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7244 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7245 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7246 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7247 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7248 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7249 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7250 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7251 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7252 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7253 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7254 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7255 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7256 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7257 * testsuite/libgomp.fortran/pr25162.f: Likewise.
7258 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7259 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7260 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7261 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7262 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7263 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7264 * testsuite/libgomp.fortran/pr28390.f: Likewise.
7265 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7266 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7267 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7268 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7269 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7270 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7271 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7272 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7273 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7274 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7275 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7276 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7277 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7278 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7279 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7280 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7281 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7282 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7283 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7284 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7285 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7286 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7287 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7288 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7289 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7290 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7291 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7292 * testsuite/libgomp.fortran/reference1.f90: Likewise.
7293 * testsuite/libgomp.fortran/reference2.f90: Likewise.
7294 * testsuite/libgomp.fortran/retval1.f90: Likewise.
7295 * testsuite/libgomp.fortran/retval2.f90: Likewise.
7296 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7297 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7298 * testsuite/libgomp.fortran/simd1.f90: Likewise.
7299 * testsuite/libgomp.fortran/simd2.f90: Likewise.
7300 * testsuite/libgomp.fortran/simd3.f90: Likewise.
7301 * testsuite/libgomp.fortran/simd4.f90: Likewise.
7302 * testsuite/libgomp.fortran/simd5.f90: Likewise.
7303 * testsuite/libgomp.fortran/simd6.f90: Likewise.
7304 * testsuite/libgomp.fortran/simd7.f90: Likewise.
7305 * testsuite/libgomp.fortran/stack.f90: Likewise.
7306 * testsuite/libgomp.fortran/strassen.f90: Likewise.
7307 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7308 * testsuite/libgomp.fortran/tabs2.f: Likewise.
7309 * testsuite/libgomp.fortran/target1.f90: Likewise.
7310 * testsuite/libgomp.fortran/target2.f90: Likewise.
7311 * testsuite/libgomp.fortran/target3.f90: Likewise.
7312 * testsuite/libgomp.fortran/target4.f90: Likewise.
7313 * testsuite/libgomp.fortran/target5.f90: Likewise.
7314 * testsuite/libgomp.fortran/target6.f90: Likewise.
7315 * testsuite/libgomp.fortran/target7.f90: Likewise.
7316 * testsuite/libgomp.fortran/target8.f90: Likewise.
7317 * testsuite/libgomp.fortran/task1.f90: Likewise.
7318 * testsuite/libgomp.fortran/task2.f90: Likewise.
7319 * testsuite/libgomp.fortran/task3.f90: Likewise.
7320 * testsuite/libgomp.fortran/task4.f90: Likewise.
7321 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7322 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7323 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7324 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7325 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7326 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7327 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7328 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7329 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7330 * testsuite/libgomp.fortran/udr1.f90: Likewise.
7331 * testsuite/libgomp.fortran/udr10.f90: Likewise.
7332 * testsuite/libgomp.fortran/udr11.f90: Likewise.
7333 * testsuite/libgomp.fortran/udr12.f90: Likewise.
7334 * testsuite/libgomp.fortran/udr13.f90: Likewise.
7335 * testsuite/libgomp.fortran/udr14.f90: Likewise.
7336 * testsuite/libgomp.fortran/udr15.f90: Likewise.
7337 * testsuite/libgomp.fortran/udr2.f90: Likewise.
7338 * testsuite/libgomp.fortran/udr3.f90: Likewise.
7339 * testsuite/libgomp.fortran/udr4.f90: Likewise.
7340 * testsuite/libgomp.fortran/udr5.f90: Likewise.
7341 * testsuite/libgomp.fortran/udr6.f90: Likewise.
7342 * testsuite/libgomp.fortran/udr7.f90: Likewise.
7343 * testsuite/libgomp.fortran/udr8.f90: Likewise.
7344 * testsuite/libgomp.fortran/udr9.f90: Likewise.
7345 * testsuite/libgomp.fortran/vla1.f90: Likewise.
7346 * testsuite/libgomp.fortran/vla2.f90: Likewise.
7347 * testsuite/libgomp.fortran/vla3.f90: Likewise.
7348 * testsuite/libgomp.fortran/vla4.f90: Likewise.
7349 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7350 * testsuite/libgomp.fortran/vla6.f90: Likewise.
7351 * testsuite/libgomp.fortran/vla7.f90: Likewise.
7352 * testsuite/libgomp.fortran/vla8.f90: Likewise.
7353 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7354 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7355 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7356 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7357 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7358 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7359 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7360 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7361 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7362 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7363 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7364 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7365 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7366 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7367 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7368 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7369 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7370 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7371 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7372 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7373 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7374 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7375 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7376 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7377 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7378 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7379 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7380 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7381 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7382 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7383 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7384 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7385 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7386 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7387 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7388 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7389 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7390 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7391 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7392 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7393 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7394 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7395 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7396 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7397 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7398 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7399 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7400 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7401 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7402 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7403 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7404 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7405 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7406 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7407 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7408 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7409 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7410 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7411 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7412 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7413 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7414 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7415 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7416 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7417 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7418 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7419 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7420 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7421 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7422 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7423 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7424 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7425 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7426 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7427 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7428 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7429 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7430 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7431 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7432 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7433 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7434 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7435 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7436 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7437 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7438 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7439 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7440 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7441 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7442 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7443 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7444 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7445 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7446 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7448 2018-03-20 Richard Biener <rguenther@suse.de>
7450 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7451 parallelizable loop.
7453 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7456 * configure: Regenerate.
7458 2018-02-16 Jakub Jelinek <jakub@redhat.com>
7461 * libgomp.fortran/pr84418-1.f90: New test.
7462 * libgomp.fortran/pr84418-2.f90: New test.
7464 2018-02-14 Jakub Jelinek <jakub@redhat.com>
7467 * testsuite/libgomp.fortran/threadprivate4.f90: Add
7468 -std=f2003 -fall-intrinsics into dg-additional-options.
7470 2018-02-08 Martin Jambor <mjambor@suse.cz>
7472 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7475 2018-02-08 Martin Jambor <mjambor@suse.cz>
7477 * testsuite/libgomp.hsa.c/staticvar.c: New test.
7479 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7481 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7482 [__cplusplus]: Declare extern "C".
7484 2018-02-07 Tom de Vries <tom@codesourcery.com>
7487 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7489 2018-01-29 Christoph Spiel <cspiel@freenet.de>
7490 Jakub Jelinek <jakub@redhat.com>
7493 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7494 instead of omp_lock_t.
7496 2018-01-25 Tom de Vries <tom@codesourcery.com>
7499 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7501 2018-01-24 Tom de Vries <tom@codesourcery.com>
7504 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7506 2018-01-24 Tom de Vries <tom@codesourcery.com>
7509 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7511 2018-01-19 Tom de Vries <tom@codesourcery.com>
7512 Cesar Philippidis <cesar@codesourcery.com>
7515 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7516 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7518 2018-01-03 Jakub Jelinek <jakub@redhat.com>
7520 Update copyright years.
7522 * libgomp.texi: Bump @copying's copyright year.
7524 2017-12-30 Tom de Vries <tom@codesourcery.com>
7527 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7528 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7530 2017-12-27 Tom de Vries <tom@codesourcery.com>
7533 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7534 (test_nonstatic): Fix return type to workaround PR83046.
7536 2017-12-05 Jakub Jelinek <jakub@redhat.com>
7539 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7540 j suffix instead of i.
7541 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7544 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
7546 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7547 call to acc_wait (1).
7549 2017-11-24 Jakub Jelinek <jakub@redhat.com>
7552 * testsuite/libgomp.fortran/pr81304.f90: New test.
7554 2017-11-23 Jakub Jelinek <jakub@redhat.com>
7557 * libgomp.fortran/pr81841.f90: New test.
7559 2017-11-22 Jakub Jelinek <jakub@redhat.com>
7562 * target.c (gomp_target_init): Compute lengths just once and
7563 use them in both malloc size and subsequent copying.
7565 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7567 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7568 * acinclude.m4: Add cet.m4.
7569 * configure: Regenerate.
7570 * Makefile.in: Likewise.
7571 * testsuite/Makefile.in: Likewise.
7573 2017-11-15 Tom de Vries <tom@codesourcery.com>
7575 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7576 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
7577 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7578 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
7579 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7580 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
7582 2017-11-14 Tom de Vries <tom@codesourcery.com>
7584 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7587 2017-11-07 Jakub Jelinek <jakub@redhat.com>
7590 * testsuite/libgomp.c++/pr82835.C: New test.
7592 2017-11-06 Martin Liska <mliska@suse.cz>
7594 * testsuite/libgomp.c++/loop-2.C: Return a value
7595 for functions with non-void return type, or change type to void,
7596 or add -Wno-return-type for test.
7597 * testsuite/libgomp.c++/loop-4.C: Likewise.
7598 * testsuite/libgomp.c++/parallel-1.C: Likewise.
7599 * testsuite/libgomp.c++/shared-1.C: Likewise.
7600 * testsuite/libgomp.c++/single-1.C: Likewise.
7601 * testsuite/libgomp.c++/single-2.C: Likewise.
7603 2017-10-31 Tom de Vries <tom@codesourcery.com>
7605 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7606 "do {} while (false)".
7607 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7608 after HSA_DEBUG call.
7610 2017-10-28 Jakub Jelinek <jakub@redhat.com>
7612 * target.c (struct gomp_coalesce_buf): New type.
7613 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7614 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7615 (gomp_copy_host2dev): Add CBUF argument, if copying into
7616 the cached ranges, memcpy into buffer instead of copying
7618 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7619 Add CBUF argument, pass it through to other calls.
7620 (gomp_map_vars): Aggregate copies from host to device if small enough
7621 and with small enough gaps in between into memcpy into a buffer and
7622 fewer host to device copies from the buffer.
7623 (gomp_update): Adjust gomp_copy_host2dev caller.
7625 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
7627 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7629 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7630 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7631 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7632 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7634 2017-10-16 Tom de Vries <tom@codesourcery.com>
7636 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7637 openacc_nvidia_accel_selected.
7638 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7639 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7640 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7641 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7642 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7643 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7644 openacc_nvidia_accel_selected. Skip for shared memory device.
7645 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7646 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7648 2017-10-09 Martin Jambor <mjambor@suse.cz>
7651 * testsuite/libgomp.hsa.c/pr82416.c: New test.
7653 2017-10-07 Tom de Vries <tom@codesourcery.com>
7655 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7656 Remove acc_device_nvidia references.
7657 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7660 2017-10-05 Tom de Vries <tom@codesourcery.com>
7662 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7663 vector_length(32) clause from acc parallel directive.
7664 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7666 2017-10-04 Tom de Vries <tom@codesourcery.com>
7668 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7669 (main): Reduce sum of arr elements. Assert that hres is exactly
7670 representable in 32-bit floating point.
7671 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7672 (main): Reduce sum of arr elements. Assert that hres and hmres are
7673 exactly representable in 32-bit floating point.
7674 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7676 2017-09-28 Tom de Vries <tom@codesourcery.com>
7678 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7680 * testsuite/libgomp.c++/pr69393.C: Same.
7681 * testsuite/libgomp.c++/taskloop-1.C: Same.
7682 * testsuite/libgomp.c++/taskloop-3.C: Same.
7683 * testsuite/libgomp.c++/taskloop-4.C: Same.
7684 * testsuite/libgomp.c/for-4.c: Same.
7685 * testsuite/libgomp.c/pr66199-3.c: Same.
7686 * testsuite/libgomp.c/pr66199-4.c: Same.
7687 * testsuite/libgomp.c/pr66199-6.c: Same.
7688 * testsuite/libgomp.c/taskloop-1.c: Same.
7689 * testsuite/libgomp.c/taskloop-3.c: Same.
7690 * testsuite/libgomp.c/taskloop-4.c: Same.
7691 * testsuite/libgomp.fortran/aligned1.f03: Same.
7692 * testsuite/libgomp.fortran/condinc1.f: Same.
7693 * testsuite/libgomp.fortran/condinc3.f90: Same.
7694 * testsuite/libgomp.fortran/crayptr1.f90: Same.
7695 * testsuite/libgomp.fortran/crayptr2.f90: Same.
7696 * testsuite/libgomp.fortran/crayptr3.f90: Same.
7697 * testsuite/libgomp.fortran/omp_cond1.f: Same.
7698 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7699 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7700 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7701 * testsuite/libgomp.fortran/recursion1.f90: Same.
7702 * testsuite/libgomp.fortran/target2.f90: Same.
7703 * testsuite/libgomp.fortran/target5.f90: Same.
7704 * testsuite/libgomp.fortran/task3.f90: Same.
7706 2017-09-28 Tom de Vries <tom@codesourcery.com>
7708 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7709 vector_length(32) clause from acc parallel directive.
7710 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7712 2017-09-27 Tom de Vries <tom@codesourcery.com>
7714 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7715 Remove acc_device_nvidia references.
7717 2017-09-16 Tom de Vries <tom@codesourcery.com>
7720 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7722 2017-09-14 Tom de Vries <tom@codesourcery.com>
7724 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7725 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7726 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7727 * testsuite/libgomp.c/c.exp: Include test-cases from
7728 libgomp.c-c++-common.
7729 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
7732 2017-09-14 Jakub Jelinek <jakub@redhat.com>
7735 * testsuite/libgomp.c++/pr81314.C: New test.
7737 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7739 * libgomp.texi (Top): www.openacc.org now uses https.
7740 (Enabling OpenACC): Ditto.
7741 (acc_get_num_devices): Ditto.
7742 (acc_set_device_type): Ditto.
7743 (acc_get_device_type): Ditto.
7744 (acc_set_device_num): Ditto.
7745 (acc_get_device_num): Ditto.
7746 (acc_async_test): Ditto.
7747 (acc_async_test_all): Ditto.
7749 (acc_wait_all): Ditto.
7750 (acc_wait_all_async): Ditto.
7751 (acc_wait_async): Ditto.
7753 (acc_shutdown): Ditto.
7754 (acc_on_device): Ditto.
7755 (acc_malloc): Ditto.
7757 (acc_copyin): Ditto.
7758 (acc_present_or_copyin): Ditto.
7759 (acc_create): Ditto.
7760 (acc_present_or_create): Ditto.
7761 (acc_copyout): Ditto.
7762 (acc_delete): Ditto.
7763 (acc_update_device): Ditto.
7764 (acc_update_self): Ditto.
7765 (acc_map_data): Ditto.
7766 (acc_unmap_data): Ditto.
7767 (acc_deviceptr): Ditto.
7768 (acc_hostptr): Ditto.
7769 (acc_is_present): Ditto.
7770 (acc_memcpy_to_device): Ditto.
7771 (acc_memcpy_from_device): Ditto.
7772 (acc_get_current_cuda_device): Ditto.
7773 (acc_get_current_cuda_context): Ditto.
7774 (acc_get_cuda_stream): Ditto.
7775 (acc_set_cuda_stream): Ditto.
7776 (ACC_DEVICE_TYPE): Ditto.
7777 (ACC_DEVICE_NUM): Ditto.
7778 (OpenACC Library Interoperability): Ditto.
7780 2017-08-09 Jakub Jelinek <jakub@redhat.com>
7783 * testsuite/libgomp.c/pr81687-1.c: New test.
7784 * testsuite/libgomp.c/pr81687-2.c: New test.
7786 2017-08-07 Jakub Jelinek <jakub@redhat.com>
7789 * testsuite/libgomp.c/pr69389.c: New test.
7790 * testsuite/libgomp.c++/pr69389.C: New test.
7792 2017-08-07 Tom de Vries <tom@codesourcery.com>
7795 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7796 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7798 2017-07-27 Jakub Jelinek <jakub@redhat.com>
7801 * testsuite/libgomp.c/pr45784.c: New test.
7802 * testsuite/libgomp.c++/pr45784.C: New test.
7804 2017-07-19 Tom de Vries <tom@codesourcery.com>
7806 * testsuite/libgomp.oacc-c/vec.c: New test.
7808 2017-07-03 Tom de Vries <tom@codesourcery.com>
7810 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7812 2017-06-27 Tom de Vries <tom@codesourcery.com>
7814 * plugin/plugin-nvptx.c (notify_var): New function.
7815 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7817 2017-06-27 Tom de Vries <tom@codesourcery.com>
7819 * env.c (parse_unsigned_long_1): Factor out of ...
7820 (parse_unsigned_long): ... here.
7821 (parse_int_1): Factor out of ...
7822 (parse_int): ... here.
7823 (parse_int_secure): New function.
7824 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7825 * secure_getenv.h: Factor out of ...
7826 * plugin/plugin-hsa.c: ... here.
7827 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7829 2017-06-21 Jakub Jelinek <jakub@redhat.com>
7832 * testsuite/libgomp.c++/pr81130.C: New test.
7834 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7836 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7838 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7839 dg-xfail-run-if default args.
7841 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7843 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7844 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7846 2017-05-30 Jakub Jelinek <jakub@redhat.com>
7849 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7850 (gomp_affinity_init_level): Use it. Always analyze the core and thread
7851 sibling lists, depending on level just pick up what CPUs to put
7852 together into a place vs. whether add multiple ordered places.
7854 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
7856 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7857 * libgomp.map (OACC_2.0.1): Add these.
7858 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7859 for "acc_wait", and "acc_wait_all", respectively.
7860 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7861 for "acc_wait", and "acc_wait_all", respectively.
7862 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7863 * libgomp.texi (acc_wait, acc_wait_all): Update.
7864 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7865 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7866 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7868 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7869 acc_present_or_copyin and acc_present_or_create procedures,
7871 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7872 generally different variants of OpenACC Runtime Library functions.
7873 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7875 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7876 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7878 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7879 of preprocessor definitions.
7880 * libgomp.h (strong_alias): Guard by "#ifdef
7881 HAVE_ATTRIBUTE_ALIAS".
7882 * oacc-mem.c: Provide "acc_pcreate" as alias for
7883 "acc_present_or_create", and "acc_pcopyin" as alias for
7884 "acc_present_or_copyin".
7885 * libgomp.map: New version "OACC_2.0.1".
7886 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7887 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7889 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7892 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7893 when disabling nvptx offloading.
7895 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
7897 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7898 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7899 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7901 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7902 * testsuite/lib/libgomp.exp
7903 (check_effective_target_openacc_nvidia_accel_configured): New
7905 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7906 (check_effective_target_c++): New procs.
7907 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7908 (check_effective_target_c++): Likewise.
7910 2017-05-22 Jakub Jelinek <jakub@redhat.com>
7913 * testsuite/libgomp.c/pr80809-2.c: New test.
7914 * testsuite/libgomp.c/pr80809-3.c: New test.
7917 * testsuite/libgomp.c/pr80809-1.c: New test.
7920 * testsuite/libgomp.c/pr80853.c: New test.
7922 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
7924 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7925 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7926 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7927 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7928 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7930 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7931 Debug output for failure.
7933 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7935 * testsuite/lib/libgomp.exp: Load scanlang.exp.
7937 2017-04-27 Jakub Jelinek <jakub@redhat.com>
7940 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7941 bootstrap compare failures.
7943 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
7945 * testsuite/libgomp.c/target-36.c: New testcase.
7947 2017-04-13 Jakub Jelinek <jakub@redhat.com>
7949 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7952 2017-04-11 Jakub Jelinek <jakub@redhat.com>
7955 * testsuite/libgomp.c/pr80394.c: New test.
7957 2017-04-04 Jakub Jelinek <jakub@redhat.com>
7960 * config/posix/thread-stacksize.h: New file.
7961 * config/darwin/thread-stacksize.h: New file.
7962 * config/nvptx/thread-stacksize.h: New file.
7963 * env.c: Include thread-stacksize.h.
7964 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7965 instead of 0. Call pthread_attr_setstacksize even if
7966 GOMP_DEFAULT_STACKSIZE is non-zero.
7968 2017-03-30 Jakub Jelinek <jakub@redhat.com>
7970 * env.c (initialize_env): Initialize stacksize to 0.
7972 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7975 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7977 2017-03-08 Jakub Jelinek <jakub@redhat.com>
7980 * testsuite/libgomp.c/pr79940.c: New test.
7982 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7984 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7986 Add __float128 options.
7988 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
7990 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7991 hppa*-*-* dg-skip-if directive.
7993 2017-02-09 Jakub Jelinek <jakub@redhat.com>
7995 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7996 dg-skip-if directive into a comment.
7998 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
7999 Chung-Lin Tang <cltang@codesourcery.com>
8001 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
8002 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
8003 add additional case.
8004 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
8005 "openacc_nvidia_accel_selected".
8006 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
8007 Add num_workers(8) clause.
8009 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
8011 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
8013 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
8014 include complex.h on hppa*-*-hpux*.
8015 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8017 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
8019 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
8021 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
8022 GOMP_OFFLOAD_openacc_exec. Adjust all users.
8023 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
8024 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
8025 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
8026 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
8027 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
8028 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
8029 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
8030 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
8032 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
8034 * libgomp-plugin.h: #include <stdbool.h>.
8035 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
8036 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
8037 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
8038 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
8039 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
8040 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
8041 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
8042 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
8043 (GOMP_OFFLOAD_openacc_register_async_cleanup)
8044 (GOMP_OFFLOAD_openacc_async_test)
8045 (GOMP_OFFLOAD_openacc_async_test_all)
8046 (GOMP_OFFLOAD_openacc_async_wait)
8047 (GOMP_OFFLOAD_openacc_async_wait_async)
8048 (GOMP_OFFLOAD_openacc_async_wait_all)
8049 (GOMP_OFFLOAD_openacc_async_wait_all_async)
8050 (GOMP_OFFLOAD_openacc_async_set_async)
8051 (GOMP_OFFLOAD_openacc_create_thread_data)
8052 (GOMP_OFFLOAD_openacc_destroy_thread_data)
8053 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
8054 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
8055 (GOMP_OFFLOAD_openacc_get_cuda_stream)
8056 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
8057 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
8059 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
8060 (GOMP_OFFLOAD_unload_image): Fix argument types.
8062 2017-01-26 Jakub Jelinek <jakub@redhat.com>
8064 * testsuite/lib/libgomp.exp
8065 (check_effective_target_hsa_offloading_selected_nocache): Fix up
8066 check_compile invocation. Fix up removal of executable. Drop
8067 bogus "2>&1" argument.
8069 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
8072 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
8073 Martin Jambor <mjambor@suse.cz>
8075 * plugin/hsa.h: Moved to top level include.
8076 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
8078 2017-01-21 Jakub Jelinek <jakub@redhat.com>
8081 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
8082 of cat to get version from BASE-VER file.
8083 * testsuite/Makefile.in: Regenerated.
8085 2017-01-19 Jakub Jelinek <jakub@redhat.com>
8087 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
8090 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8092 * plugin/hsa.h: Add GCC runtime library exception.
8093 * plugin/hsa_ext_finalize.h: Likewise.
8095 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
8096 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
8097 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
8098 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
8099 plugin/include/cuda as include dir and -ldl instead of -lcuda as
8100 library to link ptx plugin against.
8101 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
8102 (CUDA_CALLS): Define.
8103 (cuda_lib, cuda_lib_inited): New variables.
8104 (init_cuda_lib): New function.
8105 (CUDA_CALL_PREFIX): Define.
8106 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
8107 (CUDA_CALL): Use FN instead of (FN).
8108 (CUDA_CALL_NOCHECK): Define.
8109 (cuda_error, fini_streams_for_device, select_stream_for_async,
8110 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
8111 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
8112 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
8113 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
8115 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
8117 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
8118 Use CUDA_CALL_NOCHECK.
8119 * plugin/cuda/cuda.h: New file.
8120 * config.h.in: Regenerated.
8121 * configure: Regenerated.
8124 * configure.ac: Add GCC_BASE_VER.
8125 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
8126 get version from BASE-VER file.
8127 * testsuite/Makefile.in: Regenerated.
8128 * configure: Regenerated.
8129 * Makefile.in: Regenerated.
8131 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8134 * Makefile.am: Make fincludedir multilib-aware.
8135 * Makefile.in: Regenerate.
8137 2017-01-01 Jakub Jelinek <jakub@redhat.com>
8139 Update copyright years.
8141 * libgomp.texi: Bump @copying's copyright year.
8143 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
8145 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
8146 pthread_spinlock_t instead of gomp_mutex_t lock.
8147 (gomp_get_thread_pool): Likewise.
8148 (gomp_release_thread_pool): Likewise.
8149 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
8152 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
8154 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
8155 thread pool in case nthreads == 1.
8157 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8159 * config/nvptx/env.c: Delete.
8160 * icv.c: Move definitions of ICV variables back ...
8161 * env.c: ...here. Do not compile environment-related functionality if
8162 LIBGOMP_OFFLOADED_ONLY is set.
8164 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8166 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8167 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8168 * configure: Regenerate.
8169 * config.h.in: Likewise.
8171 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
8173 * Makefile.in: Regenerate with automake-1.11.6.
8174 * aclocal.m4: Likewise.
8175 * configure: Likewise.
8176 * testsuite/Makefile.in: Likewise.
8178 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
8180 * config/nvptx/critical.c: Delete to use generic implementation.
8182 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8184 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8185 ../../affinity.c as fallback.
8186 * config/nvptx/affinity.c: Delete to use fallback implementation.
8188 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
8189 Jakub Jelinek <jakub@redhat.com>
8190 Dmitry Melnik <dm@ispras.ru>
8192 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8193 * Makefile.in. Regenerate.
8194 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8195 (LIBGOMP_USE_PTHREADS): ...here; new define.
8196 * configure: Regenerate.
8197 * config.h.in: Likewise.
8198 * config/posix/affinity.c: Move to...
8199 * affinity.c: ...here (new file). Guard use of Pthreads-specific
8200 interface by LIBGOMP_USE_PTHREADS.
8201 * critical.c: Split out GOMP_atomic_{start,end} into...
8202 * atomic.c: ...here (new file).
8203 * env.c: Split out ICV definitions into...
8204 * icv.c: ...here (new file) and...
8205 * icv-device.c: ...here. New file.
8206 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8207 (gomp_destroy_lock_30): Ditto.
8208 (gomp_set_lock_30): Ditto.
8209 (gomp_unset_lock_30): Ditto.
8210 (gomp_test_lock_30): Ditto.
8211 (gomp_init_nest_lock_30): Ditto.
8212 (gomp_destroy_nest_lock_30): Ditto.
8213 (gomp_set_nest_lock_30): Ditto.
8214 (gomp_unset_nest_lock_30): Ditto.
8215 (gomp_test_nest_lock_30): Ditto.
8217 * config/nvptx/lock.c: New.
8218 * config/nvptx/bar.c: New.
8219 * config/nvptx/bar.h: New.
8220 * config/nvptx/doacross.h: New.
8221 * config/nvptx/error.c: New.
8222 * config/nvptx/icv-device.c: New.
8223 * config/nvptx/mutex.h: New.
8224 * config/nvptx/pool.h: New.
8225 * config/nvptx/proc.c: New.
8226 * config/nvptx/ptrlock.h: New.
8227 * config/nvptx/sem.h: New.
8228 * config/nvptx/simple-bar.h: New.
8229 * config/nvptx/target.c: New.
8230 * config/nvptx/task.c: New.
8231 * config/nvptx/team.c: New.
8232 * config/nvptx/time.c: New.
8233 * config/posix/simple-bar.h: New.
8234 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
8235 (gomp_num_teams_var): Declare.
8236 (struct gomp_thread_pool): Change threads_dock member to
8237 gomp_simple_barrier_t.
8238 [__nvptx__] (gomp_thread): New implementation.
8239 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8240 (gomp_thread_destructor): Ditto.
8241 (gomp_init_thread_affinity): Ditto.
8242 * team.c: Guard uses of Pthreads-specific interfaces by
8243 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
8244 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8245 * config/nvptx/alloc.c: Delete.
8246 * config/nvptx/barrier.c: Ditto.
8247 * config/nvptx/fortran.c: Ditto.
8248 * config/nvptx/iter.c: Ditto.
8249 * config/nvptx/iter_ull.c: Ditto.
8250 * config/nvptx/loop.c: Ditto.
8251 * config/nvptx/loop_ull.c: Ditto.
8252 * config/nvptx/ordered.c: Ditto.
8253 * config/nvptx/parallel.c: Ditto.
8254 * config/nvptx/priority_queue.c: Ditto.
8255 * config/nvptx/sections.c: Ditto.
8256 * config/nvptx/single.c: Ditto.
8257 * config/nvptx/splay-tree.c: Ditto.
8258 * config/nvptx/work.c: Ditto.
8259 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8260 -foffload=-lgfortran in addition to -lgfortran.
8261 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8262 * plugin/plugin-nvptx.c: Include <limits.h>.
8263 (struct targ_fn_descriptor): Add new fields.
8264 (struct ptx_device): Ditto. Set them...
8265 (nvptx_open_device): ...here.
8266 (nvptx_adjust_launch_bounds): New.
8267 (nvptx_host2dev): Allow NULL 'nvthd'.
8268 (nvptx_dev2host): Ditto.
8269 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8270 (link_ptx): Adjust log sizes.
8271 (nvptx_host2dev): Allow NULL 'nvthd'.
8272 (nvptx_dev2host): Ditto.
8273 (nvptx_set_clocktick): New. Use it...
8274 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
8276 (GOMP_OFFLOAD_dev2dev): New.
8277 (nvptx_adjust_launch_bounds): New.
8278 (nvptx_stacks_size): New.
8279 (nvptx_stacks_alloc): New.
8280 (nvptx_stacks_free): New.
8281 (GOMP_OFFLOAD_run): New.
8282 (GOMP_OFFLOAD_async_run): New (stub).
8284 2016-11-23 Martin Jambor <mjambor@suse.cz>
8286 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8287 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8288 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8290 2016-11-23 Martin Liska <mliska@suse.cz>
8291 Martin Jambor <mjambor@suse.cz>
8293 * plugin/hsa.h: New file.
8294 * plugin/hsa_ext_finalize.h: New file.
8295 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
8296 header file unistd.h, and functions secure_getenv, __secure_getenv,
8297 getuid, geteuid, getgid and getegid.
8298 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8300 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8301 Handle various cases of secure_getenv presence, add an implementation
8302 when we can test effective UID and GID.
8303 (struct hsa_runtime_fn_info): New structure.
8304 (hsa_runtime_fn_info hsa_fns): New variable.
8305 (hsa_runtime_lib): Likewise.
8306 (support_cpu_devices): Likewise.
8307 (init_enviroment_variables): Load newly introduced ENV
8309 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8310 (hsa_fatal): Likewise.
8311 (DLSYM_FN): New macro.
8312 (init_hsa_runtime_functions): New function.
8313 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8314 structure. Depending on environment, also allow CPU devices.
8315 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8316 (get_kernarg_memory_region): Likewise.
8317 (GOMP_OFFLOAD_init_device): Likewise.
8318 (destroy_hsa_program): Likewise.
8319 (init_basic_kernel_info): New function.
8320 (GOMP_OFFLOAD_load_image): Use it.
8321 (create_and_finalize_hsa_program): Call hsa run-time functions via
8323 (create_single_kernel_dispatch): Likewise.
8324 (release_kernel_dispatch): Likewise.
8325 (init_single_kernel): Likewise.
8326 (parse_target_attributes): Allow up multiple HSA grid dimensions.
8327 (get_group_size): New function.
8328 (run_kernel): Likewise.
8329 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8330 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8332 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8333 * testsuite/libgomp-test-support.exp.in: Likewise.
8334 * Makefile.in: Regenerated.
8335 * aclocal.m4: Likewise.
8336 * config.h.in: Likewise.
8337 * configure: Likewise.
8338 * testsuite/Makefile.in: Likewise.
8340 2016-11-15 Martin Jambor <mjambor@suse.cz>
8341 Alexander Monakov <amonakov@ispras.ru>
8343 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8344 mapping clauses to target constructs.
8345 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8347 2016-11-15 Matthias Klose <doko@ubuntu.com>
8349 * configure: Regenerate.
8351 2016-11-10 Jakub Jelinek <jakub@redhat.com>
8353 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8354 * omp_lib.h.in (openmp_version): Likewise.
8355 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8357 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8359 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8360 (fib_wrapper): Add map(from: x) clause.
8361 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8363 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8364 (accum): Add map(tmp) clause.
8365 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8366 (accum): Add map(tofrom: tmp) clause.
8367 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8368 (gramSchmidt): Likewise.
8369 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8370 map(tofrom: sum) clause.
8371 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8372 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
8373 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8374 only allowed on the loop iterator.
8375 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8376 * testsuite/libgomp.fortran/taskloop2.f90: New test.
8377 * testsuite/libgomp.fortran/taskloop4.f90: New test.
8378 * testsuite/libgomp.fortran/doacross1.f90: New test.
8379 * testsuite/libgomp.fortran/doacross3.f90: New test.
8380 * testsuite/libgomp.fortran/taskloop1.f90: New test.
8381 * testsuite/libgomp.fortran/taskloop3.f90: New test.
8382 * testsuite/libgomp.fortran/doacross2.f90: New test.
8383 * testsuite/libgomp.c/doacross-1.c (main): Add missing
8384 #pragma omp atomic read.
8385 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8386 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8388 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
8389 Nathan Sidwell <nathan@acm.org>
8391 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8392 to determine default geometry.
8393 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8396 2016-11-01 Jakub Jelinek <jakub@redhat.com>
8398 * hashtab.h: Use standard GPLv3 with runtime exception
8401 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
8403 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8404 size when allocating new thread.
8406 2016-09-14 Marek Polacek <polacek@redhat.com>
8408 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8410 2016-08-19 Jakub Jelinek <jakub@redhat.com>
8413 * testsuite/libgomp.fortran/pr71014.f90: New test.
8415 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8418 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8419 firstprivate clauses.
8420 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8422 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8423 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8424 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8425 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8426 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8427 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8428 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8429 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8430 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8431 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8432 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8433 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8435 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
8438 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8440 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8443 * testsuite/libgomp.c++/pr58706.C: New test.
8445 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
8447 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8448 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8449 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8451 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8452 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8454 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8456 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8457 test, and don't hardcode -O0.
8459 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8461 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8463 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8465 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8468 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
8471 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8472 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8474 2016-07-01 Jakub Jelinek <jakub@redhat.com>
8477 * testsuite/libgomp.fortran/associate3.f90: New test.
8479 2016-06-17 Jakub Jelinek <jakub@redhat.com>
8481 * testsuite/libgomp.c++/target-21.C: New test.
8483 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8485 * testsuite/libgomp.c++/target-20.C: New test.
8487 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8488 Cesar Philippidis <cesar@codesourcery.com>
8491 * libgomp.oacc-c/nested-function-1.c: New file.
8492 * libgomp.oacc-c/nested-function-2.c: Likewise.
8493 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8494 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8495 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8497 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
8500 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8501 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8502 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8504 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
8506 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8507 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8509 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
8512 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8514 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8516 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8517 instead of invalid schedule(static, 0).
8518 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8520 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8522 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8523 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8524 parameter, use to set async stream around call to gomp_unmap_vars,
8525 call gomp_unmap_vars() with 'do_copyfrom' set to true.
8526 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8527 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8528 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8529 (event_add): Add int parameter, initialize 'val' field when
8530 adding new ptx_event struct.
8531 (nvptx_evec): Adjust event_add() call arguments.
8532 (nvptx_host2dev): Likewise.
8533 (nvptx_dev2host): Likewise.
8534 (nvptx_wait_async): Likewise.
8535 (nvptx_wait_all_async): Likewise.
8536 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8537 pass to event_add() call.
8538 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8540 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8541 call openacc.register_async_cleanup_func() hook.
8542 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8543 * target.c (gomp_copy_from_async): Delete function.
8544 (gomp_map_vars): Remove async_refcount.
8545 (gomp_unmap_vars): Likewise.
8546 (gomp_load_image_to_device): Likewise.
8547 (omp_target_associate_ptr): Likewise.
8548 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8549 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8550 (gomp_copy_from_async): Remove.
8552 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
8554 * target.c (gomp_device_copy): New function.
8555 (gomp_copy_host2dev): Likewise.
8556 (gomp_copy_dev2host): Likewise.
8557 (gomp_free_device_memory): Likewise.
8558 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8559 (gomp_map_pointer): Likewise.
8560 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8561 NULL value from alloc_func plugin hook.
8562 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8563 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8564 (gomp_unmap_vars): Likewise.
8565 (gomp_update): Adjust to call gomp_copy_dev2host and
8566 gomp_copy_host2dev functions.
8567 (gomp_unload_image_from_device): Handle false value from
8568 unload_image_func plugin hook.
8569 (gomp_init_device): Handle false value from init_device_func
8571 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8572 (omp_target_free): Adjust to call gomp_free_device_memory.
8573 (omp_target_memcpy): Handle return values from host2dev_func,
8574 dev2host_func, and dev2dev_func plugin hooks.
8575 (omp_target_memcpy_rect_worker): Likewise.
8576 (gomp_target_fini): Handle false value from fini_device_func
8578 * libgomp.h (struct gomp_device_descr): Adjust return type of
8579 init_device_func, fini_device_func, unload_image_func, free_func,
8580 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8581 * oacc-init.c (acc_shutdown_1): Handle false value from
8582 fini_device_func plugin hook.
8583 * oacc-host.c (host_init_device): Change return type to bool.
8584 (host_fini_device): Likewise.
8585 (host_unload_image): Likewise.
8586 (host_free): Likewise.
8587 (host_dev2host): Likewise.
8588 (host_host2dev): Likewise.
8589 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8590 (acc_memcpy_to_device): Likewise.
8591 (acc_memcpy_from_device): Likewise.
8592 (delete_copyout): Add libfnname parameter, handle free_func
8593 hook fatal error case.
8594 (acc_delete): Adjust delete_copyout call.
8595 (acc_copyout): Likewise.
8596 (update_dev_host): Move gomp_mutex_unlock to after
8597 host2dev/dev2host hook calls.
8599 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8600 to 'hsa_error_msg', for clarity.
8601 (hsa_fatal): Likewise.
8602 (hsa_error): New function.
8603 (init_hsa_context): Change return type to bool, adjust to return
8605 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8607 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8608 return false on error.
8609 (get_agent_info): Adjust to return NULL on error.
8610 (destroy_hsa_program): Change return type to bool, adjust to
8611 return false on error.
8612 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8613 (destroy_module): Change return type to bool, adjust to
8614 return false on error.
8615 (GOMP_OFFLOAD_unload_image): Likewise.
8616 (GOMP_OFFLOAD_fini_device): Likewise.
8617 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8618 (GOMP_OFFLOAD_free): Change to return false when called.
8619 (GOMP_OFFLOAD_dev2host): Likewise.
8620 (GOMP_OFFLOAD_host2dev): Likewise.
8621 (GOMP_OFFLOAD_dev2dev): Likewise.
8623 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8624 (CUDA_CALL): Likewise.
8625 (CUDA_CALL_ASSERT): Likewise.
8626 (map_init): Change return type to bool, use CUDA_CALL* macros.
8627 (map_fini): Likewise.
8628 (init_streams_for_device): Change return type to bool, adjust
8630 (fini_streams_for_device): Change return type to bool, adjust
8632 (select_stream_for_async): Release stream_lock before calls to
8633 GOMP_PLUGIN_fatal, adjust call to map_init.
8634 (nvptx_init): Use CUDA_CALL* macros.
8635 (nvptx_attach_host_thread_to_device): Change return type to bool,
8636 use CUDA_CALL* macros.
8637 (nvptx_open_device): Use CUDA_CALL* macros.
8638 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8640 (nvptx_get_num_devices): Use CUDA_CALL* macros.
8641 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8642 (nvptx_exec): Use CUDA_CALL* macros.
8643 (nvptx_alloc): Use CUDA_CALL* macros.
8644 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8645 (nvptx_host2dev): Likewise.
8646 (nvptx_dev2host): Likewise.
8647 (nvptx_wait): Use CUDA_CALL* macros.
8648 (nvptx_wait_async): Likewise.
8649 (nvptx_wait_all): Likewise.
8650 (nvptx_wait_all_async): Likewise.
8651 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8652 use CUDA_CALL* macros, adjust call to map_fini.
8653 (GOMP_OFFLOAD_init_device): Change return type to bool,
8654 adjust code accordingly.
8655 (GOMP_OFFLOAD_fini_device): Likewise.
8656 (GOMP_OFFLOAD_load_image): Adjust calls to
8657 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8658 use CUDA_CALL* macros.
8659 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8661 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8662 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8663 handle error return.
8664 (GOMP_OFFLOAD_dev2host): Likewise.
8665 (GOMP_OFFLOAD_host2dev): Likewise.
8666 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8667 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8669 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8671 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8672 (acc_free): Likewise.
8673 (acc_memcpy_to_device): Likewise.
8674 (acc_memcpy_from_device): Likewise.
8675 (acc_deviceptr): Likewise.
8676 (acc_hostptr): Likewise.
8677 (acc_is_present): Likewise.
8678 (acc_map_data): Likewise.
8679 (acc_unmap_data): Likewise.
8680 (present_create_copy): Likewise.
8681 (delete_copyout): Likewise.
8682 (update_dev_host): Likewise.
8683 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8684 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8685 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8686 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8687 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8688 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8689 it only runs on nvptx targets.
8690 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8691 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8692 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8693 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8694 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8695 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8696 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8697 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8698 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8699 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8700 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8701 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8702 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8703 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8704 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8705 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8706 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8707 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8708 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8709 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8710 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8711 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8712 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8714 2016-05-23 Martin Jambor <mjambor@suse.cz>
8716 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8718 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
8720 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8721 to gomp_init_targets_once.
8722 (acc_set_device_type): Remove !cached_base_dev condition on call to
8723 gomp_init_targets_once, move call to before acc_device_lock acquire,
8725 (acc_get_device_num): Remove !cached_base_dev condition on call to
8726 gomp_init_targets_once.
8727 (acc_set_device_num): Likewise.
8729 2016-05-16 Martin Jambor <mjambor@suse.cz>
8731 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8733 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8735 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8736 expected partitioning.
8738 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
8741 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8742 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8743 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8745 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
8747 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8750 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8753 * testsuite/libgomp.c/pr70680-1.c: New test.
8754 * testsuite/libgomp.c/pr70680-2.c: New test.
8756 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8758 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8759 pass parameter variables to subroutines.
8761 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8764 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8766 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
8769 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8770 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8772 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
8774 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8775 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8776 GOACC_declare prototype.
8778 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8779 Merge this file, and...
8780 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8781 ... this file, and...
8782 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8783 ... this file, and...
8784 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8785 ... this file, and...
8786 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8787 ... this file, and...
8788 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8789 ... this file, and...
8790 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8791 ... this file, and...
8792 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8793 ... this file, and...
8794 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8795 ... this file, and...
8796 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8797 ... this file, and...
8798 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8799 ... this file, and...
8800 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8801 ... this file, and...
8802 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8803 ... this file into...
8804 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8807 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8808 Make failure observable.
8810 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8812 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8814 * target.c (gomp_target_fallback_firstprivate,
8815 gomp_target_unshare_firstprivate): Removed.
8816 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8817 before waiting for dependencies.
8818 (gomp_target_task_fn): Don't copy firstprivate vars here.
8819 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8820 firstprivate_copies here.
8821 (gomp_create_target_task): Don't initialize firstprivate_copies field.
8822 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8823 explicit/implicit firstprivate.
8825 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8829 PR tree-optimization/70373
8833 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8835 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8837 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8839 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8841 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8843 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8845 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8847 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8849 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8851 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8852 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8853 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8854 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8856 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8858 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8860 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8862 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8864 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8865 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8866 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8867 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8868 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8869 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8871 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8872 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8873 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8874 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8875 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8876 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8877 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8878 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8879 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8880 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8881 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8882 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8883 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8884 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8885 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8887 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
8888 James Norris <jnorris@codesourcery.com>
8889 Nathan Sidwell <nathan@codesourcery.com>
8890 Julian Brown <julian@codesourcery.com>
8891 Cesar Philippidis <cesar@codesourcery.com>
8892 Chung-Lin Tang <cltang@codesourcery.com>
8893 Tom de Vries <tom@codesourcery.com>
8895 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8896 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8897 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8898 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8899 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8900 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8901 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8902 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8903 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8905 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8907 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8909 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8910 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8911 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8912 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8914 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8916 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8917 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8918 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8919 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8920 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8921 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8922 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8923 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8924 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8925 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8927 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8928 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8929 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8931 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8933 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8935 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8937 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8939 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8940 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8941 ... this new file. Update.
8942 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8943 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8944 ... this new file. Update.
8945 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8946 file. Incorporate...
8947 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8949 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8951 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8953 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8955 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
8957 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8958 set-torture-options.
8960 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
8962 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8964 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8965 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8966 -fno-builtin-acc_on_device instead of -O0.
8967 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8969 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8970 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8972 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8973 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8974 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8975 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8976 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8977 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8978 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8979 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8980 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8981 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8982 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8983 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8984 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8985 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8986 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8987 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8988 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8989 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8991 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8993 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8996 2016-03-24 Martin Liska <mliska@suse.cz>
8998 * plugin/plugin-hsa.c (packet_store_release): New function
8999 that is taken from the HSA runtime manual.
9000 (GOMP_OFFLOAD_run): Use the function.
9002 2016-03-23 Jakub Jelinek <jakub@redhat.com>
9005 * testsuite/libgomp.c++/pr70376.C: New test.
9007 2016-03-23 Tom de Vries <tom@codesourcery.com>
9009 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
9010 initialization of lresult and lvresult.
9011 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
9013 2016-03-23 James Norris <jnorris@codesourcery.com>
9014 Daichi Fukuoka <dc-fukuoka@sgi.com>
9017 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
9018 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
9019 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9020 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
9022 2016-03-23 Martin Liska <mliska@suse.cz>
9025 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
9026 argument just in case a dispatched kernel uses that argument.
9028 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
9030 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
9031 -ftree-parallelize-loops/-fopenacc changes.
9032 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
9034 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9036 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
9038 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
9040 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9041 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9043 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
9045 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
9046 always_ld_library_path the path to libgcc_s.
9048 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
9051 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
9053 2016-03-09 Tom de Vries <tom@codesourcery.com>
9055 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
9056 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
9057 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9059 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
9060 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
9061 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
9062 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
9064 2016-03-07 Martin Jambor <mjambor@suse.cz>
9066 * testsuite/lib/libgomp.exp
9067 (check_effective_target_hsa_offloading_selected_nocache): New.
9068 (check_effective_target_hsa_offloading_selected): Likewise.
9069 * testsuite/libgomp.hsa.c/c.exp: Likewise.
9070 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
9071 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
9072 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
9073 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
9074 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
9075 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
9076 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
9077 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
9078 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
9079 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
9080 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
9081 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
9082 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
9083 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
9084 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
9085 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
9087 2016-03-07 Martin Jambor <mjambor@suse.cz>
9089 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
9090 non-shared memory accelerators.
9091 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
9092 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
9093 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
9094 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
9095 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9096 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9097 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9098 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9099 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9101 2016-03-07 Martin Jambor <mjambor@suse.cz>
9103 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
9106 2016-03-02 Jakub Jelinek <jakub@redhat.com>
9109 * testsuite/libgomp.c++/pr69555-1.C: New test.
9110 * testsuite/libgomp.c++/pr69555-2.C: New test.
9112 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
9113 Martin Jambor <mjambor@suse.cz>
9115 * testsuite/lib/libgomp.exp
9116 (check_effective_target_offload_device_shared_as): New proc.
9117 * testsuite/libgomp.c++/declare_target-1.C: New test.
9119 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
9122 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
9124 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9126 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9127 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
9129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
9130 -ftree-parallelize-loops/-fopenacc changes.
9131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
9132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
9134 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
9136 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
9138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
9140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
9142 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
9144 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
9146 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
9147 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
9149 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
9150 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
9152 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
9153 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
9156 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9158 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
9160 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9163 * testsuite/libgomp.c/pr69805.c: New test.
9165 2016-02-16 Tom de Vries <tom@codesourcery.com>
9168 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9170 2016-02-09 Tom de Vries <tom@codesourcery.com>
9172 PR tree-optimization/69599
9173 * testsuite/libgomp.c/omp-nested-3.c: New test.
9174 * testsuite/libgomp.c/pr46032-2.c: New test.
9175 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9176 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9178 2016-02-09 Tom de Vries <tom@codesourcery.com>
9181 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9183 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
9185 * testsuite/libgomp.c/target-31.c: Fix testcase.
9187 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
9189 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9191 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9192 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9193 reduction and map clauses.
9194 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9196 2016-02-02 James Norris <jnorris@codesourcery.com>
9198 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9200 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
9202 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9203 * oacc-parallel.c (GOACC_host_data): Remove function definition.
9205 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9208 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9210 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9211 (hsa_kmt_lib): Set variables.
9212 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9213 always_ld_library_path.
9214 * Makefile.in: Regenerate.
9215 * configure: Likewise.
9216 * testsuite/Makefile.in: Likewise.
9218 * plugin/configfrag.ac (offload_additional_options)
9219 (offload_additional_lib_paths): Don't amend for hsa offloading.
9220 * configure: Regenerate.
9222 * plugin/configfrag.ac: Don't configure for offloading target if
9223 we don't build the corresponding plugin.
9224 * configure: Regenerate.
9226 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
9228 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9229 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9231 2016-01-26 Tom de Vries <tom@codesourcery.com>
9233 PR tree-optimization/69110
9234 * testsuite/libgomp.c/pr69110.c: New test.
9236 2016-01-25 Richard Biener <rguenther@suse.de>
9239 * testsuite/libgomp.c++/pr69393.C: New testcase.
9241 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
9243 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9244 function wasn't mapped to the device with non-shared memory.
9246 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
9248 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9250 2016-01-19 Martin Jambor <mjambor@suse.cz>
9251 Martin Liska <mliska@suse.cz>
9253 * plugin/Makefrag.am: Add HSA plugin requirements.
9254 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9255 (HSA_RUNTIME_LIB): Likewise.
9256 (HSA_RUNTIME_CPPFLAGS): Likewise.
9257 (HSA_RUNTIME_INCLUDE): New substitution.
9258 (HSA_RUNTIME_LIB): Likewise.
9259 (HSA_RUNTIME_LDFLAGS): Likewise.
9260 (hsa-runtime): New configure option.
9261 (hsa-runtime-include): Likewise.
9262 (hsa-runtime-lib): Likewise.
9263 (PLUGIN_HSA): New substitution variable.
9264 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9266 (PLUGIN_HSA_CPPFLAGS): Likewise.
9267 (PLUGIN_HSA_LDFLAGS): Likewise.
9268 (PLUGIN_HSA_LIBS): Likewise.
9269 Check that we have access to HSA run-time.
9270 * libgomp-plugin.h (offload_target_type): New element
9271 OFFLOAD_TARGET_TYPE_HSA.
9272 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9274 (bool gomp_create_target_task): Updated.
9275 (gomp_device_descr): Extra parameter of run_func and async_run_func,
9276 new field can_run_func.
9277 * libgomp_g.h (GOMP_target_ext): Update prototype.
9278 * oacc-host.c (host_run): Added a new parameter args.
9279 * target.c (calculate_firstprivate_requirements): New function.
9280 (copy_firstprivate_data): Likewise.
9281 (gomp_target_fallback_firstprivate): Use them.
9282 (gomp_target_unshare_firstprivate): New function.
9283 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9285 (GOMP_target): Do host fallback for all shared memory devices. Do not
9286 pass any args to plugins.
9287 (GOMP_target_ext): Introduce device-specific argument parameter args.
9288 Allow host fallback if device shares memory. Do not remap data if
9289 device has shared memory.
9290 (gomp_target_task_fn): Likewise. Also treat shared memory devices
9291 like host fallback for mappings.
9292 (GOMP_target_data): Treat shared memory devices like host fallback.
9293 (GOMP_target_data_ext): Likewise.
9294 (GOMP_target_update): Likewise.
9295 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
9296 gomp_create_target_task.
9297 (GOMP_target_enter_exit_data): Likewise.
9298 (omp_target_alloc): Treat shared memory devices like host fallback.
9299 (omp_target_free): Likewise.
9300 (omp_target_is_present): Likewise.
9301 (omp_target_memcpy): Likewise.
9302 (omp_target_memcpy_rect): Likewise.
9303 (omp_target_associate_ptr): Likewise.
9304 (gomp_load_plugin_for_device): Also load can_run.
9305 * task.c (GOMP_PLUGIN_target_task_completion): Free
9306 firstprivate_copies.
9307 (gomp_create_target_task): Accept new argument args and store it to
9309 * plugin/plugin-hsa.c: New file.
9311 2016-01-18 Tom de Vries <tom@codesourcery.com>
9313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9315 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9316 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9317 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9318 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9319 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9321 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9323 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9325 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9327 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9328 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9329 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9330 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9331 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9332 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9333 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9334 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9336 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9338 2016-01-15 Jakub Jelinek <jakub@redhat.com>
9340 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9342 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
9344 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9346 2016-01-12 James Norris <jnorris@codesourcery.com>
9348 * libgomp.texi: Updates for OpenACC.
9350 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
9352 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9354 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9357 * testsuite/libgomp.fortran/pr66680.f90: New test.
9359 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9362 * testsuite/libgomp.c/pr68960.c: New test.
9364 2016-01-06 Nathan Sidwell <nathan@acm.org>
9366 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9367 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9369 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9371 Update copyright years.
9373 * libgomp.texi: Bump @copying's copyright year.
9375 2015-12-31 Nathan Sidwell <nathan@acm.org>
9377 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9378 dg-additional-options syntax.
9379 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9380 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9381 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9382 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9383 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9384 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9385 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9386 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9387 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9388 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9389 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9390 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9391 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9392 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9393 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9394 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9395 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9396 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9398 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
9400 * libgomp.h (REFCOUNT_LINK): Define.
9401 (struct splay_tree_key_s): Add link_key.
9402 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9403 Replace target address of the pointer with target address of newly
9404 mapped object in the splay tree. Set link pointer on target to the
9405 device address of the mapped object.
9406 (gomp_unmap_vars): Restore target address of the pointer in the splay
9407 tree for REFCOUNT_LINK objects after unmapping.
9408 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9409 declare target link" objects.
9410 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
9411 "omp declare target link" objects, which were mapped for the image.
9412 (gomp_exit_data): Restore target address of the pointer in the splay
9413 tree for REFCOUNT_LINK objects after unmapping.
9414 * testsuite/libgomp.c/target-link-1.c: New file.
9416 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
9418 * libgomp.h (gomp_device_state): New enum.
9419 (struct gomp_device_descr): Replace is_initialized with state.
9420 (gomp_fini_device): Remove declaration.
9421 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9422 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9423 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
9424 (acc_set_device_type): Use state instead of is_initialized.
9425 (acc_set_device_num): Likewise.
9426 * target.c (resolve_device): Use state instead of is_initialized.
9427 Do not initialize finalized device.
9428 (gomp_map_vars): Do nothing if device is finalized.
9429 (gomp_unmap_vars): Likewise.
9430 (gomp_update): Likewise.
9431 (GOMP_offload_register_ver): Use state instead of is_initialized.
9432 (GOMP_offload_unregister_ver): Likewise.
9433 (gomp_init_device): Likewise.
9434 (gomp_unload_device): Likewise.
9435 (gomp_fini_device): Remove.
9436 (gomp_get_target_fn_addr): Do nothing if device is finalized.
9437 (GOMP_target): Go to host fallback if device is finalized.
9438 (GOMP_target_ext): Likewise.
9439 (gomp_exit_data): Do nothing if device is finalized.
9440 (gomp_target_task_fn): Go to host fallback if device is finalized.
9441 (gomp_target_fini): New static function.
9442 (gomp_target_init): Use state instead of is_initialized.
9443 Call gomp_target_fini at exit.
9445 2015-12-09 Tom de Vries <tom@codesourcery.com>
9447 PR tree-optimization/68716
9448 * testsuite/libgomp.c/omp-nested-2.c: New test.
9450 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
9452 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9453 target openacc_nvidia_accel_selected.
9454 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9455 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9456 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9457 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9459 2015-12-01 Julian Brown <julian@codesourcery.com>
9460 James Norris <James_Norris@mentor.com>
9462 * oacc-parallel.c (GOACC_host_data): New function.
9463 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9464 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9465 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9466 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9467 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9468 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9469 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9471 2015-11-30 James Norris <jnorris@codesourcery.com>
9472 Cesar Philippidis <cesar@codesourcery.com>
9475 * libgomp.oacc-fortran/routine-5.f90: New test.
9476 * libgomp.oacc-fortran/routine-7.f90: New test.
9477 * libgomp.oacc-fortran/routine-9.f90: New test.
9479 2015-11-30 Tom de Vries <tom@codesourcery.com>
9481 PR tree-optimization/46032
9482 * testsuite/libgomp.c/pr46032.c: New test.
9484 2015-11-27 Jakub Jelinek <jakub@redhat.com>
9487 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9488 (gomp_create_target_task): Call it before freeing
9489 GOMP_TARGET_TASK_DATA tasks.
9492 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9493 in between case label and OpenMP standalone directives.
9494 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9496 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
9498 * configure: Regenerate.
9500 2015-11-26 Jakub Jelinek <jakub@redhat.com>
9502 * testsuite/libgomp.c/target-35.c: New test.
9504 2015-11-22 James Norris <jnorris@codesourcery.com>
9505 Cesar Philippidis <cesar@codesourcery.com>
9507 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9508 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9509 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9510 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9511 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9513 2015-11-20 Jakub Jelinek <jakub@redhat.com>
9516 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9517 * testsuite/libgomp.c/reduction-12.c: Likewise.
9518 * testsuite/libgomp.c++/reduction-11.C: Likewise.
9519 * testsuite/libgomp.c++/reduction-12.C: Likewise.
9521 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
9523 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9524 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9525 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9526 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9527 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9529 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9530 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9532 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
9534 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9535 worker & gang cases.
9536 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9538 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
9540 * config/nvptx/priority_queue.c: New file.
9542 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9544 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9547 2015-11-14 Jakub Jelinek <jakub@redhat.com>
9548 Aldy Hernandez <aldyh@redhat.com>
9549 Ilya Verbin <ilya.verbin@intel.com>
9551 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9552 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9553 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9554 iterators or IV by chunk size.
9555 * parallel.c (gomp_resolve_num_threads): Don't assume that
9556 if thr->ts.team is non-NULL, then pool must be non-NULL.
9557 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9558 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9559 GOMP_PLUGIN_target_task_completion.
9560 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9561 * Makefile.in: Regenerate.
9562 * libgomp.h: Shuffle prototypes and forward definitions around so
9563 priority queues can be defined.
9564 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9565 (enum gomp_target_task_state): New enum.
9566 (struct gomp_target_task): Add state, tgt, task and team fields.
9567 (gomp_create_target_task): Change return type to bool, add
9569 (gomp_target_task_fn): Change return type to bool.
9570 (struct gomp_device_descr): Add async_run_func.
9571 (struct gomp_task): Remove children, next_child, prev_child,
9572 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9574 (struct gomp_taskgroup): Remove children.
9575 Add taskgroup_queue.
9576 (struct gomp_team): Change task_queue type to a priority queue.
9577 (splay_compare): Define inline.
9578 (priority_queue_offset): New.
9579 (priority_node_to_task): New.
9580 (task_to_priority_node): New.
9581 * oacc-mem.c: Do not include splay-tree.h.
9582 * priority_queue.c: New file.
9583 * priority_queue.h: New file.
9584 * splay-tree.c: Do not include splay-tree.h.
9585 (splay_tree_foreach_internal): New.
9586 (splay_tree_foreach): New.
9587 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9588 (splay_tree_callback): Define typedef.
9589 * target.c (splay_compare): Move to libgomp.h.
9590 (GOMP_target): Don't adjust *thr in any way around running offloaded
9592 (GOMP_target_ext): Likewise. Handle target nowait.
9593 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9594 return value from gomp_create_target_task, if false, fallthrough
9595 as if no dependencies exist.
9596 (gomp_target_task_fn): Change return type to bool, return true
9597 if the task should have another part scheduled later. Handle
9599 (gomp_load_plugin_for_device): Initialize async_run.
9600 * task.c (gomp_init_task): Initialize children_queue.
9601 (gomp_clear_parent_in_list): New.
9602 (gomp_clear_parent_in_tree): New.
9603 (gomp_clear_parent): Handle priorities.
9604 (GOMP_task): Likewise.
9605 (priority_queue_move_task_first,
9606 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9608 (gomp_create_target_task): Use priority queues. Change return type
9609 to bool, add state argument, return false if for async
9610 {{enter,exit} data,update} constructs no dependencies need to be
9611 waited for, handle target nowait. Set task->fn to NULL instead of
9612 gomp_target_task_fn.
9613 (verify_children_queue): Remove.
9614 (priority_list_upgrade_task): New.
9615 (priority_queue_upgrade_task): New.
9616 (verify_task_queue): Remove.
9617 (priority_list_downgrade_task): New.
9618 (priority_queue_downgrade_task): New.
9619 (gomp_task_run_pre): Use priority queues.
9620 Abstract code out to priority_queue_downgrade_task.
9621 (gomp_task_run_post_handle_dependers): Use priority queues.
9622 (gomp_task_run_post_remove_parent): Likewise.
9623 (gomp_task_run_post_remove_taskgroup): Likewise.
9624 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
9626 (GOMP_taskwait): Likewise.
9627 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
9628 priority-queue_upgrade_task.
9629 (GOMP_taskgroup_start): Use priority queues.
9630 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
9631 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
9633 * taskloop.c (GOMP_taskloop): Handle priorities.
9634 * team.c (gomp_new_team): Call priority_queue_init.
9635 (free_team): Call priority_queue_free.
9636 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9637 team created for target nowait in implicit parallel region.
9638 (gomp_team_start): For nested check, test thr->ts.level instead of
9639 thr->ts.team != NULL.
9640 * testsuite/libgomp.c/doacross-3.c: New test.
9641 * testsuite/libgomp.c/ordered-5.c: New test.
9642 * testsuite/libgomp.c/priority.c: New test.
9643 * testsuite/libgomp.c/target-31.c: New test.
9644 * testsuite/libgomp.c/target-32.c: New test.
9645 * testsuite/libgomp.c/target-33.c: New test.
9646 * testsuite/libgomp.c/target-34.c: New test.
9648 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9650 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9652 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9655 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
9657 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9658 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9660 2015-11-12 James Norris <jnorris@codesourcery.com>
9661 Joseph Myers <joseph@codesourcery.com>
9663 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9664 * oacc-parallel.c (GOACC_declare): New function.
9665 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9666 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9667 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9668 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9669 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9671 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
9673 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9675 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
9677 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9678 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9680 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9682 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9685 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
9687 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9688 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9689 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9690 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9691 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9693 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
9695 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9696 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9698 2015-11-05 Jakub Jelinek <jakub@redhat.com>
9699 Ilya Verbin <ilya.verbin@intel.com>
9701 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9702 GOMP_loop_nonmonotonic_dynamic_start,
9703 GOMP_loop_nonmonotonic_guided_next,
9704 GOMP_loop_nonmonotonic_guided_start,
9705 GOMP_loop_ull_nonmonotonic_dynamic_next,
9706 GOMP_loop_ull_nonmonotonic_dynamic_start,
9707 GOMP_loop_ull_nonmonotonic_guided_next,
9708 GOMP_loop_ull_nonmonotonic_guided_start,
9709 GOMP_parallel_loop_nonmonotonic_dynamic,
9710 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9711 (GOMP_target_41): Renamed to ...
9712 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9714 (GOMP_target_data_41): Renamed to ...
9715 (GOMP_target_data_ext): ... this.
9716 (GOMP_target_update_41): Renamed to ...
9717 (GOMP_target_update_ext): ... this.
9718 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9719 GOMP_target_data_ext and GOMP_target_update_ext instead of
9720 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9721 Export GOMP_loop_nonmonotonic_dynamic_next,
9722 GOMP_loop_nonmonotonic_dynamic_start,
9723 GOMP_loop_nonmonotonic_guided_next,
9724 GOMP_loop_nonmonotonic_guided_start,
9725 GOMP_loop_ull_nonmonotonic_dynamic_next,
9726 GOMP_loop_ull_nonmonotonic_dynamic_start,
9727 GOMP_loop_ull_nonmonotonic_guided_next,
9728 GOMP_loop_ull_nonmonotonic_guided_start,
9729 GOMP_parallel_loop_nonmonotonic_dynamic and
9730 GOMP_parallel_loop_nonmonotonic_guided.
9731 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9732 GOMP_parallel_loop_nonmonotonic_guided,
9733 GOMP_loop_nonmonotonic_dynamic_start,
9734 GOMP_loop_nonmonotonic_guided_start,
9735 GOMP_loop_nonmonotonic_dynamic_next,
9736 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9737 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9738 GOMP_loop_ull_nonmonotonic_guided_start,
9739 GOMP_loop_ull_nonmonotonic_dynamic_next,
9740 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9741 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9743 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
9744 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9745 Use gomp_map_val function.
9746 (gomp_target_fallback_firstprivate): New static function.
9747 (GOMP_target_41): Renamed to ...
9748 (GOMP_target_ext): ... this. Add num_teams and thread_limit
9749 arguments. Move firstprivate fallback handling into a new
9751 (GOMP_target_data_41): Renamed to ...
9752 (GOMP_target_data_ext): ... this.
9753 (GOMP_target_update_41): Renamed to ...
9754 (GOMP_target_update_ext): ... this.
9755 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9756 gomp_map_0len_lookup instead of gomp_map_lookup.
9757 (omp_target_is_present): Use gomp_map_0len_lookup instead of
9759 * testsuite/libgomp.c/target-28.c: Likewise.
9760 * testsuite/libgomp.c/monotonic-1.c: New test.
9761 * testsuite/libgomp.c/monotonic-2.c: New test.
9762 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9763 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9764 * testsuite/libgomp.c/pr66199-5.c: New test.
9765 * testsuite/libgomp.c/pr66199-6.c: New test.
9766 * testsuite/libgomp.c/pr66199-7.c: New test.
9767 * testsuite/libgomp.c/pr66199-8.c: New test.
9768 * testsuite/libgomp.c/pr66199-9.c: New test.
9769 * testsuite/libgomp.c/reduction-11.c: New test.
9770 * testsuite/libgomp.c/reduction-12.c: New test.
9771 * testsuite/libgomp.c/reduction-13.c: New test.
9772 * testsuite/libgomp.c/reduction-14.c: New test.
9773 * testsuite/libgomp.c/reduction-15.c: New test.
9774 * testsuite/libgomp.c/target-12.c (main): Adjust for
9775 omp_target_is_present change for one-past-last element.
9776 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9777 the same var is both mapped and privatized.
9778 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9779 handling of zero-length array sections.
9780 * testsuite/libgomp.c/target-28.c: New test.
9781 * testsuite/libgomp.c/target-29.c: New test.
9782 * testsuite/libgomp.c/target-30.c: New test.
9783 * testsuite/libgomp.c/target-teams-1.c: New test.
9784 * testsuite/libgomp.c++/member-6.C: New test.
9785 * testsuite/libgomp.c++/member-7.C: New test.
9786 * testsuite/libgomp.c++/monotonic-1.C: New test.
9787 * testsuite/libgomp.c++/monotonic-2.C: New test.
9788 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9789 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9790 * testsuite/libgomp.c++/pr66199-3.C: New test.
9791 * testsuite/libgomp.c++/pr66199-4.C: New test.
9792 * testsuite/libgomp.c++/pr66199-5.C: New test.
9793 * testsuite/libgomp.c++/pr66199-6.C: New test.
9794 * testsuite/libgomp.c++/pr66199-7.C: New test.
9795 * testsuite/libgomp.c++/pr66199-8.C: New test.
9796 * testsuite/libgomp.c++/pr66199-9.C: New test.
9797 * testsuite/libgomp.c++/reduction-11.C: New test.
9798 * testsuite/libgomp.c++/reduction-12.C: New test.
9799 * testsuite/libgomp.c++/target-13.C: New test.
9800 * testsuite/libgomp.c++/target-14.C: New test.
9801 * testsuite/libgomp.c++/target-15.C: New test.
9802 * testsuite/libgomp.c++/target-16.C: New test.
9803 * testsuite/libgomp.c++/target-17.C: New test.
9804 * testsuite/libgomp.c++/target-18.C: New test.
9805 * testsuite/libgomp.c++/target-19.C: New test.
9807 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9809 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9811 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9812 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9813 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9814 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9815 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9816 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9817 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9818 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9819 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9820 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9821 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9822 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9823 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9824 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9826 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
9828 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9829 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9830 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9831 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9832 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9833 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9834 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9835 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9837 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
9839 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9840 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9841 (GOMP_OFFLOAD_openacc_parallel): Likewise.
9842 * oacc-host.c (host_openacc_exec): Likewise.
9843 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9845 2015-11-03 Julian Brown <julian@codesourcery.com>
9846 Thomas Schwinge <thomas@codesourcery.com>
9848 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9849 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9850 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9852 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9853 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9855 2015-11-03 James Norris <jnorris@codesourcery.com>
9857 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9859 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9861 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9862 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9863 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9864 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9865 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9867 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9869 * openacc.h (enum acc_device_t): Reformat. Ensure layout
9871 (enum acc_async_t): Reformat.
9872 (acc_on_device): Declare compatible with builtin and provide C++
9874 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9876 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
9877 Cesar Philippidis <cesar@codesourcery.com>
9879 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9880 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9881 ... this. Add a description of the test at the top of the file.
9882 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9883 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9884 ... this. Add a description of the test at the top of the file.
9886 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9888 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9889 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9890 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9891 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9892 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9893 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9895 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9897 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9900 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9903 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9905 2015-10-27 James Norris <jnorris@codesourcery.com>
9907 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9908 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9910 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
9912 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9913 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9915 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9916 acc_device_nvidia usage.
9917 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9918 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9919 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9921 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9922 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9925 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9929 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9930 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9932 2015-10-23 Tom de Vries <tom@codesourcery.com>
9935 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9937 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
9939 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9941 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9943 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
9944 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
9946 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9947 to 0 when mapnum is 0.
9949 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
9951 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9952 Cast to int from int32_t.
9954 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9955 Aldy Hernandez <aldyh@redhat.com>
9956 Ilya Verbin <ilya.verbin@intel.com>
9958 * config/linux/affinity.c (omp_get_place_num_procs,
9959 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9960 * config/linux/doacross.h: New file.
9961 * config/posix/affinity.c (omp_get_place_num_procs,
9962 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9963 * config/posix/doacross.h: New file.
9964 * env.c: Include gomp-constants.h.
9965 (struct gomp_task_icv): Rename run_sched_modifier to
9966 run_sched_chunk_size.
9967 (gomp_max_task_priority_var): New variable.
9968 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9969 (handle_omp_display_env): Change _OPENMP value from 201307 to
9970 201511. Print OMP_MAX_TASK_PRIORITY.
9971 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9972 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9973 chunk_size and run_sched_modifier to run_sched_chunk_size.
9974 (omp_get_max_task_priority, omp_get_initial_device,
9975 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9976 omp_get_partition_place_nums): New functions.
9977 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9978 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9980 (omp_get_num_places_, omp_get_place_num_procs_,
9981 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9982 omp_get_place_proc_ids_8_, omp_get_place_num_,
9983 omp_get_partition_num_places_, omp_get_partition_place_nums_,
9984 omp_get_partition_place_nums_8_, omp_get_initial_device_,
9985 omp_get_max_task_priority_): New functions.
9986 * libgomp_g.h (GOMP_loop_doacross_static_start,
9987 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9988 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9989 GOMP_loop_ull_doacross_dynamic_start,
9990 GOMP_loop_ull_doacross_guided_start,
9991 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9992 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9993 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9994 GOMP_target_data_41, GOMP_target_update_41,
9995 GOMP_target_enter_exit_data): New prototypes.
9996 (GOMP_task): Add prototype argument.
9997 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9998 (struct gomp_doacross_work_share): New type.
9999 (struct gomp_work_share): Add doacross field.
10000 (struct gomp_task_icv): Rename run_sched_modifier to
10001 run_sched_chunk_size.
10002 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
10003 GOMP_TASK_UNDEFERRED. Add comments.
10004 (struct gomp_task_depend_entry): Add comments.
10005 (struct gomp_task): Likewise.
10006 (struct gomp_taskgroup): Likewise.
10007 (struct gomp_target_task): New type.
10008 (struct gomp_team): Add comment.
10009 (gomp_get_place_proc_ids_8, gomp_doacross_init,
10010 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
10011 gomp_create_target_task, gomp_target_task_fn): New prototypes.
10012 (struct target_var_desc): New type.
10013 (struct target_mem_desc): Adjust comment. Use struct
10014 target_var_desc instead of splay_tree_key for list.
10015 (REFCOUNT_INFINITY): Define.
10016 (struct splay_tree_key_s): Remove copy_from field.
10017 (struct gomp_device_descr): Add dev2dev_func field.
10018 (enum gomp_map_vars_kind): New enum.
10019 (gomp_map_vars): Add one argument.
10020 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
10021 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
10022 omp_get_place_num_procs, omp_get_place_num_procs_,
10023 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
10024 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
10025 omp_get_place_num_, omp_get_partition_num_places,
10026 omp_get_partition_num_places_, omp_get_partition_place_nums,
10027 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
10028 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
10029 omp_target_free, omp_target_is_present, omp_target_memcpy,
10030 omp_target_memcpy_rect, omp_target_associate_ptr and
10031 omp_target_disassociate_ptr.
10032 (GOMP_4.0.2): Renamed to ...
10033 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
10034 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
10035 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
10036 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10037 GOMP_loop_doacross_static_start, GOMP_doacross_post,
10038 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
10039 GOMP_loop_ull_doacross_guided_start,
10040 GOMP_loop_ull_doacross_runtime_start,
10041 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
10042 GOMP_doacross_ull_wait.
10043 * libgomp.texi: Document omp_get_max_task_priority.
10044 Rename modifier argument to chunk_size for omp_set_schedule and
10045 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
10046 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
10047 to run_sched_chunk_size renaming.
10048 (GOMP_loop_ordered_runtime_start): Likewise.
10049 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10050 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10051 GOMP_parallel_loop_runtime_start): New functions.
10052 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
10053 to run_sched_chunk_size renaming.
10054 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
10055 GOMP_loop_doacross_guided_start): New functions or aliases.
10056 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
10057 run_sched_modifier to run_sched_chunk_size renaming.
10058 (GOMP_loop_ull_ordered_runtime_start): Likewise.
10059 (gomp_loop_ull_doacross_static_start,
10060 gomp_loop_ull_doacross_dynamic_start,
10061 gomp_loop_ull_doacross_guided_start,
10062 GOMP_loop_ull_doacross_runtime_start): New functions.
10063 (GOMP_loop_ull_doacross_static_start,
10064 GOMP_loop_ull_doacross_dynamic_start,
10065 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
10066 * oacc-mem.c (acc_map_data, present_create_copy,
10067 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
10069 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
10070 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
10071 instead of false to gomp_map_vars.
10072 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
10073 * omp.h.in (omp_lock_hint_t): New type.
10074 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10075 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10076 omp_get_place_num, omp_get_partition_num_places,
10077 omp_get_partition_place_nums, omp_get_initial_device,
10078 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
10079 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
10080 omp_target_associate_ptr, omp_target_disassociate_ptr): New
10082 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
10083 (omp_lock_hint_none, omp_lock_hint_uncontended,
10084 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10085 omp_lock_hint_speculative): New parameters.
10086 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10087 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10088 omp_get_place_num, omp_get_partition_num_places,
10089 omp_get_partition_place_nums, omp_get_initial_device,
10090 omp_get_max_task_priority): New interfaces.
10091 (omp_set_schedule, omp_get_schedule): Rename modifier argument
10093 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
10094 (omp_lock_hint_none, omp_lock_hint_uncontended,
10095 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10096 omp_lock_hint_speculative): New parameters.
10097 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10098 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10099 omp_get_place_num, omp_get_partition_num_places,
10100 omp_get_partition_place_nums, omp_get_initial_device,
10101 omp_get_max_task_priority): New functions and subroutines.
10102 * ordered.c: Include stdarg.h and string.h.
10103 (MAX_COLLAPSED_BITS): Define.
10104 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
10105 gomp_doacross_ull_init, GOMP_doacross_ull_post,
10106 GOMP_doacross_ull_wait): New functions.
10107 * target.c: Include errno.h.
10108 (resolve_device): If device is not initialized, call
10109 gomp_init_device on it.
10110 (gomp_map_lookup): New function.
10111 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
10112 Don't bump refcount if REFCOUNT_INFINITY. Handle
10113 GOMP_MAP_ALWAYS_TO_P.
10114 (get_kind): Rename is_openacc argument to short_mapkind.
10115 (gomp_map_pointer): Use gomp_map_lookup.
10116 (gomp_map_fields_existing): New function.
10117 (gomp_map_vars): Rename is_openacc argument to short_mapkind
10118 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
10119 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
10120 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
10121 Adjust for tgt->list changed type and copy_from living in there.
10122 (gomp_copy_from_async): Adjust for tgt->list changed type and
10123 copy_from living in there.
10124 (gomp_unmap_vars): Likewise.
10125 (gomp_update): Likewise. Rename is_openacc argument to
10126 short_mapkind. Don't fail if object is not mapped.
10127 (gomp_load_image_to_device): Initialize refcount to
10129 (gomp_target_fallback): New function.
10130 (gomp_get_target_fn_addr): Likewise.
10131 (GOMP_target): Adjust gomp_map_vars caller, use
10132 gomp_get_target_fn_addr and gomp_target_fallback.
10133 (GOMP_target_41): New function.
10134 (gomp_target_data_fallback): New function.
10135 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
10136 (GOMP_target_data_41): New function.
10137 (GOMP_target_update): Adjust gomp_update caller.
10138 (GOMP_target_update_41): New function.
10139 (gomp_exit_data, GOMP_target_enter_exit_data,
10140 gomp_target_task_fn, omp_target_alloc, omp_target_free,
10141 omp_target_is_present, omp_target_memcpy,
10142 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
10143 omp_target_associate_ptr, omp_target_disassociate_ptr,
10144 gomp_load_plugin_for_device): New functions.
10145 * task.c: Include gomp-constants.h. Include taskloop.c
10146 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
10147 (gomp_task_handle_depend): New function.
10148 (GOMP_task): Use it. Add priority argument. Use
10149 gomp-constant.h constants instead of hardcoded numbers.
10150 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
10151 (gomp_create_target_task): New function.
10152 (verify_children_queue, verify_taskgroup_queue,
10153 verify_task_queue): New functions.
10154 (gomp_task_run_pre): Call verify_*_queue functions.
10155 If an upcoming tied task is about to leave the sibling or
10156 taskgroup queues in an invalid state, adjust appropriately.
10157 Remove taskgroup argument. Add comments.
10158 (gomp_task_run_post_handle_dependers): Add comments.
10159 (gomp_task_run_post_remove_parent): Likewise.
10160 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10161 (GOMP_taskwait): Likewise. Add comments.
10162 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10163 problem such that the first non parent_depends_on task does not
10164 end up at the end of the children queue.
10165 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10166 GOMP_TASK_UNDEFERRED.
10167 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10168 * taskloop.c: New file.
10169 * testsuite/lib/libgomp.exp
10170 (check_effective_target_offload_device_nonshared_as): New proc.
10171 * testsuite/libgomp.c/affinity-2.c: New test.
10172 * testsuite/libgomp.c/doacross-1.c: New test.
10173 * testsuite/libgomp.c/doacross-2.c: New test.
10174 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10175 Add map clause to target.
10176 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10177 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10178 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10179 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10180 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10182 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10183 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10184 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10185 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10186 not defined. Use those where needed.
10187 * testsuite/libgomp.c/for-4.c: New test.
10188 * testsuite/libgomp.c/for-5.c: New test.
10189 * testsuite/libgomp.c/for-6.c: New test.
10190 * testsuite/libgomp.c/linear-1.c: New test.
10191 * testsuite/libgomp.c/ordered-4.c: New test.
10192 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10193 only allowed on the loop iterator.
10194 * testsuite/libgomp.c/pr66199-3.c: New test.
10195 * testsuite/libgomp.c/pr66199-4.c: New test.
10196 * testsuite/libgomp.c/reduction-7.c: New test.
10197 * testsuite/libgomp.c/reduction-8.c: New test.
10198 * testsuite/libgomp.c/reduction-9.c: New test.
10199 * testsuite/libgomp.c/reduction-10.c: New test.
10200 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10202 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10203 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10204 * testsuite/libgomp.c/target-11.c: New test.
10205 * testsuite/libgomp.c/target-12.c: New test.
10206 * testsuite/libgomp.c/target-13.c: New test.
10207 * testsuite/libgomp.c/target-14.c: New test.
10208 * testsuite/libgomp.c/target-15.c: New test.
10209 * testsuite/libgomp.c/target-16.c: New test.
10210 * testsuite/libgomp.c/target-17.c: New test.
10211 * testsuite/libgomp.c/target-18.c: New test.
10212 * testsuite/libgomp.c/target-19.c: New test.
10213 * testsuite/libgomp.c/target-20.c: New test.
10214 * testsuite/libgomp.c/target-21.c: New test.
10215 * testsuite/libgomp.c/target-22.c: New test.
10216 * testsuite/libgomp.c/target-23.c: New test.
10217 * testsuite/libgomp.c/target-24.c: New test.
10218 * testsuite/libgomp.c/target-25.c: New test.
10219 * testsuite/libgomp.c/target-26.c: New test.
10220 * testsuite/libgomp.c/target-27.c: New test.
10221 * testsuite/libgomp.c/taskloop-1.c: New test.
10222 * testsuite/libgomp.c/taskloop-2.c: New test.
10223 * testsuite/libgomp.c/taskloop-3.c: New test.
10224 * testsuite/libgomp.c/taskloop-4.c: New test.
10225 * testsuite/libgomp.c++/ctor-13.C: New test.
10226 * testsuite/libgomp.c++/doacross-1.C: New test.
10227 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10228 Replace offload_device with offload_device_nonshared_as.
10229 * testsuite/libgomp.c++/for-12.C: New test.
10230 * testsuite/libgomp.c++/for-13.C: New test.
10231 * testsuite/libgomp.c++/for-14.C: New test.
10232 * testsuite/libgomp.c++/linear-1.C: New test.
10233 * testsuite/libgomp.c++/member-1.C: New test.
10234 * testsuite/libgomp.c++/member-2.C: New test.
10235 * testsuite/libgomp.c++/member-3.C: New test.
10236 * testsuite/libgomp.c++/member-4.C: New test.
10237 * testsuite/libgomp.c++/member-5.C: New test.
10238 * testsuite/libgomp.c++/ordered-1.C: New test.
10239 * testsuite/libgomp.c++/reduction-5.C: New test.
10240 * testsuite/libgomp.c++/reduction-6.C: New test.
10241 * testsuite/libgomp.c++/reduction-7.C: New test.
10242 * testsuite/libgomp.c++/reduction-8.C: New test.
10243 * testsuite/libgomp.c++/reduction-9.C: New test.
10244 * testsuite/libgomp.c++/reduction-10.C: New test.
10245 * testsuite/libgomp.c++/reference-1.C: New test.
10246 * testsuite/libgomp.c++/simd14.C: New test.
10247 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10248 * testsuite/libgomp.c++/target-5.C: New test.
10249 * testsuite/libgomp.c++/target-6.C: New test.
10250 * testsuite/libgomp.c++/target-7.C: New test.
10251 * testsuite/libgomp.c++/target-8.C: New test.
10252 * testsuite/libgomp.c++/target-9.C: New test.
10253 * testsuite/libgomp.c++/target-10.C: New test.
10254 * testsuite/libgomp.c++/target-11.C: New test.
10255 * testsuite/libgomp.c++/target-12.C: New test.
10256 * testsuite/libgomp.c++/taskloop-1.C: New test.
10257 * testsuite/libgomp.c++/taskloop-2.C: New test.
10258 * testsuite/libgomp.c++/taskloop-3.C: New test.
10259 * testsuite/libgomp.c++/taskloop-4.C: New test.
10260 * testsuite/libgomp.c++/taskloop-5.C: New test.
10261 * testsuite/libgomp.c++/taskloop-6.C: New test.
10262 * testsuite/libgomp.c++/taskloop-7.C: New test.
10263 * testsuite/libgomp.c++/taskloop-8.C: New test.
10264 * testsuite/libgomp.c++/taskloop-9.C: New test.
10265 * testsuite/libgomp.fortran/affinity1.f90: New test.
10266 * testsuite/libgomp.fortran/affinity2.f90: New test.
10268 2015-10-13 Tom de Vries <tom@codesourcery.com>
10270 PR tree-optimization/67476
10271 * testsuite/libgomp.c/autopar-3.c: New test.
10272 * testsuite/libgomp.c/autopar-4.c: New test.
10273 * testsuite/libgomp.c/autopar-5.c: New test.
10274 * testsuite/libgomp.c/autopar-6.c: New test.
10275 * testsuite/libgomp.c/autopar-7.c: New test.
10276 * testsuite/libgomp.c/autopar-8.c: New test.
10278 2015-10-12 James Norris <jnorris@codesourcery.com>
10280 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10283 2015-10-09 David Malcolm <dmalcolm@redhat.com>
10285 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10286 using load_gcc_lib.
10288 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10290 * oacc-ptx.h: Remove file, moving its content into...
10291 * config/nvptx/fortran.c: ... here...
10292 * config/nvptx/oacc-init.c: ..., here...
10293 * config/nvptx/oacc-parallel.c: ..., and here.
10294 * config/nvptx/openacc.f90: New file.
10295 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10296 (link_ptx): Don't link in predefined bits of PTX code.
10298 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10299 Bernd Schmidt <bernds@codesourcery.com>
10301 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10302 (struct targ_ptx_obj): New.
10303 (nvptx_tdata): Move earlier, change data format.
10304 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
10306 (GOMP_OFFLOAD_load_image): Adjust.
10308 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10310 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10311 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10312 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10313 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10314 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10315 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10316 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10317 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10318 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10319 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10320 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10321 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10322 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10323 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10324 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10325 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10326 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10327 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10328 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10329 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10330 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10331 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10332 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10333 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10334 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10335 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10337 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10338 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10339 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10340 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10341 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10342 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10343 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10344 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10345 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10346 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10347 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10348 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10349 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10350 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10351 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10352 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10353 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10354 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10355 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10356 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10357 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10358 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10359 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10360 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10361 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10362 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10363 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10364 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10365 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10366 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10367 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10368 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10369 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10370 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10371 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10372 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10374 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10376 * oacc-init.c (acc_on_device): Force optimization level.
10378 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10380 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10381 (cuda_errlist): Delete.
10382 (cuda_error): Reimplement.
10384 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
10386 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10388 * libgomp.map (GOACC_parallel_keyed): New.
10389 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
10391 (GOACC_parallel_keyed): New interface. Lose geometry arguments
10392 and take keyed varargs list. Adjust call to exec_func.
10393 (GOACC_parallel): Force host fallback.
10394 * libgomp_g.h (GOACC_parallel): Remove.
10395 (GOACC_parallel_keyed): Declare.
10396 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10397 (struct targ_gn_descriptor): Replace name field with launch field.
10398 (nvptx_exec): Lose separate geometry args, take array. Process
10399 dynamic dimensions and adjust.
10400 (struct nvptx_tdata): Replace fn_names field with fn_descs.
10401 (GOMP_OFFLOAD_load_image): Adjust for change in function table
10403 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10405 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10408 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10411 * oacc-int.h (goacc_host_init): Add declaration.
10412 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10413 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10415 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10416 Sebastian Pop <s.pop@samsung.com>
10418 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10420 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10421 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10422 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10423 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10424 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10426 2015-09-03 Jakub Jelinek <jakub@redhat.com>
10428 * configure.tgt: Add missing ;; in between nvptx and rtems
10431 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10433 * config/posix/pool.h (gomp_adjust_thread_attr): New.
10434 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10435 (gomp_thread_pool_reservoir): Add priority member.
10436 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10438 (parse_thread_pools): Likewise.
10439 * team.c (gomp_team_start): Call configuration provided
10440 gomp_adjust_thread_attr(). Destroy thread attributes if
10442 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10444 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10446 * config/posix/pool.h: New.
10447 * config/rtems/pool.h: Likewise.
10448 * config/rtems/proc.c: Likewise.
10449 * libgomp.h (gomp_thread_destructor): Declare.
10450 * team.c: Include configuration provided "pool.h".
10451 (gomp_get_thread_pool): Define in configuration.
10452 (gomp_team_end): Call configuration defined
10453 gomp_release_thread_pool().
10455 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10457 * config/rtems/bar.c: New.
10458 * config/rtems/bar.h: Likewise.
10459 * config/rtems/mutex.c: Likewise.
10460 * config/rtems/mutex.h: Likewise.
10461 * config/rtems/sem.c: Likewise.
10462 * config/rtems/sem.h: Likewise.
10463 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10464 <sys/lock.h> header file.
10465 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10466 supported by Newlib.
10467 * configure: Regenerate.
10469 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
10471 * team.c (gomp_new_thread_pool): Delete and move content to ...
10472 (gomp_get_thread_pool): ... new function. Allocate and
10473 initialize thread pool on demand.
10474 (get_last_team): Use gomp_get_thread_pool().
10475 (gomp_team_start): Delete thread pool initialization.
10477 2015-09-03 Tom de Vries <tom@codesourcery.com>
10479 PR tree-optimization/65637
10480 * testsuite/libgomp.c/autopar-2.c: New test.
10482 2015-08-29 Tom de Vries <tom@codesourcery.com>
10484 PR tree-optimization/46193
10485 * testsuite/libgomp.c/pr46193.c: New test.
10487 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10490 * libgomp.map: Add 4.0.2 version.
10491 * target.c (offload_image_descr): Add version field.
10492 (gomp_load_image_to_device): Add version argument. Adjust plugin
10493 call. Improve load mismatch diagnostic.
10494 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10496 (GOMP_offload_regster): Make stub function, move bulk to ...
10497 (GOMP_offload_register_ver): ... here. Process version argument.
10498 (GOMP_offload_unregister): Make stub function, move bulk to ...
10499 (GOMP_offload_unregister_ver): ... here. Process version argument.
10500 (gomp_init_device): Process version field.
10501 (gomp_unload_device): Process version field.
10502 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10503 macros. Check plugin version.
10504 * libgomp.h (gomp_device_descr): Add version function field. Adjust
10505 loader and unloader types.
10506 * oacc-host.c: Include gomp-constants.h.
10507 (host_version): New.
10508 (host_load_image, host_unload_image): Adjust.
10509 (host_dispatch): Add host_version.
10510 * plugin/plugin-nvptx.c: Include gomp-constants.h.
10511 (GOMP_OFFLOAD_version): New.
10512 (GOMP_OFFLOAD_load_image): Add version arg and check it.
10513 (GOMP_OFFLOAD_unload_image): Likewise.
10514 * plugin/plugin-host.c: Include gomp-constants.h.
10515 (GOMP_OFFLOAD_version): New.
10516 (GOMP_OFFLOAD_load_image): Add version arg.
10517 (GOMP_OFFLOAD_unload_image): Likewise.
10519 2015-08-24 Tom de Vries <tom@codesourcery.com>
10521 PR tree-optimization/65468
10522 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10524 2015-08-24 Tom de Vries <tom@codesourcery.com>
10526 PR tree-optimization/65468
10527 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10529 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
10533 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10534 (gomp_iter_guided_next): Idem.
10535 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10536 (gomp_iter_ull_guided_next): Idem.
10537 * config/linux/wait.h (do_spin): Idem.
10539 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10541 * libgomp-plugin.h (enum offload_target_type): Remove
10542 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10543 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10544 * openacc.h (enum acc_device_t): Likewise.
10545 * openacc_lib.h: Likewise.
10546 * oacc-init.c (name_of_acc_device_t): Don't handle it.
10547 (acc_on_device): Just use __builtin_acc_on_device.
10548 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10549 of acc_on_device builtin.
10550 * plugin/plugin-host.h: Remove file.
10551 * plugin/plugin-host.c: Likewise, but salvage some content into...
10552 * oacc-host.c: ... this file.
10553 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10554 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10555 * Makefile.in: Regenerate.
10556 * configure: Likewise.
10557 * testsuite/lib/libgomp.exp
10558 (check_effective_target_openacc_host_nonshm_selected): Remove.
10559 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10560 ACC_DEVICE_TYPE=host_nonshm.
10561 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10562 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10563 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10564 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10565 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10566 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10568 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10569 Jakub Jelinek <jakub@redhat.com>
10571 * config/nvptx/affinity.c: New file.
10572 * config/nvptx/alloc.c: Likewise.
10573 * config/nvptx/bar.c: Likewise.
10574 * config/nvptx/barrier.c: Likewise.
10575 * config/nvptx/critical.c: Likewise.
10576 * config/nvptx/env.c: Likewise.
10577 * config/nvptx/error.c: Likewise.
10578 * config/nvptx/fortran.c: Likewise.
10579 * config/nvptx/iter.c: Likewise.
10580 * config/nvptx/iter_ull.c: Likewise.
10581 * config/nvptx/libgomp-plugin.c: Likewise.
10582 * config/nvptx/lock.c: Likewise.
10583 * config/nvptx/loop.c: Likewise.
10584 * config/nvptx/loop_ull.c: Likewise.
10585 * config/nvptx/mutex.c: Likewise.
10586 * config/nvptx/oacc-async.c: Likewise.
10587 * config/nvptx/oacc-cuda.c: Likewise.
10588 * config/nvptx/oacc-host.c: Likewise.
10589 * config/nvptx/oacc-init.c: Likewise.
10590 * config/nvptx/oacc-mem.c: Likewise.
10591 * config/nvptx/oacc-parallel.c: Likewise.
10592 * config/nvptx/oacc-plugin.c: Likewise.
10593 * config/nvptx/omp-lock.h: Likewise.
10594 * config/nvptx/ordered.c: Likewise.
10595 * config/nvptx/parallel.c: Likewise.
10596 * config/nvptx/proc.c: Likewise.
10597 * config/nvptx/ptrlock.c: Likewise.
10598 * config/nvptx/sections.c: Likewise.
10599 * config/nvptx/sem.c: Likewise.
10600 * config/nvptx/single.c: Likewise.
10601 * config/nvptx/splay-tree.c: Likewise.
10602 * config/nvptx/target.c: Likewise.
10603 * config/nvptx/task.c: Likewise.
10604 * config/nvptx/team.c: Likewise.
10605 * config/nvptx/time.c: Likewise.
10606 * config/nvptx/work.c: Likewise.
10607 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10608 * configure: Regenerate.
10609 * configure.tgt (config_path): Set to "nvptx" for target
10612 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10614 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10616 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
10618 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10619 (cuda_errlist): Constify.
10620 (errmsg): Move into ...
10621 (cuda_error): ... here. Make smaller.
10622 (_XSTR, _STR): Delete.
10623 (cuda_synames): Delete.
10624 (verify_device_library): Delete.
10625 (nvptx_init): Don't call it.
10627 2015-07-28 Tom de Vries <tom@codesourcery.com>
10629 * testsuite/libgomp.c/uns-outer-4.c: New test.
10631 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10633 * testsuite/libgomp.c/pr66714.c: New test.
10635 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
10638 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10639 (fib_ref): New function.
10640 (fib): Correct corner cases in the recursion.
10641 (main): Replace the non-simd loop with fib_ref call.
10642 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10644 (fibonacci): Lower the parameter N to 30. Correct accordingly check
10645 for the last array element value. Replace the non-simd loop with
10646 fib_ref call. Remove redundant b_ref array. Remove the comparison
10647 of the last array element with according Fibonacci sequence element.
10648 (fib): Correct corner cases in the recursion.
10650 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10652 * target.c (gomp_offload_image_to_device): Rename to ...
10653 (gomp_load_image_to_device): ... here.
10654 (GOMP_offload_register): Adjust call.
10655 (gomp_init_device): Likewise.
10656 (gomp_unload_image_from_device): New. Broken out of ...
10657 (GOMP_offload_unregister): ... here. Call it.
10658 (gomp_unload_device): New.
10659 * libgomp.h (gomp_unload_device): Declare.
10660 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10663 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
10665 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10667 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10669 (goacc_waits): Move !num_waits handling to ...
10670 (GOACC_wait): ... here, the only caller that might have zero waits.
10672 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10673 (struct ptx_image_data): Move earlier, add fns field.
10674 (struct ptx_device): Add images and image_lock fields.
10675 (ptx_images, ptx_image_lock): Delete.
10676 (nvptx_open_device): Initialize images and image_lock fields.
10677 (nvptx_close_device): Destroy image_lock.
10678 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10679 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10682 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10684 * target.c (GOMP_offload_register): Use int for device type arg.
10685 (GOMP_offload_unregister): Likewise.
10687 * target.c (struct_offload_image_descr): Constify host_table.
10688 (gomp_offload_image_to_device): Likewise.
10689 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10691 * libgomp.h (gomp_device_descr): Constify target data arguments.
10692 * target.c (struct offload_image_descr): Constify target_data.
10693 (gomp_offload_image_to_device): Likewise.
10694 (GOMP_offload_register): Likewise.
10695 (GOMP_offload_unregister): Likewise.
10696 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10697 GOMP_OFFLOAD_unload_image): Constify target data.
10698 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10699 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10701 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10703 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10704 Workaround driver library const error.
10705 (struct nvptx_tdata, nvptx_tdata_t): New.
10706 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10709 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
10711 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10712 of EPS parameter from integer to real.
10713 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10714 type of EPS parameter from integer to real.
10716 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10718 * team.c (get_last_team): New.
10719 (gomp_new_team): Recycle last non-nested team if possible.
10720 (gomp_team_end): Move team work share list free lock destruction
10722 (free_team): ... here.
10724 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
10726 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10727 and ref from int to double. Replaced their comparison with
10728 an inequality of their difference and EPS.
10729 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10730 comparison of pri and a reference number with an inequality of their
10731 difference and EPS.
10732 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10733 the comparison of sum and sum_ref with an inequality of their
10734 difference and EPS.
10735 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10736 the comparison of pri and a reference number with an inequality of
10737 their difference and EPS.
10739 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
10741 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10742 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10743 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10744 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10745 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10746 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10747 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10748 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10749 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10750 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10751 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10752 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10753 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10755 (vec_mult): Likewise. Add #pragma omp taskwait.
10756 (main): Adjust caller.
10757 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10758 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10759 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10760 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10761 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10762 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10763 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10764 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10765 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10766 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10767 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10768 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10769 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10770 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10771 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10772 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10773 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10774 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10775 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10776 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10777 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10778 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10779 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10780 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10781 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10782 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10783 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10784 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10785 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10786 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10787 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10788 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10789 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10790 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10791 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10792 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10793 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10794 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10795 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10796 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10797 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10798 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10799 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10800 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10801 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10802 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10803 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10804 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10805 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10806 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10807 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10808 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10809 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10810 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10811 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10812 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10813 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10814 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10815 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10816 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10817 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10818 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10819 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10820 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10821 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10822 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10823 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10824 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10825 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10826 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10827 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10828 (vec_mult): Add !$omp taskwait.
10829 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10830 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10831 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10832 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10833 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10834 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10835 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10836 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10837 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10838 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10839 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10840 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10841 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10842 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10843 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10844 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10845 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10846 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10847 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10848 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10849 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10850 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10851 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10852 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10853 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10854 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10855 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10856 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10857 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10858 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10859 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10860 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10861 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10862 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10863 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10864 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10865 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10866 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10867 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10868 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10869 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10870 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10871 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10872 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10873 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10874 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10875 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10876 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10877 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10878 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10879 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10880 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10881 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10882 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10883 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10884 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10885 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10886 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10887 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10888 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10889 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10890 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10891 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10892 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10893 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10894 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10895 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10897 2015-07-10 Tom de Vries <tom@codesourcery.com>
10899 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10900 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10902 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
10905 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10906 in a 64-bit configuration.
10907 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10908 offloading testing if no such device is available.
10909 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10910 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10912 2015-07-08 Tom de Vries <tom@codesourcery.com>
10914 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10916 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10918 2015-07-07 Tom de Vries <tom@codesourcery.com>
10920 PR tree-optimization/66642
10921 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10922 iteration count case.
10923 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10924 function, factor out of ...
10925 (main): ... here. Test low iteration count case.
10927 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
10929 * libgomp.h (gomp_thread_pool): Comment last_team field.
10931 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
10933 * testsuite/libgomp.c++/pr66702-1.C: Require
10934 vect_simd_clones effective target.
10935 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10937 2015-06-30 Tom de Vries <tom@codesourcery.com>
10939 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10940 already set. Use DEFAULT_CFLAGS in dg-runtest.
10941 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10944 2015-06-30 Tom de Vries <tom@codesourcery.com>
10946 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10947 already set. Use DEFAULT_CFLAGS in dg-runtest.
10948 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10949 * testsuite/libgomp.c++/pr64824.C: Same.
10950 * testsuite/libgomp.c++/pr64868.C: Same.
10951 * testsuite/libgomp.c++/pr66199-1.C: Same.
10952 * testsuite/libgomp.c++/pr66199-2.C: Same.
10953 * testsuite/libgomp.c++/target-2.C: Same.
10954 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10955 -std=<standard> option.
10956 * testsuite/libgomp.c++/udr-11.C: Same.
10957 * testsuite/libgomp.c++/udr-12.C: Same.
10958 * testsuite/libgomp.c++/udr-13.C: Same.
10959 * testsuite/libgomp.c++/udr-14.C: Same.
10960 * testsuite/libgomp.c++/udr-15.C: Same.
10961 * testsuite/libgomp.c++/udr-16.C: Same.
10962 * testsuite/libgomp.c++/udr-17.C: Same.
10963 * testsuite/libgomp.c++/udr-18.C: Same.
10964 * testsuite/libgomp.c++/udr-19.C: Same.
10965 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10966 * testsuite/libgomp.c++/simd-1.C: Same.
10967 * testsuite/libgomp.c++/simd-2.C: Same.
10968 * testsuite/libgomp.c++/simd-3.C: Same.
10969 * testsuite/libgomp.c++/simd-4.C: Same.
10970 * testsuite/libgomp.c++/simd-5.C: Same.
10971 * testsuite/libgomp.c++/simd-6.C: Same.
10972 * testsuite/libgomp.c++/simd-7.C: Same.
10973 * testsuite/libgomp.c++/simd-8.C: Same.
10974 * testsuite/libgomp.c++/simd-9.C: Same.
10975 * testsuite/libgomp.c++/simd10.C: Same.
10976 * testsuite/libgomp.c++/simd11.C: Same.
10977 * testsuite/libgomp.c++/simd12.C: Same.
10978 * testsuite/libgomp.c++/simd13.C: Same.
10980 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10982 PR middle-end/66702
10983 * testsuite/libgomp.c++/pr66702-1.C: New test.
10984 * testsuite/libgomp.c++/pr66702-2.C: New test.
10986 2015-06-30 Tom de Vries <tom@codesourcery.com>
10988 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10989 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10990 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10991 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10993 2015-06-30 Tom de Vries <tom@codesourcery.com>
10995 PR tree-optimization/66652
10996 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10997 using restrict pointers.
10998 (main): Add arguments to calls to f.
10999 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11001 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
11003 * configure.ac: Fix check for header <sys/sysctl.h>.
11004 * configure: Regenerate.
11005 * config.h.in: Likewise.
11007 2015-06-23 Tom de Vries <tom@codesourcery.com>
11009 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
11011 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
11013 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
11015 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
11019 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
11020 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11022 2015-06-15 Tom de Vries <tom@codesourcery.com>
11024 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
11025 dg-additional-options for any remaining options.
11026 * testsuite/libgomp.c/atomic-2.c: Same.
11027 * testsuite/libgomp.c/atomic-4.c: Same.
11028 * testsuite/libgomp.c/atomic-5.c: Same.
11029 * testsuite/libgomp.c/atomic-6.c: Same.
11030 * testsuite/libgomp.c/autopar-1.c: Same.
11031 * testsuite/libgomp.c/copyin-1.c: Same.
11032 * testsuite/libgomp.c/copyin-2.c: Same.
11033 * testsuite/libgomp.c/copyin-3.c: Same.
11034 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
11035 * testsuite/libgomp.c/nestedfn-5.c: Same.
11036 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
11037 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
11038 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
11039 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11040 * testsuite/libgomp.c/pr32362-1.c: Same.
11041 * testsuite/libgomp.c/pr32362-2.c: Same.
11042 * testsuite/libgomp.c/pr32362-3.c: Same.
11043 * testsuite/libgomp.c/pr39591-1.c: Same.
11044 * testsuite/libgomp.c/pr39591-2.c: Same.
11045 * testsuite/libgomp.c/pr39591-3.c: Same.
11046 * testsuite/libgomp.c/pr58392.c: Same.
11047 * testsuite/libgomp.c/pr58756.c: Same.
11048 * testsuite/libgomp.c/simd-1.c: Same.
11049 * testsuite/libgomp.c/simd-10.c: Same.
11050 * testsuite/libgomp.c/simd-11.c: Same.
11051 * testsuite/libgomp.c/simd-12.c: Same.
11052 * testsuite/libgomp.c/simd-13.c: Same.
11053 * testsuite/libgomp.c/simd-14.c: Same.
11054 * testsuite/libgomp.c/simd-15.c: Same.
11055 * testsuite/libgomp.c/simd-2.c: Same.
11056 * testsuite/libgomp.c/simd-3.c: Same.
11057 * testsuite/libgomp.c/simd-4.c: Same.
11058 * testsuite/libgomp.c/simd-5.c: Same.
11059 * testsuite/libgomp.c/simd-6.c: Same.
11060 * testsuite/libgomp.c/simd-7.c: Same.
11061 * testsuite/libgomp.c/simd-8.c: Same.
11062 * testsuite/libgomp.c/simd-9.c: Same.
11064 2015-06-15 Tom de Vries <tom@codesourcery.com>
11066 * testsuite/libgomp.c/pr35625.c: Fix typo.
11068 2015-06-15 Tom de Vries <tom@codesourcery.com>
11070 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
11072 * testsuite/libgomp.c/atomic-3.c: Same.
11073 * testsuite/libgomp.c/debug-1.c: Same.
11074 * testsuite/libgomp.c/nqueens-1.c: Same.
11075 * testsuite/libgomp.c/pr26171.c: Same.
11076 * testsuite/libgomp.c/pr48591.c: Same.
11077 * testsuite/libgomp.c/pr64824.c: Same.
11078 * testsuite/libgomp.c/pr64868.c: Same.
11079 * testsuite/libgomp.c/pr66133.c: Same.
11080 * testsuite/libgomp.c/pr66199-1.c: Same.
11081 * testsuite/libgomp.c/pr66199-2.c: Same.
11082 * testsuite/libgomp.c/target-8.c: Same.
11084 2015-06-15 Tom de Vries <tom@codesourcery.com>
11086 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
11088 * testsuite/libgomp.c/for-1.c: Same.
11089 * testsuite/libgomp.c/for-2.c: Same.
11090 * testsuite/libgomp.c/for-3.c: Same.
11091 * testsuite/libgomp.c/pr35625.c: Same.
11092 * testsuite/libgomp.c/pr39154.c: Same.
11093 * testsuite/libgomp.c/simd-16.c: Same.
11094 * testsuite/libgomp.c/simd-17.c: Same.
11096 2015-06-13 Tom de Vries <tom@codesourcery.com>
11098 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
11100 2015-06-13 Tom de Vries <tom@codesourcery.com>
11102 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
11103 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11104 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
11106 (main): Use N instead of hardcoded constants.
11108 2015-06-05 Tom de Vries <tom@codesourcery.com>
11110 merge from gomp4 branch:
11111 2015-05-28 Tom de Vries <tom@codesourcery.com>
11113 PR tree-optimization/65443
11114 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
11115 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
11116 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11118 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11120 * testsuite/libgomp.graphite/bounds.c: Adjust for
11121 cleanup-tree-dump removal.
11122 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
11123 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11124 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11125 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11126 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11127 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11128 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11129 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11130 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11131 * testsuite/libgomp.graphite/pr41118.c: Likewise.
11133 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
11135 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
11136 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
11137 (futex_wake) [!__x86_64__]: Ditto.
11139 2015-05-28 Julian Brown <julian@codesourcery.com>
11141 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
11142 function comment. Only call gomp_fatal if new argument is true.
11143 (acc_dev_num_out_of_range): New function.
11144 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
11145 acc_dev_num_out_of_range as appropriate.
11146 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11147 (acc_get_device_num, acc_set_device_num): Update calls to
11149 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
11152 2015-05-28 Julian Brown <julian@codesourcery.com>
11155 * oacc-init.c (plugin/plugin-host.h): Include.
11156 (acc_on_device): Check whether we're in an offloaded region for
11158 plugin. Don't use __builtin_acc_on_device.
11159 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
11160 nonshm_exec flag in thread-local data.
11161 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11162 data for host_nonshm plugin.
11163 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11164 for host_nonshm plugin.
11165 * plugin/plugin-host.h: New.
11167 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11169 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11171 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11173 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11175 (FUTEX_PRIVATE_FLAG): Remove L suffix.
11176 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11179 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
11181 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11183 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
11185 * target.c (gomp_map_pointer): New function abstracting out
11186 GOMP_MAP_POINTER handling.
11187 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11188 gomp_map_pointer().
11190 2015-05-19 Jakub Jelinek <jakub@redhat.com>
11192 PR middle-end/66199
11193 * testsuite/libgomp.c/pr66199-1.c: New test.
11194 * testsuite/libgomp.c/pr66199-2.c: New test.
11195 * testsuite/libgomp.c++/pr66199-1.C: New test.
11196 * testsuite/libgomp.c++/pr66199-2.C: New test.
11197 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11198 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11200 2015-05-19 Julian Brown <julian@codesourcery.com>
11202 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11205 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11207 PR middle-end/66133
11208 * testsuite/libgomp.c/pr66133.c: New test.
11210 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11212 * Makefile.in: Regenerated with automake-1.11.6.
11213 * aclocal.m4: Likewise.
11214 * config.h.in: Likewise.
11215 * configure: Likewise.
11216 * testsuite/Makefile.in: Likewise.
11218 2015-05-08 Jason Merrill <jason@redhat.com>
11220 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11223 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11225 2015-05-06 Julian Brown <julian@codesourcery.com>
11227 * oacc-init.c (acc_device_lock): Add explanatory comment.
11228 (resolve_device): Add comment about locking requirement.
11229 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11230 gomp_init_device and gomp_fini_device calls.
11231 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11232 (acc_get_device_num, acc_set_device_num): Add locking around
11233 resolve_device and gomp_init_device calls.
11235 2015-05-06 Julian Brown <julian@codesourcery.com>
11237 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11238 goacc_thread_lock on error paths.
11239 * oacc-mem.c (lookup_host): Remove locking from function. Note
11240 locking requirement for caller in function comment.
11241 (lookup_dev): Likewise.
11242 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11243 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11244 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11247 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
11251 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11252 don't expect "0x" prefix for "%p" format specifier, don't expect
11253 "(nil)" for NULL pointer.
11254 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11255 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11256 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11257 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11258 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11259 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11260 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11261 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11262 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11263 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11264 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11265 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11266 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11267 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11268 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11269 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11270 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11271 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11272 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11273 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11274 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11275 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11276 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11277 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11278 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11279 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11280 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11281 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11282 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11283 accurately specify what we're looking for.
11284 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11285 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11286 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11287 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11288 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11290 2015-04-30 James Norris <jnorris@codesourcery.com>
11293 * testsuite/lib/libgomp.exp
11294 (check_effective_target_openacc_host_selected)
11295 (check_effective_target_openacc_host_nonshm_selected): New
11297 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11299 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11300 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11301 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11302 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11303 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11304 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11305 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11306 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11307 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11308 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11309 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11310 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11311 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11312 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11313 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11314 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11315 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11316 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11317 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11318 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11319 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11320 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11321 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11322 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11323 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11324 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11325 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11326 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11327 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11328 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11329 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11330 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11331 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11332 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11333 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11334 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11335 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11336 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11337 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11338 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11339 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11340 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11341 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11343 2015-04-08 Julian Brown <julian@codesourcery.com>
11345 * libgomp.h (target_mem_desc: Remove mem_map field.
11346 (acc_dispatch_t): Remove open_device_func, close_device_func,
11347 get_device_num_func, set_device_num_func, target_data members.
11348 Change create_thread_data_func argument to device number instead of
11350 * oacc-async.c (assert.h): Include.
11351 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11352 (acc_wait_all, acc_wait_all_async): Use current host thread's
11353 active device, not base_dev.
11354 * oacc-cuda.c (acc_get_current_cuda_device)
11355 (acc_get_current_cuda_context, acc_get_cuda_stream)
11356 (acc_set_cuda_stream): Likewise.
11357 * oacc-host.c (host_dispatch): Don't set open_device_func,
11358 close_device_func, get_device_num_func or set_device_num_func.
11359 * oacc-init.c (base_dev, init_key): Remove.
11360 (cached_base_dev): New.
11361 (name_of_acc_device_t): New.
11362 (acc_init_1): Initialise default-numbered device, not zeroth.
11363 (acc_shutdown_1): Close all devices of a given type.
11364 (goacc_destroy_thread): Don't use base_dev.
11365 (lazy_open, lazy_init, lazy_init_and_open): Remove.
11366 (goacc_attach_host_thread_to_device): New.
11367 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11368 (acc_get_num_devices): Don't use base_dev.
11369 (acc_set_device_type): Reimplement.
11370 (acc_get_device_type): Don't use base_dev.
11371 (acc_get_device_num): Tweak logic.
11372 (acc_set_device_num): Likewise.
11373 (acc_on_device): Use acc_get_device_type.
11374 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11375 (goacc_lazy_initialize): Reimplement with acc_init and
11376 goacc_attach_host_thread_to_device.
11377 * oacc-int.h (goacc_thread): Add base_dev field.
11378 (base_dev): Remove extern declaration.
11379 (goacc_attach_host_thread_to_device): Add prototype.
11380 * oacc-mem.c (acc_malloc): Use current thread's device instead of
11382 (acc_free): Likewise.
11383 (acc_memcpy_to_device): Likewise.
11384 (acc_memcpy_from_device): Likewise.
11385 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11386 goacc_lazy_initialize (throughout).
11387 (GOACC_parallel): Use tgt_offset to locate target functions.
11388 * target.c (gomp_map_vars): Don't set tgt->mem_map.
11389 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11390 (gomp_load_plugin_for_device): Remove open_device, close_device,
11391 get_device_num, set_device_num openacc hook initialisation. Don't set
11392 openacc.target_data.
11393 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11394 (GOMP_OFFLOAD_openacc_close_device)
11395 (GOMP_OFFLOAD_openacc_get_device_num)
11396 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11397 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11399 * plugin/plugin-nvptx.c (ptx_inited): Remove.
11400 (instantiated_devices, ptx_dev_lock): New.
11401 (struct ptx_image_data): New.
11402 (ptx_devices, ptx_images, ptx_image_lock): New.
11403 (fini_streams_for_device): Reorder cuStreamDestroy call.
11404 (nvptx_get_num_devices): Remove forward declaration.
11405 (nvptx_init): Change return type to bool.
11406 (nvptx_fini): Remove.
11407 (nvptx_attach_host_thread_to_device): New.
11408 (nvptx_open_device): Return struct ptx_device* instead of void*.
11409 (nvptx_close_device): Change argument type to struct ptx_device*,
11410 return type to void.
11411 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11412 (kernel_target_data, kernel_host_table): Remove static globals.
11413 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11414 (GOMP_OFFLOAD_init_device): Reimplement.
11415 (GOMP_OFFLOAD_fini_device): Likewise.
11416 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11417 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11418 (GOMP_OFFLOAD_host2dev): Use ORD argument.
11419 (GOMP_OFFLOAD_openacc_open_device)
11420 (GOMP_OFFLOAD_openacc_close_device)
11421 (GOMP_OFFLOAD_openacc_set_device_num)
11422 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11423 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11427 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11429 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11431 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11432 * libgomp.h (struct gomp_memory_mapping): Remove.
11433 (struct target_mem_desc): Change type of mem_map from
11434 gomp_memory_mapping * to splay_tree_s *.
11435 (struct gomp_device_descr): Remove register_image_func, get_table_func.
11436 Add load_image_func, unload_image_func.
11437 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11438 Remove offload_regions_registered.
11439 (gomp_init_tables): Remove.
11440 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11442 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11443 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11444 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11445 offload_regions_registered.
11446 Initialize load_image_func, unload_image_func, mem_map.root.
11447 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11448 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11449 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11450 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11451 gomp_memory_mapping *. Use dev's lock and splay_tree.
11452 (lookup_dev): Use dev's lock.
11453 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11454 (acc_is_present): Likewise.
11455 (acc_map_data): Likewise.
11456 (acc_unmap_data): Likewise. Use dev's lock.
11457 (present_create_copy): Likewise.
11458 (delete_copyout): Pass dev to lookup_host instead of mem_map.
11459 (update_dev_host): Likewise.
11460 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
11461 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11462 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11463 (GOMP_OFFLOAD_get_table): Remove
11464 (GOMP_OFFLOAD_load_image): New function.
11465 (GOMP_OFFLOAD_unload_image): New function.
11466 * target.c (register_lock): New mutex for offload image registration.
11467 (num_devices): Do not guard with PLUGIN_SUPPORT.
11468 (gomp_realloc_unlock): New static function.
11469 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
11471 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11472 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
11473 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11475 (gomp_unmap_vars): Likewise.
11476 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
11477 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
11478 (gomp_offload_image_to_device): New static function.
11479 (GOMP_offload_register): Add mutex lock.
11480 Call gomp_offload_image_to_device for all initialized devices.
11481 Replace gomp_realloc with gomp_realloc_unlock.
11482 (GOMP_offload_unregister): New function.
11483 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
11484 get_table_func from the plugin with calls to init_device_func and
11485 gomp_offload_image_to_device.
11486 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11488 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
11489 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
11490 (GOMP_target_data): Do not call gomp_init_tables.
11491 (GOMP_target_update): Likewise. Remove argument from gomp_update.
11492 (gomp_load_plugin_for_device): Replace register_image and get_table
11493 with load_image and unload_image in DLSYM ().
11494 (gomp_register_images_for_device): Remove function.
11495 (gomp_target_init): Do not initialize current_device.mem_map.*,
11496 current_device.offload_regions_registered.
11497 Remove call to gomp_register_images_for_device.
11498 Do not free offload_images and num_offload_images.
11500 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11503 * testsuite/libgomp.fortran/pr65597.f90: New test.
11505 2015-03-27 Tom de Vries <tom@codesourcery.com>
11508 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11509 (init, check): New function.
11510 (foo): Change return type to void.
11511 (main): Call init and check.
11513 2015-03-27 Tom de Vries <tom@codesourcery.com>
11516 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11517 (foo): Use M for non-inner loops to scale down test-case.
11519 2015-03-25 Kai Tietz <ktietz@redhat.com>
11522 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11523 (GOACC_data_start): Likewise.
11524 * target.c (gomp_map_vars): Likewise.
11526 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
11528 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11531 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11533 * testsuite/libgomp.c/target-10.c: New test.
11534 * testsuite/libgomp.c++/target-4.C: New test.
11536 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11538 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11539 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11541 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
11543 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11544 * configure.ac (*-*-rtems*): Assume Pthread is supported.
11545 (pthread.h): Check for this header file.
11546 * configure: Regenerate.
11548 2015-02-25 Tom de Vries <tom@codesourcery.com>
11550 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11551 (check_reduction_op, check_reduction_macro, max, min):
11553 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11555 (main): Use new functions.
11557 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
11559 * target.c (gomp_load_plugin_for_device): Use const char * instead of
11560 char * for variables holding dlerror return values.
11561 (DLSYM_OPT): Ditto.
11563 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11565 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11567 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11568 Cesar Philippidis <cesar@codesourcery.com>
11570 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11571 GOACC_ctaid, and GOACC_nctaid routines.
11573 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11576 * testsuite/libgomp.c/atomic-18.c: New test.
11577 * testsuite/libgomp.c++/atomic-16.C: New test.
11579 2015-02-04 Jakub Jelinek <jakub@redhat.com>
11583 * testsuite/libgomp.c/pr64824.c: New test.
11584 * testsuite/libgomp.c/pr64868.c: New test.
11585 * testsuite/libgomp.c++/pr64824.C: New test.
11586 * testsuite/libgomp.c++/pr64868.C: New test.
11588 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
11591 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11592 Link with -lpthread.
11593 * config/aix/plugin-suffix.h: Delete.
11595 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
11598 * configure.tgt (*-*-aix*): Use config_path "aix posix".
11599 (*-*-darwin*): Use config_path "bsd darwin posix".
11600 (*-*-hpux*): Use config_path "hpux posix".
11601 * target.c: Add include of plugin-suffix.h and use
11602 SONAME_SUFFIX macro.
11603 * config/aix/plugin-suffix.h: New file.
11604 * config/darwin/plugin-suffix.h: New file.
11605 * config/hpux/plugin-suffix.h: New file.
11606 * config/posix/plugin-suffix.h: New file.
11608 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11610 PR middle-end/64734
11611 * libgomp.c/pr64734.c: New test.
11613 2015-01-23 Tom de Vries <tom@codesourcery.com>
11616 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11618 2015-01-23 Tom de Vries <tom@codesourcery.com>
11621 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11624 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11627 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11628 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11629 formal parameter. Update all users.
11630 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11631 Document unused formal parameter.
11633 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11635 * oacc-parallel.c: Don't include <alloca.h>.
11636 (GOACC_parallel): Use gomp_alloca instead of alloca.
11638 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
11640 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11642 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11643 James Norris <jnorris@codesourcery.com>
11644 Tom de Vries <tom@codesourcery.com>
11645 Julian Brown <julian@codesourcery.com>
11646 Cesar Philippidis <cesar@codesourcery.com>
11647 Nathan Sidwell <nathan@codesourcery.com>
11648 Tobias Burnus <burnus@net-b.de>
11650 * Makefile.am (search_path): Add $(top_srcdir)/../include.
11651 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11652 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11653 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11654 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11655 Include $(top_srcdir)/plugin/Makefrag.am.
11656 (nodist_libsubinclude_HEADERS): Add openacc.h.
11657 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11658 openacc.f90, openacc.mod, openacc_kinds.mod.
11659 (omp_lib.mod): Generalize into...
11660 (%.mod): ... this new rule.
11661 (openacc_kinds.mod, openacc.mod): New rules.
11662 * plugin/configfrag.ac: New file.
11663 * configure.ac: Move plugin/offloading support into it. Include
11664 it. Instantiate testsuite/libgomp-test-support.pt.exp.
11665 * plugin/Makefrag.am: New file.
11666 * testsuite/Makefile.am (OFFLOAD_TARGETS)
11667 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11669 (libgomp-test-support.exp): New rule.
11670 (all-local): Depend on it.
11671 * Makefile.in: Regenerate.
11672 * testsuite/Makefile.in: Regenerate.
11673 * config.h.in: Likewise.
11674 * configure: Likewise.
11675 * configure.tgt: Harden shell syntax.
11676 * env.c: Include "oacc-int.h".
11677 (parse_acc_device_type): New function.
11678 (gomp_debug_var, goacc_device_type, goacc_device_num): New
11680 (initialize_env): Initialize those. Call
11681 goacc_runtime_initialize.
11682 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11683 (gomp_fatal): Call gomp_vfatal.
11684 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11685 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11686 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11687 (splay_tree_node, splay_tree, splay_tree_key)
11688 (struct target_mem_desc, struct splay_tree_key_s)
11689 (struct gomp_memory_mapping, struct acc_dispatch_t)
11690 (struct gomp_device_descr, gomp_acc_insert_pointer)
11691 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11692 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11693 (gomp_free_memmap, gomp_fini_device): New declarations.
11694 (gomp_vdebug, gomp_debug): New macros.
11695 Include "splay-tree.h".
11696 * libgomp.map (OACC_2.0): New symbol version. Use for
11697 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11698 acc_set_device_type_h_, acc_get_device_type,
11699 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11700 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11701 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11702 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11703 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11704 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11705 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11706 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11707 acc_copyin_array_h_, acc_present_or_copyin,
11708 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11709 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11710 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11711 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11712 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11713 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11714 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11715 acc_update_device, acc_update_device_32_h_,
11716 acc_update_device_64_h_, acc_update_device_array_h_,
11717 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11718 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11719 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11720 acc_is_present_64_h_, acc_is_present_array_h_,
11721 acc_memcpy_to_device, acc_memcpy_from_device,
11722 acc_get_current_cuda_device, acc_get_current_cuda_context,
11723 acc_get_cuda_stream, acc_set_cuda_stream.
11724 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
11725 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11726 GOACC_update, GOACC_wait, GOACC_get_thread_num,
11727 GOACC_get_num_threads.
11728 (GOMP_PLUGIN_1.0): New symbol version. Use for
11729 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11730 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11731 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11732 GOMP_PLUGIN_acc_thread.
11733 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11734 environment variable.
11735 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11736 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11737 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11738 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11739 (splay_tree_remove): New declarations.
11740 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11741 (splay_tree_remove, splay_tree_lookup): Move into...
11742 * splay-tree.c: ... this new file.
11743 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11744 (splay_tree_node, splay_tree, splay_tree_key)
11745 (struct target_mem_desc, struct splay_tree_key_s)
11746 (struct gomp_device_descr): Don't declare.
11747 (num_devices_openmp): New variable.
11748 (gomp_get_num_devices ): Use it.
11749 (gomp_init_targets_once): New function.
11750 (gomp_get_num_devices ): Use it.
11751 (get_kind, gomp_copy_from_async, gomp_free_memmap)
11752 (gomp_fini_device, gomp_register_image_for_device): New functions.
11753 (gomp_map_vars): Add devaddrs parameter.
11754 (gomp_update): Add mm parameter.
11755 (gomp_init_device): Move most of it into...
11756 (gomp_init_tables): ... this new function.
11757 (gomp_register_images_for_device): Remove function.
11758 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11759 Make them hidden instead of static.
11760 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11761 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11762 (GOMP_target_end_data, GOMP_target_update)
11763 (gomp_load_plugin_for_device, gomp_target_init): Update for
11765 * oacc-async.c: New file.
11766 * oacc-cuda.c: Likewise.
11767 * oacc-host.c: Likewise.
11768 * oacc-init.c: Likewise.
11769 * oacc-int.h: Likewise.
11770 * oacc-mem.c: Likewise.
11771 * oacc-parallel.c: Likewise.
11772 * oacc-plugin.c: Likewise.
11773 * oacc-plugin.h: Likewise.
11774 * oacc-ptx.h: Likewise.
11775 * openacc.f90: Likewise.
11776 * openacc.h: Likewise.
11777 * openacc_lib.h: Likewise.
11778 * plugin/plugin-host.c: Likewise.
11779 * plugin/plugin-nvptx.c: Likewise.
11780 * libgomp-plugin.c: Likewise.
11781 * libgomp-plugin.h: Likewise.
11782 * libgomp_target.h: Remove file after merging content into the
11783 former file. Update all users.
11784 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11785 (offload_targets_s, offload_targets_s_openacc): New variables.
11786 (check_effective_target_openacc_nvidia_accel_present)
11787 (check_effective_target_openacc_nvidia_accel_selected): New
11789 (libgomp_init): Update for OpenACC changes.
11790 * testsuite/libgomp-test-support.exp.in: New file.
11791 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11792 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11793 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11794 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11795 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11796 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11797 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11798 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11799 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11800 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11801 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11802 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11803 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11804 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11805 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11806 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11807 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11808 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11809 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11810 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11811 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11812 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11813 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11814 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11815 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11816 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11817 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11818 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11819 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11820 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11821 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11822 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11823 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11824 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11825 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11826 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11827 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11828 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11829 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11830 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11831 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11832 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11833 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11835 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11836 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11837 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11838 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11839 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11840 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11841 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11842 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11843 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11844 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11845 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11846 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11847 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11848 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11849 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11850 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11851 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11852 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11853 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11854 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11855 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11856 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11857 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11858 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11859 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11860 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11861 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11862 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11863 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11864 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11865 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11866 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11867 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11868 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11869 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11870 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11871 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11872 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11873 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11874 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11875 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11876 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11877 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11878 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11879 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11880 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11881 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11882 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11883 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11884 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11885 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11886 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11887 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11888 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11889 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11890 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11891 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11892 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11893 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11894 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11895 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11896 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11897 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11898 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11899 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11900 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11901 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11902 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11903 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11904 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11905 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11906 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11907 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11908 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11909 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11910 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11911 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11912 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11913 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11914 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11915 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11916 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11917 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11918 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11919 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11920 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11921 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11922 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11923 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11924 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11925 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11926 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11927 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11928 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11929 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11930 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11932 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11933 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11934 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11935 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11936 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11937 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11938 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11939 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11940 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11941 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11942 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11943 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11944 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11945 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11946 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11947 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11948 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11949 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11950 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11951 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11952 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11953 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11954 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11955 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11956 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11957 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11958 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11959 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11960 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11961 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11962 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11963 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11964 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11965 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11966 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11967 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11968 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11969 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11970 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11971 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11972 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11973 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11974 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11975 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11976 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11977 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11978 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11979 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11980 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11981 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11982 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11983 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11984 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11985 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11986 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11987 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11988 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11989 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11990 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11991 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11993 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
11994 Julian Brown <julian@codesourcery.com>
11995 David Malcolm <dmalcolm@redhat.com>
11997 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11998 to "GNU Offloading and Multi Processing Runtime Library". Change
12000 * configure: Regenerate.
12001 * libgomp.texi: Update.
12003 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
12005 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
12007 * configure: Regenerate.
12009 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
12010 "intelmic" in $offload_targets.
12012 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12014 Update copyright years.
12016 * libgomp.texi: Bump @copying's copyright year.
12018 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12020 * testsuite/lib/libgomp.exp: Load target-utils.exp.
12021 Move load of target-supports.exp earlier.
12023 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
12025 * testsuite/libgomp.c/target-9.c: New test.
12027 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
12029 * config.h.in: Regenerate.
12030 * configure: Regenerate.
12031 * configure.ac: Add GCC_CHECK_EMUTLS.
12032 * libgomp.h: Add check for USE_EMUTLS: this case
12033 is equal to HAVE_TLS.
12034 * team.c: Likewise.
12036 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
12038 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
12040 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
12041 Ilya Verbin <ilya.verbin@intel.com>
12043 * testsuite/libgomp.c/target-critical-1.c: New test.
12045 2014-11-26 Jakub Jelinek <jakub@redhat.com>
12047 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
12048 to dg-options unless expensive testing is on.
12049 (TESTITERS): Define to N if not defined.
12050 (main): Use TESTITERS instead of N.
12051 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
12052 dg-additional-options depending on whether expensive testing is on.
12053 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
12054 Decrease N to 100000 and CHUNKSZ to 10000.
12056 2014-11-24 Jakub Jelinek <jakub@redhat.com>
12059 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
12060 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
12062 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
12064 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
12066 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
12069 * configure: Regenerated.
12071 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
12073 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
12074 vect_simd_clones effective target.
12075 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12077 2014-11-14 Jakub Jelinek <jakub@redhat.com>
12079 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
12080 of 32 as block_size.
12081 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
12082 instead of 32 as block_size.
12084 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
12085 Ilya Verbin <ilya.verbin@intel.com>
12087 * Makefile.in: Regenerate.
12088 * configure: Regenerate.
12089 * configure.ac: Set up offload_additional_options,
12090 offload_additional_lib_paths and offload_targets.
12091 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
12092 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
12093 * testsuite/Makefile.in: Regenerate.
12094 * testsuite/lib/libgomp.exp (libgomp_init): Append
12095 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
12096 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
12097 build directory to LD_LIBRARY_PATH for intelmic offload targets.
12099 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
12100 Ilya Verbin <ilya.verbin@intel.com>
12101 Kirill Yukhin <kirill.yukhin@intel.com>
12102 Ilya Tocar <ilya.tocar@intel.com>
12104 * testsuite/lib/libgomp.exp
12105 (check_effective_target_offload_device): New.
12106 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
12107 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
12108 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
12109 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
12110 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
12111 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
12112 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
12113 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
12114 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
12115 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
12116 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
12117 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
12118 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
12119 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
12120 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
12121 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
12122 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
12123 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
12124 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
12125 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
12126 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
12127 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
12128 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
12129 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
12130 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
12131 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
12132 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
12133 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
12134 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
12135 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
12136 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
12137 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
12138 * testsuite/libgomp.c/target-7.c: Fix test.
12139 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
12140 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
12141 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
12142 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
12143 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
12144 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
12145 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
12146 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
12147 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
12148 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
12149 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
12150 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
12151 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
12152 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
12153 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
12154 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
12155 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
12156 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
12157 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12158 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
12159 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
12160 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12161 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12162 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12163 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12164 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12165 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12166 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12167 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12168 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12169 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12171 2014-11-13 Jakub Jelinek <jakub@redhat.com>
12172 Ilya Verbin <ilya.verbin@intel.com>
12173 Thomas Schwinge <thomas@codesourcery.com>
12174 Andrey Turetskiy <andrey.turetskiy@intel.com>
12176 * libgomp.map (GOMP_4.0.1): New symbol version.
12177 Add GOMP_offload_register.
12178 * libgomp_target.h: New file.
12179 * splay-tree.h: New file.
12180 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12181 (gomp_target_init): New forward declaration.
12182 (gomp_is_initialized): New static variable.
12183 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12184 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12186 (offload_images, num_offload_images, devices, num_devices): New static
12188 (splay_compare): New static function.
12189 (struct gomp_device_descr): New structure.
12190 (gomp_get_num_devices): Call gomp_target_init.
12191 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12192 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12193 (GOMP_offload_register): New function.
12194 (GOMP_target): Arrange for host callback to be performed in a separate
12195 initial thread and contention group, inheriting ICVs from
12196 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
12197 Add device initialization and lookup for target function in splay tree.
12198 (GOMP_target_data): Add device initialization and call gomp_map_vars.
12199 (GOMP_target_end_data): Call gomp_unmap_vars.
12200 (GOMP_target_update): Add device initialization and call gomp_update.
12201 (gomp_load_plugin_for_device, gomp_register_images_for_device)
12202 (gomp_target_init): New static functions.
12204 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
12205 Thomas Schwinge <thomas@codesourcery.com>
12206 Ilya Verbin <ilya.verbin@intel.com>
12207 Andrey Turetskiy <andrey.turetskiy@intel.com>
12209 * config.h.in: Regenerate.
12210 * configure: Regenerate.
12211 * configure.ac: Check for libdl, required for plugin support.
12212 (PLUGIN_SUPPORT): Define if plugins are supported.
12213 (enable_offload_targets): Support Intel MIC targets.
12214 (OFFLOAD_TARGETS): List of target names suitable for offloading.
12216 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12219 * configure: Regenerate.
12221 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12223 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12225 2014-10-06 Marek Polacek <polacek@redhat.com>
12227 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12228 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12229 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12230 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12232 2014-10-06 Marek Polacek <polacek@redhat.com>
12234 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12235 * testsuite/libgomp.c/nqueens-1.c: Likewise.
12236 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12237 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12238 * testsuite/libgomp.c/pr36802-2.c: Likewise.
12239 * testsuite/libgomp.c/pr36802-3.c: Likewise.
12240 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12241 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12242 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12243 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12244 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12245 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12246 * testsuite/libgomp.c/omp-single-1.c: Likewise.
12247 * testsuite/libgomp.c/omp-single-2.c: Likewise.
12248 * testsuite/libgomp.c/omp_matvec.c: Likewise.
12249 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12250 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12251 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
12254 2014-10-03 Jakub Jelinek <jakub@redhat.com>
12257 * testsuite/libgomp.c/pr61200.c: New test.
12259 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12262 * testsuite/libgomp.c++/pr63248.C: New test.
12264 2014-08-04 Jakub Jelinek <jakub@redhat.com>
12266 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12267 is not zero, but taskgroup->children is NULL and there are
12268 any task->children, schedule those instead of waiting.
12269 * testsuite/libgomp.c/depend-6.c: New test.
12270 * testsuite/libgomp.c/depend-7.c: New test.
12271 * testsuite/libgomp.c/depend-8.c: New test.
12272 * testsuite/libgomp.c/depend-9.c: New test.
12273 * testsuite/libgomp.c/depend-10.c: New test.
12275 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12277 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12278 (struct gomp_taskwait): New type.
12279 (struct gomp_task): Add taskwait and parent_depends_on, remove
12280 in_taskwait and taskwait_sem fields.
12281 (gomp_finish_task): Don't destroy taskwait_sem.
12282 * task.c (gomp_init_task): Don't init in_taskwait, instead init
12283 taskwait and parent_depends_on.
12284 (GOMP_task): For if (0) tasks with depend clause that depend on
12285 earlier tasks don't defer them, instead call
12286 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12287 Initialize redundant_out field, for redundant out entries just
12288 move them at the end of linked list instead of removing them
12289 completely, and set redundant_out flag instead of redundant.
12290 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12292 (gomp_task_run_post_handle_dependers): If parent is in
12293 gomp_task_maybe_wait_for_dependencies and newly runnable task
12294 is not parent_depends_on, queue it in parent->children linked
12295 list after all runnable tasks with parent_depends_on set.
12296 Adjust for addition of taskwait indirection.
12297 (gomp_task_run_post_remove_parent): If parent is in
12298 gomp_task_maybe_wait_for_dependencies and task to be removed
12299 is parent_depends_on, decrement n_depend and if needed awake
12300 parent. Adjust for addition of taskwait indirection.
12301 (GOMP_taskwait): Adjust for addition of taskwait indirection.
12302 (gomp_task_maybe_wait_for_dependencies): New function.
12303 * testsuite/libgomp.c/depend-5.c: New test.
12305 2014-07-13 Tobias Burnus <burnus@net-b.de>
12307 * testsuite/libgomp.fortran/pr34020.f90: Make compile
12308 with TS 18508/Fortran 2015.
12310 2014-07-06 Marek Polacek <polacek@redhat.com>
12313 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12315 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12317 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12318 matches regex $lang_source_re, add $lang_include_flags to options.
12319 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12320 * testsuite/libgomp.c++/c++.exp: Likewise.
12321 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
12322 and lang_include_flags instead of adding -fintrinsic-modules-path= to
12324 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12326 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
12328 * testsuite/libgomp.fortran/fortran.exp: Explain
12329 gfortran-dg-runtest usage.
12331 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12333 * testsuite/libgomp.fortran/simd5.f90: New test.
12334 * testsuite/libgomp.fortran/simd6.f90: New test.
12335 * testsuite/libgomp.fortran/simd7.f90: New test.
12337 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12339 * testsuite/libgomp.c/for-2.c: Define SC to static for
12340 #pragma omp for simd testing.
12341 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12342 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12344 * testsuite/libgomp.c/simd-14.c: New test.
12345 * testsuite/libgomp.c/simd-15.c: New test.
12346 * testsuite/libgomp.c/simd-16.c: New test.
12347 * testsuite/libgomp.c/simd-17.c: New test.
12348 * testsuite/libgomp.c++/for-10.C: Define SC to static for
12349 #pragma omp for simd testing.
12350 * testsuite/libgomp.c++/simd10.C: New test.
12351 * testsuite/libgomp.c++/simd11.C: New test.
12352 * testsuite/libgomp.c++/simd12.C: New test.
12353 * testsuite/libgomp.c++/simd13.C: New test.
12355 * testsuite/libgomp.fortran/aligned1.f03: New test.
12356 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12357 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12358 tasks with !$omp parallel !$omp single.
12359 * testsuite/libgomp.fortran/target8.f90: New test.
12360 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12361 not to use trim in the combiner, instead call elemental function.
12362 (fn): New elemental function.
12363 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12365 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12367 * testsuite/libgomp.fortran/udr12.f90: New test.
12368 * testsuite/libgomp.fortran/udr13.f90: New test.
12369 * testsuite/libgomp.fortran/udr14.f90: New test.
12370 * testsuite/libgomp.fortran/udr15.f90: New test.
12372 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12374 * omp_lib.f90.in (openmp_version): Set to 201307.
12375 * omp_lib.h.in (openmp_version): Likewise.
12376 * testsuite/libgomp.c/target-8.c: New test.
12377 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12378 and inbranch clauses.
12379 * testsuite/libgomp.fortran/depend-3.f90: New test.
12380 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12382 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12383 * testsuite/libgomp.fortran/target1.f90: New test.
12384 * testsuite/libgomp.fortran/target2.f90: New test.
12385 * testsuite/libgomp.fortran/target3.f90: New test.
12386 * testsuite/libgomp.fortran/target4.f90: New test.
12387 * testsuite/libgomp.fortran/target5.f90: New test.
12388 * testsuite/libgomp.fortran/target6.f90: New test.
12389 * testsuite/libgomp.fortran/target7.f90: New test.
12391 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12394 * testsuite/libgomp.fortran/allocatable9.f90: New test.
12395 * testsuite/libgomp.fortran/allocatable10.f90: New test.
12396 * testsuite/libgomp.fortran/allocatable11.f90: New test.
12397 * testsuite/libgomp.fortran/allocatable12.f90: New test.
12398 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12399 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12400 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12401 * testsuite/libgomp.fortran/associate1.f90: New test.
12402 * testsuite/libgomp.fortran/associate2.f90: New test.
12403 * testsuite/libgomp.fortran/procptr1.f90: New test.
12405 2014-06-06 Jakub Jelinek <jakub@redhat.com>
12407 * testsuite/libgomp.fortran/simd1.f90: New test.
12408 * testsuite/libgomp.fortran/udr1.f90: New test.
12409 * testsuite/libgomp.fortran/udr2.f90: New test.
12410 * testsuite/libgomp.fortran/udr3.f90: New test.
12411 * testsuite/libgomp.fortran/udr4.f90: New test.
12412 * testsuite/libgomp.fortran/udr5.f90: New test.
12413 * testsuite/libgomp.fortran/udr6.f90: New test.
12414 * testsuite/libgomp.fortran/udr7.f90: New test.
12415 * testsuite/libgomp.fortran/udr8.f90: New test.
12416 * testsuite/libgomp.fortran/udr9.f90: New test.
12417 * testsuite/libgomp.fortran/udr10.f90: New test.
12418 * testsuite/libgomp.fortran/udr11.f90: New test.
12420 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
12422 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12423 vect_simd_clones effective target.
12424 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12426 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12428 PR middle-end/61252
12429 * testsuite/libgomp.c++/simd-9.C: New test.
12431 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
12433 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12434 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12435 texts according to their @menu entry positions.
12437 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12439 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12440 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12441 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12442 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12443 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12444 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12445 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12446 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12447 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12448 * testsuite/libgomp.fortran/depend-1.f90: New test.
12449 * testsuite/libgomp.fortran/depend-2.f90: New test.
12450 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12451 * testsuite/libgomp.fortran/simd1.f90: New test.
12452 * testsuite/libgomp.fortran/simd2.f90: New test.
12453 * testsuite/libgomp.fortran/simd3.f90: New test.
12454 * testsuite/libgomp.fortran/simd4.f90: New test.
12455 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12457 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12459 * testsuite/libgomp.c/simd-10.c: New test.
12460 * testsuite/libgomp.c/simd-11.c: New test.
12461 * testsuite/libgomp.c/simd-12.c: New test.
12462 * testsuite/libgomp.c/simd-13.c: New test.
12464 2014-04-24 Jakub Jelinek <jakub@redhat.com>
12466 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12467 atomic type clauses in any order and optional comma in between.
12468 * testsuite/libgomp.c++/atomic-15.C: Likewise.
12469 * testsuite/libgomp.c/atomic-17.c: Likewise.
12471 * testsuite/libgomp.c/simd-7.c: New test.
12472 * testsuite/libgomp.c/simd-8.c: New test.
12473 * testsuite/libgomp.c/simd-9.c: New test.
12474 * testsuite/libgomp.c/loop-16.c: New test.
12476 2014-04-02 Richard Henderson <rth@redhat.com>
12478 * config/linux/futex.h (futex_wait): Get error value from errno.
12479 (futex_wake): Likewise.
12481 2014-03-25 Jakub Jelinek <jakub@redhat.com>
12484 * testsuite/libgomp.c++/udr-11.C: New test.
12485 * testsuite/libgomp.c++/udr-12.C: New test.
12486 * testsuite/libgomp.c++/udr-13.C: New test.
12487 * testsuite/libgomp.c++/udr-14.C: New test.
12488 * testsuite/libgomp.c++/udr-15.C: New test.
12489 * testsuite/libgomp.c++/udr-16.C: New test.
12490 * testsuite/libgomp.c++/udr-17.C: New test.
12491 * testsuite/libgomp.c++/udr-18.C: New test.
12492 * testsuite/libgomp.c++/udr-19.C: New test.
12494 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12496 Update copyright years
12498 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12500 * hashtab.h: Use the standard form for the copyright notice.
12502 2014-01-02 Tobias Burnus <burnus@net-b.de>
12504 * libgomp.texi: Bump @copying's copyright year.
12506 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
12508 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12509 alloca () with __builtin_alloca ().
12510 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12511 * testsuite/libgomp.c/lock-3.c: Likewise.
12512 * testsuite/libgomp.c/pr48591.c: Likewise.
12514 2013-12-17 Jakub Jelinek <jakub@redhat.com>
12517 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12520 2013-12-16 Jakub Jelinek <jakub@redhat.com>
12523 * testsuite/libgomp.c/pr58756.c: New test.
12525 2013-12-12 Jakub Jelinek <jakub@redhat.com>
12528 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12531 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
12533 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12535 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12536 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12537 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12538 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12541 * libgomp_g.h: Include <stddef.h> for size_t.
12543 * libgomp.spec.in: Update comment about libgomp's dependencies.
12544 * configure.ac: Likewise.
12545 * configure: Regenerate.
12547 2013-10-16 Tobias Burnus <burnus@net-b.de>
12549 * libgomp.texi: (Runtime Library Routines): Update references for
12550 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12551 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12552 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12553 (Environment Variables): Update references for OpenMP 4.0. Add
12554 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12555 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12558 2013-10-14 Jakub Jelinek <jakub@redhat.com>
12560 * env.c (parse_bind_var): Initialize value to avoid
12561 (false positive) warning.
12563 2013-10-12 Jakub Jelinek <jakub@redhat.com>
12566 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12568 (gomp_init_num_threads): Move i variable declaration into
12569 #ifdef CPU_ALLOC_SIZE block.
12570 * config/linux/affinity.c (gomp_affinity_init_level): Test
12571 gomp_places_list_len == 0 rather than gomp_places_list == 0
12572 when checking for topology reading error.
12573 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12574 * env.c (parse_affinity): Add ignore argument, if true, don't populate
12575 gomp_places_list, only parse env var and always return false.
12576 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
12577 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12578 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12579 and either of these variables were parsed correctly into a places
12582 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12583 Jakub Jelinek <jakub@redhat.com>
12585 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12586 of 5 loopfn matches.
12587 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12588 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12589 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12590 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12591 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12592 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12593 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12594 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12596 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
12598 * Makefile.am (omp_lib.mod): Streamline rule.
12599 * Makefile.in: Regenerate.
12601 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12604 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12605 * testsuite/libgomp.fortran/lib1.f90: Likewise.
12606 * testsuite/libgomp.fortran/lib2.f: Likewise.
12607 * testsuite/libgomp.fortran/lib3.f: Likewise.
12609 * configure.ac: Typo fix.
12610 * configure: Regenerate.
12612 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12613 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12615 * omp.h.in: Don't touch the user's namespace.
12617 2013-10-11 Jakub Jelinek <jakub@redhat.com>
12618 Tobias Burnus <burnus@net-b.de>
12619 Richard Henderson <rth@redhat.com>
12621 * target.c: New file.
12622 * Makefile.am (libgomp_la_SOURCES): Add target.c.
12623 * Makefile.in: Regenerated.
12624 * libgomp_g.h (GOMP_task): Add depend argument.
12625 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12626 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12627 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12628 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12629 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12630 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12631 GOMP_taskgroup_start, GOMP_taskgroup_end,
12632 GOMP_parallel_sections): New prototypes.
12633 * fortran.c (omp_is_initial_device): Add ialias_redirect.
12634 (omp_is_initial_device_): New function.
12635 (ULP, STR1, STR2, ialias_redirect): Removed.
12636 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12637 omp_set_default_device_8_, omp_get_default_device_,
12638 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12640 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12641 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12642 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12644 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12645 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12646 omp_set_default_device, omp_set_default_device_,
12647 omp_set_default_device_8_, omp_get_default_device,
12648 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12649 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12650 omp_get_team_num_): Export @@OMP_4.0.
12651 * team.c (struct gomp_thread_start_data): Add place field.
12652 (gomp_thread_start): Clear thr->thread_pool and
12653 thr->task before returning. Use gomp_team_barrier_wait_final
12654 instead of gomp_team_barrier_wait. Initialize thr->place.
12655 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12656 team_cancelled and task_queued_count fields.
12657 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12658 before calling pthread_exit.
12659 (gomp_free_thread): No longer static. Use
12660 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12661 (gomp_team_start): Add flags argument. Set
12662 thr->thread_pool->threads_busy to nthreads immediately after creating
12663 new pool. Use gomp_managed_threads_lock instead of
12664 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
12665 (gomp_team_end): Use gomp_managed_threads_lock instead of
12666 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
12667 of gomp_team_barrier_wait. If team->team_cancelled, call
12668 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12669 rather than thr->ts.work_share.
12670 (initialize_team): Don't call gomp_sem_init here.
12671 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12673 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12674 * env.c (gomp_global_icv): Add default_device_var, target_data and
12675 bind_var initializers.
12676 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12677 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12678 gomp_places_list_len): New variables.
12679 (parse_bind_var, parse_one_place, parse_places_var): New functions.
12680 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12682 (gomp_cancel_var): New global variable.
12683 (parse_int): New function.
12684 (handle_omp_display_env): New function.
12685 (initialize_env): Use it. Initialize default_device_var.
12686 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
12687 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
12688 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
12689 been successfully parsed (and call gomp_init_affinity in that case).
12690 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12691 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12692 omp_get_team_num, omp_is_initial_device): New functions.
12693 * libgomp.h: Include stdlib.h.
12694 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12696 (struct target_mem_desc): Forward declare.
12697 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12698 and thread_limit_var fields.
12699 (gomp_get_num_devices): New prototype.
12700 (gomp_cancel_var): New extern decl.
12701 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12702 team_cancelled and task_queued_count fields. Add comments about
12703 task_{,queued_,running_}count.
12704 (gomp_cancel_kind): New enum.
12705 (gomp_work_share_end_cancel): New prototype.
12706 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12707 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12709 (struct gomp_taskgroup): New type.
12710 (struct gomp_task_depend_entry,
12711 struct gomp_dependers_vec): New types.
12712 (gomp_finish_task): Free depend_hash if non-NULL.
12713 (struct gomp_team_state): Add place_partition_off
12714 and place_partition_len fields.
12715 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12716 gomp_places_list_len): New extern decls.
12717 (struct gomp_thread): Add place field.
12718 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12719 (gomp_init_thread_affinity): Add place argument.
12720 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12721 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12722 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12723 gomp_affinity_init_level, gomp_affinity_print_place): New
12725 (gomp_team_start): Add flags argument.
12726 (gomp_thread_limit_var, gomp_remaining_threads_count,
12727 gomp_remaining_threads_lock): Remove.
12728 (gomp_managed_threads_lock): New variable.
12729 (struct gomp_thread_pool): Add threads_busy field.
12730 (gomp_free_thread): New prototype.
12731 * task.c: Include hashtab.h.
12732 (hash_entry_type): New typedef.
12733 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12734 (gomp_init_task): Clear dependers, depend_hash, depend_count,
12735 copy_ctors_done and taskgroup fields.
12736 (GOMP_task): Add depend argument, handle depend clauses. If
12737 gomp_team_barrier_cancelled or if it's taskgroup has been
12738 cancelled, don't queue or start new tasks. Set copy_ctors_done
12739 field if needed. Initialize taskgroup field. If copy_ctors_done
12740 and already cancelled, don't discard the task. If taskgroup is
12741 non-NULL, enqueue the task into taskgroup queue. Increment
12742 num_children field in taskgroup. Increment task_queued_count.
12743 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12744 gomp_task_run_post_remove_taskgroup): New inline functions.
12745 (gomp_task_run_post_handle_depend_hash,
12746 gomp_task_run_post_handle_dependers,
12747 gomp_task_run_post_handle_depend): New functions.
12748 (GOMP_taskwait): Use them. If more than one new tasks
12749 have been queued, wake other threads if needed.
12750 (gomp_barrier_handle_tasks): Likewise. If
12751 gomp_team_barrier_cancelled, don't start any new tasks, just free
12753 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12755 (omp_proc_bind_kind, omp_proc_bind_false,
12756 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12757 omp_proc_bind_spread): New params.
12758 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12759 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12760 omp_get_team_num, omp_is_initial_device): New interfaces.
12761 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12762 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12763 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12764 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12765 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12766 useless use omp_lib_kinds.
12767 * omp.h.in (omp_proc_bind_t): New typedef.
12768 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12769 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12770 omp_get_team_num, omp_is_initial_device): New prototypes.
12771 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12772 through to gomp_team_start.
12773 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12774 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12775 Adjust gomp_parallel_loop_start callers.
12776 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12777 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12778 GOMP_loop_end_cancel): New functions.
12779 (GOMP_parallel_end): Add ialias_redirect.
12780 * hashtab.h: New file.
12781 * libgomp.texi (Environment Variables): Minor cleanup,
12782 update section refs to OpenMP 4.0rc2.
12783 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12784 environment variables.
12785 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12786 team->work_shares_to_free to thr->ts.work_share before calling
12788 (gomp_work_share_end_cancel): New function.
12789 * config/linux/proc.c: Include errno.h.
12790 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12791 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12792 sizeof (cpu_set_t) to determine number of iterations. Fix up check
12793 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
12794 gomp_cpuset_size is sizeof (cpu_set_t).
12795 (gomp_init_num_threads): Initialize gomp_cpuset_size,
12796 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12797 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12798 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
12799 contain any logical CPUs.
12800 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12801 is NULL. Use gomp_cpusetp instead of &cpuset and pass
12802 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12803 pthread_getaffinity_np. Check gomp_places_list instead of
12804 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
12805 * config/linux/bar.c (gomp_barrier_wait_end,
12806 gomp_barrier_wait_last): Use BAR_* defines.
12807 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
12808 from state where needed. Set work_share_cancelled to 0 on last
12810 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12811 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12813 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12814 Add cpusetsize argument.
12815 (gomp_cpuset_size, gomp_cpusetp): Declare.
12816 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12817 (affinity_counter): Remove.
12818 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12819 if CPU_ALLOC_SIZE isn't defined.
12820 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12821 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12822 bind current thread to the first place.
12823 (gomp_init_thread_affinity): Rewritten. Add place argument, just
12824 pthread_setaffinity_np to gomp_places_list[place].
12825 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12826 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12827 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12828 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12829 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12830 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12831 (gomp_barrier_t): Add awaited_final field.
12832 (gomp_barrier_init): Initialize awaited_final field.
12833 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12834 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12836 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
12838 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12839 gomp_team_barrier_cancelled): New inline functions.
12840 (gomp_barrier_last_thread,
12841 gomp_team_barrier_set_task_pending,
12842 gomp_team_barrier_clear_task_pending,
12843 gomp_team_barrier_set_waiting_for_tasks,
12844 gomp_team_barrier_waiting_for_tasks,
12845 gomp_team_barrier_done): Use BAR_* defines.
12846 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12847 (gomp_barrier_wait_end): Use BAR_* defines.
12848 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12849 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12851 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12852 gomp_team_barrier_cancel): New functions.
12853 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12855 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12856 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12857 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12858 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12859 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12860 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12861 (gomp_barrier_t): Add cancellable field.
12862 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12863 gomp_team_barrier_cancel): New prototypes.
12864 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12865 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12866 gomp_team_barrier_cancelled): New inline functions.
12867 (gomp_barrier_wait_start, gomp_barrier_last_thread,
12868 gomp_team_barrier_set_task_pending,
12869 gomp_team_barrier_clear_task_pending,
12870 gomp_team_barrier_set_waiting_for_tasks,
12871 gomp_team_barrier_waiting_for_tasks,
12872 gomp_team_barrier_done): Use BAR_* defines.
12873 * barrier.c (GOMP_barrier_cancel): New function.
12874 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12875 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12876 omp_proc_bind_spread): New params.
12877 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12878 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12879 omp_get_team_num, omp_is_initial_device): New externals.
12880 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12882 (gomp_resolve_num_threads): Adjust for thread_limit now being in
12883 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12884 infinity. If not nested, just return minimum of max_num_threads
12885 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12886 to the returned value. Otherwise, don't update atomically
12887 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12888 (GOMP_parallel_end): Adjust for thread_limit now being in
12889 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
12890 infinity. Adjust threads_busy in the pool rather than
12891 gomp_remaining_threads_count. Remember team->nthreads and call
12892 gomp_team_end before adjusting threads_busy, if not nested
12893 afterwards, just set it to 1 non-atomically. Add ialias.
12894 (GOMP_parallel_start): Adjust gomp_team_start caller.
12895 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12896 * testsuite/libgomp.c/affinity-1.c: New test.
12897 * testsuite/libgomp.c/atomic-15.c: New test.
12898 * testsuite/libgomp.c/atomic-16.c: New test.
12899 * testsuite/libgomp.c/atomic-17.c: New test.
12900 * testsuite/libgomp.c/cancel-for-1.c: New test.
12901 * testsuite/libgomp.c/cancel-for-2.c: New test.
12902 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12903 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12904 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12905 * testsuite/libgomp.c/cancel-sections-1.c: New test.
12906 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12907 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12908 * testsuite/libgomp.c/depend-1.c: New test.
12909 * testsuite/libgomp.c/depend-2.c: New test.
12910 * testsuite/libgomp.c/depend-3.c: New test.
12911 * testsuite/libgomp.c/depend-4.c: New test.
12912 * testsuite/libgomp.c/for-1.c: New test.
12913 * testsuite/libgomp.c/for-1.h: New file.
12914 * testsuite/libgomp.c/for-2.c: New test.
12915 * testsuite/libgomp.c/for-2.h: New file.
12916 * testsuite/libgomp.c/for-3.c: New test.
12917 * testsuite/libgomp.c/pr58392.c: New test.
12918 * testsuite/libgomp.c/simd-1.c: New test.
12919 * testsuite/libgomp.c/simd-2.c: New test.
12920 * testsuite/libgomp.c/simd-3.c: New test.
12921 * testsuite/libgomp.c/simd-4.c: New test.
12922 * testsuite/libgomp.c/simd-5.c: New test.
12923 * testsuite/libgomp.c/simd-6.c: New test.
12924 * testsuite/libgomp.c/target-1.c: New test.
12925 * testsuite/libgomp.c/target-2.c: New test.
12926 * testsuite/libgomp.c/target-3.c: New test.
12927 * testsuite/libgomp.c/target-4.c: New test.
12928 * testsuite/libgomp.c/target-5.c: New test.
12929 * testsuite/libgomp.c/target-6.c: New test.
12930 * testsuite/libgomp.c/target-7.c: New test.
12931 * testsuite/libgomp.c/taskgroup-1.c: New test.
12932 * testsuite/libgomp.c/thread-limit-1.c: New test.
12933 * testsuite/libgomp.c/thread-limit-2.c: New test.
12934 * testsuite/libgomp.c/thread-limit-3.c: New test.
12935 * testsuite/libgomp.c/udr-1.c: New test.
12936 * testsuite/libgomp.c/udr-2.c: New test.
12937 * testsuite/libgomp.c/udr-3.c: New test.
12938 * testsuite/libgomp.c++/affinity-1.C: New test.
12939 * testsuite/libgomp.c++/atomic-10.C: New test.
12940 * testsuite/libgomp.c++/atomic-11.C: New test.
12941 * testsuite/libgomp.c++/atomic-12.C: New test.
12942 * testsuite/libgomp.c++/atomic-13.C: New test.
12943 * testsuite/libgomp.c++/atomic-14.C: New test.
12944 * testsuite/libgomp.c++/atomic-15.C: New test.
12945 * testsuite/libgomp.c++/cancel-for-1.C: New test.
12946 * testsuite/libgomp.c++/cancel-for-2.C: New test.
12947 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12948 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12949 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12950 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12951 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12952 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12953 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12954 * testsuite/libgomp.c++/cancel-test.h: New file.
12955 * testsuite/libgomp.c++/for-9.C: New test.
12956 * testsuite/libgomp.c++/for-10.C: New test.
12957 * testsuite/libgomp.c++/for-11.C: New test.
12958 * testsuite/libgomp.c++/simd-1.C: New test.
12959 * testsuite/libgomp.c++/simd-2.C: New test.
12960 * testsuite/libgomp.c++/simd-3.C: New test.
12961 * testsuite/libgomp.c++/simd-4.C: New test.
12962 * testsuite/libgomp.c++/simd-5.C: New test.
12963 * testsuite/libgomp.c++/simd-6.C: New test.
12964 * testsuite/libgomp.c++/simd-7.C: New test.
12965 * testsuite/libgomp.c++/simd-8.C: New test.
12966 * testsuite/libgomp.c++/target-1.C: New test.
12967 * testsuite/libgomp.c++/target-2.C: New test.
12968 * testsuite/libgomp.c++/target-2-aux.cc: New file.
12969 * testsuite/libgomp.c++/target-3.C: New test.
12970 * testsuite/libgomp.c++/taskgroup-1.C: New test.
12971 * testsuite/libgomp.c++/udr-1.C: New test.
12972 * testsuite/libgomp.c++/udr-2.C: New test.
12973 * testsuite/libgomp.c++/udr-3.C: New test.
12974 * testsuite/libgomp.c++/udr-4.C: New test.
12975 * testsuite/libgomp.c++/udr-5.C: New test.
12976 * testsuite/libgomp.c++/udr-6.C: New test.
12977 * testsuite/libgomp.c++/udr-7.C: New test.
12978 * testsuite/libgomp.c++/udr-8.C: New test.
12979 * testsuite/libgomp.c++/udr-9.C: New test.
12981 2013-09-20 Jakub Jelinek <jakub@redhat.com>
12984 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12987 2013-09-20 Alan Modra <amodra@gmail.com>
12989 * configure: Regenerate.
12991 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12993 * testsuite/libgomp.c/sections-2.c: New test.
12995 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
12997 * testsuite/libgomp.fortran/strassen.f90:
12998 Add dg-skip-if aarch64_tiny.
13000 2013-06-20 Iain Sandoe <iain@codesourcery.com>
13001 Cesar Philippidis <cesar@codesourcery.com>
13003 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
13004 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
13005 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
13006 * testsuite/libgomp.fortran/fortran.exp: Likewise.
13007 * testsuite/libgomp.graphite/graphite.exp: Likewise.
13008 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
13009 Use dg-runtest rather than gfortran-dg-runtest.
13011 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
13013 * testsuite/libgomp.c/icv-2.c: Extend current handling of
13014 Linux-based x86 systems to cover all GNU systems.
13015 * testsuite/libgomp.c/lock-3.c: Likewise.
13016 * testsuite/libgomp.c/pr48591.c: Likewise.
13018 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
13020 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
13021 GNU/Hurd, as done for Linux-based systems.
13023 * config/posix/ptrlock.h: Fix comment.
13025 2013-05-27 Tobias Burnus <burnus@net-b.de>
13028 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
13029 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
13030 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
13031 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
13032 omp_destroy_nest_lock): Correct arguments to match the one in
13034 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
13035 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
13036 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
13037 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
13039 2013-05-16 Jakub Jelinek <jakub@redhat.com>
13041 * testsuite/libgomp.c/loop-13.c: New test.
13042 * testsuite/libgomp.c/loop-14.c: New test.
13043 * testsuite/libgomp.c/loop-15.c: New test.
13044 * testsuite/libgomp.c++/loop-13.C: New test.
13045 * testsuite/libgomp.c++/loop-14.C: New test.
13046 * testsuite/libgomp.c++/loop-15.C: New test.
13048 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13050 PR middle-end/56217
13051 * testsuite/libgomp.c++/pr56217.C: New test.
13053 2013-02-01 Alan Modra <amodra@gmail.com>
13055 * task.c (GOMP_task, GOMP_taskwait): Comment.
13057 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
13058 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
13061 * config/linux/wait.h (do_spin): Use atomic load for addr.
13062 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
13063 for intptr and ptrlock.
13064 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
13067 2013-01-22 Alan Modra <amodra@gmail.com>
13071 * task.c (GOMP_task): Revert 2011-12-09 change.
13072 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
13073 barrier to read task->children..
13074 (gomp_barrier_handle_tasks): ..and matching atomic store with
13075 release barrier here when setting parent->children to NULL.
13077 2013-01-16 Jakub Jelinek <jakub@redhat.com>
13078 Tobias Burnus <burnus@net-b.de>
13081 * testsuite/libgomp.fortran/fortran.exp: Use
13082 -fintrinsic-modules-path= instead of
13083 -fintrinsic-modules-path.
13085 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
13087 Update copyright years.
13089 2012-12-19 Tobias Burnus <burnus@net-b.de>
13091 * testsuite/libgomp.fortran/fortran.exp: Set
13092 -fintrinsic-modules-path.
13094 2012-12-19 Tobias Burnus <burnus@net-b.de>
13096 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
13097 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
13099 2012-11-21 Jakub Jelinek <jakub@redhat.com>
13102 * team.c (gomp_free_thread): Decrease gomp_managed_threads
13103 if pool had any threads_used.
13105 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
13107 * testsuite/libgomp.c++/pr24455.C: Use
13108 -Wl,-undefined,dynamic_lookup on darwin.
13110 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
13112 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
13114 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
13116 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13118 2012-10-23 Ian Bolton <ian.bolton@arm.com>
13119 Jim MacArthur <jim.macarthur@arm.com>
13120 Marcus Shawcroft <marcus.shawcroft@arm.com>
13121 Nigel Stephens <nigel.stephens@arm.com>
13122 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13123 Richard Earnshaw <rearnsha@arm.com>
13124 Sofiane Naci <sofiane.naci@arm.com>
13125 Stephen Thomas <stephen.thomas@arm.com>
13126 Tejas Belagod <tejas.belagod@arm.com>
13127 Yufeng Zhang <yufeng.zhang@arm.com>
13129 * configure.tgt: Add AArch64.
13131 2012-10-04 Jason Merrill <jason@redhat.com>
13133 * testsuite/libgomp.c++/tls-init1.C: New.
13135 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
13137 * configure: Regenerated.
13139 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
13141 * config/linux/mips/futex.h (sys_futex0): Change to static
13142 function with noinline, nomips16 attributes under MIPS16. Adjust
13143 asm statement to place 'li v0,SYS_futex' immediately before
13146 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
13148 * libgomp.texi (Library Index): Renamed from "Index" to prevent
13149 conflict with index.html on case-insensitive file systems.
13151 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
13153 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
13154 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
13156 2012-07-02 Richard Guenther <rguenther@suse.de>
13157 Michael Matz <matz@suse.de>
13158 Tobias Grosser <tobias@grosser.es>
13159 Sebastian Pop <sebpop@gmail.com>
13161 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13162 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13163 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13164 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13166 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
13168 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13170 2012-06-22 Richard Guenther <rguenther@suse.de>
13172 Merge from graphite branch
13173 2012-01-13 Tobias Grosser <tobias@grosser.es>
13175 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13176 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13178 2012-06-07 Jakub Jelinek <jakub@redhat.com>
13180 PR middle-end/53580
13181 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13182 use GOMP_barrier () call instead.
13183 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13184 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13185 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13186 call GOMP_barrier instead.
13187 * testsuite/libgomp.fortran/vla5.f90: Likewise.
13189 2012-06-06 Jakub Jelinek <jakub@redhat.com>
13192 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13193 argument to memset call.
13195 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
13197 * configure: Regenerated.
13199 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13201 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13203 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
13206 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13208 2012-03-22 Jakub Jelinek <jakub@redhat.com>
13210 PR middle-end/52547
13211 * testsuite/libgomp.c/pr52547.c: New test.
13213 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13215 * testsuite/lib/libgomp.exp: load fortran-modules.exp
13217 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13219 * configure.tgt (mips-sgi-irix6*): Remove.
13221 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13223 * configure.tgt (alpha*-dec-osf*): Remove.
13225 * config/osf/sem.h: Remove.
13226 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13228 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
13230 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13232 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13235 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13236 Remove ENABLE_SYMVERS_SOL2.
13237 * configure: Regenerate.
13238 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13239 (PREPROCESS): New variable.
13240 (libgomp.ver): New target.
13241 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13242 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13243 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13245 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13246 * Makefile.in: Regenerate.
13248 2012-02-14 Walter Lee <walt@tilera.com>
13250 * configure.tgt: Handle tilegx and tilepro.
13251 * config/linux/tile/futex.h: New file.
13253 2012-02-08 Richard Guenther <rguenther@suse.de>
13255 PR tree-optimization/46886
13256 * testsuite/libgomp.c/pr46886.c: New testcase.
13258 2012-01-25 Matthias Klose <doko@ubuntu.com>
13260 * config/linux/arm: Remove empty directory.
13261 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13263 2011-12-09 Alan Modra <amodra@gmail.com>
13266 * task.c (GOMP_taskwait): Don't access task->children outside of
13267 task_lock mutex region.
13268 (GOMP_task): Likewise.
13270 2011-12-06 Jakub Jelinek <jakub@redhat.com>
13273 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13275 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13276 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13277 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13278 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13279 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13281 2011-12-02 Alan Modra <amodra@gmail.com>
13283 * config/linux/affinity.c: Use atomic rather than sync builtin.
13284 * config/linux/lock.c: Likewise.
13285 * config/linux/ptrlock.h: Likewise.
13286 * config/linux/ptrlock.c: Likewise.
13287 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13288 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13289 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13290 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13291 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13292 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13293 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13294 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13295 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13296 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13298 2011-11-30 Alan Modra <amodra@gmail.com>
13301 * config/linux/bar.h: Use atomic rather than sync builtins.
13302 * config/linux/bar.c: Likewise. Add missing acquire
13303 synchronisation on generation field.
13304 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13307 2011-11-30 Alan Modra <amodra@gmail.com>
13309 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13310 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13311 * config/linux/mutex.h: Use atomic rather than sync builtins.
13312 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
13313 * config/linux/omp-lock.h: Comment fix.
13314 * config/linux/arm/mutex.h: Delete.
13315 * config/linux/powerpc/mutex.h: Delete.
13316 * config/linux/ia64/mutex.h: Delete.
13317 * config/linux/mips/mutex.h: Delete.
13319 2011-11-30 Alan Modra <amodra@gmail.com>
13322 * config/linux/sem.h: Rewrite.
13323 * config/linux/sem.c: Rewrite.
13325 2011-11-28 Richard Henderson <rth@redhat.com>
13327 * libgomp.h (enum memmodel): New.
13329 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
13331 * configure: Regenerate.
13333 2011-10-10 Matthias Klose <doko@ubuntu.com>
13335 * config/posix95: Remove empty directory.
13337 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13339 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13341 2011-08-19 Jakub Jelinek <jakub@redhat.com>
13344 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13345 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13347 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13349 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13351 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13354 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13356 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
13358 * config/linux/proc.h: New.
13359 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
13360 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
13361 (gomp_init_num_threads): Update call to cpuset_popcount.
13362 (get_num_procs): Ditto.
13363 * config/linux/affinity.c (gomp_init_affinity): Call
13364 gomp_cpuset_popcount.
13366 2011-08-02 Jakub Jelinek <jakub@redhat.com>
13370 * omp.h.in (omp_in_final): New prototype.
13371 * omp_lib.f90.in (omp_in_final): New interface.
13372 (omp_integer_kind, omp_logical_kind): Remove
13373 and replace all its uses in the module with 4.
13374 (openmp_version): Change to 201107.
13375 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13376 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13377 kind for the parameters.
13378 (omp_in_final): New external.
13379 (openmp_version): Change to 201107.
13380 * task.c (omp_in_final): New function.
13381 (gomp_init_task): Initialize final_task.
13382 (GOMP_task): Remove unused attribute from flags. Handle final
13384 (GOMP_taskyield): New function.
13385 (omp_in_final): Return true if if (false) or final (true) task
13386 or descendant of final (true).
13387 * fortran.c (omp_in_final_): New function.
13388 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13389 (GOMP_3.0): Export GOMP_taskyield.
13390 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13392 (parse_unsigned_long_list): New function.
13393 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
13394 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
13395 even if parse_affinity returned false.
13396 * config/linux/affinity.c (gomp_init_affinity): Handle
13397 gomp_cpu_affinity_len == 0.
13398 * libgomp_g.h (GOMP_taskyield): New prototype.
13399 * libgomp.h (struct gomp_task): Add final_task field.
13400 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13401 * team.c (gomp_team_start): Override new task's nthreads_var icv
13402 if list form OMP_NUM_THREADS has been used and it has value for
13403 the new nesting level.
13405 * testsuite/libgomp.c/atomic-11.c: New test.
13406 * testsuite/libgomp.c/atomic-12.c: New test.
13407 * testsuite/libgomp.c/atomic-13.c: New test.
13408 * testsuite/libgomp.c/atomic-14.c: New test.
13409 * testsuite/libgomp.c/reduction-6.c: New test.
13410 * testsuite/libgomp.c/task-5.c: New test.
13411 * testsuite/libgomp.c++/atomic-2.C: New test.
13412 * testsuite/libgomp.c++/atomic-3.C: New test.
13413 * testsuite/libgomp.c++/atomic-4.C: New test.
13414 * testsuite/libgomp.c++/atomic-5.C: New test.
13415 * testsuite/libgomp.c++/atomic-6.C: New test.
13416 * testsuite/libgomp.c++/atomic-7.C: New test.
13417 * testsuite/libgomp.c++/atomic-8.C: New test.
13418 * testsuite/libgomp.c++/atomic-9.C: New test.
13419 * testsuite/libgomp.c++/task-8.C: New test.
13420 * testsuite/libgomp.c++/reduction-4.C: New test.
13421 * testsuite/libgomp.fortran/allocatable7.f90: New test.
13422 * testsuite/libgomp.fortran/allocatable8.f90: New test.
13423 * testsuite/libgomp.fortran/crayptr3.f90: New test.
13424 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13425 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13426 * testsuite/libgomp.fortran/pointer1.f90: New test.
13427 * testsuite/libgomp.fortran/pointer2.f90: New test.
13428 * testsuite/libgomp.fortran/task4.f90: New test.
13430 2011-08-02 Tobias Burnus <burnus@net-b.de>
13432 * libgomp.texi: Update OpenMP spec references to 3.1.
13433 (omp_in_final,OMP_PROC_BIND): New sections.
13434 (OMP_NUM_THREADS): Document that the value can be now a list.
13435 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13437 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
13439 * config/linux/x86/futex.h: Check __x86_64__ instead of
13442 2011-07-29 Jakub Jelinek <jakub@redhat.com>
13444 PR middle-end/49897
13445 PR middle-end/49898
13446 * testsuite/libgomp.c/pr49897-1.c: New test.
13447 * testsuite/libgomp.c/pr49897-2.c: New test.
13448 * testsuite/libgomp.c/pr49898-1.c: New test.
13449 * testsuite/libgomp.c/pr49898-2.c: New test.
13451 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13453 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13454 for ia32 instead of ilp32.
13456 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13457 * testsuite/libgomp.c/atomic-6.c: Likewise.
13459 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
13461 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13462 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13464 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13467 * config/osf/sem.h: New file.
13468 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13470 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13473 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13476 2011-07-15 Jakub Jelinek <jakub@redhat.com>
13478 * config/linux/wait.h (do_spin): New inline, largely copied
13479 from do_wait, just don't do futex_wait here, instead return true if
13481 (do_wait): Implement using do_spin.
13482 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13484 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13485 __sync_bool_compare_and_swap, pass the oldval to
13486 gomp_mutex_lock_slow.
13487 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13488 If all mutex contenders are just spinning and not sleeping, don't
13489 change state to 2 unnecessarily. Optimize the loop when state has
13490 already become 2 to use just one atomic operation per loop instead
13492 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13494 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13495 __sync_bool_compare_and_swap, pass the oldval to
13496 gomp_mutex_lock_slow.
13498 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13501 * iter.c (gomp_iter_static_next): For chunk size 0
13502 only use n ceil/ nthreads size for the first
13503 n % nthreads threads in the team instead of
13504 all threads except for the last few ones which
13505 get less work or none at all.
13506 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13507 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13508 chunk argument, set run_sched_modifier to 0 for static
13509 resp. 1 for other kinds. If chunk argument is 0
13510 and not static, set value to 1.
13512 2011-05-19 Jakub Jelinek <jakub@redhat.com>
13515 * testsuite/libgomp.c++/pr49043.C: New test.
13518 * testsuite/libgomp.c++/pr48869.C: New test.
13520 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13523 * fortran.c: Include limits.h.
13525 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13527 (omp_set_num_threads_8_, omp_set_schedule_8_,
13528 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13529 omp_get_team_size_8_): Use TO_INT macro.
13530 * testsuite/libgomp.fortran/pr48894.f90: New test.
13532 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13534 PR middle-end/48591
13535 * testsuite/libgomp.c/pr48591.c: New test.
13537 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13540 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13541 * configure: Regenerate.
13543 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13546 * testsuite/libgomp.fortran/task3.f90: New test.
13548 2011-02-24 Tobias Burnus <burnus@net-b.de>
13550 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13552 2011-02-23 Jakub Jelinek <jakub@redhat.com>
13555 * libgomp.texi (omp_get_wtime): Don't say time in the past
13556 must be Unix Epoch.
13558 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13561 * testsuite/libgomp.fortran/fortran.exp: Check for both
13562 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
13563 but $blddir != "", still append ${blddir}/${lang_library_path}
13564 to ld_library_path.
13566 2011-02-16 Tobias Burnus <burnus@net-b.de>
13569 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13570 of libquadmath.a before adding its libpath to ldflags.
13572 2011-02-14 Jakub Jelinek <jakub@redhat.com>
13575 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13576 to FUTEX_WAIT futex syscall.
13577 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13579 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13581 * configure: Regenerate.
13583 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
13586 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13588 2011-01-16 Gerald Pfeifer
13590 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13592 2010-12-14 Jakub Jelinek <jakub@redhat.com>
13595 * libgomp.fortran/allocatable6.f90: New test.
13597 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13599 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13600 * configure: Regenerate.
13602 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
13606 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13607 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13608 * aclocal.m4: Regenerate.
13609 * configure: Regenerate.
13610 * Makefile.in: Regenerate.
13611 * testsuite/Makefile.in: Regenerate.
13613 2010-12-02 Jakub Jelinek <jakub@redhat.com>
13616 * libgomp.fortran/pr46753.f90: New test.
13619 * env.c (initialize_env): Default to spin count 300000
13620 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13624 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13625 at the end if sync builtins aren't supported.
13627 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13629 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13631 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13633 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13635 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
13637 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13639 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13640 Tobias Burnus <burnus@net-b.de>
13644 * configure: Regenerate.
13646 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13648 * config/linux/futex.h: New.
13649 * config/linux/arm/mutex.h: New.
13650 * configure.tgt (arm*-*-linux*): Add config path.
13652 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
13654 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13656 2010-09-23 Tobias Burnus <burnus@net-b.de>
13658 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13659 Change Fortran datatype to LOGICAL.
13660 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13661 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13663 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13665 * configure: Regenerate.
13667 2010-07-26 Jakub Jelinek <jakub@redhat.com>
13669 * libgomp.texi: Add function keyword to a couple of Fortran
13670 interfaces, use integer instead of int for Fortran.
13672 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
13674 * libgomp.texi: Fix spelling and pasto problems throughout.
13675 Adjust prototypes to match code.
13677 2010-07-24 Tobias Burnus <burnus@net-b.de>
13679 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13680 silence -fwhole-file warning.
13682 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13684 * configure.tgt (*-*-solaris2.[56]*): Removed.
13686 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13688 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13689 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13690 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13691 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13692 targetting solaris2*.
13693 * configure: Regenerate.
13694 * config.h.in: Regenerate.
13696 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13697 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13698 Add libgomp_version_dep.
13699 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13701 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13702 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13703 * Makefile.in: Regenerate.
13705 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13706 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13707 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13708 to common block, protected by
13709 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13711 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13713 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
13715 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
13718 * configure: Regenerate.
13720 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13723 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13724 * configure: Regenerate.
13725 * Makefile.in: Regenerate.
13726 * testsuite/Makefile.in: Regenerate.
13728 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13731 * testsuite/libgomp.c/pr43893.c: New test.
13732 * testsuite/libgomp.c++/pr43893.C: New test.
13734 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13736 PR middle-end/43570
13737 * testsuite/libgomp.fortran/vla8.f90: New test.
13739 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13742 * config/linux/affinity.c (gomp_init_affinity): Decrease
13743 gomp_available_cpus if affinity mask confines the process to fewer
13745 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13746 non-NULL, just return gomp_available_cpus.
13749 * sections.c (gomp_sections_init): Initialize ws->mode.
13751 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13753 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13754 not unused bar variable.
13755 * configure: Regenerate.
13757 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13759 * Makefile.in: Regenerate.
13760 * aclocal.m4: Regenerate.
13761 * testsuite/Makefile.in: Regenerate.
13763 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13766 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13767 (initialize_env): Adjust callers.
13768 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13769 when the argument is 0.
13771 * testsuite/libgomp.c/pr42942.c: New test.
13773 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13775 PR middle-end/42644
13776 PR middle-end/42130
13777 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13778 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13780 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13782 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13783 * testsuite/libgomp.c++/task-6.C: Likewise.
13785 2010-01-28 Steve Ellcey <sje@cup.hp.com>
13787 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13789 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
13791 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13792 * configure: Regenerate.
13794 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13797 * testsuite/libgomp.fortran/allocatable5.f90: New test.
13799 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
13801 * configure.ac: Test for executability of GFORTRAN.
13802 * configure: Regenerate.
13804 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13806 * configure: Regenerate.
13808 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13811 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13813 2010-01-03 Richard Guenther <rguenther@suse.de>
13815 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13817 2009-12-23 Sebastian Pop <sebpop@gmail.com>
13819 * testsuite/libgomp.graphite/pr4118.c: New.
13821 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13823 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13824 for darwin, protect the test with require-effective-target tls_runtime.
13825 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13827 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13830 * testsuite/lib/libgomp.exp: Provide -B options to allow for
13831 link spec %s substitutions for static libraries.
13833 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
13836 * libgomp.graphite/force-parallel-2.c: Reduce array size.
13838 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13840 * Makefile.in: Regenerate.
13841 * configure: Regenerate.
13842 * testsuite/Makefile.in: Regenerate.
13844 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
13846 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13847 settings for LC_ALL and LANG.
13849 2009-11-25 Jakub Jelinek <jakub@redhat.com>
13852 * testsuite/libgomp.fortran/pr42162.f90: New test.
13854 2009-11-13 Jakub Jelinek <jakub@redhat.com>
13856 PR middle-end/42029
13857 * testsuite/libgomp.c/pr42029.c: New test.
13859 2009-10-26 Jakub Jelinek <jakub@redhat.com>
13861 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13862 *s. Accept ld version without text in ()s.
13863 * configure: Regenerated.
13865 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
13867 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13869 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13872 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13873 or a hyphen (happens with fortran language disabled).
13874 * configure: Regenerate.
13876 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13878 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13879 use sed script portable to Solaris /bin/sed for extracting ld
13881 * configure: Regenerate.
13883 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
13885 * testsuite/libgomp.graphite/bounds.c: New test.
13887 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13889 * Makefile.am (libgomp_la_LINK): New.
13890 * Makefile.in: Regenerate.
13892 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13894 * configure.ac (AC_PREREQ): Bump to 2.64.
13896 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13898 * Makefile.am (install-html, install-pdf): Remove.
13899 * Makefile.in: Regenerate.
13901 * Makefile.in: Regenerate.
13902 * aclocal.m4: Regenerate.
13903 * config.h.in: Regenerate.
13904 * configure: Regenerate.
13905 * testsuite/Makefile.in: Regenerate.
13907 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13909 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13910 * Makefile.in: Regenerate.
13912 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
13914 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13915 * Makefile.in: Regenerate.
13917 2009-08-19 Tobias Burnus <burnus@net-b.de>
13920 omp_lib.h.in: Fix -std=f95 errors.
13922 2009-08-14 David Edelsohn <edelsohn@gnu.org>
13924 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13925 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13926 * testsuite/libgomp.graphite/graphite.exp: New.
13928 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
13930 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13933 2009-08-04 David Daney <ddaney@caviumnetworks.com>
13935 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13936 needed memory barrier semantics.
13937 * config/linux/mips/mutex.h: New file.
13939 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13941 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13943 2009-07-16 Joseph Myers <joseph@codesourcery.com>
13945 * configure: Regenerate.
13947 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
13952 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13953 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13954 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13956 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
13958 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13959 options when choosing a multilib.
13961 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
13963 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13964 ld_library_path. Use add_path. Add just find_libgcc_s to
13965 ld_library_path, not every libgcc multilib directory.
13966 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13967 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13968 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13970 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13972 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
13974 * Makefile.am (LTLDFLAGS): Define.
13976 * Makefile.in: Regenerate.
13978 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
13981 * testsuite/libgomp.fortran/fortran.exp: Don't link with
13982 libgfortranbegin, check existence of libgfortran.a instead of
13983 libgfortranbegin.a.
13985 2009-05-20 Jakub Jelinek <jakub@redhat.com>
13988 * team.c (gomp_thread_start): Destroy thr->release semaphore.
13989 (gomp_free_pool_helper): Likewise.
13991 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
13992 Jakub Jelinek <jakub@redhat.com>
13995 * testsuite/libgomp.fortran/workshare2.f90: New test.
13997 2009-04-09 Nick Clifton <nickc@redhat.com>
13999 * iter.c: Change copyright header to refer to version 3 of the
14000 GNU General Public License with version 3.1 of the GCC Runtime
14001 Library Exception and to point readers at the COPYING3 and
14002 COPYING3.RUNTIME files and the FSF's license web page.
14003 * alloc.c: Likewise.
14004 * barrier.c: Likewise.
14005 * config/bsd/proc.c: Likewise.
14006 * config/linux/affinity.c: Likewise.
14007 * config/linux/alpha/futex.h: Likewise.
14008 * config/linux/bar.c: Likewise.
14009 * config/linux/bar.h: Likewise.
14010 * config/linux/ia64/futex.h: Likewise.
14011 * config/linux/ia64/mutex.h: Likewise.
14012 * config/linux/lock.c: Likewise.
14013 * config/linux/mips/futex.h: Likewise.
14014 * config/linux/mutex.c: Likewise.
14015 * config/linux/mutex.h: Likewise.
14016 * config/linux/powerpc/futex.h: Likewise.
14017 * config/linux/proc.c: Likewise.
14018 * config/linux/ptrlock.c: Likewise.
14019 * config/linux/ptrlock.h: Likewise.
14020 * config/linux/s390/futex.h: Likewise.
14021 * config/linux/sem.c: Likewise.
14022 * config/linux/sem.h: Likewise.
14023 * config/linux/sparc/futex.h: Likewise.
14024 * config/linux/wait.h: Likewise.
14025 * config/linux/x86/futex.h: Likewise.
14026 * config/mingw32/proc.c: Likewise.
14027 * config/mingw32/time.c: Likewise.
14028 * config/posix/affinity.c: Likewise.
14029 * config/posix/bar.c: Likewise.
14030 * config/posix/bar.h: Likewise.
14031 * config/posix/lock.c: Likewise.
14032 * config/posix/mutex.h: Likewise.
14033 * config/posix/proc.c: Likewise.
14034 * config/posix/ptrlock.h: Likewise.
14035 * config/posix/sem.c: Likewise.
14036 * config/posix/sem.h: Likewise.
14037 * config/posix/time.c: Likewise.
14038 * config/posix95/lock.c: Likewise.
14039 * critical.c: Likewise.
14041 * error.c: Likewise.
14042 * fortran.c: Likewise.
14043 * iter_ull.c: Likewise.
14044 * libgomp.h: Likewise.
14045 * libgomp_f.h.in: Likewise.
14046 * libgomp_g.h: Likewise.
14047 * loop.c: Likewise.
14048 * loop_ull.c: Likewise.
14049 * omp.h.in: Likewise.
14050 * omp_lib.f90.in: Likewise.
14051 * omp_lib.h.in: Likewise.
14052 * ordered.c: Likewise.
14053 * parallel.c: Likewise.
14054 * sections.c: Likewise.
14055 * single.c: Likewise.
14056 * task.c: Likewise.
14057 * team.c: Likewise.
14058 * work.c: Likewise.
14060 2009-04-09 Jakub Jelinek <jakub@redhat.com>
14062 * testsuite/config/default.exp: Change copyright header to refer to
14063 version 3 of the GNU General Public License and to point readers
14064 at the COPYING3 file and the FSF's license web page.
14066 2009-04-08 Jakub Jelinek <jakub@redhat.com>
14068 PR middle-end/39573
14069 * libgomp.c++/pr39573.C: New test.
14071 2009-04-01 Jakub Jelinek <jakub@redhat.com>
14074 * testsuite/libgomp.c/pr39591-1.c: New test.
14075 * testsuite/libgomp.c/pr39591-2.c: New test.
14076 * testsuite/libgomp.c/pr39591-3.c: New test.
14078 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
14080 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
14081 * testsuite/libgomp.c/atomic-6.c: Ditto.
14083 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14086 * testsuite/libgomp.c/loop-12.c: New test.
14087 * testsuite/libgomp.c/loop-11.c: New test.
14088 * testsuite/libgomp.c++/loop-11.C: New test.
14089 * testsuite/libgomp.c++/loop-12.C: New test.
14090 * testsuite/libgomp.c++/for-8.C: New test.
14092 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14094 * configure: Regenerate.
14096 2009-02-11 Jakub Jelinek <jakub@redhat.com>
14098 PR middle-end/39154
14099 * testsuite/libgomp.c/pr39154.c: New test.
14101 2009-01-30 Ian Lance Taylor <iant@google.com>
14103 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
14104 libgomp_ld_is_gold. Get gold version number.
14105 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
14106 * configure: Rebuild.
14108 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14110 * testsuite/lib/libgomp.exp: Add -B option for targets that
14111 use libgfortran.a%s in their specs.
14113 2009-01-07 Jakub Jelinek <jakub@redhat.com>
14116 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
14117 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
14118 HAVE_AS_SYMVER_DIRECTIVE is not defined.
14119 * configure: Regenerated.
14120 * config.h.in: Likewise.
14122 2008-12-28 Jakub Jelinek <jakub@redhat.com>
14125 * testsuite/libgomp.c/pr38650.c: New test.
14126 * testsuite/libgomp.c++/pr38650.C: New test.
14128 2008-12-27 Jakub Jelinek <jakub@redhat.com>
14130 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
14132 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
14134 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
14136 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14138 * configure: Regenerate.
14140 2008-12-08 Jakub Jelinek <jakub@redhat.com>
14142 PR middle-end/36802
14143 * testsuite/libgomp.c/pr36802-1.c: New test.
14144 * testsuite/libgomp.c/pr36802-2.c: New test.
14145 * testsuite/libgomp.c/pr36802-3.c: New test.
14147 2008-12-01 Janis Johnson <janis187@us.ibm.com>
14150 * config/linux/powerpc/mutex.h: New.
14152 2008-12-01 Jakub Jelinek <jakub@redhat.com>
14155 * testsuite/libgomp.c++/for-7.C: New test.
14158 * testsuite/libgomp.c++/for-6.C: New test.
14160 2008-11-26 Janis Johnson <janis187@us.ibm.com>
14163 * testsuite/lib/libgomp.exp: Include new timeout library files.
14164 (libgomp_target_compile): Set timeout value from new proc.
14166 2008-11-13 Steve Ellcey <sje@cup.hp.com>
14169 * config/linux/ia64/mutex.h: New.
14171 2008-11-04 Tobias Burnus <burnus@net-b.de>
14174 * libgomp.texi (Runtime library routines, environment variables):
14175 Update for OpenMP version 3.0.
14177 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
14178 Steve Ellcey <sje@cup.hp.com>
14180 * configure: Regenerate for new libtool.
14181 * Makefile.in: Ditto.
14182 * testsuite/Makefile.in: Ditto.
14184 2008-09-19 Jakub Jelinek <jakub@redhat.com>
14185 Andreas Tobler <a.tobler@schweiz.org>
14187 * config/bsd/proc.c: New file.
14188 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14189 * configure.ac: Check for header <sys/sysctl.h>
14190 * configure: Regenerate.
14191 * config.h.in: Likewise.
14193 2008-09-05 Janis Johnson <janis187@us.ibm.com>
14195 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14197 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14199 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14200 * Makefile.in: Regenerated.
14201 * testsuite/Makefile.in: Regenerated.
14203 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
14205 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14206 depend on blddir if blddir exists.
14207 (libgomp_target_compile): Likewise.
14208 * testsuite/libgomp.c++/c++.exp: Likewise.
14209 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14211 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14213 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
14214 Do not list GPL as Invariant Section.
14216 2008-07-28 Ilie Garbacea <ilie@mips.com>
14217 Chao-ying Fu <fu@mips.com>
14219 * configure.tgt: Enable futex for MIPS.
14220 * config/linux/mips/futex.h: New file.
14222 2008-07-16 Jakub Jelinek <jakub@redhat.com>
14224 * team.c (gomp_team_end): Free team immediately if it has
14227 2008-07-08 David Edelsohn <edelsohn@gnu.org>
14229 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14230 * testsuite/libgomp.fortran/fortran.exp: Same.
14231 * testsuite/libgomp.c/c.exp: Same.
14232 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14233 directory to library path first.
14235 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
14237 * env.c (parse_stacksize): Add cast to avoid warning.
14238 (parse_spincount): Likewise.
14240 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14242 * testsuite/libgomp.c/loop-10.c: New test.
14243 * libgomp.c/loop-3.c (main): Add lastprivate clause.
14244 * libgomp.c++/loop-6.C (main): Likewise.
14247 * testsuite/libgomp.c/debug-1.c: New test.
14249 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14251 * testsuite/libgomp.c/nqueens-1.c: New test.
14254 * testsuite/libgomp.c++/task-7.C: New function.
14256 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14258 * configure: Regenerate.
14260 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14262 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14263 mutex when HAVE_SYNC_BUILTINS isn't defined.
14265 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14267 * libgomp.texi (omp_test_lock): Fix typo.
14269 2008-06-12 Tobias Burnus <burnus@net-b.de>
14271 * omp_lib.f90.in: Add "implicit none".
14273 2008-06-12 Jakub Jelinek <jakub@redhat.com>
14275 PR middle-end/36506
14276 * testsuite/libgomp.c/reduction-5.c: New test.
14278 2008-06-11 Jakub Jelinek <jakub@redhat.com>
14280 * libgomp.h (struct gomp_task): Add in_tied_task field.
14281 * task.c (gomp_init_task): Initialize it.
14282 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
14283 unconditionally. Don't call gomp_team_barrier_wake if
14284 current task is implicit or if(0) from implicit and number of
14285 running tasks is equal to nthreads - 1.
14288 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14289 omp_get_team_size_8): Fix pastos.
14292 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14293 * configure: Regenerated.
14294 * config.h.in: Regenerated.
14295 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14298 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
14301 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14302 (GOMP_loop_ull_dynamic_start): Likewise.
14303 (GOMP_loop_ull_guided_start): Likewise.
14304 (GOMP_loop_ull_ordered_static_start): Likewise.
14305 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14306 (GOMP_loop_ull_ordered_guided_start): Likewise.
14308 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14309 Richard Henderson <rth@redhat.com>
14310 Ulrich Drepper <drepper@redhat.com>
14311 Jakob Blomer <jakob.blomer@ira.uka.de>
14313 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14314 Substitute also OMP_*LOCK_25*.
14315 * configure: Regenerated.
14316 * config.h.in: Regenerated.
14317 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14318 ptrlock.c and task.c.
14319 * Makefile.in: Regenerated.
14320 * testsuite/Makefile.in: Regenerated.
14321 * task.c: New file.
14322 * loop_ull.c: New file.
14323 * iter_ull.c: New file.
14324 * libgomp.h: Include ptrlock.h.
14325 (enum gomp_task_kind): New type.
14326 (struct gomp_team): Add task_lock, task_queue, task_count,
14327 task_running_count, single_count fields. Add
14328 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14329 Remove work_share_lock, generation_mask,
14330 oldest_live_gen, num_live_gen and init_work_shares fields, add
14331 work work_share_list_alloc, work_share_list_free and work_share_chunk
14332 fields. Change work_shares from pointer to pointers into an array.
14333 Change ordered_release field into gomp_sem_t ** from flexible array
14334 member. Add implicit_task and initial_work_shares fields.
14335 Move close to the end of the struct.
14336 (struct gomp_team_state): Add single_count, last_work_share,
14337 active_level and level fields, remove work_share_generation.
14338 (gomp_barrier_handle_tasks): New prototype.
14339 (gomp_finish_task): New inline function.
14340 (struct gomp_work_share): Move chunk_size, end, incr into
14341 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14342 next_ll fields. Reshuffle fields. Add next_alloc,
14343 next_ws, next_free and inline_ordered_team_ids fields, change
14344 ordered_team_ids into pointer from flexible array member.
14345 Add mode field. Put lock and next into a different cache line
14346 from most of the write-once fields.
14347 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14348 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14349 gomp_iter_ull_guided_next): New prototypes.
14350 (gomp_new_icv): New prototype.
14351 (struct gomp_thread): Add thread_pool and task fields.
14352 (struct gomp_thread_pool): New type.
14353 (gomp_new_team): New prototype.
14354 (gomp_team_start): Change type of last argument.
14355 (gomp_new_work_share): Removed.
14356 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14357 (gomp_work_share_init_done): New static inline.
14358 (gomp_throttled_spin_count_var, gomp_available_cpus,
14359 gomp_managed_threads): New extern decls.
14360 (gomp_init_task): New prototype.
14361 (gomp_spin_count_var): New extern var decl.
14362 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14363 or no alias support, or if not PIC.
14364 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14365 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14366 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14367 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14368 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14369 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14370 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14371 gomp_test_nest_lock_25): New prototypes.
14372 (omp_lock_symver, strong_alias): Define.
14373 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14375 (gomp_end_task): New.
14376 (struct gomp_task_icv, gomp_global_icv): New.
14377 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14378 (struct gomp_task): New.
14379 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14380 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14382 (gomp_schedule_type): Reorder enum to match
14384 * team.c (struct gomp_thread_start_data): Add thread_pool and task
14386 (gomp_thread_start): Add gomp_team_barrier_wait call.
14387 For non-nested case remove clearing of docked thread thr fields.
14388 Use pool fields instead of global gomp_* variables. Use
14389 gomp_barrier_wait_last when needed. Initialize ts.active_level.
14390 Create tasks for each member thread.
14391 (free_team): Only destroy team barrier, task_lock here and free it.
14392 (gomp_free_thread): Free last_team if non-NULL.
14393 (gomp_team_end): Call gomp_team_barrier_wait instead of
14394 gomp_barrier_wait. For nested case call one extra
14395 gomp_barrier_wait. Move here some destruction from free_team.
14396 Call free_team on pool->last_team if any, rather than freeing
14397 current team. Destroy work_share_list_free_lock ifndef
14398 HAVE_SYNC_BUILTINS.
14399 (gomp_new_icv): New function.
14400 (gomp_threads, gomp_threads_size, gomp_threads_used,
14401 gomp_threads_dock): Removed.
14402 (gomp_thread_destructor): New variable.
14403 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14405 (gomp_team_start): Create new pool if current thread doesn't have
14406 one. Use pool fields instead of global gomp_* variables.
14407 Initialize thread_pool field for new threads. Clear single_count.
14408 Change last argument from ws to team, don't create
14409 new team, set ts.work_share to &team->work_shares[0] and clear
14410 ts.last_work_share. Don't clear ts.work_share_generation.
14411 If number of threads changed, adjust atomically gomp_managed_threads.
14412 Use gomp_init_task instead of gomp_new_task,
14413 set thr->task to the corresponding implicit_task array entry.
14414 Create tasks for each member thread. Initialize ts.level.
14415 (initialize_team): Call pthread_key_create on
14416 gomp_thread_destructor.
14417 (team_destructor): New function.
14418 (new_team): Removed.
14419 (gomp_new_team): New function.
14420 (free_team): Free gomp_work_share blocks chained through next_alloc,
14421 instead of freeing work_shares and destroying work_share_lock.
14422 (gomp_team_end): Call gomp_fini_work_share. If number of threads
14423 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
14424 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14425 of gomp_barrier_wait.
14426 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14427 instead of gomp_barrier_wait. Call gomp_work_share_init_done
14428 if gomp_work_share_start returned true. Don't unlock ws->lock.
14429 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14430 of gomp_barrier_wait.
14431 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
14432 gomp_work_share_init_done if gomp_work_share_start returned true.
14433 Don't unlock ws->lock.
14434 * work.c: Include stddef.h.
14435 (free_work_share): Use work_share_list_free_lock instead
14436 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
14437 Call gomp_fini_work_share and then either free ws if orphaned, or
14438 put it into work_share_list_free list of the current team.
14439 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14441 (gomp_work_share_start, gomp_work_share_end,
14442 gomp_work_share_end_nowait): Rewritten.
14443 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14444 (openmp_version): Set to 200805.
14445 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14446 omp_sched_guided, omp_sched_auto): New parameters.
14447 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14448 omp_set_max_active_levels, omp_get_max_active_levels,
14449 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14450 omp_get_active_level): New interfaces.
14451 * omp_lib.h.in (openmp_version): Set to 200805.
14452 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14453 omp_sched_guided, omp_sched_auto): New parameters.
14454 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14455 omp_set_max_active_levels, omp_get_max_active_levels,
14456 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14457 omp_get_active_level): New externals.
14458 * loop.c: Include limits.h.
14459 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14461 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14462 Likewise. Use gomp_icv.
14463 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14464 ts.static_trip here.
14465 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14466 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
14467 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14468 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
14469 don't unlock ws->lock, otherwise lock it.
14470 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14471 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
14472 (gomp_parallel_loop_start): Call gomp_new_team instead of
14473 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
14474 Adjust gomp_team_start caller. Pass 0 as second argument to
14475 gomp_resolve_num_threads.
14476 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14477 If adding ws->chunk_size nthreads + 1 times after end won't
14478 overflow, set ws->mode to 1.
14479 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14480 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14481 GOMP_loop_ull_ordered_static_start,
14482 GOMP_loop_ull_ordered_dynamic_start,
14483 GOMP_loop_ull_ordered_guided_start,
14484 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14485 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14486 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14487 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14488 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14490 * libgomp.map: Export lock routines also @@OMP_2.0.
14491 (GOMP_loop_ordered_dynamic_first,
14492 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14493 GOMP_loop_ordered_static_first): Remove.
14494 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14495 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14496 GOMP_loop_ull_ordered_dynamic_next,
14497 GOMP_loop_ull_ordered_dynamic_start,
14498 GOMP_loop_ull_ordered_guided_next,
14499 GOMP_loop_ull_ordered_guided_start,
14500 GOMP_loop_ull_ordered_runtime_next,
14501 GOMP_loop_ull_ordered_runtime_start,
14502 GOMP_loop_ull_ordered_static_next,
14503 GOMP_loop_ull_ordered_static_start,
14504 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14505 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14506 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14507 (omp_set_schedule, omp_get_schedule,
14508 omp_get_thread_limit, omp_set_max_active_levels,
14509 omp_get_max_active_levels, omp_get_level,
14510 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14511 omp_set_schedule_, omp_set_schedule_8_,
14512 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14513 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14514 omp_get_max_active_levels_, omp_get_level_,
14515 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14516 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14517 New exports @@OMP_3.0.
14518 * omp.h.in (omp_sched_t): New type.
14519 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14520 omp_set_max_active_levels, omp_get_max_active_levels,
14521 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14522 omp_get_active_level): New prototypes.
14523 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14524 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14525 gomp_thread_limit_var, gomp_remaining_threads_count,
14526 gomp_remaining_threads_lock): New variables.
14527 (parse_spincount): New function.
14528 (initialize_env): Call gomp_init_num_threads unconditionally.
14529 Initialize gomp_available_cpus. Call parse_spincount,
14530 initialize gomp_{,throttled_}spin_count_var
14531 depending on presence and value of OMP_WAIT_POLICY and
14532 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
14533 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14534 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
14535 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
14536 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
14537 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14538 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14539 (gomp_global_icv): New.
14540 (parse_schedule): Use it. Parse "auto".
14541 (omp_set_num_threads): Use gomp_icv.
14542 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14544 (omp_get_max_threads): Move from parallel.c.
14545 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14546 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14548 (parse_stacksize, parse_wait_policy): New functions.
14549 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14550 both wrappers for compatibility and new locks.
14551 (omp_set_schedule, omp_get_schedule,
14552 omp_get_thread_limit, omp_set_max_active_levels,
14553 omp_get_max_active_levels, omp_get_level,
14554 omp_get_ancestor_thread_num, omp_get_team_size,
14555 omp_get_active_level): New ialias_redirect.
14556 (omp_set_schedule_, omp_set_schedule_8_,
14557 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14558 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14559 omp_get_max_active_levels_, omp_get_level_,
14560 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14561 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14563 * parallel.c: Include limits.h.
14564 (gomp_resolve_num_threads): Add count argument. Rewritten.
14565 (GOMP_parallel_start): Call gomp_new_team and pass that as last
14566 argument to gomp_team_start. Pass 0 as second argument to
14567 gomp_resolve_num_threads.
14568 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14569 if gomp_thread_limit_var != ULONG_MAX.
14570 (omp_in_parallel): Implement using ts.active_level.
14571 (omp_get_max_threads): Move to env.c.
14572 (omp_get_level, omp_get_ancestor_thread_num,
14573 omp_get_team_size, omp_get_active_level): New functions,
14575 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14576 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
14577 gomp_iter_dynamic_next instead of the _locked variant and don't take
14578 lock around it, otherwise acquire it before calling
14579 gomp_iter_dynamic_next_locked.
14580 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14581 gomp_iter_dynamic_next instead of the _locked variant and don't take
14583 (GOMP_parallel_sections_start): Call gomp_new_team instead of
14584 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
14585 Adjust gomp_team_start caller. Pass count as second argument to
14586 gomp_resolve_num_threads, don't adjust num_threads after the call.
14588 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14589 ws->chunk_size by incr.
14590 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
14592 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14594 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14595 (omp_check_defines): Check even the compat defines.
14596 * config/linux/ptrlock.c: New file.
14597 * config/linux/ptrlock.h: New file.
14598 * config/linux/wait.h: New file.
14599 * config/posix/ptrlock.c: New file.
14600 * config/posix/ptrlock.h: New file.
14601 * config/linux/bar.h (gomp_team_barrier_wait,
14602 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14603 (gomp_team_barrier_set_task_pending,
14604 gomp_team_barrier_clear_task_pending,
14605 gomp_team_barrier_set_waiting_for_tasks,
14606 gomp_team_barrier_waiting_for_tasks,
14607 gomp_team_barrier_done): New inlines.
14608 (gomp_barrier_t): Rewritten.
14609 (gomp_barrier_state_t): New typedef.
14610 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14611 gomp_barrier_wait_start): Rewritten.
14612 (gomp_barrier_wait_end): Change second argument to
14613 gomp_barrier_state_t.
14614 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14616 * config/linux/bar.c: Include wait.h instead of libgomp.h and
14618 (gomp_barrier_wait_end): Rewritten.
14619 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14620 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14621 * config/posix/bar.h (gomp_barrier_t): Add generation field.
14622 (gomp_barrier_state_t): New typedef.
14623 (gomp_team_barrier_wait,
14624 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14625 (gomp_barrier_wait_start): Or all but low 2 bits from generation
14626 into the return value. Return gomp_barrier_state_t.
14627 (gomp_team_barrier_set_task_pending,
14628 gomp_team_barrier_clear_task_pending,
14629 gomp_team_barrier_set_waiting_for_tasks,
14630 gomp_team_barrier_waiting_for_tasks,
14631 gomp_team_barrier_done): New inlines.
14632 (gomp_barrier_wait_end): Change second argument to
14633 gomp_barrier_state_t.
14634 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14636 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14637 (gomp_barrier_wait_end): Change second argument to
14638 gomp_barrier_state_t.
14639 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14640 gomp_team_barrier_wake): New functions.
14641 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14643 (gomp_futex_wake, gomp_futex_wait): New variables.
14644 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14645 * config/linux/lock.c: Rewrite to make locks task owned,
14646 for backwards compatibility provide the old entrypoints
14647 if symbol versioning. Include wait.h instead of libgomp.h and
14649 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14650 * config/posix95/lock.c: Rewrite to make locks task owned,
14651 for backwards compatibility provide the old entrypoints
14652 if symbol versioning.
14653 * config/posix/lock.c: Rewrite to make locks task owned,
14654 for backwards compatibility provide the old entrypoints
14655 if symbol versioning.
14656 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14657 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14658 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14659 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14660 (sys_futex0): Return error code.
14661 (futex_wake, futex_wait): If ENOSYS was returned, clear
14662 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14663 (cpu_relax, atomic_write_barrier): New static inlines.
14664 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14665 (futex_wake, futex_wait): If ENOSYS was returned, clear
14666 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14667 (cpu_relax, atomic_write_barrier): New static inlines.
14668 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14669 (sys_futex0): Return error code.
14670 (futex_wake, futex_wait): If ENOSYS was returned, clear
14671 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14672 (cpu_relax, atomic_write_barrier): New static inlines.
14673 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14674 (sys_futex0): Return error code.
14675 (futex_wake, futex_wait): If ENOSYS was returned, clear
14676 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14677 (cpu_relax, atomic_write_barrier): New static inlines.
14678 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14679 (sys_futex0): Return error code.
14680 (futex_wake, futex_wait): If ENOSYS was returned, clear
14681 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14682 (cpu_relax, atomic_write_barrier): New static inlines.
14683 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14684 (sys_futex0): Return error code.
14685 (futex_wake, futex_wait): If ENOSYS was returned, clear
14686 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14687 (cpu_relax, atomic_write_barrier): New static inlines.
14688 * config/linux/sem.c: Include wait.h instead of libgomp.h and
14690 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14691 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14692 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14694 (omp_nest_lock_t): Change owner into void *, add lock field.
14695 * config/posix95/omp-lock.h: Include semaphore.h.
14696 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14697 (omp_lock_t): Use sem_t instead of mutex if semaphores
14699 (omp_nest_lock_t): Likewise. Change owner to void *.
14700 * config/posix/omp-lock.h: Include semaphore.h.
14701 (omp_lock_25_t, omp_nest_lock_25_t): New types.
14702 (omp_lock_t): Use sem_t instead of mutex if semaphores
14704 (omp_nest_lock_t): Likewise. Add owner field.
14706 2008-06-06 Jakub Jelinek <jakub@redhat.com>
14708 * testsuite/libgomp.c/collapse-1.c: New test.
14709 * testsuite/libgomp.c/collapse-2.c: New test.
14710 * testsuite/libgomp.c/collapse-3.c: New test.
14711 * testsuite/libgomp.c/icv-1.c: New test.
14712 * testsuite/libgomp.c/icv-2.c: New test.
14713 * testsuite/libgomp.c/lib-2.c: New test.
14714 * testsuite/libgomp.c/lock-1.c: New test.
14715 * testsuite/libgomp.c/lock-2.c: New test.
14716 * testsuite/libgomp.c/lock-3.c: New test.
14717 * testsuite/libgomp.c/loop-4.c: New test.
14718 * testsuite/libgomp.c/loop-5.c: New test.
14719 * testsuite/libgomp.c/loop-6.c: New test.
14720 * testsuite/libgomp.c/loop-7.c: New test.
14721 * testsuite/libgomp.c/loop-8.c: New test.
14722 * testsuite/libgomp.c/loop-9.c: New test.
14723 * testsuite/libgomp.c/nested-3.c: New test.
14724 * testsuite/libgomp.c/nestedfn-6.c: New test.
14725 * testsuite/libgomp.c/sort-1.c: New test.
14726 * testsuite/libgomp.c/task-1.c: New test.
14727 * testsuite/libgomp.c/task-2.c: New test.
14728 * testsuite/libgomp.c/task-3.c: New test.
14729 * testsuite/libgomp.c/task-4.c: New test.
14730 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14731 to C++ testsuite default compiler options.
14732 * testsuite/libgomp.c++/collapse-1.C: New test.
14733 * testsuite/libgomp.c++/collapse-2.C: New test.
14734 * testsuite/libgomp.c++/ctor-10.C: New test.
14735 * testsuite/libgomp.c++/for-1.C: New test.
14736 * testsuite/libgomp.c++/for-2.C: New test.
14737 * testsuite/libgomp.c++/for-3.C: New test.
14738 * testsuite/libgomp.c++/for-4.C: New test.
14739 * testsuite/libgomp.c++/for-5.C: New test.
14740 * testsuite/libgomp.c++/loop-8.C: New test.
14741 * testsuite/libgomp.c++/loop-9.C: New test.
14742 * testsuite/libgomp.c++/loop-10.C: New test.
14743 * testsuite/libgomp.c++/task-1.C: New test.
14744 * testsuite/libgomp.c++/task-2.C: New test.
14745 * testsuite/libgomp.c++/task-3.C: New test.
14746 * testsuite/libgomp.c++/task-4.C: New test.
14747 * testsuite/libgomp.c++/task-5.C: New test.
14748 * testsuite/libgomp.c++/task-6.C: New test.
14749 * testsuite/libgomp.fortran/allocatable1.f90: New test.
14750 * testsuite/libgomp.fortran/allocatable2.f90: New test.
14751 * testsuite/libgomp.fortran/allocatable3.f90: New test.
14752 * testsuite/libgomp.fortran/allocatable4.f90: New test.
14753 * testsuite/libgomp.fortran/collapse1.f90: New test.
14754 * testsuite/libgomp.fortran/collapse2.f90: New test.
14755 * testsuite/libgomp.fortran/collapse3.f90: New test.
14756 * testsuite/libgomp.fortran/collapse4.f90: New test.
14757 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14758 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14759 * testsuite/libgomp.fortran/lib4.f90: New test.
14760 * testsuite/libgomp.fortran/lock-1.f90: New test.
14761 * testsuite/libgomp.fortran/lock-2.f90: New test.
14762 * testsuite/libgomp.fortran/nested1.f90: New test.
14763 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14764 * testsuite/libgomp.fortran/strassen.f90: New test.
14765 * testsuite/libgomp.fortran/tabs1.f90: New test.
14766 * testsuite/libgomp.fortran/tabs2.f: New test.
14767 * testsuite/libgomp.fortran/task1.f90: New test.
14768 * testsuite/libgomp.fortran/task2.f90: New test.
14769 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14770 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14771 * testsuite/libgomp.c/pr26943-2.c: Likewise.
14772 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14773 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14775 2008-05-23 Jakub Jelinek <jakub@redhat.com>
14778 * testsuite/libgomp.c++/ctor-11.C: New test.
14779 * testsuite/libgomp.c++/ctor-12.C: New test.
14781 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14783 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14785 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14787 PR middle-end/36106
14788 * testsuite/libgomp.c/atomic-5.c: New test.
14789 * testsuite/libgomp.c/atomic-6.c: New test.
14790 * testsuite/libgomp.c/autopar-1.c: New test.
14792 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14794 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14795 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14796 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14797 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14798 * configure: Regenerate.
14799 * Makefile.in, testsuite/Makefile.in: Likewise.
14801 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14804 * aclocal.m4: Regenerate.
14805 * configure: Regenerate.
14807 2008-03-18 Jakub Jelinek <jakub@redhat.com>
14809 PR middle-end/35611
14810 * testsuite/libgomp.c/atomic-4.c: New test.
14813 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14814 (gomp_iter_guided_next): Likewise.
14815 * testsuite/libgomp.c/pr35625.c: New test.
14817 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14819 * aclocal.m4: Regenerate.
14820 * configure: Likewise.
14821 * Makefile.in: Likewise.
14822 * testsuite/Makefile.in: Likewise.
14824 2008-03-13 Jakub Jelinek <jakub@redhat.com>
14826 PR middle-end/35185
14827 * testsuite/libgomp.c++/pr35185.C: New test.
14829 2008-03-12 Jakub Jelinek <jakub@redhat.com>
14831 PR middle-end/35549
14832 * testsuite/libgomp.c/pr35549.c: New test.
14834 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14836 * testsuite/libgomp.c/atomic-3.c: New test.
14838 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14841 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14842 .F08 file suffixes.
14844 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
14847 * configure.ac: Add ACX_HEADER_STRING.
14848 * env.c: Include strings.h.
14849 * aclocal.m4: Regenerate.
14850 * config.h.in: Regenerate.
14851 * configure: Regenerate.
14852 * Makefile.in: Regenerate.
14853 * testsuite/Makefile.in: Regenerate.
14855 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14857 PR middle-end/35196
14858 * testsuite/libgomp.c/pr35196.c: New test.
14860 PR middle-end/35130
14861 * testsuite/libgomp.fortran/pr35130.f90: New test.
14862 * testsuite/libgomp.c/pr35130.c: New test.
14864 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14866 PR middle-end/33880
14867 * testsuite/libgomp.c/pr33880.c: New test.
14868 * testsuite/libgomp.fortran/pr33880.f90: New test.
14870 2008-01-24 David Edelsohn <edelsohn@gnu.org>
14872 * configure: Regenerate.
14874 2008-01-08 Jakub Jelinek <jakub@redhat.com>
14876 * configure.ac: Move futex checking into ../config/futex.m4.
14877 * configure: Rebuilt.
14878 * aclocal.m4: Rebuilt.
14879 * Makefile.in: Rebuilt.
14881 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14882 2007-10-15 ../config/tls.m4 change.
14884 2007-12-19 Jakub Jelinek <jakub@redhat.com>
14887 * testsuite/libgomp.c/pr34513.c: New test.
14888 * testsuite/libgomp.c++/pr34513.C: New test.
14890 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
14893 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14895 2007-12-04 Jakub Jelinek <jakub@redhat.com>
14897 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
14899 2007-12-03 Jakub Jelinek <jakub@redhat.com>
14901 * testsuite/libgomp.c/private-1.c: New test.
14903 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
14904 Paolo Bonzini <bonzini@gnu.org>
14906 * Makefile.am: Use space as vpath separator. Use 'vpath %'
14907 instead of 'VPATH ='.
14908 * Makefile.in: Regenerate.
14910 2007-11-23 Matthias Klose <doko@ubuntu.com>
14912 * configure.ac: Adjust makeinfo version check.
14913 * configure: Regenerate.
14915 2007-11-10 Jakub Jelinek <jakub@redhat.com>
14918 * testsuite/libgomp.fortran/pr34020.f90: New test.
14920 2007-11-06 Jakub Jelinek <jakub@redhat.com>
14923 * testsuite/libgomp.c++/atomic-1.C: New test.
14925 2007-10-25 Jakub Jelinek <jakub@redhat.com>
14928 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14929 Make x and y integers rather than (implicit) reals. Add private (j)
14930 clause to the last omp parallel.
14932 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
14934 * configure: Regenerate following changes to ../config/tls.m4.
14936 2007-09-28 Jakub Jelinek <jakub@redhat.com>
14938 * testsuite/libgomp.fortran/stack.f90: New test.
14940 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
14942 * config/mingw32/proc.c: New file.
14944 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
14946 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14947 (main): Use __get_cpuid to get i386 target fetaures.
14948 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14949 (main): Use __get_cpuid to get x86_64 target fetaures.
14951 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
14954 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14955 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14957 2007-07-12 Jakub Jelinek <jakub@redhat.com>
14960 * testsuite/libgomp.fortran/pr32550.f90: New test.
14961 * testsuite/libgomp.fortran/crayptr2.f90: New test.
14963 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
14965 * aclocal.m4: Regenerated.
14967 2007-07-05 Tobias Burnus <burnus@net-b.de>
14970 * testsuite/libgomp.fortran/pr32359.f90: New.
14972 2007-07-02 Jakub Jelinek <jakub@redhat.com>
14975 * sections.c (GOMP_parallel_sections_start): Only decrease
14976 number of threads to COUNT if dyn_var is true.
14977 * testsuite/libgomp.c/pr32468.c: New test.
14979 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14982 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14984 2007-06-21 Jakub Jelinek <jakub@redhat.com>
14986 PR middle-end/32362
14987 * testsuite/libgomp.c/pr32362-1.c: New test.
14988 * testsuite/libgomp.c/pr32362-2.c: New test.
14989 * testsuite/libgomp.c/pr32362-3.c: New test.
14991 2007-06-07 Jakub Jelinek <jakub@redhat.com>
14993 * team.c (gomp_team_start): Fix setting up thread_attr
14996 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
14998 * configure: Regenerate.
15000 2007-05-23 Steve Ellcey <sje@cup.hp.com>
15002 * Makefile.in: Regenerate.
15003 * configure: Regenerate.
15004 * aclocal.m4: Regenerate.
15005 * testsuite/Makefile.in: Regenerate.
15007 2007-05-04 Jakub Jelinek <jakub@redhat.com>
15009 * config/linux/proc.c: New file.
15012 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
15014 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
15016 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
15018 2007-04-16 Matthias Klose <doko@debian.org>
15020 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
15021 flags if not building with -m64.
15022 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
15023 flag for i?86-*-* targets, if current target matches -m64.
15025 2007-04-14 Steve Ellcey <sje@cup.hp.com>
15027 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
15028 * Makefile.in: Regenerate.
15030 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15033 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
15035 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15037 2007-04-04 Jakub Jelinek <jakub@redhat.com>
15039 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
15041 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
15042 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
15043 (parse_affinity): New function.
15044 (initialize_env): Call it and gomp_init_affinity.
15045 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
15046 create new pthread_attr_t and call gomp_init_thread_affinity
15047 on it for each thread before passing the attribute to pthread_create.
15048 * config/linux/affinity.c: New file.
15049 * config/posix/affinity.c: New file.
15050 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
15051 * configure: Rebuilt.
15052 * config.h.in: Rebuilt.
15053 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
15054 * Makefile.in: Rebuilt.
15056 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
15058 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
15060 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
15061 and use it if found.
15063 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
15065 * testsuite/config/default.exp: New file.
15066 * testsuite/lib/libgomp.exp: New file.
15067 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
15068 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
15069 load_lib *, load_gcc_lib *): Move to libgomp.exp.
15070 (libgomp_load): Remove.
15071 * testsuite/lib/libgomp.exp (libgomp_init): Compute
15072 always_ld_library_path, not ld_library_path. Set additional_flags
15073 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
15074 (target_compile): Do not call libgomp_init. Append lang_library_path
15075 and lang_link_flags to options.
15076 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
15077 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
15079 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
15080 always_ld_library_path. Set LD_LIBRARY_PATH here.
15081 * testsuite/libgomp.fortran/fortran.exp: Ditto.
15082 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
15083 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
15085 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
15086 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
15087 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
15088 * testsuite/libgomp.c/pr29947-1.c: Ditto.
15089 * testsuite/libgomp.c/atomic-10.c: Ditto.
15091 2007-03-21 Jakub Jelinek <jakub@redhat.com>
15093 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
15094 dg-final cleanup-modules line.
15095 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
15096 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
15097 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
15098 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
15099 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
15100 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
15101 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
15103 2007-03-18 Andreas Schwab <schwab@suse.de>
15105 * acinclude.m4: Adjust regular expression for ld version
15107 * configure: Regenerate.
15109 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
15111 * Makefile.am: Add install-pdf target as copied from
15112 automake v1.10 rules.
15113 * Makefile.in: Regenerate
15115 2007-02-07 Jakub Jelinek <jakub@redhat.com>
15118 * configure: Regenerate.
15121 * testsuite/libgomp.c++/pr30703.C: New test.
15123 2007-02-02 Jakub Jelinek <jakub@redhat.com>
15126 2006-07-05 Eric Christopher <echristo@apple.com>
15127 * configure.ac: Depend addition of -pthread on host OS.
15128 * configure: Regenerate.
15130 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15132 * libgomp.texi: Fix spacing after abbreviations.
15134 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
15137 * configure.ac: Add check for makeinfo
15138 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
15139 if an appropriate version of makeinfo is found.
15140 * aclocal.m4: Regenerated.
15141 * configure: Regenerated.
15142 * Makefile.in: Regenerated.
15143 * testsuite/Makefile.in: Regenerated.
15145 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
15148 * libgomp.texi: More about implementation-dependent settings.
15150 2007-01-26 Tobias Burnus <burnus@net-b.de>
15152 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
15154 2007-01-24 Jakub Jelinek <jakub@redhat.com>
15156 PR middle-end/30494
15157 * testsuite/libgomp.c/pr30494.c: New test.
15159 2007-01-15 Tom Tromey <tromey@redhat.com>
15161 * configure: Rebuilt.
15162 * configure.ac: Fixed comment.
15164 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
15166 * libgomp.texi: Document implementation specific default values of
15167 environment variables.
15169 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
15172 * libgomp.texi: New file.
15173 * configure.ac: Add --enable-generated-files-in-srcdir option.
15174 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15176 * Makefile.in: Regenerated.
15177 * config.h.in: Regenerated.
15178 * testsuite/Makefile.in: Regenerated.
15181 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
15184 * env.c (omp_set_num_threads): Set illegal thread count to 1.
15186 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15188 * configure: Regenerate.
15190 2006-12-04 Jakub Jelinek <jakub@redhat.com>
15193 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
15194 start if there shouldn't be any loop iterations.
15195 (gomp_loop_ordered_static_start): Remove start == end test.
15196 * testsuite/libgomp.c/pr29947-1.c: New test.
15197 * testsuite/libgomp.c/pr29947-2.c: New test.
15199 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15201 * configure.tgt: Force initial-exec TLS model on Linux only.
15203 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
15205 * configure: Regenerated.
15207 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
15209 * env.c (parse_schedule): Reject out of range values.
15210 (parse_unsigned_long): Reject out of range, negative or zero values.
15212 2006-10-29 Jakub Jelinek <jakub@redhat.com>
15215 * testsuite/libgomp.fortran/pr29629.f90: New test.
15217 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
15220 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15221 * config/posix95: New directory.
15222 * config/posix95/omp-lock.h: New file.
15223 * config/posix95/lock.c: Likewise.
15225 2006-10-14 Geoffrey Keating <geoffk@apple.com>
15227 * aclocal.m4: Regenerate.
15228 * configure: Regenerate.
15230 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15232 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15235 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
15237 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15239 * configure: Regenerate.
15240 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15242 2006-09-26 Jakub Jelinek <jakub@redhat.com>
15244 PR middle-end/25261
15245 PR middle-end/28790
15246 * testsuite/libgomp.c/nestedfn-4.c: New test.
15247 * testsuite/libgomp.c/nestedfn-5.c: New test.
15248 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15251 * testsuite/libgomp.fortran/condinc1.f: New test.
15252 * testsuite/libgomp.fortran/condinc2.f: New test.
15253 * testsuite/libgomp.fortran/condinc3.f90: New test.
15254 * testsuite/libgomp.fortran/condinc4.f90: New test.
15255 * testsuite/libgomp.fortran/condinc1.inc: New file.
15257 2006-09-18 Tom Tromey <tromey@redhat.com>
15259 * configure: Rebuilt.
15261 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
15264 PR preprocessor/14634
15265 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15267 * configure: Regenerate.
15269 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15271 * testsuite/libgomp.fortran/reduction3.f90: Change
15272 -2147483648 to -huge(i)-1 to avoid overflow.
15273 * testsuite/libgomp.fortran/reduction4.f90: Change
15274 Z'ffffffff' to not(0) to avoid overflow.
15276 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
15279 * Makefile.am (libsubincludedir): New.
15280 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15281 * Makefile.in: Regenerate.
15283 2006-08-17 Jakub Jelinek <jakub@redhat.com>
15286 * env.c: Include ctype.h.
15287 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15288 leading and/or trailing whitespace and compare strings case
15291 2006-07-16 Jakub Jelinek <jakub@redhat.com>
15294 * testsuite/libgomp.fortran/pr28390.f: New test.
15296 2006-07-05 Eric Christopher <echristo@apple.com>
15298 * configure.ac: Depend addition of -pthread on host OS.
15299 * configure: Regenerate.
15301 2006-06-21 Jakub Jelinek <jakub@redhat.com>
15303 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15304 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15307 2006-06-20 Jakub Jelinek <jakub@redhat.com>
15311 * configure.ac: If neither --enable-linux-futex nor
15312 --disable-linux-futex is passed, determine the default by checking
15313 for compiling and/or running against NPTL. With --enable-linux-futex,
15314 check if SYS_gettid and SYS_futex are defined.
15315 * configure: Rebuilt.
15317 2006-06-14 Richard Henderson <rth@redhat.com>
15320 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15321 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15323 2006-06-09 Richard Henderson <rth@redhat.com>
15325 * env.c (gomp_nthreads_var): Change to unsigned long.
15326 (gomp_run_sched_chunk): Likewise.
15327 (parse_unsigned_long): Rename from parse_num_threads and generalize.
15328 (initialize_env): Initialize gomp_thread_attr.
15329 * libgomp.h (gomp_nthreads_var): Update decl.
15330 (gomp_run_sched_chunk): Likewise.
15331 (gomp_thread_attr): Declare.
15332 * team.c (gomp_thread_attr): Export.
15333 (initialize_team): Don't initialize it.
15335 2006-06-09 Jakub Jelinek <jakub@redhat.com>
15338 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15339 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15341 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15343 * config/mingw32/time.c: New file.
15344 * configure.tgt: Use it.
15346 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
15348 * Makefile.am: Add install-html target. Add install-html to .PHONY
15349 * Makefile.in: Regenerate.
15351 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15354 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15355 * testsuite/libgomp.c/critical-1.c: Likewise.
15356 * testsuite/libgomp.c/loop-1.c: Likewise.
15357 * testsuite/libgomp.c/loop-2.c: Likewise.
15358 * testsuite/libgomp.c/single-1.c: Likewise.
15359 * testsuite/libgomp.c/ordered-1.c: Likewise.
15360 * testsuite/libgomp.c/ordered-2.c: Likewise.
15362 2006-05-15 Jakub Jelinek <jakub@redhat.com>
15364 PR middle-end/27416
15365 * libgomp.fortran/pr27416-1.f90: New test.
15367 2006-05-03 Jakub Jelinek <jakub@redhat.com>
15370 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15371 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15373 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15376 * testsuite/libgomp.c/pr26943-1.c: New test.
15377 * testsuite/libgomp.c/pr26943-2.c: New test.
15378 * testsuite/libgomp.c/pr26943-3.c: New test.
15379 * testsuite/libgomp.c/pr26943-4.c: New test.
15380 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15381 * testsuite/libgomp.c++/pr26943.C: New test.
15383 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15385 PR middle-end/27337
15386 * testsuite/libgomp.c++/pr27337.C: New test.
15388 2006-04-26 Jakub Jelinek <jakub@redhat.com>
15391 * testsuite/libgomp.c/pr26171.c: New test.
15393 2006-04-25 Richard Henderson <rth@redhat.com>
15396 * configure.ac: Use GCC_CHECK_TLS.
15397 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15398 * Makefile.in, aclocal.m4, configure: Regenerate.
15400 2006-04-10 Matthias Klose <doko@debian.org>
15402 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15403 directory names containing underscores.
15405 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15408 * testsuite/libgomp.c++/pr26691.C: New test.
15410 2006-03-13 Jakub Jelinek <jakub@redhat.com>
15412 * testsuite/libgomp.fortran/retval2.f90: New test.
15414 2006-03-09 Diego Novillo <dnovillo@redhat.com>
15416 * testsuite/libgomp.c++: New directory.
15418 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
15420 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15421 * config/posix/sem.c: Implement the above.
15423 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
15425 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15426 define HAVE_BROKEN_POSIX_SEMAPHORES.
15427 * configure: Rebuilt.
15428 * config.h.in: Rebuilt.
15430 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15433 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15434 for the other pthread check.
15435 * configure: Regenerate.
15436 * config.h.in: Regenerate.
15438 2006-02-15 Jakub Jelinek <jakub@redhat.com>
15442 * Makefile.am (fincludedir): New variable.
15443 (nodist_include_HEADERS): Remove Fortran files.
15444 (nodist_finclude_HEADERS): New variable.
15445 * Makefile.in: Regenerated.
15447 2006-02-13 Jakub Jelinek <jakub@redhat.com>
15449 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15450 Remove tests for returning assumed character length arrays.
15452 2006-02-12 Roger Sayle <roger@eyesopen.com>
15453 John David Anglin <dave@hiauly1.hia.nrc.ca>
15456 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15458 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
15460 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15462 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
15464 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15465 part of LD_LIBRARY_PATH manually.
15467 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
15470 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15473 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
15476 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15477 * configure.ac (PERL): Don't set.
15478 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15479 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15480 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15481 * omp.h.in: Wrap the new configure substitutions with @ characters.
15482 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15483 * aclocal.m4, configure, Makefile.in: Regenerate.
15484 * mkomp_h.pl: Delete.
15486 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
15489 * configure.ac: Use GCC_HEADER_STDINT.
15490 * libgomp.h: Include gstdint.h.
15491 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15492 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15494 2006-01-24 Richard Henderson <rth@redhat.com>
15497 * configure.ac: Add AM_MAINTAINER_MODE.
15498 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15500 2006-01-24 Diego Novillo <dnovillo@redhat.com>
15502 * Makefile.in: Regenerate.
15503 * testsuite/Makefile.in: Regenerate.
15504 * aclocal.m4: Regenerate.
15506 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15508 * config/posix/proc.c: Conditional include of sys/loadavg.h for
15510 * configure.ac: Add check for loadavg.h.
15511 (link_gomp): Adjust comment.
15512 * configure: Regenerate.
15513 * config.h.in: Regenerate.
15515 2006-01-21 Steve Ellcey <sje@cup.hp.com>
15518 * configure.ac: Remove check for alloca.h.
15519 * configure: Regenerate.
15520 * config.h.in: Regenerate.
15521 * libgomp.h: define gomp_alloca to be __builtin_alloca.
15522 * team.c: Remove use of alloca.h.
15523 Call gomp_alloca instead of alloca.
15525 2006-01-20 Steve Ellcey <sje@cup.hp.com>
15528 * team.c: Add include of alloca.h.
15529 * configure.ac: Add check for alloca.h.
15530 * configure: Regenerate.
15531 * config.h.in: Regenerate.
15533 2006-01-17 Jakub Jelinek <jakub@redhat.com>
15536 * testsuite/libgomp.fortran/pr25219.f90: New test.
15538 2005-12-05 Uros Bizjak <uros@kss-loka.si>
15540 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15541 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15542 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15543 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15544 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15545 testsuite/libgomp.fortran/threadprivate1.f90,
15546 testsuite/libgomp.fortran/threadprivate2.f90,
15547 testsuite/libgomp.fortran/threadprivate3.f90,
15548 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15549 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15550 testsuite/libgomp.fortran/omp_parse3.f90: Change required
15551 effective-target to TLS runtime.
15553 * testsuite/libgomp.fortran/pr25162.f: Require
15554 effective-target TLS runtime.
15556 2005-12-01 Jakub Jelinek <jakub@redhat.com>
15558 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15559 * testsuite/libgomp.c/nestedfn-3.c: New test.
15561 2005-11-30 Jakub Jelinek <jakub@redhat.com>
15564 * testsuite/libgomp.fortran/pr25162.f: New test.
15566 2005-11-28 Jakub Jelinek <jakub@redhat.com>
15568 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15569 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15571 2005-11-25 Jakub Jelinek <jakub@redhat.com>
15573 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15574 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15575 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15576 single.c, team.c, work.c, config/linux/alpha/futex.h,
15577 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15578 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15579 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15580 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15581 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15582 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15583 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15586 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15588 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15589 to nodist_noinst_HEADERS.
15590 * Makefile.in: Rebuilt.
15592 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15593 add integer count field.
15594 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15595 omp_nest_lock_t type change.
15596 (omp_init_nest_lock): Likewise. Initialize count to 0.
15597 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15599 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15601 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15602 Increment count if successful and return the new nesting level.
15603 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15604 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15605 * testsuite/libgomp.c/lib-1.c: New test.
15606 * testsuite/libgomp.fortran/lib1.f90: New test.
15607 * testsuite/libgomp.fortran/lib2.f: New test.
15608 * testsuite/libgomp.fortran/lib3.f: New test.
15610 2005-11-17 Richard Henderson <rth@redhat.com>
15613 * Makefile.am (nodist_toolexeclib_HEADERS): New.
15614 * configure.ac (link_gomp): New. Substitute it.
15615 (AC_CONFIG_FILES): Add libgomp.spec.
15616 * libgomp.spec.in: New file.
15617 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15618 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15620 2005-11-18 Jakub Jelinek <jakub@redhat.com>
15622 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15623 reduction(-:var) behaving the same as reduction(+:var).
15624 * testsuite/libgomp.c/reduction-4.c: New test.
15626 2005-11-15 Uros Bizjak <uros@kss-loka.si>
15628 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15629 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15630 testsuite/libgomp.c/copyin-3.c,
15631 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15632 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15633 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15634 testsuite/libgomp.c++/pr24455.C,
15635 testsuite/libgomp.fortran/threadprivate1.f90,
15636 testsuite/libgomp.fortran/threadprivate2.f90,
15637 testsuite/libgomp.fortran/threadprivate3.f90,
15638 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15639 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15640 testsuite/libgomp.fortran/omp_parse3.f90: Require
15641 effective-target TLS.
15643 2005-11-14 Diego Novillo <dnovillo@redhat.com>
15647 2005-11-13 Jakub Jelinek <jakub@redhat.com>
15650 * team.c (initialize_team): Pass NULL rather than free as
15651 pthread_key_create destructor. Initialize thread specific data
15652 pointer in initial thread to a static local variable rather than
15655 2005-11-11 Uros Bizjak <uros@kss-loka.si>
15657 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15658 its location to ld_library_path.
15660 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15662 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15664 2005-11-10 Diego Novillo <dnovillo@redhat.com>
15666 * testsuite/libgomp.c: Rename from libgomp.dg.
15668 2005-11-09 Diego Novillo <dnovillo@redhat.com>
15670 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15671 threadprivate variable 'i'.
15673 2005-11-09 Jakub Jelinek <jakub@redhat.com>
15675 * config/linux/s390/futex.h: New file.
15676 * configure.tgt: Use it.
15678 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15679 before the parallel.
15681 2005-11-08 Jakub Jelinek <jakub@redhat.com>
15684 * testsuite/libgomp.c++/master-1.C: New test.
15686 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15688 * testsuite/libgomp.dg/copyin-3.c: New test.
15690 2005-11-07 Jakub Jelinek <jakub@redhat.com>
15692 * testsuite/libgomp.fortran/retval1.f90: New test.
15693 * testsuite/libgomp.fortran/vla7.f90: New test.
15695 2005-11-06 Jakub Jelinek <jakub@redhat.com>
15697 * testsuite/libgomp.fortran/vla2.f90: New test.
15698 * testsuite/libgomp.fortran/vla3.f90: New test.
15699 * testsuite/libgomp.fortran/vla4.f90: New test.
15700 * testsuite/libgomp.fortran/vla5.f90: New test.
15701 * testsuite/libgomp.fortran/vla6.f90: New test.
15703 2005-11-01 Jakub Jelinek <jakub@redhat.com>
15705 * config/linux/sparc/futex.h: New file.
15706 * configure.tgt: Use it.
15707 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15709 * critical.c: Include stdlib.h.
15710 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15711 ignoring return value.
15712 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15713 LIBGOMP_CHECK_SYNC_BUILTINS check.
15714 * configure: Rebuilt.
15716 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15718 * testsuite/libgomp.fortran/vla1.f90: New test.
15720 2005-10-31 Richard Henderson <rth@redhat.com>
15722 * testsuite/libgomp.fortran/character2.f90: Fix race condition
15723 setting 's' in different threads.
15725 2005-10-31 Jakub Jelinek <jakub@redhat.com>
15727 * libgomp.h (attribute_hidden, ialias): Define.
15728 * config/posix/proc.c (omp_get_num_procs): Add ialias.
15729 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15730 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15731 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15732 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15733 omp_test_lock, omp_test_nest_lock): Likewise.
15734 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15735 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15736 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15737 omp_test_lock, omp_test_nest_lock): Likewise.
15738 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15739 omp_get_dynamic, omp_get_nested): Likewise.
15740 * parallel.c (omp_get_num_threads, omp_get_max_threads,
15741 omp_get_thread_num, omp_in_parallel): Likewise.
15742 * fortran.c (ialias_redirect): Define.
15743 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15744 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15745 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15746 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15747 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15748 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15749 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15750 omp_get_wtime): Add ialias_redirect.
15752 2005-10-30 Jakub Jelinek <jakub@redhat.com>
15754 * fortran.c: Include stdlib.h.
15756 2005-10-29 Jakub Jelinek <jakub@redhat.com>
15758 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15759 * Makefile.in: Regenerated.
15761 2005-10-28 Jakub Jelinek <jakub@redhat.com>
15763 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15764 * libgomp_f.h.in (omp_check_defines): New function.
15765 * env.c: Include libgomp_f.h.
15766 (initialize_env): Call omp_check_defines.
15768 * testsuite/libgomp.dg/copyin-2.c: New test.
15769 * testsuite/libgomp.c++/copyin-2.C: New test.
15770 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15772 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15773 * testsuite/libgomp.fortran/sharing2.f90: New test.
15775 * testsuite/libgomp.dg/copyin-1.c: New test.
15776 * testsuite/libgomp.c++/copyin-1.C: New test.
15778 2005-10-26 Jakub Jelinek <jakub@redhat.com>
15780 * testsuite/libgomp.fortran/crayptr1.f90: New test.
15782 * testsuite/libgomp.fortran/workshare1.f90: New test.
15784 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15786 * libgomp.fortran/sharing1.f90: New test.
15788 2005-10-24 Jakub Jelinek <jakub@redhat.com>
15791 * testsuite/libgomp.c++/loop-7.C: New test.
15793 * testsuite/libgomp.dg/nestedfn-2.c: New test.
15795 * testsuite/libgomp.dg/nestedfn-1.c: New test.
15796 * testsuite/libgomp.fortran/reduction6.f90: New test.
15797 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15799 2005-10-23 Richard Henderson <rth@redhat.com>
15801 * testsuite/libgomp.c++/ctor-1.C: New.
15802 * testsuite/libgomp.c++/ctor-2.C: New.
15803 * testsuite/libgomp.c++/ctor-3.C: New.
15804 * testsuite/libgomp.c++/ctor-4.C: New.
15805 * testsuite/libgomp.c++/ctor-5.C: New.
15806 * testsuite/libgomp.c++/ctor-6.C: New.
15807 * testsuite/libgomp.c++/ctor-7.C: New.
15808 * testsuite/libgomp.c++/ctor-8.C: New.
15809 * testsuite/libgomp.c++/ctor-9.C: New.
15811 2005-10-21 Diego Novillo <dnovillo@redhat.com>
15814 * testsuite/libgomp.c++/pr24455-1.C: New test.
15815 * testsuite/libgomp.c++/pr24455.C: New test.
15816 * testsuite/libgomp.dg/pr24455-1.c: New test.
15817 * testsuite/libgomp.dg/pr24455.c: New test.
15819 2005-10-20 Richard Henderson <rth@redhat.com>
15821 * testsuite/libgomp.c++/loop-6.C: New.
15822 * testsuite/libgomp.dg/loop-3.c: New.
15824 2005-10-20 Jakub Jelinek <jakub@redhat.com>
15826 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15827 explicitly private.
15828 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15831 2005-10-19 Diego Novillo <dnovillo@redhat.com>
15833 * testsuite/libgomp.fortran/jacobi.f: New test.
15835 2005-10-19 Richard Henderson <rth@redhat.com>
15837 * configure.tgt (i?86-linux): Default to with_arch instead of
15838 CFLAGS. Add -mtune to match target_cpu.
15839 (x86_64-linux): Tune to i686.
15841 * fortran.c (omp_test_nest_lock_): Fix typo.
15843 2005-10-19 Jakub Jelinek <jakub@redhat.com>
15845 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15846 gomp_ordered_sync): Do nothing if team->nthreads == 1.
15847 * testsuite/libgomp.dg/ordered-3.c: New test.
15849 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15850 Remove volatile keyword.
15852 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15853 in COMMON block to avoid warnings on 64-bit targets.
15855 2005-10-18 Diego Novillo <dnovillo@redhat.com>
15857 * testsuite/libgomp.dg/shared-3.c: New test.
15859 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15861 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15862 * testsuite/libgomp.fortran/reduction5.f90: New test.
15864 2005-10-18 Jakub Jelinek <jakub@redhat.com>
15866 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15868 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
15869 flush loop now that __sync_synchronize has proper memory barrier.
15870 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15871 Add -ffixed-form to dg-options.
15873 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15875 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15876 from subdirectories.
15877 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15878 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15879 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15880 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15881 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15882 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15883 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15884 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15885 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15886 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15887 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15888 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15889 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15890 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15891 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15892 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15893 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15894 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15895 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15896 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15897 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15898 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15899 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15900 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15901 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15903 2005-10-17 Jakub Jelinek <jakub@redhat.com>
15905 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15906 lang_library_path exists. Use find instead of glob to gather tests.
15907 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15909 2005-10-17 Diego Novillo <dnovillo@redhat.com>
15911 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15912 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15913 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15914 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15915 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15916 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15917 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15918 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15919 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15920 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15921 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15922 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15923 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15925 2005-10-15 Jakub Jelinek <jakub@redhat.com>
15927 * testsuite/libgomp.dg/vla-1.c: New test.
15929 * testsuite/libgomp.fortran/reference2.f90: New test.
15931 * testsuite/libgomp.fortran/character2.f90: Remove explicit
15932 declaration of omp_get_thread_num.
15933 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
15936 * testsuite/libgomp.fortran/reduction1.f90: New test.
15937 * testsuite/libgomp.fortran/reduction2.f90: New test.
15938 * testsuite/libgomp.fortran/reduction3.f90: New test.
15939 * testsuite/libgomp.fortran/reduction4.f90: New test.
15941 2005-10-13 Richard Henderson <rth@redhat.com>
15943 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15944 * Makefile.in: Regenerate.
15945 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15946 * libgomp.h: Include bar.h.
15947 (struct gomp_barrier): Remove.
15948 (struct gomp_team): Add barrier. Replace master_barrier with
15949 master_release. Replace threads with ordered_release.
15950 (struct gomp_thread): Replace barrier with release.
15951 * ordered.c (gomp_ordered_first): Update for ordered_release change.
15952 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15953 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15954 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15955 (GOMP_single_copy_end): Likewise.
15956 * team.c (gomp_threads_dock): New.
15957 (gomp_barrier_init, gomp_barrier_destroy): Remove.
15958 (gomp_thread_start): Use gomp_barrier_wait.
15959 (new_team, free_team): Update for gomp_team changes.
15960 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15961 (gomp_team_end): Use gomp_barrier_wait.
15962 (initialize_team): Update for gomp_thread changes.
15963 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15964 (gomp_work_share_end_nowait): Use atomic ops when available.
15965 * config/linux/bar.c, config/linux/bar.h: New files.
15966 * config/posix/bar.c, config/posix/bar.h: New files.
15968 2005-10-13 Jakub Jelinek <jakub@redhat.com>
15970 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15971 * testsuite/libgomp.dg/single-2.c: New test.
15973 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15974 lang_link_flags): Unset, so that they aren't inherited from previously
15977 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15979 2005-10-12 Richard Henderson <rth@redhat.com>
15981 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15982 (libgomp_init): Use lang_test_file, lang_library_path, and
15983 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
15985 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15986 (lang_test_file, lang_link_flags): New.
15987 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15989 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15990 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15991 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15992 testsuite/libgomp.c++/parallel-1.C,
15993 testsuite/libgomp.c++/reduction-1.C,
15994 testsuite/libgomp.c++/reduction-2.C,
15995 testsuite/libgomp.c++/reduction-3.C,
15996 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15997 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15998 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15999 New files, largely cribbed from the C testsuite.
16001 2005-10-12 Jakub Jelinek <jakub@redhat.com>
16003 * testsuite/libgomp.fortran/character1.f90: New test.
16004 * testsuite/libgomp.fortran/character2.f90: New test.
16006 * testsuite/libgomp.dg/nested-1.c: New test.
16007 * testsuite/libgomp.dg/nested-2.c: New test.
16008 * testsuite/libgomp.fortran/do1.f90: New test.
16009 * testsuite/libgomp.fortran/do2.f90: New test.
16011 * testsuite/libgomp.fortran/reference1.f90: New test.
16013 2005-10-11 Jakub Jelinek <jakub@redhat.com>
16015 * testsuite/libgomp.dg/reduction-1.c: New test.
16016 * testsuite/libgomp.dg/reduction-2.c: New test.
16017 * testsuite/libgomp.dg/reduction-3.c: New test.
16019 2005-10-10 Jakub Jelinek <jakub@redhat.com>
16021 * testsuite/libgomp.dg/atomic-1.c: New test.
16022 * testsuite/libgomp.dg/atomic-2.c: New test.
16024 2005-10-09 Richard Henderson <rth@redhat.com>
16026 * critical.c (atomic_lock): New.
16027 (initialize_critical): Initialize it.
16028 (GOMP_atomic_start, GOMP_atomic_end): New.
16029 * libgomp.map: Export them.
16030 * libgomp_g.h: Declare them.
16032 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
16034 2005-10-02 Richard Henderson <rth@redhat.com>
16036 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
16037 to XCFLAGS instead of CFLAGS.
16039 2005-09-30 Richard Henderson <rth@redhat.com>
16041 * configure.ac: Determine whether -pthread or -lpthread is needed.
16042 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
16043 * Makefile.in, configure: Rebuild.
16045 2005-09-28 Richard Henderson <rth@redhat.com>
16047 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
16048 * testsuite/libgomp.dg/omp-single-3.c: New test.
16050 2005-09-28 Diego Novillo <dnovillo@redhat.com>
16052 * testsuite/libgomp.dg/omp-single-2.c: New test.
16053 * testsuite/libgomp.dg/shared-2.c: Fix return code.
16055 2005-09-27 Richard Henderson <rth@redhat.com>
16057 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
16058 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
16060 2005-09-27 Jakub Jelinek <jakub@redhat.com>
16062 * testsuite/libgomp.dg/omp-loop03.c: New test.
16064 2005-09-27 Diego Novillo <dnovillo@redhat.com>
16066 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
16068 2005-09-27 Diego Novillo <dnovillo@redhat.com>
16070 * testsuite/libgomp.dg/omp-single-1.c: New test.
16071 * testsuite/libgomp.dg/shared-1.c: Return 0.
16072 Add prototype for abort.
16073 * testsuite/libgomp.dg/shared-2.c: Likewise.
16075 2005-09-26 Jakub Jelinek <jakub@redhat.com>
16077 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
16080 2005-09-26 Diego Novillo <dnovillo@redhat.com>
16082 * testsuite/libgomp.dg/shared-1.c: New test.
16083 * testsuite/libgomp.dg/shared-2.c: New test.
16085 2005-09-24 Richard Henderson <rth@redhat.com>
16087 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
16089 2005-09-24 Richard Henderson <rth@redhat.com>
16091 * iter.c (gomp_iter_static_next): Round up when computing number
16092 of iterations. Don't bother distributing a remainder equally.
16094 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
16095 Don't call srand. Zero b before testing.
16098 2005-09-24 Jakub Jelinek <jakub@redhat.com>
16100 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
16101 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
16103 2005-09-23 Jakub Jelinek <jakub@redhat.com>
16105 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
16106 without !$omp end do, followed immediately by subroutine end.
16108 2005-09-23 Diego Novillo <dnovillo@redhat.com>
16110 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
16112 2005-09-22 Richard Henderson <rth@redhat.com>
16114 * critical.c (GOMP_critical_name_start): Change argument to void**.
16115 Reuse the pointer space if the mutex fits.
16116 (GOMP_critical_name_end): Likewise.
16117 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
16118 * libgomp_g.h (GOMP_critical_name_start): Update decl.
16119 (GOMP_critical_name_end): Likewise.
16120 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
16121 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
16123 2005-09-20 Richard Henderson <rth@redhat.com>
16125 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
16126 (create_lock_lock): New.
16127 (initialize_critical): Initialize it.
16128 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
16129 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
16131 2005-09-20 Diego Novillo <dnovillo@redhat.com>
16133 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
16135 2005-09-20 Diego Novillo <dnovillo@redhat.com>
16137 * testsuite/libgomp.dg/omp-loop01.c: New test.
16138 * testsuite/libgomp.dg/omp-loop02.c: New test.
16140 2005-09-20 Jakub Jelinek <jakub@redhat.com>
16142 * configure.ac (AC_PROG_FC): Add.
16143 (USE_FORTRAN): New automake conditional.
16144 * configure: Rebuilt.
16145 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
16146 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
16147 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
16148 Add rules to build them.
16149 * Makefile.in: Rebuilt.
16150 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
16151 OMP_NEST_LOCK_KIND.
16152 * libgomp.map: Add Fortran wrappers.
16153 * libgomp_f.h.in: New file.
16154 * omp_lib.h.in: New file.
16155 * omp_lib.f90.in: New file.
16156 * fortran.c: New file.
16157 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
16158 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
16159 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
16160 libgfortran has been built.
16161 * testsuite/libgomp.fortran/fortran.exp: New file.
16162 * testsuite/libgomp.fortran/omp_cond1.f: New test.
16163 * testsuite/libgomp.fortran/omp_cond2.f: New test.
16164 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16165 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16166 * testsuite/libgomp.fortran/omp_hello.f: New test.
16167 * testsuite/libgomp.fortran/omp_orphan.f: New test.
16168 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16169 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16170 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16171 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16172 * testsuite/libgomp.fortran/omp_reduction.f: New test.
16173 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16174 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16176 2005-08-30 Richard Henderson <rth@redhat.com>
16178 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16179 function for when aliases are not usable.
16180 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16181 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16182 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16183 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16184 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16185 GOMP_loop_ordered_guided_next): Likewise.
16186 * ordered.c (GOMP_ordered_start): Likewise.
16188 2005-08-01 Diego Novillo <dnovillo@redhat.com>
16190 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16191 * testsuite/libgomp.dg/omp_hello.c: Fix return code
16192 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16193 * testsuite/libgomp.dg/omp_orphan.c: Likewise
16194 * testsuite/libgomp.dg/omp_reduction.c: Likewise
16195 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16196 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16197 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16198 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16200 2005-07-07 Eric Christopher <echristo@redhat.com>
16201 Diego Novillo <dnovillo@redhat.com>
16203 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16204 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16206 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16207 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16208 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16209 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16210 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16211 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16212 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16214 2005-06-13 Diego Novillo <dnovillo@redhat.com>
16216 * TOPLEVEL.patch: Remove.
16218 2005-05-16 Richard Henderson <rth@redhat.com>
16220 * configure.ac: Test for clock_gettime.
16221 * config.h.in, configure: Rebuild.
16222 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16223 (omp_get_wtime): Use clock_gettime if available.
16224 (omp_get_wtick): Use clock_getres if available.
16226 2005-05-11 Richard Henderson <rth@redhat.com>
16228 * config/linux/ia64/futex.h: New file.
16229 * configure.tgt: Use it.
16231 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16233 2005-05-07 Richard Henderson <rth@redhat.com>
16235 * config/linux/powerpc/futex.h: New file.
16236 * configure.tgt: Use it.
16238 * config/linux/i486/futex.h: Merge ...
16239 * config/linux/x86_64/futex.h: ... into ...
16240 * config/linux/x86/futex.h: ... here.
16241 * configure.tgt: Update to match.
16243 2005-05-06 Richard Henderson <rth@redhat.com>
16245 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16246 * config/linux/i486/futex.h: Likewise.
16247 * config/linux/x86_64/futex.h: Likewise.
16249 * config/linux/lock.c: New file.
16250 * config/linux/omp-lock.h: New file.
16252 * critical.c, env.h: Don't include omp.h
16253 * config/posix/lock.c: Include libgomp.h instead of omp.h.
16254 * config/posix/time.c: Likewise.
16255 * config/posix/omp-lock.h: New file.
16256 * libgomp.h: Include omp-lock.h and omp.h.
16257 * Makefile.am (nodist_include_HEADERS): New.
16259 * configure.ac (PERL): New.
16260 * mkomp_h.pl: New file.
16261 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16263 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16265 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16266 build directory. Re-add -march=i486 hack.
16268 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16269 (libgomp_link_flags): Remove.
16270 (libgomp_initialized): Remove.
16271 (libgomp_init): Don't protect from reinitialization. Copy code
16272 from libstdc++ for getting the multilib set correctly.
16274 2005-05-05 Richard Henderson <rth@redhat.com>
16276 * config/linux/alpha/futex.h: New file.
16277 * configure.tgt (alpha*-*-linux*): Use it.
16279 * config/posix/mutex.c: New file.
16280 * config/posix/sem.c: Use libgomp.h.
16282 * configure.tgt (x86_64-linux): Also test CC for -m32.
16283 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16285 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16288 * Makefile.am (SUBDIRS): New.
16289 (libgomp_la_LDFLAGS): Add -lpthread.
16290 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16291 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16293 * libgomp_g.h: New file.
16294 * libgomp.h: Split out all public declarations to libgomp_g.h.
16295 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16296 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16297 * config/linux/sem.h: Likewise.
16298 * config/posix/sem.h: Likewise.
16300 * Makefile.am (AM_LDFLAGS): New.
16301 (libgomp_version_script): Split out from ...
16302 (libgomp_la_LDFLAGS): ... here.
16303 (libgomp_version_info): New.
16304 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16305 (LIBGOMP_ENABLE): New.
16306 (LIBGOMP_CHECK_LINKER_FEATURES): New.
16307 (LIBGOMP_ENABLE_SYMVERS): New.
16308 * configure.ac (AC_INIT): Version 1.0.
16309 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16310 (enable-linux-futex): Likewise. Rename from enable-futex.
16311 (libtool_VERSION): New.
16312 (LIBGOMP_ENABLE_SYMVERS): Use it.
16313 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16314 * Makefile.in, aclocal.m4, configure: Rebuild.
16316 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16317 (gomp_mutex_unlock_slow): Fix typo.
16318 * config/linux/sem.c: Similarly.
16319 (gomp_sem_post_slow): Fix typo.
16320 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16321 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16322 [__PIC__] (sys_futex0): Don't use tmp output in asm.
16324 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16325 (libgomp_la_LDFLAGS): Add top_srcdir to path.
16326 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16327 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
16328 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16329 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16330 LDFLAGS. Pull enable_futex check to top-level.
16331 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
16332 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16334 First attempt at real configury.
16335 * Makefile, config.h: Remove file.
16336 * Makefile.am, Makefile.in: New file.
16337 * acinclude.m4 aclocal.m4: New file.
16338 * configure.ac, configure.tgt, configure: New file.
16340 * config/posix/lock.c: Rename from sys-lock.c.
16341 * config/posix/mutex.h: Rename from sys-mutex.h.
16342 * config/posix/sem.c: Rename from sys-sem.c.
16343 * config/posix/sem.h: Rename from sys-sem.h.
16344 * config/posix/proc.c: Rename from sys-proc.c.
16345 * config/posix/time.c: Rename from sys-proc.c.
16347 * config/linux/mutex.c: New file.
16348 * config/linux/mutex.h: New file.
16349 * config/linux/sem.c: New file.
16350 * config/linux/sem.h: New file.
16351 * config/linux/i486/futex.h: New file.
16352 * config/linux/x86_64/futex.h: New file.
16354 2005-05-04 Richard Henderson <rth@redhat.com>
16356 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16357 * libgomp.h: Declare them.
16358 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16359 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16361 2005-05-04 Richard Henderson <rth@redhat.com>
16363 * libgomp-1 code drop
16365 2005-05-04 Richard Henderson <rth@redhat.com>
16367 * iter.c (gomp_iter_static_next): Return tri-state on 0.
16368 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16369 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16370 (gomp_iter_static_next): Update.
16371 (gomp_ordered_static_next): Update.
16372 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16373 (gomp_loop_ordered_static_start): Likewise. Exit early for a
16374 totally empty range.
16375 (gomp_loop_ordered_static_next): Refine test for calling
16376 gomp_ordered_static_next.
16377 * testsuite/ordered-1.c: Add case for more threads than iterations.
16379 * iter.c (gomp_iter_runtime_next_locked): Remove.
16380 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16381 gomp_loop_guided_start, gomp_loop_ordered_static_start,
16382 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16383 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16384 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16385 gomp_loop_ordered_guided_next): Downcase name, make static, add
16386 an external alias with the old name.
16387 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16388 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16389 switch and call one of the above static functions.
16390 * libgomp.h: Update.
16392 * work.c (gomp_work_share_start): Lock the mutex for !first too.
16393 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16394 GOMP_loop_guided_start, GOMP_loop_runtime_start,
16395 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16396 GOMP_loop_ordered_guided_start): Update to match.
16397 * sections.c (GOMP_sections_start): Likewise.
16398 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16400 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16401 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16402 Use bounds check instead of modulus.
16403 (gomp_ordered_sync): Split out of GOMP_ordered_start.
16404 (gomp_ordered_last): Don't sync with ordered_owner here.
16405 (gomp_ordered_next): Likewise.
16406 (gomp_ordered_static_loop_next): Likewise.
16407 * loop.c, libgomp.h: Update to match.
16409 * libgomp.h (GOMP_barrier): Declare.
16411 * testsuite/barrier-1.c: New file.
16412 * testsuite/critical-1.c: New file.
16413 * testsuite/ordered-2.c: New file.
16414 * testsuite/ordered-1.c: New file.
16415 * testsuite/sections-1.c: New file.
16416 * testsuite/single-1.c: New file.
16417 * testsuite/Makefile (TESTS): Add them.
16419 2005-05-04 Richard Henderson <rth@redhat.com>
16421 * libgomp.h (struct gomp_work_share): Add ordered_owner.
16422 * loop.c (GOMP_loop_static_start): If not the startup thread,
16423 acquire the mutex to wait for initialization complete.
16424 (GOMP_loop_ordered_static_start): Likewise.
16425 (GOMP_loop_ordered_runtime_start): Likewise.
16426 (GOMP_loop_ordered_static_first): Remove.
16427 (GOMP_loop_ordered_dynamic_first): Remove.
16428 (GOMP_loop_ordered_guided_first): Remove.
16429 (GOMP_loop_ordered_runtime_first): Remove.
16430 * ordered.c (gomp_ordered_loop_first): Post to own release when
16431 we're the first thread.
16432 (gomp_ordered_loop_last): Wait on release if not owner.
16433 (gomp_ordered_loop_next): Likewise.
16434 (gomp_ordered_static_loop_init): New.
16435 (gomp_ordered_static_loop_next): Use ordered_owner.
16436 (GOMP_ordered_start): Likewise.
16437 * work.c (gomp_new_work_share): Initialize ordered_owner.
16439 2005-05-03 Richard Henderson <rth@redhat.com>
16441 * Makefile (OPT): New.
16444 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16445 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16446 * libgomp.h, libgomp.map, NOTES: Update to match.
16448 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16449 Add initialized and thr members.
16450 (gomp_thread_start): Pause when initially spawned to wait for
16451 the whole team to be created.
16452 (gomp_team_start): Release team members at the end.
16454 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
16455 (f_foo_1): Use GOMP_loop_end.
16456 (f_foo_2): Use GOMP_loop_end_nowait.
16458 * testsuite/loop-2.c: New file.
16459 * testsuite/Makefile (TESTS): Add it.
16461 2005-05-03 Richard Henderson <rth@redhat.com>
16463 * iter.c (gomp_iter_static_next): Fix overflow check typo.
16464 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16465 * team.c (new_team): Initialize oldest_live_gen to 1 if no
16466 initial work_share.
16468 * testsuite/Makefile: New file.
16469 * testsuite/loop-1.c: New file.
16471 2005-05-03 Richard Henderson <rth@redhat.com>
16473 Initial implementation and checkin.
16475 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16477 Copying and distribution of this file, with or without modification,
16478 are permitted in any medium without royalty provided the copyright
16479 notice and this notice are preserved.