Add tests for print from offload target.
[gcc.git] / libgomp / ChangeLog
1 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
2
3 * testsuite/libgomp.c/target-print-1.c: New file.
4 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5 * testsuite/libgomp.oacc-c/print-1.c: New file.
6 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7
8 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9 Kwok Cheung Yeung <kcy@codesourcery.com>
10 Julian Brown <julian@codesourcery.com>
11 Tom de Vries <tom@codesourcery.com>
12
13 * plugin/Makefrag.am: Add amdgcn plugin support.
14 * plugin/configfrag.ac: Likewise.
15 * plugin/plugin-gcn.c: New file.
16 * configure: Regenerate.
17 * Makefile.in: Regenerate.
18 * testsuite/Makefile.in: Regenerate.
19
20 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
21
22 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
23 and use team_malloc variants.
24 (gomp_gcn_exit_kernel): Use team_free.
25 * libgomp.h (TEAM_ARENA_SIZE): Define.
26 (TEAM_ARENA_START): Define.
27 (TEAM_ARENA_FREE): Define.
28 (TEAM_ARENA_END): Define.
29 (team_malloc): New function.
30 (team_malloc_cleared): New function.
31 (team_free): New function.
32 * team.c (gomp_new_team): Initialize and use team_malloc.
33 (free_team): Use team_free.
34 (gomp_free_thread): Use team_free.
35 (gomp_pause_host): Use team_free.
36 * work.c (gomp_init_work_share): Use team_malloc.
37 (gomp_fini_work_share): Use team_free.
38
39 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
40 Kwok Cheung Yeung <kcy@codesourcery.com>
41 Julian Brown <julian@codesourcery.com>
42 Tom de Vries <tom@codesourcery.com>
43
44 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
45 * Makefile.in: Regenerate.
46 * config.h.in (PLUGIN_GCN): Add new undef.
47 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
48 * config/gcn/affinity-fmt.c: New file.
49 * config/gcn/bar.c: New file.
50 * config/gcn/bar.h: New file.
51 * config/gcn/doacross.h: New file.
52 * config/gcn/icv-device.c: New file.
53 * config/gcn/oacc-target.c: New file.
54 * config/gcn/simple-bar.h: New file.
55 * config/gcn/target.c: New file.
56 * config/gcn/task.c: New file.
57 * config/gcn/team.c: New file.
58 * config/gcn/time.c: New file.
59 * configure.ac: Add amdgcn*-*-*.
60 * configure: Regenerate.
61 * configure.tgt: Add amdgcn*-*-*.
62 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
63 * libgomp.h (gcn_thrs): Add amdgcn variant.
64 (set_gcn_thrs): Likewise.
65 (gomp_thread): Likewise.
66 * oacc-int.h (goacc_thread): Likewise.
67 * oacc-target.c: New file.
68 * openacc.f90 (acc_device_gcn): New parameter.
69 * openacc.h (acc_device_t): Add acc_device_gcn.
70 * team.c (gomp_free_pool_helper): Add amdgcn support.
71
72 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
73 Julian Brown <julian@codesourcery.com>
74
75 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
76 parameter.
77 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
78 queue constructor.
79 * oacc-host.c (host_openacc_async_construct): Add device parameter.
80 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
81 device parameter.
82
83 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
84
85 * configure.tgt (nvptx*-*-*): Add "accel" directory.
86 * config/nvptx/libgomp-plugin.c: Move ...
87 * config/accel/libgomp-plugin.c: ... to here.
88 * config/nvptx/lock.c: Move ...
89 * config/accel/lock.c: ... to here.
90 * config/nvptx/mutex.c: Move ...
91 * config/accel/mutex.c: ... to here.
92 * config/nvptx/mutex.h: Move ...
93 * config/accel/mutex.h: ... to here.
94 * config/nvptx/oacc-async.c: Move ...
95 * config/accel/oacc-async.c: ... to here.
96 * config/nvptx/oacc-cuda.c: Move ...
97 * config/accel/oacc-cuda.c: ... to here.
98 * config/nvptx/oacc-host.c: Move ...
99 * config/accel/oacc-host.c: ... to here.
100 * config/nvptx/oacc-init.c: Move ...
101 * config/accel/oacc-init.c: ... to here.
102 * config/nvptx/oacc-mem.c: Move ...
103 * config/accel/oacc-mem.c: ... to here.
104 * config/nvptx/oacc-plugin.c: Move ...
105 * config/accel/oacc-plugin.c: ... to here.
106 * config/nvptx/omp-lock.h: Move ...
107 * config/accel/omp-lock.h: ... to here.
108 * config/nvptx/openacc.f90: Move ...
109 * config/accel/openacc.f90: ... to here.
110 * config/nvptx/pool.h: Move ...
111 * config/accel/pool.h: ... to here.
112 * config/nvptx/proc.c: Move ...
113 * config/accel/proc.c: ... to here.
114 * config/nvptx/ptrlock.c: Move ...
115 * config/accel/ptrlock.c: ... to here.
116 * config/nvptx/ptrlock.h: Move ...
117 * config/accel/ptrlock.h: ... to here.
118 * config/nvptx/sem.c: Move ...
119 * config/accel/sem.c: ... to here.
120 * config/nvptx/sem.h: Move ...
121 * config/accel/sem.h: ... to here.
122 * config/nvptx/thread-stacksize.h: Move ...
123 * config/accel/thread-stacksize.h: ... to here.
124
125 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
126 Tobias Burnus <tobias@codesourcery.com>
127 Frederik Harwath <frederik@codesourcery.com>
128 Thomas Schwinge <thomas@codesourcery.com>
129
130 libgomp/
131 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
132 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
133 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
134
135 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
136 Kwok Cheung Yeung <kcy@codesourcery.com>
137
138 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
139 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
140
141 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
142
143 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
144
145 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
146 run'.
147 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
148 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
149
150 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
151
152 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
153 Add expected warnings about missing reduction clauses.
154 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
155 Likewise.
156 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
157 Likewise.
158 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
159 Likewise.
160
161 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
162
163 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
164 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
165 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
166 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
167 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
168 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
169
170 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
171
172 PR fortran/92305
173 * testsuite/libgomp.fortran/allocatable2.f90: Use
174 unique numbers with 'stop'.
175 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
176 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
177 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
178 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
179 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
180
181 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
182
183 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
184 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
185 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
186 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
187 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
188 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
189
190 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
191
192 * testsuite/libgomp.fortran/target9.f90: New.
193
194 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
195
196 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
197 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
198 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
199 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
200 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
201 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
202 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
203 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
204 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
205 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
206 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
207 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
208 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
209 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
210 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
211 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
212 * testsuite/libgomp.fortran/associate1.f90: Ditto.
213 * testsuite/libgomp.fortran/associate2.f90: Ditto.
214 * testsuite/libgomp.fortran/associate3.f90: Ditto.
215 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
216 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
217 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
218 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
219 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
220 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
221 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
222 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
223 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
224 * testsuite/libgomp.fortran/character1.f90: Ditto.
225 * testsuite/libgomp.fortran/character2.f90: Ditto.
226 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
227 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
228 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
229 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
230 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
231 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
232 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
233 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
234 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
235 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
236 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
237 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
238 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
239 * testsuite/libgomp.fortran/do1.f90: Ditto.
240 * testsuite/libgomp.fortran/do2.f90: Ditto.
241 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
242 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
243 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
244 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
245 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
246 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
247 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
248 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
249 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
250 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
251 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
252 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
253 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
254 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
255 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
256 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
257 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
258 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
259 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
260 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
261 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
262 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
263 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
264 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
265 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
266 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
267 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
268 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
269 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
270 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
271 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
272 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
273 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
274 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
275 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
276 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
277 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
278 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
279 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
280 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
281 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
282 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
283 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
284 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
285 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
286 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
287 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
288 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
289 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
290 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
291 * testsuite/libgomp.fortran/lib1.f90: Ditto.
292 * testsuite/libgomp.fortran/lib4.f90: Ditto.
293 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
294 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
295 * testsuite/libgomp.fortran/nested1.f90: Ditto.
296 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
297 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
298 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
299 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
300 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
301 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
302 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
303 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
304 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
305 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
306 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
307 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
308 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
309 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
310 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
311 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
312 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
313 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
314 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
315 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
316 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
317 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
318 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
319 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
320 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
321 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
322 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
323 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
324 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
325 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
326 * testsuite/libgomp.fortran/pr28390.f: Ditto.
327 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
328 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
329 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
330 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
331 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
332 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
333 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
334 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
335 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
336 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
337 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
338 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
339 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
340 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
341 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
342 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
343 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
344 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
345 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
346 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
347 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
348 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
349 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
350 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
351 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
352 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
353 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
354 * testsuite/libgomp.fortran/reference1.f90: Ditto.
355 * testsuite/libgomp.fortran/reference2.f90: Ditto.
356 * testsuite/libgomp.fortran/retval1.f90: Ditto.
357 * testsuite/libgomp.fortran/retval2.f90: Ditto.
358 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
359 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
360 * testsuite/libgomp.fortran/simd1.f90: Ditto.
361 * testsuite/libgomp.fortran/simd2.f90: Ditto.
362 * testsuite/libgomp.fortran/simd3.f90: Ditto.
363 * testsuite/libgomp.fortran/simd4.f90: Ditto.
364 * testsuite/libgomp.fortran/simd5.f90: Ditto.
365 * testsuite/libgomp.fortran/simd6.f90: Ditto.
366 * testsuite/libgomp.fortran/simd7.f90: Ditto.
367 * testsuite/libgomp.fortran/stack.f90: Ditto.
368 * testsuite/libgomp.fortran/strassen.f90: Ditto.
369 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
370 * testsuite/libgomp.fortran/tabs2.f: Ditto.
371 * testsuite/libgomp.fortran/target1.f90: Ditto.
372 * testsuite/libgomp.fortran/target2.f90: Ditto.
373 * testsuite/libgomp.fortran/target3.f90: Ditto.
374 * testsuite/libgomp.fortran/target4.f90: Ditto.
375 * testsuite/libgomp.fortran/target5.f90: Ditto.
376 * testsuite/libgomp.fortran/target6.f90: Ditto.
377 * testsuite/libgomp.fortran/target7.f90: Ditto.
378 * testsuite/libgomp.fortran/target8.f90: Ditto.
379 * testsuite/libgomp.fortran/task1.f90: Ditto.
380 * testsuite/libgomp.fortran/task2.f90: Ditto.
381 * testsuite/libgomp.fortran/task3.f90: Ditto.
382 * testsuite/libgomp.fortran/task4.f90: Ditto.
383 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
384 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
385 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
386 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
387 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
388 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
389 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
390 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
391 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
392 * testsuite/libgomp.fortran/udr1.f90: Ditto.
393 * testsuite/libgomp.fortran/udr10.f90: Ditto.
394 * testsuite/libgomp.fortran/udr11.f90: Ditto.
395 * testsuite/libgomp.fortran/udr12.f90: Ditto.
396 * testsuite/libgomp.fortran/udr13.f90: Ditto.
397 * testsuite/libgomp.fortran/udr14.f90: Ditto.
398 * testsuite/libgomp.fortran/udr15.f90: Ditto.
399 * testsuite/libgomp.fortran/udr2.f90: Ditto.
400 * testsuite/libgomp.fortran/udr3.f90: Ditto.
401 * testsuite/libgomp.fortran/udr4.f90: Ditto.
402 * testsuite/libgomp.fortran/udr5.f90: Ditto.
403 * testsuite/libgomp.fortran/udr6.f90: Ditto.
404 * testsuite/libgomp.fortran/udr7.f90: Ditto.
405 * testsuite/libgomp.fortran/udr8.f90: Ditto.
406 * testsuite/libgomp.fortran/udr9.f90: Ditto.
407 * testsuite/libgomp.fortran/vla1.f90: Ditto.
408 * testsuite/libgomp.fortran/vla2.f90: Ditto.
409 * testsuite/libgomp.fortran/vla3.f90: Ditto.
410 * testsuite/libgomp.fortran/vla4.f90: Ditto.
411 * testsuite/libgomp.fortran/vla5.f90: Ditto.
412 * testsuite/libgomp.fortran/vla6.f90: Ditto.
413 * testsuite/libgomp.fortran/vla7.f90: Ditto.
414 * testsuite/libgomp.fortran/vla8.f90: Ditto.
415 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
416 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
417
418 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
419
420 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
421 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
422 Ditto; add 'dg-do run' for torture testing.
423 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
424 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
425 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
426 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
427 * testsuite/libgomp.fortran/pr28390.f: Ditto.
428 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
429 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
430 * testsuite/libgomp.fortran/task2.f90: Ditto.
431 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
432 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
433 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
434 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
435 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
436 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
437
438 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
439
440 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
441 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
442 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
443 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
444 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
445 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
446 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
447 Use 'stop' not abort().
448 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
449 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
450 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
451 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
452 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
453 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
454 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
455 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
456 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
457 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
458 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
459 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
460 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
461 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
462 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
463 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
464 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
465 Ditto.
466 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
467 Ditto.
468 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
469 Ditto.
470 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
471 Ditto.
472 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
473 Ditto.
474 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
475 Ditto.
476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
477 Ditto.
478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
479 Ditto.
480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
481 Ditto.
482 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
483 Ditto.
484 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
485 Ditto.
486 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
487 Ditto.
488 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
489 Ditto.
490 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
491 Ditto.
492 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
493 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
494 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
495 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
496 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
497 Likewise and also add 'dg-do run'.
498 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
499 Ditto.
500
501 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
502 Tobias Burnus <tobias@codesourcery.com>
503
504 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
505 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
506 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
507
508 2019-10-14 Jakub Jelinek <jakub@redhat.com>
509
510 PR libgomp/92081
511 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
512 than 0.
513
514 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
515
516 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
517 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
518
519 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
520
521 PR middle-end/92036
522 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
523 file.
524
525 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
526
527 PR testsuite/91884
528 * testsuite/libgomp.fortran/fortran.exp: Conditionally
529 add -lquadmath.
530 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
531
532 2019-10-09 Jakub Jelinek <jakub@redhat.com>
533
534 PR libgomp/92028
535 * target.c (gomp_map_vars_internal): Readd the previous
536 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
537 though do that just in the !not_found_cnt case.
538
539 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
540
541 * gfortran.dg/gomp/target-simd.f90: New.
542
543 2019-10-02 Julian Brown <julian@codesourcery.com>
544 Cesar Philippidis <cesar@codesourcery.com>
545
546 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
547 * target.c (FIELD_TGT_EMPTY): Define.
548 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
549 as switch instead of list of ifs.
550 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
551
552 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
553
554 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
555 include. Replace alloca () with __builtin_alloca ().
556 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
557
558 2019-10-01 Jakub Jelinek <jakub@redhat.com>
559
560 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
561 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
562 * oacc-parallel.c: Don't include "libgomp_g.h".
563 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
564 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
565 * aclocal.m4: Regenerated.
566 * config.h.in: Regenerated.
567 * configure: Regenerated.
568 * Makefile.in: Regenerated.
569
570 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
571
572 * libgomp_g.h: Include stdint.h instead of gstdint.h.
573
574 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
575
576 * configure: Regenerate.
577
578 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
579
580 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
581 string is initialized.
582
583 2019-09-06 Florian Weimer <fweimer@redhat.com>
584
585 * configure: Regenerate.
586
587 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
588
589 PR other/79543
590 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
591 scanning to conform to the GNU Coding Standards.
592 * configure: Regenerate.
593
594 2019-08-28 Jakub Jelinek <jakub@redhat.com>
595
596 PR libgomp/91530
597 * testsuite/libgomp.c/scan-21.c: New test.
598 * testsuite/libgomp.c/scan-22.c: New test.
599
600 2019-08-27 Jakub Jelinek <jakub@redhat.com>
601
602 PR libgomp/91530
603 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
604 targets.
605 * testsuite/libgomp.c/scan-12.c: Likewise.
606 * testsuite/libgomp.c/scan-13.c: Likewise.
607 * testsuite/libgomp.c/scan-14.c: Likewise.
608 * testsuite/libgomp.c/scan-15.c: Likewise.
609 * testsuite/libgomp.c/scan-16.c: Likewise.
610 * testsuite/libgomp.c/scan-17.c: Likewise.
611 * testsuite/libgomp.c/scan-18.c: Likewise.
612 * testsuite/libgomp.c/scan-19.c: Likewise.
613 * testsuite/libgomp.c/scan-20.c: Likewise.
614 * testsuite/libgomp.c++/scan-9.C: Likewise.
615 * testsuite/libgomp.c++/scan-10.C: Likewise.
616 * testsuite/libgomp.c++/scan-11.C: Likewise.
617 * testsuite/libgomp.c++/scan-12.C: Likewise.
618 * testsuite/libgomp.c++/scan-14.C: Likewise.
619 * testsuite/libgomp.c++/scan-15.C: Likewise.
620 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
621 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
622 * testsuite/libgomp.c++/scan-16.C: Likewise.
623
624 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
625
626 PR fortran/91473
627 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
628 -std=legacy so invalid code in the test case is accepted.
629
630 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
631
632 PR fortran/91422
633 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
634 dimension.
635
636 2019-08-08 Jakub Jelinek <jakub@redhat.com>
637
638 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
639 perform the lookup in the first loop only if !not_found_cnt, otherwise
640 perform lookups for it in the second loop guarded with
641 if (not_found_cnt || has_firstprivate).
642 * testsuite/libgomp.c/target-37.c: New test.
643 * testsuite/libgomp.c++/target-22.C: New test.
644
645 2019-08-07 Jakub Jelinek <jakub@redhat.com>
646
647 * testsuite/libgomp.c/target-18.c (struct S): New type.
648 (foo): Use use_device_addr clause instead of use_device_ptr clause
649 where required by OpenMP 5.0, add further tests for both use_device_ptr
650 and use_device_addr clauses.
651 * testsuite/libgomp.c++/target-9.C (struct S): New type.
652 (foo): Use use_device_addr clause instead of use_device_ptr clause
653 where required by OpenMP 5.0, add further tests for both use_device_ptr
654 and use_device_addr clauses. Add t and u arguments.
655 (main): Adjust caller.
656
657 2019-08-06 Jakub Jelinek <jakub@redhat.com>
658
659 * testsuite/libgomp.c++/loop-13.C: New test.
660 * testsuite/libgomp.c++/loop-14.C: New test.
661 * testsuite/libgomp.c++/loop-15.C: New test.
662
663 2019-07-31 Jakub Jelinek <jakub@redhat.com>
664
665 PR middle-end/91301
666 * testsuite/libgomp.c++/for-27.C: New test.
667
668 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
669
670 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
671 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
672
673 2019-07-20 Jakub Jelinek <jakub@redhat.com>
674
675 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
676
677 2019-07-08 Jakub Jelinek <jakub@redhat.com>
678
679 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
680 * testsuite/libgomp.c++/scan-16.C: Likewise.
681
682 2019-07-06 Jakub Jelinek <jakub@redhat.com>
683
684 * testsuite/libgomp.c/scan-19.c: New test.
685 * testsuite/libgomp.c/scan-20.c: New test.
686
687 * testsuite/libgomp.c/scan-11.c: New test.
688 * testsuite/libgomp.c/scan-12.c: New test.
689 * testsuite/libgomp.c/scan-13.c: New test.
690 * testsuite/libgomp.c/scan-14.c: New test.
691 * testsuite/libgomp.c/scan-15.c: New test.
692 * testsuite/libgomp.c/scan-16.c: New test.
693 * testsuite/libgomp.c/scan-17.c: New test.
694 * testsuite/libgomp.c/scan-18.c: New test.
695 * testsuite/libgomp.c++/scan-9.C: New test.
696 * testsuite/libgomp.c++/scan-10.C: New test.
697 * testsuite/libgomp.c++/scan-11.C: New test.
698 * testsuite/libgomp.c++/scan-12.C: New test.
699 * testsuite/libgomp.c++/scan-13.C: New test.
700 * testsuite/libgomp.c++/scan-14.C: New test.
701 * testsuite/libgomp.c++/scan-15.C: New test.
702 * testsuite/libgomp.c++/scan-16.C: New test.
703
704 2019-07-04 Jakub Jelinek <jakub@redhat.com>
705
706 * testsuite/libgomp.c/scan-9.c: New test.
707 * testsuite/libgomp.c/scan-10.c: New test.
708
709 2019-07-03 Jakub Jelinek <jakub@redhat.com>
710
711 * testsuite/libgomp.c++/scan-1.C: New test.
712 * testsuite/libgomp.c++/scan-2.C: New test.
713 * testsuite/libgomp.c++/scan-3.C: New test.
714 * testsuite/libgomp.c++/scan-4.C: New test.
715 * testsuite/libgomp.c++/scan-5.C: New test.
716 * testsuite/libgomp.c++/scan-6.C: New test.
717 * testsuite/libgomp.c++/scan-7.C: New test.
718 * testsuite/libgomp.c++/scan-8.C: New test.
719 * testsuite/libgomp.c/scan-1.c: New test.
720 * testsuite/libgomp.c/scan-2.c: New test.
721 * testsuite/libgomp.c/scan-3.c: New test.
722 * testsuite/libgomp.c/scan-4.c: New test.
723 * testsuite/libgomp.c/scan-5.c: New test.
724 * testsuite/libgomp.c/scan-6.c: New test.
725 * testsuite/libgomp.c/scan-7.c: New test.
726 * testsuite/libgomp.c/scan-8.c: New test.
727
728 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
729
730 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
731 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
732 Likewise.
733
734 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
735 check.
736
737 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
738
739 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
740 file.
741
742 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
743
744 PR fortran/90743
745 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
746 case.
747 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
748 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
749 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
750 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
751
752 PR testsuite/90861
753 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
754
755 PR middle-end/90862
756 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
757
758 2019-06-16 Tom de Vries <tdevries@suse.de>
759
760 PR tree-optimization/89376
761 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
762
763 2019-06-15 Tom de Vries <tdevries@suse.de>
764
765 PR tree-optimization/89713
766 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
767 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
768
769 2019-06-15 Jakub Jelinek <jakub@redhat.com>
770
771 PR middle-end/90779
772 * testsuite/libgomp.c/pr90779.c: New test.
773 * testsuite/libgomp.fortran/pr90779.f90: New test.
774
775 2019-06-15 Tom de Vries <tdevries@suse.de>
776
777 PR tree-optimization/90009
778 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
779
780 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
781
782 PR tree-optimization/89713
783 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
784
785 2019-06-11 Jakub Jelinek <jakub@redhat.com>
786
787 PR target/90811
788 * testsuite/libgomp.c/pr90811.c: New test.
789
790 2019-06-05 Jakub Jelinek <jakub@redhat.com>
791
792 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
793 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
794
795 2019-06-04 Jakub Jelinek <jakub@redhat.com>
796
797 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
798 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
799 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
800 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
801
802 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
803
804 * configure.ac: Call AX_COUNT_CPUS.
805 Substitute CPU_COUNT.
806 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
807 count fallback.
808 * aclocal.m4: Regenerate.
809 * configure: Regenerate.
810 * Makefile.in, testsuite/Makefile.in: Regenerate.
811
812 2019-05-29 Jakub Jelinek <jakub@redhat.com>
813
814 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
815 to ...
816 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
817 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
818 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
819
820 2019-05-27 Jakub Jelinek <jakub@redhat.com>
821
822 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
823
824 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
825
826 PR libgomp/90641
827 * work.c (gomp_init_work_share): Instead of aligning final ordered
828 value to multiples of long long alignment, align to that the
829 first part (ordered team ids) and if inline_ordered_team_ids
830 is not on a long long alignment boundary within the structure,
831 use __alignof__ (long long) - 1 pad size always.
832 * loop.c (GOMP_loop_start): Fix *mem computation if
833 inline_ordered_team_ids is not aligned on long long alignment boundary
834 within the structure.
835 * loop-ull.c (GOMP_loop_ull_start): Likewise.
836 * sections.c (GOMP_sections2_start): Likewise.
837
838 2019-05-24 Jakub Jelinek <jakub@redhat.com>
839
840 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
841 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
842
843 PR libgomp/90585
844 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
845 HAVE_INTTYPES_H is defined.
846 (print_uint64_t): New typedef.
847 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
848 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
849 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
850 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
851 before casting to void *.
852 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
853 * oacc-mem.c: Don't include config.h nor stdint.h.
854 * target.c: Don't include config.h.
855 * oacc-cuda.c: Likewise.
856 * oacc-host.c: Don't include stdint.h.
857
858 2019-05-20 Jakub Jelinek <jakub@redhat.com>
859
860 PR libgomp/90527
861 * alloc.c (_GNU_SOURCE): Define.
862
863 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
864
865 * acc_prof.h: New file.
866 * oacc-profiling.c: Likewise.
867 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
868 Add these, respectively.
869 * Makefile.in: Regenerate.
870 * env.c (initialize_env): Call goacc_profiling_initialize.
871 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
872 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
873 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
874 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
875 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
876 acc_prof_register, acc_prof_unregister, and acc_register_library.
877 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
878 GOMP_PLUGIN_goacc_thread.
879 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
880 prof_callbacks_enabled members.
881 (goacc_prof_enabled, goacc_profiling_initialize)
882 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
883 (goacc_profiling_dispatch): Declare.
884 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
885 (GOACC_PROFILING_SETUP_P): Define.
886 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
887 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
888 OpenACC Profiling Interface.
889 * oacc-cuda.c (acc_get_current_cuda_device)
890 (acc_get_current_cuda_context, acc_get_cuda_stream)
891 (acc_set_cuda_stream): Likewise.
892 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
893 (acc_init, acc_set_device_type, acc_get_device_type)
894 (acc_get_device_num, goacc_lazy_initialize): Likewise.
895 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
896 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
897 (acc_unmap_data, present_create_copy, delete_copyout)
898 (update_dev_host): Likewise.
899 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
900 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
901 Likewise.
902 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
903 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
904 Likewise.
905 * libgomp.texi: Update.
906 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
907 file.
908 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
909 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
910 Likewise.
911 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
912 Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
914 Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
916 Likewise.
917
918 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
919
920 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
921 (struct goacc_asyncqueue_list): Likewise.
922 (goacc_aq): Likewise.
923 (goacc_aq_list): Likewise.
924 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
925 (GOMP_OFFLOAD_openacc_async_test): Remove.
926 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
927 (GOMP_OFFLOAD_openacc_async_wait): Remove.
928 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
929 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
930 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
931 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
932 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
933 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
934 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
935 (GOMP_OFFLOAD_openacc_async_exec): Declare.
936 (GOMP_OFFLOAD_openacc_async_construct): Declare.
937 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
938 (GOMP_OFFLOAD_openacc_async_test): Declare.
939 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
940 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
941 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
942 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
943 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
944
945 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
946 (gomp_acc_insert_pointer): Adjust declaration.
947 (gomp_copy_host2dev): New declaration.
948 (gomp_copy_dev2host): Likewise.
949 (gomp_map_vars_async): Likewise.
950 (gomp_unmap_tgt): Likewise.
951 (gomp_unmap_vars_async): Likewise.
952 (gomp_fini_device): Likewise.
953
954 * oacc-async.c (get_goacc_thread): New function.
955 (get_goacc_thread_device): New function.
956 (lookup_goacc_asyncqueue): New function.
957 (get_goacc_asyncqueue): New function.
958 (acc_async_test): Adjust code to use new async design.
959 (acc_async_test_all): Likewise.
960 (acc_wait): Likewise.
961 (acc_wait_async): Likewise.
962 (acc_wait_all): Likewise.
963 (acc_wait_all_async): Likewise.
964 (goacc_async_free): New function.
965 (goacc_init_asyncqueues): Likewise.
966 (goacc_fini_asyncqueues): Likewise.
967 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
968 design.
969 (acc_set_cuda_stream): Likewise.
970 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
971 (host_openacc_register_async_cleanup): Remove.
972 (host_openacc_async_exec): New function.
973 (host_openacc_async_test): Adjust parameters.
974 (host_openacc_async_test_all): Remove.
975 (host_openacc_async_wait): Remove.
976 (host_openacc_async_wait_async): Remove.
977 (host_openacc_async_wait_all): Remove.
978 (host_openacc_async_wait_all_async): Remove.
979 (host_openacc_async_set_async): Remove.
980 (host_openacc_async_synchronize): New function.
981 (host_openacc_async_serialize): New function.
982 (host_openacc_async_host2dev): New function.
983 (host_openacc_async_dev2host): New function.
984 (host_openacc_async_queue_callback): New function.
985 (host_openacc_async_construct): New function.
986 (host_openacc_async_destruct): New function.
987 (struct gomp_device_descr host_dispatch): Remove initialization of old
988 interface, add intialization of new async sub-struct.
989 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
990 (goacc_attach_host_thread_to_device): Remove old async code usage.
991 * oacc-int.h (goacc_init_asyncqueues): New declaration.
992 (goacc_fini_asyncqueues): Likewise.
993 (goacc_async_copyout_unmap_vars): Likewise.
994 (goacc_async_free): Likewise.
995 (get_goacc_asyncqueue): Likewise.
996 (lookup_goacc_asyncqueue): Likewise.
997 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
998 design.
999 (present_create_copy): Adjust code to use new async design.
1000 (delete_copyout): Likewise.
1001 (update_dev_host): Likewise.
1002 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1003 async design.
1004 (gomp_acc_remove_pointer): Adjust code to use new async design.
1005 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1006 design.
1007 (GOACC_enter_exit_data): Likewise.
1008 (goacc_wait): Likewise.
1009 (GOACC_update): Likewise.
1010 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1011 when called, warn as obsolete in comment.
1012 * target.c (goacc_device_copy_async): New function.
1013 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1014 add goacc_device_copy_async case.
1015 (gomp_copy_dev2host): Likewise.
1016 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1017 (gomp_map_pointer): Likewise.
1018 (gomp_map_fields_existing): Likewise.
1019 (gomp_map_vars_internal): New always_inline function, renamed from
1020 gomp_map_vars.
1021 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1022 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1023 passing goacc_asyncqueue argument.
1024 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1025 (gomp_unref_tgt): New function.
1026 (gomp_unmap_vars_internal): New always_inline function, renamed from
1027 gomp_unmap_vars.
1028 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1029 (gomp_unmap_vars_async): Implement by calling
1030 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1031 (gomp_fini_device): New function.
1032 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1033 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1034 new async interface.
1035 (gomp_target_fini): Adjust code to call gomp_fini_device.
1036
1037 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1038 (struct ptx_stream): Remove.
1039 (struct nvptx_thread): Remove current_stream field.
1040 (cuda_map_create): Remove.
1041 (cuda_map_destroy): Remove.
1042 (map_init): Remove.
1043 (map_fini): Remove.
1044 (map_pop): Remove.
1045 (map_push): Remove.
1046 (struct goacc_asyncqueue): Define.
1047 (struct nvptx_callback): Define.
1048 (struct ptx_free_block): Define.
1049 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1050 stream_lock, and next fields.
1051 (enum ptx_event_type): Remove.
1052 (struct ptx_event): Remove.
1053 (ptx_event_lock): Remove.
1054 (ptx_events): Remove.
1055 (init_streams_for_device): Remove.
1056 (fini_streams_for_device): Remove.
1057 (select_stream_for_async): Remove.
1058 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1059 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1060 case.
1061 (nvptx_open_device): Add free_blocks initialization, remove
1062 init_streams_for_device call.
1063 (nvptx_close_device): Remove fini_streams_for_device call, add
1064 free_blocks destruct code.
1065 (event_gc): Remove.
1066 (event_add): Remove.
1067 (nvptx_exec): Adjust parameters and code.
1068 (nvptx_free): Likewise.
1069 (nvptx_host2dev): Remove.
1070 (nvptx_dev2host): Remove.
1071 (nvptx_set_async): Remove.
1072 (nvptx_async_test): Remove.
1073 (nvptx_async_test_all): Remove.
1074 (nvptx_wait): Remove.
1075 (nvptx_wait_async): Remove.
1076 (nvptx_wait_all): Remove.
1077 (nvptx_wait_all_async): Remove.
1078 (nvptx_get_cuda_stream): Remove.
1079 (nvptx_set_cuda_stream): Remove.
1080 (GOMP_OFFLOAD_alloc): Adjust code.
1081 (GOMP_OFFLOAD_free): Likewise.
1082 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1083 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1084 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1085 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1086 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1087 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1088 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1089 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1090 (cuda_free_argmem): New function.
1091 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1092 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1093 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1094 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1095 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1096 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1097 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1098 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1099 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1100 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1101 (cuda_callback_wrapper): New function.
1102 (cuda_memcpy_sanity_check): New function.
1103 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1104 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1105 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1106 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1107
1108 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1109
1110 PR target/87835
1111 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1112
1113 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1114
1115 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1116
1117 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1118
1119 * team.c (gomp_team_start): Initialize pool->threads[0].
1120
1121 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1122
1123 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1124 "-foffload=$offload_target".
1125 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1126 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1127 * testsuite/lib/libgomp.exp
1128 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1129 as (conceptually) merged into
1130 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1131 users.
1132
1133 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1134 * testsuite/libgomp-test-support.exp.in: Adjust.
1135 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1136 openacc_device_types_s.
1137 (offload_target_to_openacc_device_type): New proc.
1138 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1139 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1140 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1141 * Makefile.in: Regenerate.
1142 * configure: Likewise.
1143 * testsuite/Makefile.in: Likewise.
1144
1145 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1146 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1147 instead of OFFLOAD_TARGETS.
1148 * target.c (gomp_target_init): Adjust.
1149 * testsuite/libgomp-test-support.exp.in: Likewise.
1150 * testsuite/lib/libgomp.exp: Likewise. Populate
1151 openacc_device_types_s instead of offload_targets_s_openacc.
1152 (check_effective_target_openacc_nvidia_accel_selected)
1153 (check_effective_target_openacc_host_selected): Adjust.
1154 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1155 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1156 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1157 * Makefile.in: Regenerate.
1158 * config.h.in: Likewise.
1159 * configure: Likewise.
1160 * testsuite/Makefile.in: Likewise.
1161
1162 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1163 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1164 "offloading: supported, but hardware not accessible".
1165 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1166 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1167
1168 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1169
1170 PR c/87924
1171 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1172 goacc_wait().
1173 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1174 and related adjustment.
1175
1176 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1177
1178 PR c++/88988
1179 * testsuite/libgomp.c++/pr88988.C: New test.
1180
1181 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR middle-end/89002
1184 * testsuite/libgomp.c/pr89002.c: New test.
1185
1186 2019-01-28 Richard Biener <rguenther@suse.de>
1187
1188 PR testsuite/89064
1189 PR tree-optimization/86865
1190 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1191
1192 2019-01-24 Tom de Vries <tdevries@suse.de>
1193
1194 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1195 once instantiated_devices drops to 0.
1196
1197 2019-01-23 Tom de Vries <tdevries@suse.de>
1198
1199 PR target/PR88946
1200 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1201 cuMemFree.
1202 (nvptx_exec): Don't call map_push if mapnum == 0.
1203 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1204
1205 2019-01-23 Tom de Vries <tdevries@suse.de>
1206
1207 PR target/88941
1208 PR target/88939
1209 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1210 (map_fini): Remove "assert (!s->map->active)".
1211 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1212
1213 2019-01-23 Tom de Vries <tdevries@suse.de>
1214
1215 PR target/87835
1216 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1217 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1218
1219 2019-01-15 Tom de Vries <tdevries@suse.de>
1220
1221 PR target/80547
1222 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1223 New test.
1224
1225 2019-01-12 Tom de Vries <tdevries@suse.de>
1226
1227 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1228 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1229 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1230 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1231
1232 2019-01-12 Tom de Vries <tdevries@suse.de>
1233
1234 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1235
1236 2019-01-12 Tom de Vries <tdevries@suse.de>
1237
1238 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1239 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1240 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1241
1242 2019-01-12 Tom de Vries <tdevries@suse.de>
1243
1244 PR target/85486
1245 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1246 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1247
1248 2019-01-12 Tom de Vries <tdevries@suse.de>
1249
1250 PR target/85381
1251 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1252 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1253
1254 2019-01-12 Tom de Vries <tdevries@suse.de>
1255
1256 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1257 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1258 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1259
1260 2019-01-12 Tom de Vries <tdevries@suse.de>
1261
1262 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1263 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1264 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1265
1266 2019-01-12 Tom de Vries <tdevries@suse.de>
1267
1268 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1269 resources diagnostic.
1270
1271 2019-01-12 Tom de Vries <tdevries@suse.de>
1272
1273 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1274 vector length to be 128.
1275 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1276 length 2097152 to be reduced to 1024 instead of 32.
1277
1278 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1279 James Norris <jnorris@codesourcery.com>
1280
1281 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1282 Library Routines", and "Environment Variables".
1283
1284 2019-01-11 Tom de Vries <tdevries@suse.de>
1285
1286 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1287 num_workers 16.
1288
1289 2019-01-11 Tom de Vries <tdevries@suse.de>
1290
1291 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1292 -foffload=-w.
1293 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1294 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1295 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1296 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1297
1298 2019-01-11 Tom de Vries <tdevries@suse.de>
1299
1300 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1301 test.
1302
1303 2019-01-10 Nathan Sidwell <nathan@acm.org>
1304 Julian Brown <julian@codesourcery.com>
1305
1306 PR lto/71959
1307 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1308 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1309
1310 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1311
1312 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1313 and paste code.
1314
1315 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1316
1317 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1318 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1319 write.
1320
1321 2019-01-09 Tom de Vries <tdevries@suse.de>
1322
1323 PR target/88756
1324 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1325 #define instead of "const int".
1326 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1327 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1328 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1329 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1330
1331 2019-01-09 Tom de Vries <tdevries@suse.de>
1332
1333 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1334 one worker.
1335
1336 2019-01-07 Tom de Vries <tdevries@suse.de>
1337
1338 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1339 GOMP_OPENACC_DIM argument.
1340
1341 2019-01-03 Tom de Vries <tdevries@suse.de>
1342
1343 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1344 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1345
1346 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1347
1348 Update copyright years.
1349
1350 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1351
1352 * libgomp.texi: Bump @copying's copyright year.
1353
1354 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1355
1356 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1357 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1358 (GOACC_declare): Redefine the "device" argument to "flags".
1359
1360 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1361 Cesar Philippidis <cesar@codesourcery.com>
1362
1363 * target.c (struct gomp_coalesce_chunk): New structure.
1364 (struct gomp_coalesce_buf): Update the chunks member to use that
1365 type. Adjust all users.
1366
1367 2018-12-19 Tom de Vries <tdevries@suse.de>
1368
1369 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1370 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1371 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1372
1373 2018-12-19 Tom de Vries <tdevries@suse.de>
1374
1375 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1376 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1377 gcc/testsuite/gcc.dg/goacc.
1378 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1379
1380 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1381 Chung-Lin Tang <cltang@codesourcery.com>
1382
1383 * oacc-mem.c (acc_present_or_create): Remove definition and change
1384 to alias of acc_create.
1385 (acc_present_or_copyin): Remove definition and change to alias of
1386 acc_copyin.
1387 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1388 of acc_present_or_create.
1389 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1390 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1393 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1397 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1398 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1399 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1400 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1401 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1402 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1403 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1404 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1405
1406 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1407
1408 PR libgomp/88495
1409 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
1410 "identical parameters".
1411 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
1412 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
1413
1414 PR libgomp/88484
1415 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
1416 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
1417
1418 PR libgomp/88407
1419 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
1420 (nvptx_wait_async): Unseen async-argument is a no-op.
1421 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
1422 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
1423 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1424 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1425 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1426 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
1427 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
1428 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
1429 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
1430
1431 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
1432 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1433
1434 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
1435
1436 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
1437 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1438 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1439
1440 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1441
1442 PR libgomp/88370
1443 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
1444 (acc_set_cuda_stream): Clarify.
1445 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1446 "async_valid_p".
1447 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
1448 acc_async_sync".
1449 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
1450 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
1451 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
1452 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1453
1454 2018-12-14 Tom de Vries <tdevries@suse.de>
1455
1456 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
1457 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
1458 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
1459 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
1460 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
1461
1462 2018-12-13 Tom de Vries <tdevries@suse.de>
1463
1464 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
1465 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
1466 * fortran.c (omp_display_affinity_): ... here.
1467 * libgomp.h (gomp_print_string): Declare.
1468 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
1469 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1470 write.
1471
1472 2018-12-13 Jakub Jelinek <jakub@redhat.com>
1473
1474 PR libgomp/88460
1475 * testsuite/libgomp.c++/for-24.C (results): Include it in
1476 omp declare target region.
1477 (main): Use map (always, tofrom: results) instead of
1478 map (tofrom: results).
1479
1480 2018-12-12 Jakub Jelinek <jakub@redhat.com>
1481
1482 PR fortran/88463
1483 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
1484 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
1485
1486 * testsuite/libgomp.c-c++-common/for-16.c: New test.
1487
1488 2018-12-12 Andreas Schwab <schwab@suse.de>
1489
1490 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
1491 clobbered.
1492
1493 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1494
1495 PR fortran/88411
1496 * testsuite/libgomp.fortran/async_io_8.f90: New test.
1497
1498 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
1499 Jakub Jelinek <jakub@redhat.com>
1500
1501 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
1502 devicep->host2dev_func.
1503
1504 2018-12-08 Jakub Jelinek <jakub@redhat.com>
1505
1506 PR libgomp/87995
1507 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
1508 tls_runtime effective target.
1509 (t): New threadprivate variable.
1510 (main): Set t in threads which execute iterations of the worksharing
1511 loop. Propagate that to the task after the loop and don't abort
1512 if the current taskgroup hasn't been cancelled.
1513
1514 2018-12-02 Jakub Jelinek <jakub@redhat.com>
1515
1516 * testsuite/libgomp.c/task-reduction-3.c: New test.
1517
1518 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
1519
1520 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
1521
1522 PR libgomp/88288
1523 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1524 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1525
1526 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
1527
1528 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1529
1530 2018-10-19 Richard Biener <rguenther@suse.de>
1531
1532 PR tree-optimization/88182
1533 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1534
1535 2018-11-26 Jakub Jelinek <jakub@redhat.com>
1536
1537 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1538 (RUNTEST): Don't define.
1539 (RUNTESTDEFAULTFLAGS): Add.
1540 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1541 (distclean-am): Depend on distclean-DEJAGNU.
1542 (check-am): If -j% option is present in MFLAGS and if
1543 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1544 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1545 * testsuite/Makefile.in: Regenerated.
1546
1547 2018-11-26 Richard Biener <rguenther@suse.de>
1548
1549 PR tree-optimization/88182
1550 * testsuite/libgomp.c++/pr88182.C: New testcase.
1551
1552 2018-11-20 Jakub Jelinek <jakub@redhat.com>
1553
1554 PR bootstrap/88106
1555 * config/mingw32/affinity-fmt.c: New file.
1556
1557 2018-11-09 Jakub Jelinek <jakub@redhat.com>
1558
1559 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
1560 (gomp_display_affinity): Use __builtin_choose_expr to handle
1561 properly handle argument having integral, or pointer or some other
1562 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
1563 with uint64_t type instead of %llx and unsigned long long.
1564
1565 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
1566 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
1567
1568 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1569
1570 * affinity.c: Include <string.h>, <stdio.h>.
1571 (gomp_display_affinity_place): Remove cpusetp.
1572 * teams.c: Include <limits.h>.
1573
1574 2018-11-08 Jakub Jelinek <jakub@redhat.com>
1575
1576 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
1577 in_reduction clause for s[0].
1578
1579 * affinity.c (gomp_display_affinity_place): New function.
1580 * affinity-fmt.c: New file.
1581 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
1582 * config/linux/affinity.c (gomp_display_affinity_place): New function.
1583 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
1584 Move these functions to ...
1585 * config/nvptx/teams.c: ... here. New file.
1586 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
1587 New functions.
1588 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
1589 functions.
1590 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
1591 and _aligned_malloc.
1592 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
1593 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
1594 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
1595 gomp_affinity_format_len): New variables.
1596 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
1597 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
1598 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
1599 modifiers. Display (non-default) chunk sizes. Print
1600 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
1601 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
1602 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
1603 * fortran.c: Include stdio.h and string.h.
1604 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
1605 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
1606 (omp_set_affinity_format_, omp_get_affinity_format_,
1607 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
1608 omp_pause_resource_all_): New functions.
1609 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
1610 switch.
1611 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
1612 functions to ...
1613 * teams.c: ... here. New file.
1614 * libgomp_g.h: Include gstdint.h.
1615 (GOMP_loop_nonmonotonic_runtime_start,
1616 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
1617 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
1618 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
1619 GOMP_parallel_loop_nonmonotonic_runtime,
1620 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1621 GOMP_loop_ull_nonmonotonic_runtime_start,
1622 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
1623 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
1624 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1625 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
1626 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
1627 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1628 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1629 GOMP_teams_reg): Declare.
1630 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
1631 gomp_aligned_alloc uses fallback implementation.
1632 (gomp_aligned_alloc, gomp_aligned_free): Declare.
1633 (enum gomp_schedule_type): Add GFS_MONOTONIC.
1634 (struct gomp_doacross_work_share): Add extra field.
1635 (struct gomp_work_share): Add task_reductions field.
1636 (struct gomp_taskgroup): Add workshare and reductions fields.
1637 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1638 (gomp_thread_handle): New typedef.
1639 (gomp_display_affinity_place, gomp_set_affinity_format,
1640 gomp_display_string, gomp_display_affinity,
1641 gomp_display_affinity_thread): Declare.
1642 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1643 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1644 gomp_workshare_task_reduction_register): Declare.
1645 (gomp_team_start): Add taskgroup argument.
1646 (gomp_pause_host): Declare.
1647 (gomp_init_work_share, gomp_work_share_start): Change bool argument
1648 to size_t.
1649 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1650 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1651 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1652 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1653 GOMP_loop_ull_doacross_start,
1654 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1655 GOMP_loop_maybe_nonmonotonic_runtime_next,
1656 GOMP_loop_maybe_nonmonotonic_runtime_start,
1657 GOMP_loop_nonmonotonic_runtime_next,
1658 GOMP_loop_nonmonotonic_runtime_start,
1659 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1660 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1661 GOMP_loop_ull_nonmonotonic_runtime_next,
1662 GOMP_loop_ull_nonmonotonic_runtime_start,
1663 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1664 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1665 GOMP_taskgroup_reduction_register,
1666 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1667 GOMP_teams_reg and GOMP_taskwait_depend.
1668 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1669 omp_{capture,display}_affinity{,_}, and
1670 omp_[gs]et_affinity_format{,_}.
1671 * loop.c: Include string.h.
1672 (GOMP_loop_runtime_next): Add ialias.
1673 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1674 (gomp_loop_static_start, gomp_loop_dynamic_start,
1675 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1676 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1677 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1678 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1679 or gomp_doacross_init callers.
1680 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1681 GOMP_loop_doacross_start): New functions.
1682 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1683 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1684 Mask off GFS_MONOTONIC bit.
1685 (GOMP_loop_maybe_nonmonotonic_runtime_next,
1686 GOMP_loop_maybe_nonmonotonic_runtime_start,
1687 GOMP_loop_nonmonotonic_runtime_next,
1688 GOMP_loop_nonmonotonic_runtime_start,
1689 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1690 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1691 functions.
1692 (gomp_parallel_loop_start): Pass NULL as taskgroup to
1693 gomp_team_start.
1694 * loop_ull.c: Include string.h.
1695 (GOMP_loop_ull_runtime_next): Add ialias.
1696 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1697 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1698 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1699 gomp_loop_ull_ordered_dynamic_start,
1700 gomp_loop_ull_ordered_guided_start,
1701 gomp_loop_ull_doacross_static_start,
1702 gomp_loop_ull_doacross_dynamic_start,
1703 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1704 and gomp_doacross_ull_init callers.
1705 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1706 GOMP_loop_ull_doacross_start): New functions.
1707 (GOMP_loop_ull_runtime_start,
1708 GOMP_loop_ull_ordered_runtime_start,
1709 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1710 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1711 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1712 GOMP_loop_ull_nonmonotonic_runtime_next,
1713 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1714 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1715 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1716 (omp_pause_resource_t, omp_depend_t): New typedefs.
1717 (enum omp_lock_hint_t): Renamed to ...
1718 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
1719 enumerators using numbers and omp_lock_hint_* as their aliases.
1720 (omp_lock_hint_t): New typedef. Rename to ...
1721 (omp_sync_hint_t): ... this.
1722 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1723 omp_sync_hint_t instead of omp_lock_hint_t.
1724 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1725 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1726 Declare.
1727 (omp_target_is_present, omp_target_disassociate_ptr):
1728 Change first argument from void * to const void *.
1729 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1730 from void * to const void *.
1731 (omp_target_associate_ptr): Change first and second arguments from
1732 void * to const void *.
1733 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1734 omp_pause_hard): New parameters.
1735 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1736 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1737 New interfaces.
1738 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1739 omp_pause_hard): New parameters.
1740 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1741 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1742 New externals.
1743 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1744 EXTRA argument. If not needed to prepare array, if extra is 0,
1745 clear ws->doacross, otherwise allocate just doacross structure and
1746 extra payload. If array is needed, allocate also extra payload.
1747 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1748 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1749 doacross == NULL.
1750 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1751 gomp_team_start.
1752 (GOMP_parallel): Likewise. Formatting fix.
1753 (GOMP_parallel_reductions): New function.
1754 (GOMP_cancellation_point): If taskgroup has workshare
1755 flag set, check cancelled of prev taskgroup if any.
1756 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1757 on prev taskgroup if any.
1758 * sections.c: Include string.h.
1759 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1760 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1761 (GOMP_sections2_start): New function.
1762 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1763 Pass NULL as taskgroup to gomp_team_start.
1764 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1765 gomp_work_share_start callers.
1766 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1767 If taskgroup has workshare flag set, check cancelled on prev
1768 taskgroup if any. Guard all cancellation tests with
1769 gomp_cancel_var test.
1770 (omp_target_is_present, omp_target_disassociate_ptr):
1771 Change ptr argument from void * to const void *.
1772 (omp_target_memcpy): Change src argument from void * to const void *.
1773 (omp_target_memcpy_rect): Likewise.
1774 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1775 instead of char * where needed.
1776 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1777 from void * to const void *.
1778 (omp_pause_resource, omp_pause_resource_all): New functions.
1779 * task.c (gomp_task_handle_depend): Handle new depend array format
1780 in addition to the old. Handle mutexinoutset kinds the same as
1781 inout for now, handle unspecified kinds.
1782 (gomp_create_target_task): If taskgroup has workshare flag set, check
1783 cancelled on prev taskgroup if any. Guard all cancellation tests with
1784 gomp_cancel_var test. Handle new depend array format count in
1785 addition to the old.
1786 (GOMP_task): Likewise. Adjust function comment.
1787 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1788 cancelled on prev taskgroup if any. Guard all cancellation tests with
1789 gomp_cancel_var test.
1790 (GOMP_taskwait_depend): New function.
1791 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1792 format in addition to the old. Handle mutexinoutset kinds the same as
1793 inout for now, handle unspecified kinds. Fix a function comment typo.
1794 (gomp_taskgroup_init): New function.
1795 (GOMP_taskgroup_start): Use it.
1796 (gomp_reduction_register, gomp_create_artificial_team,
1797 GOMP_taskgroup_reduction_register,
1798 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1799 gomp_parallel_reduction_register,
1800 gomp_workshare_task_reduction_register,
1801 gomp_workshare_taskgroup_start,
1802 GOMP_workshare_task_reduction_unregister): New functions.
1803 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1804 check cancelled on prev taskgroup if any. Guard all cancellation
1805 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1806 by calling GOMP_taskgroup_reduction_register.
1807 * team.c (gomp_thread_attr): Remove comment.
1808 (struct gomp_thread_start_data): Add handle field.
1809 (gomp_thread_start): Call pthread_detach.
1810 (gomp_new_team): Adjust gomp_init_work_share caller.
1811 (gomp_free_pool_helper): Call pthread_detach.
1812 (gomp_team_start): Add taskgroup argument, initialize implicit
1813 tasks' taskgroup field to that. Don't call
1814 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1815 (gomp_team_end): Determine nesting by thr->ts.level != 0
1816 rather than thr->ts.team != NULL.
1817 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1818 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1819 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1820 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1821 if more than 1 allocate also extra payload at the end of array. Never
1822 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1823 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1824 return true instead of ws.
1825 * Makefile.in: Regenerated.
1826 * configure: Regenerated.
1827 * config.h.in: Regenerated.
1828 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1829 in some cases.
1830 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1831 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1832 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1833 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1834 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1835 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1836 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1837 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1838 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1839 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1840 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1841 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1842 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1843 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1844 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1845 define a different N(test), don't define N(f0) to N(f14), but instead
1846 define N(f20) to N(f34) using != comparisons.
1847 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1848 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1849 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1850 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1851 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1852 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1853 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1854 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1855 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1856 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1857 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1858 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1859 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1860 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1861 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1862 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1863 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1864 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1865 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1866 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1867 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1868 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1869 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1870 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1871 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1872 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1873 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1874 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1875 * testsuite/libgomp.c++/depend-1.C: New test.
1876 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1877 * testsuite/libgomp.c++/depobj-1.C: New test.
1878 * testsuite/libgomp.c++/for-16.C: New test.
1879 * testsuite/libgomp.c++/for-21.C: New test.
1880 * testsuite/libgomp.c++/for-22.C: New test.
1881 * testsuite/libgomp.c++/for-23.C: New test.
1882 * testsuite/libgomp.c++/for-24.C: New test.
1883 * testsuite/libgomp.c++/for-25.C: New test.
1884 * testsuite/libgomp.c++/for-26.C: New test.
1885 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1886 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1887 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1888 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1889 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1890 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1891 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1892 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1893 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1894 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1895 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1896 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1897 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1898 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1899 * testsuite/libgomp.c/task-reduction-1.c: New test.
1900 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1901 * testsuite/libgomp.c/task-reduction-2.c: New test.
1902 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1903 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1904 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1905 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1906 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1907 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1908 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1909 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1910 * testsuite/libgomp.c/teams-1.c: New test.
1911 * testsuite/libgomp.c/teams-2.c: New test.
1912 * testsuite/libgomp.c/thread-limit-4.c: New test.
1913 * testsuite/libgomp.c/thread-limit-5.c: New test.
1914 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1915
1916 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1917
1918 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1919 acc_memcpy_to/from_device functions, now with async parameter.
1920 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1921 (acc_memcpy_from_device): Likewise.
1922 (acc_memcpy_to_device_async): New API function.
1923 (acc_memcpy_from_device_async): Likewise.
1924 (present_create_copy): Add async parameter and async setting/unsetting.
1925 (acc_create): Adjust present_create_copy call.
1926 (acc_copyin): Likewise.
1927 (acc_present_or_create): Likewise.
1928 (acc_present_or_copyin): Likewise.
1929 (acc_create_async): New API function.
1930 (acc_copyin_async): New API function.
1931 (delete_copyout): Add async parameter and async setting/unsetting.
1932 (acc_delete): Adjust delete_copyout call.
1933 (acc_copyout): Likewise.
1934 (acc_delete_async): New API function.
1935 (acc_copyout_async): Likewise.
1936 (update_dev_host): Add async parameter and async setting/unsetting.
1937 (acc_update_device): Adjust update_dev_host call.
1938 (acc_update_self): Likewise.
1939 (acc_update_device_async): New API function.
1940 (acc_update_self_async): Likewise.
1941 * openacc.h (acc_copyin_async): Declare new API function.
1942 (acc_create_async): Likewise.
1943 (acc_copyout_async): Likewise.
1944 (acc_delete_async): Likewise.
1945 (acc_update_device_async): Likewise.
1946 (acc_update_self_async): Likewise.
1947 (acc_memcpy_to_device_async): Likewise.
1948 (acc_memcpy_from_device_async): Likewise.
1949 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1950 (acc_copyin_async_64_h): New subroutine.
1951 (acc_copyin_async_array_h): New subroutine.
1952 (acc_create_async_32_h): New subroutine.
1953 (acc_create_async_64_h): New subroutine.
1954 (acc_create_async_array_h): New subroutine.
1955 (acc_copyout_async_32_h): New subroutine.
1956 (acc_copyout_async_64_h): New subroutine.
1957 (acc_copyout_async_array_h): New subroutine.
1958 (acc_delete_async_32_h): New subroutine.
1959 (acc_delete_async_64_h): New subroutine.
1960 (acc_delete_async_array_h): New subroutine.
1961 (acc_update_device_async_32_h): New subroutine.
1962 (acc_update_device_async_64_h): New subroutine.
1963 (acc_update_device_async_array_h): New subroutine.
1964 (acc_update_self_async_32_h): New subroutine.
1965 (acc_update_self_async_64_h): New subroutine.
1966 (acc_update_self_async_array_h): New subroutine.
1967 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1968 (acc_copyin_async_64_h): New subroutine.
1969 (acc_copyin_async_array_h): New subroutine.
1970 (acc_create_async_32_h): New subroutine.
1971 (acc_create_async_64_h): New subroutine.
1972 (acc_create_async_array_h): New subroutine.
1973 (acc_copyout_async_32_h): New subroutine.
1974 (acc_copyout_async_64_h): New subroutine.
1975 (acc_copyout_async_array_h): New subroutine.
1976 (acc_delete_async_32_h): New subroutine.
1977 (acc_delete_async_64_h): New subroutine.
1978 (acc_delete_async_array_h): New subroutine.
1979 (acc_update_device_async_32_h): New subroutine.
1980 (acc_update_device_async_64_h): New subroutine.
1981 (acc_update_device_async_array_h): New subroutine.
1982 (acc_update_self_async_32_h): New subroutine.
1983 (acc_update_self_async_64_h): New subroutine.
1984 (acc_update_self_async_array_h): New subroutine.
1985 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1986 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1987 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1988 acc_memcpy_to_device_async*, acc_update_device_async*, and
1989 acc_update_self_async* entries.
1990 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1991 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1992 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1993
1994 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1995
1996 PR bootstrap/82856
1997 * Makefile.am: Include multilib.am
1998 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1999 (CLEANFILES): Remove libgomp.info.
2000 * configure.ac: Remove AC_PREREQ.
2001 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2002 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2003 Regenerate.
2004
2005 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2006 Julian Brown <julian@codesourcery.com>
2007
2008 * testsuite/libgomp.oacc-c++/this.C: New.
2009
2010 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2011
2012 * plugin/plugin-nvptx.c (struct cuda_map): New.
2013 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2014 h_tail with (cuda_map *) map.
2015 (cuda_map_create): New function.
2016 (cuda_map_destroy): New function.
2017 (map_init): Update to use a linked list of cuda_map objects.
2018 (map_fini): Likewise.
2019 (map_pop): Likewise.
2020 (map_push): Likewise. Return CUdeviceptr instead of void.
2021 (init_streams_for_device): Remove stales references to ptx_stream
2022 members.
2023 (select_stream_for_async): Likewise.
2024 (nvptx_exec): Update call to map_init.
2025
2026 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2027 Julian Brown <julian@codesourcery.com>
2028
2029 PR middle-end/86336
2030 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2031
2032 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2033 Thomas Koenig <tkoenig@gcc.gnu.org>
2034
2035 PR fortran/25829
2036 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2037 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2038 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2039 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2040 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2041 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2042 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2043
2044 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2045 Tom de Vries <tdevries@suse.de>
2046
2047 PR target/85590
2048 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2049 (cuOccupancyMaxPotentialBlockSize): Declare.
2050 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2051 CUDA_ONE_CALL_MAYBE_NULL.
2052 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2053 CUoccupancyB2DSize and declare
2054 cuOccupancyMaxPotentialBlockSize.
2055 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2056 default num_gangs and num_workers when the driver supports it.
2057
2058 2018-08-08 Tom de Vries <tdevries@suse.de>
2059
2060 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2061 CUDA_ONE_CALL_MAYBE_NULL.
2062 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2063 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2064 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2065 are not found.
2066
2067 2018-08-08 Tom de Vries <tdevries@suse.de>
2068
2069 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2070 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2071 present.
2072
2073 2018-08-08 Tom de Vries <tdevries@suse.de>
2074
2075 * plugin/plugin-nvptx.c
2076 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2077 (nvptx_open_device): Use
2078 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2079
2080 2018-08-08 Tom de Vries <tdevries@suse.de>
2081
2082 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2083 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2084
2085 2018-08-07 Tom de Vries <tdevries@suse.de>
2086
2087 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2088 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2089 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2090 corresponding call in CUDA_ONE_CALL. Add def/undef of
2091 CUDA_ONE_CALL_MAYBE_NULL.
2092 (CUDA_CALL_EXISTS): Define.
2093
2094 2018-08-07 Tom de Vries <tdevries@suse.de>
2095
2096 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2097 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2098 corresponding undefs right after.
2099
2100 2018-08-04 Tom de Vries <tdevries@suse.de>
2101
2102 * plugin/configfrag.ac: For --without-cuda-driver, set
2103 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2104 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2105 * configure: Regenerate.
2106
2107 2018-08-02 Tom de Vries <tdevries@suse.de>
2108
2109 PR target/86660
2110 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2111 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2112 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2113 Same.
2114 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2115 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2116 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2117
2118 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2119 Thomas Schwinge <thomas@codesourcery.com>
2120
2121 * config/nvptx/oacc-parallel.c: Truncate.
2122
2123 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2124 James Norris <jnorris@codesourcery.com>
2125
2126 * plugin/plugin-nvptx.c (struct map): Removed.
2127 (map_init, map_pop): Remove use of struct map.
2128 (map_push): Likewise and change argument list.
2129 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2130
2131 2018-08-01 Tom de Vries <tdevries@suse.de>
2132
2133 * plugin/cuda-lib.def: New file. Factor out of ...
2134 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2135 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2136 using CUDA_CALLS.
2137
2138 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2139
2140 Revert 'AsyncI/O patch committed'.
2141 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2142 Thomas Koenig <tkoenig@gcc.gnu.org>
2143
2144 PR fortran/25829
2145 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2146 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2147 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2148 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2149 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2150 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2151 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2152
2153 2018-07-30 Tom de Vries <tdevries@suse.de>
2154
2155 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2156 (nvptx_exec): Ensure worker and vector default dims don't exceed
2157 targ_fn->max_threads_per_block.
2158
2159 2018-07-30 Tom de Vries <tdevries@suse.de>
2160
2161 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2162 (nvptx_open_device): Init default_dims for device.
2163 (nvptx_exec): Use default_dims from device.
2164
2165 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2166
2167 PR testsuite/86660
2168 * testsuite/libgomp.c++/for-15.C (results): Include it in
2169 omp declare target region.
2170 (main): Use map (always, tofrom: results) instead of
2171 map (tofrom: results).
2172
2173 PR middle-end/86660
2174 * testsuite/libgomp.c/pr86660.c: New test.
2175
2176 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2177 Tom de Vries <tdevries@suse.de>
2178
2179 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2180 sufficient resources to launch a kernel, and give a hint on how to fix
2181 it.
2182
2183 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2184 Tom de Vries <tdevries@suse.de>
2185
2186 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2187 max_threads_per_block and max_threads_per_multiprocessor fields.
2188 (nvptx_open_device): Initialize new fields.
2189 (nvptx_exec): Use num_sms, and new fields.
2190
2191 2018-07-26 Tom de Vries <tdevries@suse.de>
2192
2193 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2194 to correct locations. Remove xfail.
2195
2196 2018-07-26 Tom de Vries <tdevries@suse.de>
2197
2198 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2199 acc_wait. Move acc_async_test calls to correct locations. Remove
2200 xfail.
2201
2202 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2203 Thomas Koenig <tkoenig@gcc.gnu.org>
2204
2205 PR fortran/25829
2206 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2207 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2208 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2209 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2210 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2211 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2212 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2213
2214 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2215
2216 PR middle-end/86542
2217 * testsuite/libgomp.c++/pr86542.C: New test.
2218
2219 PR middle-end/86539
2220 * testsuite/libgomp.c++/pr86539.C: New test.
2221
2222 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR c++/86443
2225 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2226 (results): Make sure the variable is not inside declare target region.
2227 (qux): Remove unused function.
2228
2229 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2230
2231 PR c++/86443
2232 * testsuite/libgomp.c++/for-15.C: New test.
2233
2234 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2235
2236 PR c++/86291
2237 * testsuite/libgomp.c++/pr86291.C: New test.
2238
2239 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2240
2241 * libgomp.texi (Top): Move www.openmp.org to https.
2242 (Enabling OpenMP): Ditto.
2243 (omp_get_active_level): Ditto.
2244 (omp_get_ancestor_thread_num): Ditto.
2245 (omp_get_cancellation): Ditto.
2246 (omp_get_default_device): Ditto.
2247 (omp_get_dynamic): Ditto.
2248 (omp_get_level): Ditto.
2249 (omp_get_max_active_levels): Ditto.
2250 (omp_get_max_task_priority): Ditto.
2251 (omp_get_max_threads): Ditto.
2252 (omp_get_nested): Ditto.
2253 (omp_get_num_devices): Ditto.
2254 (omp_get_num_procs): Ditto.
2255 (omp_get_num_teams): Ditto.
2256 (omp_get_num_threads): Ditto.
2257 (omp_get_proc_bind): Ditto.
2258 (omp_get_schedule): Ditto.
2259 (omp_get_team_num): Ditto.
2260 (omp_get_team_size): Ditto.
2261 (omp_get_thread_limit): Ditto.
2262 (omp_get_thread_num): Ditto.
2263 (omp_in_parallel): Ditto.
2264 (omp_in_final): Ditto.
2265 (omp_is_initial_device): Ditto.
2266 (omp_set_default_device): Ditto.
2267 (omp_set_dynamic): Ditto.
2268 (omp_set_max_active_levels): Ditto.
2269 (omp_set_nested): Ditto.
2270 (omp_set_num_threads): Ditto.
2271 (omp_set_schedule): Ditto.
2272 (omp_init_lock): Ditto.
2273 (omp_set_lock): Ditto.
2274 (omp_test_lock): Ditto.
2275 (omp_unset_lock): Ditto.
2276 (omp_destroy_lock): Ditto.
2277 (omp_init_nest_lock): Ditto.
2278 (omp_set_nest_lock): Ditto.
2279 (omp_test_nest_lock): Ditto.
2280 (omp_unset_nest_lock): Ditto.
2281 (omp_destroy_nest_lock): Ditto.
2282 (omp_get_wtick): Ditto.
2283 (omp_get_wtime): Ditto.
2284 (OMP_CANCELLATION): Ditto.
2285 (OMP_DISPLAY_ENV): Ditto.
2286 (OMP_DEFAULT_DEVICE): Ditto.
2287 (OMP_DYNAMIC): Ditto.
2288 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2289 (OMP_MAX_TASK_PRIORITY): Ditto.
2290 (OMP_NESTED): Ditto.
2291 (OMP_NUM_THREADS): Ditto.
2292 (OMP_PROC_BIND): Ditto.
2293 (OMP_PLACES): Ditto.
2294 (OMP_STACKSIZE): Ditto.
2295 (OMP_SCHEDULE): Ditto.
2296 (OMP_THREAD_LIMIT): Ditto.
2297 (OMP_WAIT_POLICY): Ditto.
2298
2299 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2300 James Norris <jnorris@codesourcery.com>
2301 Julian Brown <julian@codesourcery.com>
2302 Thomas Schwinge <thomas@codesourcery.com>
2303 Tom de Vries <tom@codesourcery.com>
2304
2305 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2306 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2307 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2308 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2309 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2310 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2311 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2312 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2313 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2315 Likewise.
2316 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2317 Likewise.
2318 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2319 Likewise.
2320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2321 Likewise.
2322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2323 Likewise.
2324 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2325 Likewise.
2326 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2327 Likewise.
2328 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2329 Likewise.
2330 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2331 Likewise.
2332 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2333 Likewise.
2334 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2335 Likewise.
2336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2337 Likewise.
2338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2339 Likewise.
2340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2341 Likewise.
2342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2343 Likewise.
2344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2345 Likewise.
2346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2347 Likewise.
2348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2349 Likewise.
2350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2351 Likewise.
2352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2353 Likewise.
2354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2355 Likewise.
2356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2357 Likewise.
2358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2359 Likewise.
2360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2361 Likewise.
2362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2363 Likewise.
2364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2365 Likewise.
2366 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2367 Likewise.
2368 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2369 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2370 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2371 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2372 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2373 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2374 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2375 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2376 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2377 Likewise.
2378 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2379 Likewise.
2380 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2381 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2382 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2383 Likewise.
2384 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2385 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2386 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2387 Likewise.
2388 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2389 Likewise.
2390 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2391 Likewise.
2392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2393 Likewise.
2394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2395 Likewise.
2396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2397 Likewise.
2398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2399 Likewise.
2400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2401 Likewise.
2402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2403 Likewise.
2404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2405 Likewise.
2406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2407 Likewise.
2408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2409 Likewise.
2410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2411 Likewise.
2412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2413 Likewise.
2414 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2415 Likewise.
2416 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2417 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
2418 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2419 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
2420 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
2421 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
2422 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
2423
2424 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
2425 Thomas Schwinge <thomas@codesourcery.com>
2426 Cesar Philippidis <cesar@codesourcery.com>
2427
2428 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
2429 (gomp_acc_remove_pointer): Update declaration.
2430 (gomp_acc_declare_allocate): Declare.
2431 (gomp_remove_var): Declare.
2432 * libgomp.map (OACC_2.5): Define.
2433 * oacc-mem.c (acc_map_data): Update refcount.
2434 (acc_unmap_data): Likewise.
2435 (present_create_copy): Likewise.
2436 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
2437 (acc_copyin): Likewise.
2438 (FLAG_FINALIZE): Define.
2439 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
2440 (acc_delete_finalize): New function.
2441 (acc_delete_finalize_async): New function.
2442 (acc_copyout_finalize): New function.
2443 (acc_copyout_finalize_async): New function.
2444 (gomp_acc_insert_pointer): Update refcounts.
2445 (gomp_acc_remove_pointer): Return if data is not present on the
2446 accelerator.
2447 * oacc-parallel.c (find_pset): Rename to find_pointer.
2448 (find_pointer): Add support for GOMP_MAP_POINTER.
2449 (handle_ftn_pointers): New function.
2450 (GOACC_parallel_keyed): Update refcounts of variables.
2451 (GOACC_enter_exit_data): Add support for finalized data mappings.
2452 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
2453 of fortran arrays.
2454 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
2455 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
2456 for GOMP_MAP_FORCE_FROM.
2457 * openacc.f90 (module openacc_internal): Add
2458 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
2459 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
2460 acc_copyout_finalize and acc_delete_finalize.
2461 (acc_copyout_finalize_32_h): New subroutine.
2462 (acc_copyout_finalize_64_h): New subroutine.
2463 (acc_copyout_finalize_array_h): New subroutine.
2464 (acc_delete_finalize_32_h): New subroutine.
2465 (acc_delete_finalize_64_h): New subroutine.
2466 (acc_delete_finalize_array_h): New subroutine.
2467 * openacc.h (acc_copyout_finalize): Declare.
2468 (acc_copyout_finalize_async): Declare.
2469 (acc_delete_finalize): Declare.
2470 (acc_delete_finalize_async): Declare.
2471 * openacc_lib.h (acc_copyout_finalize): New interface.
2472 (acc_delete_finalize): New interface.
2473 * target.c (gomp_map_vars): Update dynamic_refcount.
2474 (gomp_remove_var): New function.
2475 (gomp_unmap_vars): Use it.
2476 (gomp_unload_image_from_device): Likewise.
2477 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
2478 case to utilize OpenACC 2.5 data clause semantics.
2479 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2480 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2481 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2482 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2483 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2484 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2485 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2486 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2487 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2488 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2489 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2490 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
2491 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
2492 utilize OpenACC 2.5 data clause semantics.
2493 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2494 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2495 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2496 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2497 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2498 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2499 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2500 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2501 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2502
2503 2018-05-21 Janus Weil <janus@gcc.gnu.org>
2504
2505 PR fortran/85841
2506 PR testsuite/85865
2507 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
2508 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2509 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2510 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2511 * testsuite/libgomp.fortran/task2.f90: Ditto.
2512 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2513 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2514 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2515 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2516 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2517 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2518 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2519 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
2520 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
2521
2522 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
2523
2524 PR c++/85782
2525 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2526
2527 2018-05-09 Tom de Vries <tom@codesourcery.com>
2528
2529 PR libgomp/82901
2530 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2531 to GOACC_enter_exit_data.
2532
2533 2018-05-09 Tom de Vries <tom@codesourcery.com>
2534
2535 PR libgomp/83792
2536 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2537 (async_synchronous_p): New function.
2538 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2539 async_valid_p.
2540 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2541 async_valid_stream_id_p.
2542 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2543 * oacc-parallel.c (GOACC_parallel_keyed): Same.
2544
2545 2018-05-07 Tom de Vries <tom@codesourcery.com>
2546
2547 PR testsuite/85677
2548 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2549 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2550
2551 2018-05-03 Tom de Vries <tom@codesourcery.com>
2552
2553 PR testsuite/85106
2554 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2555 extra_tool_flags if it contains an -foffload=-fdump-* flag.
2556 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2557 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
2558
2559 2018-05-02 Tom de Vries <tom@codesourcery.com>
2560
2561 PR libgomp/85411
2562 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
2563 GOMP_OPENACC_DIM ...
2564 * env.c (parse_gomp_openacc_dim): ... here. New function.
2565 (initialize_env): Call parse_gomp_openacc_dim.
2566 (goacc_default_dims): Define.
2567 * libgomp.h (goacc_default_dims): Declare.
2568 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
2569 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
2570 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
2571 GOMP_PLUGIN_acc_default_dim.
2572 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
2573 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
2574
2575 2018-05-02 Tom de Vries <tom@codesourcery.com>
2576
2577 PR testsuite/83791
2578 * testsuite/libgomp.c++/udr-9.C: Update.
2579 * testsuite/libgomp.c++/atomic-16.C: Remove.
2580 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
2581 * testsuite/libgomp.c++/loop-13.C: Remove.
2582 * testsuite/libgomp.c++/loop-14.C: Remove.
2583 * testsuite/libgomp.c++/loop-15.C: Remove.
2584 * testsuite/libgomp.c++/monotonic-1.C: Remove.
2585 * testsuite/libgomp.c++/monotonic-2.C: Remove.
2586 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
2587 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
2588 * testsuite/libgomp.c++/ordered-1.C: Remove.
2589 * testsuite/libgomp.c++/pr45784.C: Remove.
2590 * testsuite/libgomp.c++/pr64824.C: Remove.
2591 * testsuite/libgomp.c++/pr64868.C: Remove.
2592 * testsuite/libgomp.c++/pr66199-1.C: Remove.
2593 * testsuite/libgomp.c++/pr66199-2.C: Remove.
2594 * testsuite/libgomp.c++/pr66199-3.C: Remove.
2595 * testsuite/libgomp.c++/pr66199-4.C: Remove.
2596 * testsuite/libgomp.c++/pr66199-5.C: Remove.
2597 * testsuite/libgomp.c++/pr66199-6.C: Remove.
2598 * testsuite/libgomp.c++/pr66199-7.C: Remove.
2599 * testsuite/libgomp.c++/pr66199-8.C: Remove.
2600 * testsuite/libgomp.c++/pr66199-9.C: Remove.
2601 * testsuite/libgomp.c++/pr69389.C: Remove.
2602 * testsuite/libgomp.c++/simd10.C: Remove.
2603 * testsuite/libgomp.c++/simd11.C: Remove.
2604 * testsuite/libgomp.c++/simd12.C: Remove.
2605 * testsuite/libgomp.c++/simd13.C: Remove.
2606 * testsuite/libgomp.c++/target-1.C: Remove.
2607 * testsuite/libgomp.c++/target-3.C: Remove.
2608 * testsuite/libgomp.c++/target-4.C: Remove.
2609 * testsuite/libgomp.c++/target-5.C: Remove.
2610 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
2611 * testsuite/libgomp.c++/taskloop-1.C: Remove.
2612 * testsuite/libgomp.c++/taskloop-2.C: Remove.
2613 * testsuite/libgomp.c++/taskloop-3.C: Remove.
2614 * testsuite/libgomp.c++/taskloop-4.C: Remove.
2615 * testsuite/libgomp.c++/udr-9.C: Remove.
2616 * testsuite/libgomp.c++/for-10.C: Remove.
2617 * testsuite/libgomp.c++/for-11.C: Remove.
2618 * testsuite/libgomp.c++/for-12.C: Remove.
2619 * testsuite/libgomp.c++/for-13.C: Remove.
2620 * testsuite/libgomp.c++/for-14.C: Remove.
2621 * testsuite/libgomp.c++/for-9.C: Remove.
2622 * testsuite/libgomp.c/atomic-18.c: Move ...
2623 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
2624 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
2625 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
2626 * testsuite/libgomp.c/loop-13.c: Move ...
2627 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
2628 * testsuite/libgomp.c/loop-14.c: Move ...
2629 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
2630 * testsuite/libgomp.c/loop-15.c: Remove.
2631 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
2632 * testsuite/libgomp.c/monotonic-1.c: Move ...
2633 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
2634 * testsuite/libgomp.c/monotonic-2.c: Move ...
2635 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2636 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2637 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2638 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2639 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2640 * testsuite/libgomp.c/ordered-4.c: Move ...
2641 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2642 * testsuite/libgomp.c/pr45784.c: Move ...
2643 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2644 * testsuite/libgomp.c/pr64824.c: Move ...
2645 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2646 * testsuite/libgomp.c/pr64868.c: Move ...
2647 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2648 * testsuite/libgomp.c/pr66199-1.c: Move ...
2649 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2650 * testsuite/libgomp.c/pr66199-2.c: Move ...
2651 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2652 * testsuite/libgomp.c/pr66199-3.c: Move ...
2653 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2654 * testsuite/libgomp.c/pr66199-4.c: Move ...
2655 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2656 * testsuite/libgomp.c/pr66199-5.c: Move ...
2657 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2658 * testsuite/libgomp.c/pr66199-6.c: Move ...
2659 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2660 * testsuite/libgomp.c/pr66199-7.c: Move ...
2661 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2662 * testsuite/libgomp.c/pr66199-8.c: Move ...
2663 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2664 * testsuite/libgomp.c/pr66199-9.c: Move ...
2665 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2666 * testsuite/libgomp.c/pr69389.c: Move ...
2667 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2668 * testsuite/libgomp.c/simd-14.c: Move ...
2669 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2670 * testsuite/libgomp.c/simd-15.c: Move ...
2671 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2672 * testsuite/libgomp.c/simd-16.c: Move ...
2673 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2674 * testsuite/libgomp.c/simd-17.c: Move ...
2675 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2676 * testsuite/libgomp.c/target-1.c: Move ...
2677 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2678 * testsuite/libgomp.c/target-10.c: Move ...
2679 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2680 * testsuite/libgomp.c/target-13.c: Move ...
2681 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2682 * testsuite/libgomp.c/target-2.c: Move ...
2683 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2684 * testsuite/libgomp.c/taskgroup-1.c: Move ...
2685 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2686 * testsuite/libgomp.c/taskloop-1.c: Move ...
2687 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2688 * testsuite/libgomp.c/taskloop-2.c: Move ...
2689 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2690 * testsuite/libgomp.c/taskloop-3.c: Move ...
2691 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2692 * testsuite/libgomp.c/taskloop-4.c: Move ...
2693 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2694 * testsuite/libgomp.c/udr-1.c: Move ...
2695 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2696 * testsuite/libgomp.c/for-1.c: Move ...
2697 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2698 * testsuite/libgomp.c/for-1.h: Move ...
2699 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2700 * testsuite/libgomp.c/for-2.c: Move ...
2701 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2702 * testsuite/libgomp.c/for-2.h: Move ...
2703 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2704 * testsuite/libgomp.c/for-3.c: Move ...
2705 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2706 * testsuite/libgomp.c/for-4.c: Move ...
2707 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2708 * testsuite/libgomp.c/for-5.c: Move ...
2709 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2710 * testsuite/libgomp.c/for-6.c: Move ...
2711 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2712
2713 2018-05-02 Tom de Vries <tom@codesourcery.com>
2714
2715 PR libgomp/82428
2716 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2717 __builtin_goacc_parlevel_{id,size}.
2718 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2719 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2720 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2721 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2722 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2723 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2724 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2725 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2726 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2727 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2728 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2729 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2730 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2731 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2732 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2733 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2734 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2735 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2736 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2737 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2738 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2739 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2740 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2741
2742 2018-05-02 Tom de Vries <tom@codesourcery.com>
2743
2744 PR testsuite/85106
2745 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2746
2747 2018-05-02 Tom de Vries <tom@codesourcery.com>
2748
2749 PR testsuite/85106
2750 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2751
2752 2018-04-29 Julian Brown <julian@codesourcery.com>
2753 Tom de Vries <tom@codesourcery.com>
2754
2755 PR testsuite/85527
2756 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2757 arbitrary order for iterations of atomic subtract check.
2758
2759 2018-04-28 Tom de Vries <tom@codesourcery.com>
2760
2761 PR testsuite/85527
2762 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2763 atomic capture results obtained in parallel loop to an array, instead of
2764 to a scalar.
2765
2766 2018-04-26 Tom de Vries <tom@codesourcery.com>
2767
2768 PR libgomp/84020
2769 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2770 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2771 (process_GOMP_NVPTX_JIT): New function.
2772 (link_ptx): Use process_GOMP_NVPTX_JIT.
2773
2774 2018-04-26 Richard Biener <rguenther@suse.de>
2775 Tom de Vries <tom@codesourcery.com>
2776
2777 PR lto/85422
2778 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2779
2780 2018-04-26 Tom de Vries <tom@codesourcery.com>
2781
2782 PR target/85519
2783 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2784 recursion depth from 25 to 23.
2785 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2786
2787 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2788
2789 * configure: Regenerated.
2790
2791 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2792 Tom de Vries <tom@codesourcery.com>
2793
2794 PR target/85445
2795 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2796
2797 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2798
2799 PR libgomp/85463
2800 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2801 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2802 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2803 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2804 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2805 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2806
2807 PR libfortran/85166
2808 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2809 abort".
2810 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2811
2812 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2813
2814 * configure: Regenerated.
2815
2816 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2817
2818 PR jit/85384
2819 * configure: Regenerate.
2820
2821 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2822 Tom de Vries <tom@codesourcery.com>
2823
2824 PR middle-end/84955
2825 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2826 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2827
2828 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2829
2830 PR fortran/83064
2831 PR testsuite/85346
2832 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2833 test from gfortran.dg to here.
2834
2835 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2836
2837 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2838 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2839
2840 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2841
2842 PR middle-end/84955
2843 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2844 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2845
2846 2018-04-05 Tom de Vries <tom@codesourcery.com>
2847
2848 PR target/85204
2849 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2850
2851 2018-03-26 Tom de Vries <tom@codesourcery.com>
2852
2853 PR tree-optimization/85063
2854 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2855 * testsuite/libgomp.c/switch-conversion.c: New test.
2856 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2857 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2858
2859 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2860
2861 PR fortran/84381
2862 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2863 call abort by STOP n.
2864 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2865 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2866 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2867 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2868 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2869 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2870 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2871 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2872 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2873 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2874 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2875 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2876 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2877 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2878 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2879 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2880 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2881 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2882 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2883 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2884 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2885 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2886 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2887 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2888 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2889 * testsuite/libgomp.fortran/character1.f90: Likewise.
2890 * testsuite/libgomp.fortran/character2.f90: Likewise.
2891 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2892 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2893 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2894 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2895 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2896 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2897 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2898 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2899 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2900 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2901 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2902 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2903 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2904 * testsuite/libgomp.fortran/do1.f90: Likewise.
2905 * testsuite/libgomp.fortran/do2.f90: Likewise.
2906 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2907 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2908 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2909 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2910 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2911 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2912 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2913 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2914 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2915 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2916 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2917 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2918 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2919 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2920 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2921 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2922 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2923 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2924 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2925 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2926 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2927 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2928 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2929 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2930 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2931 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2932 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2933 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2934 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2935 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2936 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2937 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2938 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2939 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2940 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2941 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2942 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2943 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2944 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2945 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2946 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2947 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2948 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2949 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2950 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2951 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2952 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2953 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2954 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2955 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2956 * testsuite/libgomp.fortran/lib2.f: Likewise.
2957 * testsuite/libgomp.fortran/lib3.f: Likewise.
2958 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2959 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2960 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2961 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2962 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2963 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2964 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2965 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2966 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2967 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2968 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2969 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2970 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2971 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2972 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2973 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2974 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2975 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2976 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2977 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2978 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2979 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2980 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2981 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2982 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2983 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2984 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2985 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2986 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2987 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2988 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2989 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2990 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2991 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2992 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2993 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2994 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2995 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2996 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2997 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2998 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2999 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3000 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3001 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3002 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3003 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3004 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3005 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3006 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3007 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3008 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3009 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3010 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3011 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3012 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3013 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3014 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3015 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3016 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3017 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3018 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3019 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3020 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3021 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3022 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3023 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3024 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3025 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3026 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3027 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3028 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3029 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3030 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3031 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3032 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3033 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3034 * testsuite/libgomp.fortran/stack.f90: Likewise.
3035 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3036 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3037 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3038 * testsuite/libgomp.fortran/target1.f90: Likewise.
3039 * testsuite/libgomp.fortran/target2.f90: Likewise.
3040 * testsuite/libgomp.fortran/target3.f90: Likewise.
3041 * testsuite/libgomp.fortran/target4.f90: Likewise.
3042 * testsuite/libgomp.fortran/target5.f90: Likewise.
3043 * testsuite/libgomp.fortran/target6.f90: Likewise.
3044 * testsuite/libgomp.fortran/target7.f90: Likewise.
3045 * testsuite/libgomp.fortran/target8.f90: Likewise.
3046 * testsuite/libgomp.fortran/task1.f90: Likewise.
3047 * testsuite/libgomp.fortran/task2.f90: Likewise.
3048 * testsuite/libgomp.fortran/task3.f90: Likewise.
3049 * testsuite/libgomp.fortran/task4.f90: Likewise.
3050 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3051 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3052 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3053 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3054 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3055 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3056 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3057 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3058 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3059 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3060 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3061 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3062 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3063 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3064 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3065 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3066 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3067 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3068 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3069 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3070 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3071 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3072 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3073 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3074 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3075 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3076 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3077 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3078 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3079 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3080 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3081 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3082 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3083 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3084 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3085 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3086 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3087 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3088 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3089 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3090 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3091 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3092 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3093 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3094 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3095 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3096 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3097 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3098 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3099 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3100 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3101 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3102 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3103 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3104 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3105 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3106 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3107 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3108 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3109 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3110 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3111 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3112 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3113 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3114 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3115 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3116 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3117 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3118 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3119 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3120 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3121 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3122 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3123 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3124 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3125 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3126 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3127 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3128 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3129 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3130 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3131 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3132 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3133 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3134 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3135 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3136 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3137 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3138 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3139 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3140 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3141 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3142 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3143 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3144 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3145 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3146 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3147 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3148 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3149 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3150 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3151 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3152 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3153 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3154 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3155 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3156 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3157 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3158 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3159 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3160 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3161 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3162 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3163 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3164 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3165 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3166 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3167 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3168 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3169 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3170 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3171 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3172 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3173 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3174 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3175 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3176
3177 2018-03-20 Richard Biener <rguenther@suse.de>
3178
3179 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3180 parallelizable loop.
3181
3182 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3183
3184 PR target/84148
3185 * configure: Regenerate.
3186
3187 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR fortran/84418
3190 * libgomp.fortran/pr84418-1.f90: New test.
3191 * libgomp.fortran/pr84418-2.f90: New test.
3192
3193 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3194
3195 PR fortran/84313
3196 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3197 -std=f2003 -fall-intrinsics into dg-additional-options.
3198
3199 2018-02-08 Martin Jambor <mjambor@suse.cz>
3200
3201 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3202 clonable.
3203
3204 2018-02-08 Martin Jambor <mjambor@suse.cz>
3205
3206 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3207
3208 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3209
3210 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3211 [__cplusplus]: Declare extern "C".
3212
3213 2018-02-07 Tom de Vries <tom@codesourcery.com>
3214
3215 PR libgomp/84217
3216 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3217
3218 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3219 Jakub Jelinek <jakub@redhat.com>
3220
3221 PR libgomp/84096
3222 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3223 instead of omp_lock_t.
3224
3225 2018-01-25 Tom de Vries <tom@codesourcery.com>
3226
3227 PR target/84028
3228 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3229
3230 2018-01-24 Tom de Vries <tom@codesourcery.com>
3231
3232 PR target/83589
3233 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3234
3235 2018-01-24 Tom de Vries <tom@codesourcery.com>
3236
3237 PR target/81352
3238 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3239
3240 2018-01-19 Tom de Vries <tom@codesourcery.com>
3241 Cesar Philippidis <cesar@codesourcery.com>
3242
3243 PR target/83920
3244 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3245 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3246
3247 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3248
3249 Update copyright years.
3250
3251 * libgomp.texi: Bump @copying's copyright year.
3252
3253 2017-12-30 Tom de Vries <tom@codesourcery.com>
3254
3255 PR libgomp/83046
3256 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3257 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3258
3259 2017-12-27 Tom de Vries <tom@codesourcery.com>
3260
3261 PR c++/83046
3262 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3263 (test_nonstatic): Fix return type to workaround PR83046.
3264
3265 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3266
3267 PR testsuite/83281
3268 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3269 j suffix instead of i.
3270 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3271 Likewise.
3272
3273 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3274
3275 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3276 call to acc_wait (1).
3277
3278 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3279
3280 PR fortran/81304
3281 * testsuite/libgomp.fortran/pr81304.f90: New test.
3282
3283 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3284
3285 PR fortran/81841
3286 * libgomp.fortran/pr81841.f90: New test.
3287
3288 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3289
3290 PR libgomp/83106
3291 * target.c (gomp_target_init): Compute lengths just once and
3292 use them in both malloc size and subsequent copying.
3293
3294 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3295
3296 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3297 * acinclude.m4: Add cet.m4.
3298 * configure: Regenerate.
3299 * Makefile.in: Likewise.
3300 * testsuite/Makefile.in: Likewise.
3301
3302 2017-11-15 Tom de Vries <tom@codesourcery.com>
3303
3304 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3305 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3306 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3307 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3308 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3309 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3310
3311 2017-11-14 Tom de Vries <tom@codesourcery.com>
3312
3313 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3314 non-nvidia devices.
3315
3316 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3317
3318 PR c++/82835
3319 * testsuite/libgomp.c++/pr82835.C: New test.
3320
3321 2017-11-06 Martin Liska <mliska@suse.cz>
3322
3323 * testsuite/libgomp.c++/loop-2.C: Return a value
3324 for functions with non-void return type, or change type to void,
3325 or add -Wno-return-type for test.
3326 * testsuite/libgomp.c++/loop-4.C: Likewise.
3327 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3328 * testsuite/libgomp.c++/shared-1.C: Likewise.
3329 * testsuite/libgomp.c++/single-1.C: Likewise.
3330 * testsuite/libgomp.c++/single-2.C: Likewise.
3331
3332 2017-10-31 Tom de Vries <tom@codesourcery.com>
3333
3334 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3335 "do {} while (false)".
3336 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3337 after HSA_DEBUG call.
3338
3339 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3340
3341 * target.c (struct gomp_coalesce_buf): New type.
3342 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3343 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3344 (gomp_copy_host2dev): Add CBUF argument, if copying into
3345 the cached ranges, memcpy into buffer instead of copying
3346 into device.
3347 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3348 Add CBUF argument, pass it through to other calls.
3349 (gomp_map_vars): Aggregate copies from host to device if small enough
3350 and with small enough gaps in between into memcpy into a buffer and
3351 fewer host to device copies from the buffer.
3352 (gomp_update): Adjust gomp_copy_host2dev caller.
3353
3354 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3355
3356 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3357 run" directive.
3358 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3359 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3360 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3361 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3362
3363 2017-10-16 Tom de Vries <tom@codesourcery.com>
3364
3365 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3366 openacc_nvidia_accel_selected.
3367 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3368 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3369 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3370 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3371 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3372 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3373 openacc_nvidia_accel_selected. Skip for shared memory device.
3374 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3375 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3376
3377 2017-10-09 Martin Jambor <mjambor@suse.cz>
3378
3379 PR hsa/82416
3380 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3381
3382 2017-10-07 Tom de Vries <tom@codesourcery.com>
3383
3384 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3385 Remove acc_device_nvidia references.
3386 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3387 Same.
3388
3389 2017-10-05 Tom de Vries <tom@codesourcery.com>
3390
3391 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3392 vector_length(32) clause from acc parallel directive.
3393 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3394
3395 2017-10-04 Tom de Vries <tom@codesourcery.com>
3396
3397 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3398 (main): Reduce sum of arr elements. Assert that hres is exactly
3399 representable in 32-bit floating point.
3400 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3401 (main): Reduce sum of arr elements. Assert that hres and hmres are
3402 exactly representable in 32-bit floating point.
3403 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3404
3405 2017-09-28 Tom de Vries <tom@codesourcery.com>
3406
3407 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
3408 setting.
3409 * testsuite/libgomp.c++/pr69393.C: Same.
3410 * testsuite/libgomp.c++/taskloop-1.C: Same.
3411 * testsuite/libgomp.c++/taskloop-3.C: Same.
3412 * testsuite/libgomp.c++/taskloop-4.C: Same.
3413 * testsuite/libgomp.c/for-4.c: Same.
3414 * testsuite/libgomp.c/pr66199-3.c: Same.
3415 * testsuite/libgomp.c/pr66199-4.c: Same.
3416 * testsuite/libgomp.c/pr66199-6.c: Same.
3417 * testsuite/libgomp.c/taskloop-1.c: Same.
3418 * testsuite/libgomp.c/taskloop-3.c: Same.
3419 * testsuite/libgomp.c/taskloop-4.c: Same.
3420 * testsuite/libgomp.fortran/aligned1.f03: Same.
3421 * testsuite/libgomp.fortran/condinc1.f: Same.
3422 * testsuite/libgomp.fortran/condinc3.f90: Same.
3423 * testsuite/libgomp.fortran/crayptr1.f90: Same.
3424 * testsuite/libgomp.fortran/crayptr2.f90: Same.
3425 * testsuite/libgomp.fortran/crayptr3.f90: Same.
3426 * testsuite/libgomp.fortran/omp_cond1.f: Same.
3427 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
3428 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
3429 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
3430 * testsuite/libgomp.fortran/recursion1.f90: Same.
3431 * testsuite/libgomp.fortran/target2.f90: Same.
3432 * testsuite/libgomp.fortran/target5.f90: Same.
3433 * testsuite/libgomp.fortran/task3.f90: Same.
3434
3435 2017-09-28 Tom de Vries <tom@codesourcery.com>
3436
3437 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
3438 vector_length(32) clause from acc parallel directive.
3439 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
3440
3441 2017-09-27 Tom de Vries <tom@codesourcery.com>
3442
3443 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
3444 Remove acc_device_nvidia references.
3445
3446 2017-09-16 Tom de Vries <tom@codesourcery.com>
3447
3448 PR c/81875
3449 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
3450
3451 2017-09-14 Tom de Vries <tom@codesourcery.com>
3452
3453 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
3454 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
3455 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
3456 * testsuite/libgomp.c/c.exp: Include test-cases from
3457 libgomp.c-c++-common.
3458 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
3459 files.
3460
3461 2017-09-14 Jakub Jelinek <jakub@redhat.com>
3462
3463 PR c++/81314
3464 * testsuite/libgomp.c++/pr81314.C: New test.
3465
3466 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
3467
3468 * libgomp.texi (Top): www.openacc.org now uses https.
3469 (Enabling OpenACC): Ditto.
3470 (acc_get_num_devices): Ditto.
3471 (acc_set_device_type): Ditto.
3472 (acc_get_device_type): Ditto.
3473 (acc_set_device_num): Ditto.
3474 (acc_get_device_num): Ditto.
3475 (acc_async_test): Ditto.
3476 (acc_async_test_all): Ditto.
3477 (acc_wait): Ditto.
3478 (acc_wait_all): Ditto.
3479 (acc_wait_all_async): Ditto.
3480 (acc_wait_async): Ditto.
3481 (acc_init): Ditto.
3482 (acc_shutdown): Ditto.
3483 (acc_on_device): Ditto.
3484 (acc_malloc): Ditto.
3485 (acc_free): Ditto.
3486 (acc_copyin): Ditto.
3487 (acc_present_or_copyin): Ditto.
3488 (acc_create): Ditto.
3489 (acc_present_or_create): Ditto.
3490 (acc_copyout): Ditto.
3491 (acc_delete): Ditto.
3492 (acc_update_device): Ditto.
3493 (acc_update_self): Ditto.
3494 (acc_map_data): Ditto.
3495 (acc_unmap_data): Ditto.
3496 (acc_deviceptr): Ditto.
3497 (acc_hostptr): Ditto.
3498 (acc_is_present): Ditto.
3499 (acc_memcpy_to_device): Ditto.
3500 (acc_memcpy_from_device): Ditto.
3501 (acc_get_current_cuda_device): Ditto.
3502 (acc_get_current_cuda_context): Ditto.
3503 (acc_get_cuda_stream): Ditto.
3504 (acc_set_cuda_stream): Ditto.
3505 (ACC_DEVICE_TYPE): Ditto.
3506 (ACC_DEVICE_NUM): Ditto.
3507 (OpenACC Library Interoperability): Ditto.
3508
3509 2017-08-09 Jakub Jelinek <jakub@redhat.com>
3510
3511 PR c/81687
3512 * testsuite/libgomp.c/pr81687-1.c: New test.
3513 * testsuite/libgomp.c/pr81687-2.c: New test.
3514
3515 2017-08-07 Jakub Jelinek <jakub@redhat.com>
3516
3517 PR c/69389
3518 * testsuite/libgomp.c/pr69389.c: New test.
3519 * testsuite/libgomp.c++/pr69389.C: New test.
3520
3521 2017-08-07 Tom de Vries <tom@codesourcery.com>
3522
3523 PR middle-end/78266
3524 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3525 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3526
3527 2017-07-27 Jakub Jelinek <jakub@redhat.com>
3528
3529 PR c/45784
3530 * testsuite/libgomp.c/pr45784.c: New test.
3531 * testsuite/libgomp.c++/pr45784.C: New test.
3532
3533 2017-07-19 Tom de Vries <tom@codesourcery.com>
3534
3535 * testsuite/libgomp.oacc-c/vec.c: New test.
3536
3537 2017-07-03 Tom de Vries <tom@codesourcery.com>
3538
3539 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3540
3541 2017-06-27 Tom de Vries <tom@codesourcery.com>
3542
3543 * plugin/plugin-nvptx.c (notify_var): New function.
3544 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3545
3546 2017-06-27 Tom de Vries <tom@codesourcery.com>
3547
3548 * env.c (parse_unsigned_long_1): Factor out of ...
3549 (parse_unsigned_long): ... here.
3550 (parse_int_1): Factor out of ...
3551 (parse_int): ... here.
3552 (parse_int_secure): New function.
3553 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3554 * secure_getenv.h: Factor out of ...
3555 * plugin/plugin-hsa.c: ... here.
3556 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3557
3558 2017-06-21 Jakub Jelinek <jakub@redhat.com>
3559
3560 PR c++/81130
3561 * testsuite/libgomp.c++/pr81130.C: New test.
3562
3563 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3564
3565 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
3566 default args.
3567 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
3568 dg-xfail-run-if default args.
3569
3570 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3571
3572 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
3573 * testsuite/libgomp.c/pr39591-3.c: Likewise.
3574
3575 2017-05-30 Jakub Jelinek <jakub@redhat.com>
3576
3577 PR libgomp/80822
3578 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
3579 (gomp_affinity_init_level): Use it. Always analyze the core and thread
3580 sibling lists, depending on level just pick up what CPUs to put
3581 together into a place vs. whether add multiple ordered places.
3582
3583 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
3584
3585 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
3586 * libgomp.map (OACC_2.0.1): Add these.
3587 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
3588 for "acc_wait", and "acc_wait_all", respectively.
3589 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
3590 for "acc_wait", and "acc_wait_all", respectively.
3591 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
3592 * libgomp.texi (acc_wait, acc_wait_all): Update.
3593 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
3594 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
3595 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3596
3597 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
3598 acc_present_or_copyin and acc_present_or_create procedures,
3599 respectively.
3600 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
3601 generally different variants of OpenACC Runtime Library functions.
3602 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3603
3604 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
3605 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3606
3607 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
3608 of preprocessor definitions.
3609 * libgomp.h (strong_alias): Guard by "#ifdef
3610 HAVE_ATTRIBUTE_ALIAS".
3611 * oacc-mem.c: Provide "acc_pcreate" as alias for
3612 "acc_present_or_create", and "acc_pcopyin" as alias for
3613 "acc_present_or_copyin".
3614 * libgomp.map: New version "OACC_2.0.1".
3615 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
3616 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
3617 its content into...
3618 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
3619 Extend testing.
3620
3621 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
3622 when disabling nvptx offloading.
3623
3624 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
3625
3626 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
3627 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3628 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3629
3630 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
3631 * testsuite/lib/libgomp.exp
3632 (check_effective_target_openacc_nvidia_accel_configured): New
3633 proc.
3634 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3635 (check_effective_target_c++): New procs.
3636 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3637 (check_effective_target_c++): Likewise.
3638
3639 2017-05-22 Jakub Jelinek <jakub@redhat.com>
3640
3641 PR middle-end/80809
3642 * testsuite/libgomp.c/pr80809-2.c: New test.
3643 * testsuite/libgomp.c/pr80809-3.c: New test.
3644
3645 PR middle-end/80809
3646 * testsuite/libgomp.c/pr80809-1.c: New test.
3647
3648 PR middle-end/80853
3649 * testsuite/libgomp.c/pr80853.c: New test.
3650
3651 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
3652
3653 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3654 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3655 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3656 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3657 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3658
3659 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3660 Debug output for failure.
3661
3662 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3663
3664 * testsuite/lib/libgomp.exp: Load scanlang.exp.
3665
3666 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR bootstrap/80531
3669 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3670 bootstrap compare failures.
3671
3672 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3673
3674 * testsuite/libgomp.c/target-36.c: New testcase.
3675
3676 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3677
3678 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3679 instead of char.
3680
3681 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3682
3683 PR libgomp/80394
3684 * testsuite/libgomp.c/pr80394.c: New test.
3685
3686 2017-04-04 Jakub Jelinek <jakub@redhat.com>
3687
3688 PR libgomp/79876
3689 * config/posix/thread-stacksize.h: New file.
3690 * config/darwin/thread-stacksize.h: New file.
3691 * config/nvptx/thread-stacksize.h: New file.
3692 * env.c: Include thread-stacksize.h.
3693 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3694 instead of 0. Call pthread_attr_setstacksize even if
3695 GOMP_DEFAULT_STACKSIZE is non-zero.
3696
3697 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3698
3699 * env.c (initialize_env): Initialize stacksize to 0.
3700
3701 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3702
3703 PR c++/80029
3704 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3705
3706 2017-03-08 Jakub Jelinek <jakub@redhat.com>
3707
3708 PR c/79940
3709 * testsuite/libgomp.c/pr79940.c: New test.
3710
3711 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3712
3713 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3714 targets.
3715 Add __float128 options.
3716
3717 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
3718
3719 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3720 hppa*-*-* dg-skip-if directive.
3721
3722 2017-02-09 Jakub Jelinek <jakub@redhat.com>
3723
3724 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3725 dg-skip-if directive into a comment.
3726
3727 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3728 Chung-Lin Tang <cltang@codesourcery.com>
3729
3730 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3731 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3732 add additional case.
3733 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3734 "openacc_nvidia_accel_selected".
3735 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3736 Add num_workers(8) clause.
3737
3738 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
3739
3740 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3741 hppa*-*-*.
3742 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3743 include complex.h on hppa*-*-hpux*.
3744 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3745
3746 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3747
3748 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3749
3750 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3751 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3752 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3753 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3754 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3755 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3756 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3757 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3758 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3759 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3760
3761 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3762
3763 * libgomp-plugin.h: #include <stdbool.h>.
3764 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3765 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3766 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3767 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3768 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3769 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3770 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3771 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3772 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3773 (GOMP_OFFLOAD_openacc_async_test)
3774 (GOMP_OFFLOAD_openacc_async_test_all)
3775 (GOMP_OFFLOAD_openacc_async_wait)
3776 (GOMP_OFFLOAD_openacc_async_wait_async)
3777 (GOMP_OFFLOAD_openacc_async_wait_all)
3778 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3779 (GOMP_OFFLOAD_openacc_async_set_async)
3780 (GOMP_OFFLOAD_openacc_create_thread_data)
3781 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3782 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3783 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3784 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3785 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3786 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3787 these.
3788 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3789 (GOMP_OFFLOAD_unload_image): Fix argument types.
3790
3791 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3792
3793 * testsuite/lib/libgomp.exp
3794 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3795 check_compile invocation. Fix up removal of executable. Drop
3796 bogus "2>&1" argument.
3797
3798 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3799 directive.
3800
3801 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3802 Martin Jambor <mjambor@suse.cz>
3803
3804 * plugin/hsa.h: Moved to top level include.
3805 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3806
3807 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3808
3809 PR other/79046
3810 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3811 of cat to get version from BASE-VER file.
3812 * testsuite/Makefile.in: Regenerated.
3813
3814 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3815
3816 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3817 for _WIN64.
3818
3819 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3820
3821 * plugin/hsa.h: Add GCC runtime library exception.
3822 * plugin/hsa_ext_finalize.h: Likewise.
3823
3824 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3825 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3826 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3827 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3828 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3829 library to link ptx plugin against.
3830 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3831 (CUDA_CALLS): Define.
3832 (cuda_lib, cuda_lib_inited): New variables.
3833 (init_cuda_lib): New function.
3834 (CUDA_CALL_PREFIX): Define.
3835 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3836 (CUDA_CALL): Use FN instead of (FN).
3837 (CUDA_CALL_NOCHECK): Define.
3838 (cuda_error, fini_streams_for_device, select_stream_for_async,
3839 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3840 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3841 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3842 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3843 CUDA_CALL_NOCHECK.
3844 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3845 CUDA_CALL_NOCHECK.
3846 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3847 Use CUDA_CALL_NOCHECK.
3848 * plugin/cuda/cuda.h: New file.
3849 * config.h.in: Regenerated.
3850 * configure: Regenerated.
3851
3852 PR other/79046
3853 * configure.ac: Add GCC_BASE_VER.
3854 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3855 get version from BASE-VER file.
3856 * testsuite/Makefile.in: Regenerated.
3857 * configure: Regenerated.
3858 * Makefile.in: Regenerated.
3859
3860 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3861
3862 PR libgomp/60670
3863 * Makefile.am: Make fincludedir multilib-aware.
3864 * Makefile.in: Regenerate.
3865
3866 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3867
3868 Update copyright years.
3869
3870 * libgomp.texi: Bump @copying's copyright year.
3871
3872 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3873
3874 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3875 pthread_spinlock_t instead of gomp_mutex_t lock.
3876 (gomp_get_thread_pool): Likewise.
3877 (gomp_release_thread_pool): Likewise.
3878 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3879 Likewise.
3880
3881 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3882
3883 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3884 thread pool in case nthreads == 1.
3885
3886 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3887
3888 * config/nvptx/env.c: Delete.
3889 * icv.c: Move definitions of ICV variables back ...
3890 * env.c: ...here. Do not compile environment-related functionality if
3891 LIBGOMP_OFFLOADED_ONLY is set.
3892
3893 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3894
3895 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3896 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3897 * configure: Regenerate.
3898 * config.h.in: Likewise.
3899
3900 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3901
3902 * Makefile.in: Regenerate with automake-1.11.6.
3903 * aclocal.m4: Likewise.
3904 * configure: Likewise.
3905 * testsuite/Makefile.in: Likewise.
3906
3907 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3908
3909 * config/nvptx/critical.c: Delete to use generic implementation.
3910
3911 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3912
3913 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3914 ../../affinity.c as fallback.
3915 * config/nvptx/affinity.c: Delete to use fallback implementation.
3916
3917 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3918 Jakub Jelinek <jakub@redhat.com>
3919 Dmitry Melnik <dm@ispras.ru>
3920
3921 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3922 * Makefile.in. Regenerate.
3923 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3924 (LIBGOMP_USE_PTHREADS): ...here; new define.
3925 * configure: Regenerate.
3926 * config.h.in: Likewise.
3927 * config/posix/affinity.c: Move to...
3928 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3929 interface by LIBGOMP_USE_PTHREADS.
3930 * critical.c: Split out GOMP_atomic_{start,end} into...
3931 * atomic.c: ...here (new file).
3932 * env.c: Split out ICV definitions into...
3933 * icv.c: ...here (new file) and...
3934 * icv-device.c: ...here. New file.
3935 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3936 (gomp_destroy_lock_30): Ditto.
3937 (gomp_set_lock_30): Ditto.
3938 (gomp_unset_lock_30): Ditto.
3939 (gomp_test_lock_30): Ditto.
3940 (gomp_init_nest_lock_30): Ditto.
3941 (gomp_destroy_nest_lock_30): Ditto.
3942 (gomp_set_nest_lock_30): Ditto.
3943 (gomp_unset_nest_lock_30): Ditto.
3944 (gomp_test_nest_lock_30): Ditto.
3945 * lock.c: New.
3946 * config/nvptx/lock.c: New.
3947 * config/nvptx/bar.c: New.
3948 * config/nvptx/bar.h: New.
3949 * config/nvptx/doacross.h: New.
3950 * config/nvptx/error.c: New.
3951 * config/nvptx/icv-device.c: New.
3952 * config/nvptx/mutex.h: New.
3953 * config/nvptx/pool.h: New.
3954 * config/nvptx/proc.c: New.
3955 * config/nvptx/ptrlock.h: New.
3956 * config/nvptx/sem.h: New.
3957 * config/nvptx/simple-bar.h: New.
3958 * config/nvptx/target.c: New.
3959 * config/nvptx/task.c: New.
3960 * config/nvptx/team.c: New.
3961 * config/nvptx/time.c: New.
3962 * config/posix/simple-bar.h: New.
3963 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3964 (gomp_num_teams_var): Declare.
3965 (struct gomp_thread_pool): Change threads_dock member to
3966 gomp_simple_barrier_t.
3967 [__nvptx__] (gomp_thread): New implementation.
3968 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3969 (gomp_thread_destructor): Ditto.
3970 (gomp_init_thread_affinity): Ditto.
3971 * team.c: Guard uses of Pthreads-specific interfaces by
3972 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3973 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3974 * config/nvptx/alloc.c: Delete.
3975 * config/nvptx/barrier.c: Ditto.
3976 * config/nvptx/fortran.c: Ditto.
3977 * config/nvptx/iter.c: Ditto.
3978 * config/nvptx/iter_ull.c: Ditto.
3979 * config/nvptx/loop.c: Ditto.
3980 * config/nvptx/loop_ull.c: Ditto.
3981 * config/nvptx/ordered.c: Ditto.
3982 * config/nvptx/parallel.c: Ditto.
3983 * config/nvptx/priority_queue.c: Ditto.
3984 * config/nvptx/sections.c: Ditto.
3985 * config/nvptx/single.c: Ditto.
3986 * config/nvptx/splay-tree.c: Ditto.
3987 * config/nvptx/work.c: Ditto.
3988 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3989 -foffload=-lgfortran in addition to -lgfortran.
3990 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3991 * plugin/plugin-nvptx.c: Include <limits.h>.
3992 (struct targ_fn_descriptor): Add new fields.
3993 (struct ptx_device): Ditto. Set them...
3994 (nvptx_open_device): ...here.
3995 (nvptx_adjust_launch_bounds): New.
3996 (nvptx_host2dev): Allow NULL 'nvthd'.
3997 (nvptx_dev2host): Ditto.
3998 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3999 (link_ptx): Adjust log sizes.
4000 (nvptx_host2dev): Allow NULL 'nvthd'.
4001 (nvptx_dev2host): Ditto.
4002 (nvptx_set_clocktick): New. Use it...
4003 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4004 fields.
4005 (GOMP_OFFLOAD_dev2dev): New.
4006 (nvptx_adjust_launch_bounds): New.
4007 (nvptx_stacks_size): New.
4008 (nvptx_stacks_alloc): New.
4009 (nvptx_stacks_free): New.
4010 (GOMP_OFFLOAD_run): New.
4011 (GOMP_OFFLOAD_async_run): New (stub).
4012
4013 2016-11-23 Martin Jambor <mjambor@suse.cz>
4014
4015 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4016 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4017 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4018
4019 2016-11-23 Martin Liska <mliska@suse.cz>
4020 Martin Jambor <mjambor@suse.cz>
4021
4022 * plugin/hsa.h: New file.
4023 * plugin/hsa_ext_finalize.h: New file.
4024 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4025 header file unistd.h, and functions secure_getenv, __secure_getenv,
4026 getuid, geteuid, getgid and getegid.
4027 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4028 -D_GNU_SOURCE.
4029 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4030 Handle various cases of secure_getenv presence, add an implementation
4031 when we can test effective UID and GID.
4032 (struct hsa_runtime_fn_info): New structure.
4033 (hsa_runtime_fn_info hsa_fns): New variable.
4034 (hsa_runtime_lib): Likewise.
4035 (support_cpu_devices): Likewise.
4036 (init_enviroment_variables): Load newly introduced ENV
4037 variables.
4038 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4039 (hsa_fatal): Likewise.
4040 (DLSYM_FN): New macro.
4041 (init_hsa_runtime_functions): New function.
4042 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4043 structure. Depending on environment, also allow CPU devices.
4044 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4045 (get_kernarg_memory_region): Likewise.
4046 (GOMP_OFFLOAD_init_device): Likewise.
4047 (destroy_hsa_program): Likewise.
4048 (init_basic_kernel_info): New function.
4049 (GOMP_OFFLOAD_load_image): Use it.
4050 (create_and_finalize_hsa_program): Call hsa run-time functions via
4051 hsa_fns structure.
4052 (create_single_kernel_dispatch): Likewise.
4053 (release_kernel_dispatch): Likewise.
4054 (init_single_kernel): Likewise.
4055 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4056 (get_group_size): New function.
4057 (run_kernel): Likewise.
4058 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4059 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4060 structure.
4061 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4062 * testsuite/libgomp-test-support.exp.in: Likewise.
4063 * Makefile.in: Regenerated.
4064 * aclocal.m4: Likewise.
4065 * config.h.in: Likewise.
4066 * configure: Likewise.
4067 * testsuite/Makefile.in: Likewise.
4068
4069 2016-11-15 Martin Jambor <mjambor@suse.cz>
4070 Alexander Monakov <amonakov@ispras.ru>
4071
4072 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4073 mapping clauses to target constructs.
4074 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4075
4076 2016-11-15 Matthias Klose <doko@ubuntu.com>
4077
4078 * configure: Regenerate.
4079
4080 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4081
4082 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4083 * omp_lib.h.in (openmp_version): Likewise.
4084 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4085 of 201307.
4086 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4087
4088 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4089 (fib_wrapper): Add map(from: x) clause.
4090 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4091 (e_53_2): Likewise.
4092 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4093 (accum): Add map(tmp) clause.
4094 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4095 (accum): Add map(tofrom: tmp) clause.
4096 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4097 (gramSchmidt): Likewise.
4098 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4099 map(tofrom: sum) clause.
4100 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4101 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4102 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4103 only allowed on the loop iterator.
4104 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4105 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4106 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4107 * testsuite/libgomp.fortran/doacross1.f90: New test.
4108 * testsuite/libgomp.fortran/doacross3.f90: New test.
4109 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4110 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4111 * testsuite/libgomp.fortran/doacross2.f90: New test.
4112 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4113 #pragma omp atomic read.
4114 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4115 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4116
4117 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4118 Nathan Sidwell <nathan@acm.org>
4119
4120 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4121 to determine default geometry.
4122 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4123 dimension.
4124
4125 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4126
4127 * hashtab.h: Use standard GPLv3 with runtime exception
4128 boilerplate.
4129
4130 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4131
4132 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4133 size when allocating new thread.
4134
4135 2016-09-14 Marek Polacek <polacek@redhat.com>
4136
4137 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4138
4139 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4140
4141 PR fortran/71014
4142 * testsuite/libgomp.fortran/pr71014.f90: New test.
4143
4144 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4145
4146 PR middle-end/70895
4147 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4148 firstprivate clauses.
4149 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4150 copy clauses.
4151 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4152 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4153 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4154 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4155 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4156 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4157 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4158 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4159 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4160 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4161 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4162 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4163
4164 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4165
4166 PR fortran/70598
4167 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4168
4169 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4170
4171 PR c++/58706
4172 * testsuite/libgomp.c++/pr58706.C: New test.
4173
4174 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4175
4176 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4177 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4178 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4179 Likewise.
4180 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4181 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4182 Likewise.
4183 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4184
4185 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4186 test, and don't hardcode -O0.
4187
4188 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4189
4190 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4191
4192 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4193
4194 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4195 test.
4196
4197 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4198
4199 PR middle-end/71734
4200 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4201 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4202
4203 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4204
4205 PR fortran/71717
4206 * testsuite/libgomp.fortran/associate3.f90: New test.
4207
4208 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4209
4210 * testsuite/libgomp.c++/target-21.C: New test.
4211
4212 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4213
4214 * testsuite/libgomp.c++/target-20.C: New test.
4215
4216 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4217 Cesar Philippidis <cesar@codesourcery.com>
4218
4219 PR middle-end/71373
4220 * libgomp.oacc-c/nested-function-1.c: New file.
4221 * libgomp.oacc-c/nested-function-2.c: Likewise.
4222 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4223 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4224 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4225
4226 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4227
4228 PR c/71381
4229 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4230 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4231 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4232
4233 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4234
4235 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4236 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4237
4238 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4239
4240 PR c/70688
4241 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4242
4243 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4244
4245 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4246 instead of invalid schedule(static, 0).
4247 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4248
4249 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4250
4251 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4252 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4253 parameter, use to set async stream around call to gomp_unmap_vars,
4254 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4255 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4256 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4257 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4258 (event_add): Add int parameter, initialize 'val' field when
4259 adding new ptx_event struct.
4260 (nvptx_evec): Adjust event_add() call arguments.
4261 (nvptx_host2dev): Likewise.
4262 (nvptx_dev2host): Likewise.
4263 (nvptx_wait_async): Likewise.
4264 (nvptx_wait_all_async): Likewise.
4265 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4266 pass to event_add() call.
4267 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4268 parameter.
4269 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4270 call openacc.register_async_cleanup_func() hook.
4271 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4272 * target.c (gomp_copy_from_async): Delete function.
4273 (gomp_map_vars): Remove async_refcount.
4274 (gomp_unmap_vars): Likewise.
4275 (gomp_load_image_to_device): Likewise.
4276 (omp_target_associate_ptr): Likewise.
4277 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4278 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4279 (gomp_copy_from_async): Remove.
4280
4281 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4282
4283 * target.c (gomp_device_copy): New function.
4284 (gomp_copy_host2dev): Likewise.
4285 (gomp_copy_dev2host): Likewise.
4286 (gomp_free_device_memory): Likewise.
4287 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4288 (gomp_map_pointer): Likewise.
4289 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4290 NULL value from alloc_func plugin hook.
4291 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4292 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4293 (gomp_unmap_vars): Likewise.
4294 (gomp_update): Adjust to call gomp_copy_dev2host and
4295 gomp_copy_host2dev functions.
4296 (gomp_unload_image_from_device): Handle false value from
4297 unload_image_func plugin hook.
4298 (gomp_init_device): Handle false value from init_device_func
4299 plugin hook.
4300 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4301 (omp_target_free): Adjust to call gomp_free_device_memory.
4302 (omp_target_memcpy): Handle return values from host2dev_func,
4303 dev2host_func, and dev2dev_func plugin hooks.
4304 (omp_target_memcpy_rect_worker): Likewise.
4305 (gomp_target_fini): Handle false value from fini_device_func
4306 plugin hook.
4307 * libgomp.h (struct gomp_device_descr): Adjust return type of
4308 init_device_func, fini_device_func, unload_image_func, free_func,
4309 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4310 * oacc-init.c (acc_shutdown_1): Handle false value from
4311 fini_device_func plugin hook.
4312 * oacc-host.c (host_init_device): Change return type to bool.
4313 (host_fini_device): Likewise.
4314 (host_unload_image): Likewise.
4315 (host_free): Likewise.
4316 (host_dev2host): Likewise.
4317 (host_host2dev): Likewise.
4318 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4319 (acc_memcpy_to_device): Likewise.
4320 (acc_memcpy_from_device): Likewise.
4321 (delete_copyout): Add libfnname parameter, handle free_func
4322 hook fatal error case.
4323 (acc_delete): Adjust delete_copyout call.
4324 (acc_copyout): Likewise.
4325 (update_dev_host): Move gomp_mutex_unlock to after
4326 host2dev/dev2host hook calls.
4327
4328 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4329 to 'hsa_error_msg', for clarity.
4330 (hsa_fatal): Likewise.
4331 (hsa_error): New function.
4332 (init_hsa_context): Change return type to bool, adjust to return
4333 false on error.
4334 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4335 return value.
4336 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4337 return false on error.
4338 (get_agent_info): Adjust to return NULL on error.
4339 (destroy_hsa_program): Change return type to bool, adjust to
4340 return false on error.
4341 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4342 (destroy_module): Change return type to bool, adjust to
4343 return false on error.
4344 (GOMP_OFFLOAD_unload_image): Likewise.
4345 (GOMP_OFFLOAD_fini_device): Likewise.
4346 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4347 (GOMP_OFFLOAD_free): Change to return false when called.
4348 (GOMP_OFFLOAD_dev2host): Likewise.
4349 (GOMP_OFFLOAD_host2dev): Likewise.
4350 (GOMP_OFFLOAD_dev2dev): Likewise.
4351
4352 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4353 (CUDA_CALL): Likewise.
4354 (CUDA_CALL_ASSERT): Likewise.
4355 (map_init): Change return type to bool, use CUDA_CALL* macros.
4356 (map_fini): Likewise.
4357 (init_streams_for_device): Change return type to bool, adjust
4358 call to map_init.
4359 (fini_streams_for_device): Change return type to bool, adjust
4360 call to map_fini.
4361 (select_stream_for_async): Release stream_lock before calls to
4362 GOMP_PLUGIN_fatal, adjust call to map_init.
4363 (nvptx_init): Use CUDA_CALL* macros.
4364 (nvptx_attach_host_thread_to_device): Change return type to bool,
4365 use CUDA_CALL* macros.
4366 (nvptx_open_device): Use CUDA_CALL* macros.
4367 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4368 macros.
4369 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4370 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4371 (nvptx_exec): Use CUDA_CALL* macros.
4372 (nvptx_alloc): Use CUDA_CALL* macros.
4373 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4374 (nvptx_host2dev): Likewise.
4375 (nvptx_dev2host): Likewise.
4376 (nvptx_wait): Use CUDA_CALL* macros.
4377 (nvptx_wait_async): Likewise.
4378 (nvptx_wait_all): Likewise.
4379 (nvptx_wait_all_async): Likewise.
4380 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4381 use CUDA_CALL* macros, adjust call to map_fini.
4382 (GOMP_OFFLOAD_init_device): Change return type to bool,
4383 adjust code accordingly.
4384 (GOMP_OFFLOAD_fini_device): Likewise.
4385 (GOMP_OFFLOAD_load_image): Adjust calls to
4386 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4387 use CUDA_CALL* macros.
4388 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4389 return code.
4390 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4391 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4392 handle error return.
4393 (GOMP_OFFLOAD_dev2host): Likewise.
4394 (GOMP_OFFLOAD_host2dev): Likewise.
4395 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4396 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4397
4398 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4399
4400 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4401 (acc_free): Likewise.
4402 (acc_memcpy_to_device): Likewise.
4403 (acc_memcpy_from_device): Likewise.
4404 (acc_deviceptr): Likewise.
4405 (acc_hostptr): Likewise.
4406 (acc_is_present): Likewise.
4407 (acc_map_data): Likewise.
4408 (acc_unmap_data): Likewise.
4409 (present_create_copy): Likewise.
4410 (delete_copyout): Likewise.
4411 (update_dev_host): Likewise.
4412 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
4413 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
4414 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
4415 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
4417 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
4418 it only runs on nvptx targets.
4419 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4420 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4421 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4422 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4423 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4424 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4425 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4426 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4427 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4428 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4429 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4430 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4431 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4432 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4433 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4434 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4435 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4436 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4437 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4438 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4439 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4440 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4441 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4442
4443 2016-05-23 Martin Jambor <mjambor@suse.cz>
4444
4445 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
4446
4447 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
4448
4449 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
4450 to gomp_init_targets_once.
4451 (acc_set_device_type): Remove !cached_base_dev condition on call to
4452 gomp_init_targets_once, move call to before acc_device_lock acquire,
4453 to avoid deadlock.
4454 (acc_get_device_num): Remove !cached_base_dev condition on call to
4455 gomp_init_targets_once.
4456 (acc_set_device_num): Likewise.
4457
4458 2016-05-16 Martin Jambor <mjambor@suse.cz>
4459
4460 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
4461
4462 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4463
4464 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
4465 expected partitioning.
4466
4467 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4468
4469 PR middle-end/70626
4470 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
4471 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
4472 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
4473
4474 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
4475
4476 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
4477 non-fatal.
4478
4479 2016-04-19 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR middle-end/70680
4482 * testsuite/libgomp.c/pr70680-1.c: New test.
4483 * testsuite/libgomp.c/pr70680-2.c: New test.
4484
4485 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4486
4487 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
4488 pass parameter variables to subroutines.
4489
4490 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4491
4492 PR middle-end/70643
4493 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
4494
4495 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
4496
4497 PR testsuite/68242
4498 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
4499 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4500
4501 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
4502
4503 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
4504 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
4505 GOACC_declare prototype.
4506
4507 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
4508 Merge this file, and...
4509 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
4510 ... this file, and...
4511 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
4512 ... this file, and...
4513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
4514 ... this file, and...
4515 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
4516 ... this file, and...
4517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
4518 ... this file, and...
4519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
4520 ... this file, and...
4521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
4522 ... this file, and...
4523 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4524 ... this file, and...
4525 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4526 ... this file, and...
4527 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4528 ... this file, and...
4529 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4530 ... this file, and...
4531 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4532 ... this file into...
4533 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4534 file.
4535
4536 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4537 Make failure observable.
4538
4539 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4540
4541 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4542 field.
4543 * target.c (gomp_target_fallback_firstprivate,
4544 gomp_target_unshare_firstprivate): Removed.
4545 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4546 before waiting for dependencies.
4547 (gomp_target_task_fn): Don't copy firstprivate vars here.
4548 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4549 firstprivate_copies here.
4550 (gomp_create_target_task): Don't initialize firstprivate_copies field.
4551 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4552 explicit/implicit firstprivate.
4553
4554 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4555
4556 PR lto/70289
4557 PR ipa/70348
4558 PR tree-optimization/70373
4559 PR middle-end/70533
4560 PR middle-end/70534
4561 PR middle-end/70535
4562 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
4563 test.
4564 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
4565 test.
4566 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
4567 test.
4568 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
4569 test.
4570 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
4571 test.
4572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
4573 test.
4574 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
4575 test.
4576 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
4577 test.
4578 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
4579 test.
4580 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
4581 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
4582 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
4583 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
4584 test.
4585 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
4586 test.
4587 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
4588 test.
4589 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
4590 test.
4591 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
4592 coverage.
4593 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4594 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4595 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
4596 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
4597 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
4598 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
4599 coverage.
4600 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4601 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4602 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4603 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4604 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
4605 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
4606 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
4607 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
4608 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
4609 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4610 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4611 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4612 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4613 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4614 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
4615
4616 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
4617 James Norris <jnorris@codesourcery.com>
4618 Nathan Sidwell <nathan@codesourcery.com>
4619 Julian Brown <julian@codesourcery.com>
4620 Cesar Philippidis <cesar@codesourcery.com>
4621 Chung-Lin Tang <cltang@codesourcery.com>
4622 Tom de Vries <tom@codesourcery.com>
4623
4624 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
4625 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4626 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4627 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
4628 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4629 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4630 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4631 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4632 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4633 XFAIL.
4634 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4635 Incorporate...
4636 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4637 file.
4638 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4639 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4640 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4641 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4642 Likewise.
4643 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4644 Likewise.
4645 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4646 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4647 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4648 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4649 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4650 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4651 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4652 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4653 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4654 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4655 Likewise.
4656 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4657 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4658 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4659 file...
4660 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4661 file into...
4662 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4663 file. Update.
4664 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4665 file.
4666 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4667 Likewise.
4668 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4669 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4670 ... this new file. Update.
4671 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4672 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4673 ... this new file. Update.
4674 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4675 file. Incorporate...
4676 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4677 file, and...
4678 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4679 file, and...
4680 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4681 file.
4682 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4683
4684 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4685
4686 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4687 set-torture-options.
4688
4689 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
4690
4691 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4692 gcc-dg-runtest.
4693 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4694 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4695 -fno-builtin-acc_on_device instead of -O0.
4696 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4697 -O0.
4698 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4699 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4700 Likewise.
4701 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4702 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4703 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4704 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4705 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4706 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4707 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4708 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4709 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4710 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4711 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4712 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4713 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4714 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4715 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4716 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4717 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4718 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4719 Don't specify -O2.
4720 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4721 Likewise.
4722 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4723 Likewise.
4724
4725 2016-03-24 Martin Liska <mliska@suse.cz>
4726
4727 * plugin/plugin-hsa.c (packet_store_release): New function
4728 that is taken from the HSA runtime manual.
4729 (GOMP_OFFLOAD_run): Use the function.
4730
4731 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4732
4733 PR c++/70376
4734 * testsuite/libgomp.c++/pr70376.C: New test.
4735
4736 2016-03-23 Tom de Vries <tom@codesourcery.com>
4737
4738 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4739 initialization of lresult and lvresult.
4740 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4741
4742 2016-03-23 James Norris <jnorris@codesourcery.com>
4743 Daichi Fukuoka <dc-fukuoka@sgi.com>
4744
4745 PR libgomp/69414
4746 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4747 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4748 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4749 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4750
4751 2016-03-23 Martin Liska <mliska@suse.cz>
4752
4753 PR hsa/70337
4754 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4755 argument just in case a dispatched kernel uses that argument.
4756
4757 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4758
4759 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4760 -ftree-parallelize-loops/-fopenacc changes.
4761 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4762 Likewise.
4763 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4764 Likewise.
4765 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4766 Likewise.
4767 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4768 Likewise.
4769 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4770 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4771
4772 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4773
4774 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4775 always_ld_library_path the path to libgcc_s.
4776
4777 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4778
4779 PR testsuite/70009
4780 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4781
4782 2016-03-09 Tom de Vries <tom@codesourcery.com>
4783
4784 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4785 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4786 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4787 Same.
4788 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4789 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4790 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4791 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4792
4793 2016-03-07 Martin Jambor <mjambor@suse.cz>
4794
4795 * testsuite/lib/libgomp.exp
4796 (check_effective_target_hsa_offloading_selected_nocache): New.
4797 (check_effective_target_hsa_offloading_selected): Likewise.
4798 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4799 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4800 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4801 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4802 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4803 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4804 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4805 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4806 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4807 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4808 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4809 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4810 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4811 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4812 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4813 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4814 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4815
4816 2016-03-07 Martin Jambor <mjambor@suse.cz>
4817
4818 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4819 non-shared memory accelerators.
4820 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4821 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4822 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4823 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4824 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4825 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4826 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4827 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4828 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4829
4830 2016-03-07 Martin Jambor <mjambor@suse.cz>
4831
4832 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4833 ALWAYS_CFLAGS.
4834
4835 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4836
4837 PR libgomp/69555
4838 * testsuite/libgomp.c++/pr69555-1.C: New test.
4839 * testsuite/libgomp.c++/pr69555-2.C: New test.
4840
4841 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4842 Martin Jambor <mjambor@suse.cz>
4843
4844 * testsuite/lib/libgomp.exp
4845 (check_effective_target_offload_device_shared_as): New proc.
4846 * testsuite/libgomp.c++/declare_target-1.C: New test.
4847
4848 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4849
4850 PR driver/68463
4851 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4852
4853 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4854
4855 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4856 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4857 dims.
4858 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4859 -ftree-parallelize-loops/-fopenacc changes.
4860 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4862 Likewise.
4863 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4864 Likewise.
4865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4866 Likewise.
4867 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4868 Likewise.
4869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4870 Likewise.
4871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4872 Likewise.
4873 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4874 Likewise.
4875 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4876 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4877 Likewise.
4878 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4879 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4880 Likewise.
4881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4882 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4883 Likewise.
4884
4885 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4886
4887 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4888
4889 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4890
4891 PR driver/69805
4892 * testsuite/libgomp.c/pr69805.c: New test.
4893
4894 2016-02-16 Tom de Vries <tom@codesourcery.com>
4895
4896 PR lto/67709
4897 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4898
4899 2016-02-09 Tom de Vries <tom@codesourcery.com>
4900
4901 PR tree-optimization/69599
4902 * testsuite/libgomp.c/omp-nested-3.c: New test.
4903 * testsuite/libgomp.c/pr46032-2.c: New test.
4904 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4905 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4906
4907 2016-02-09 Tom de Vries <tom@codesourcery.com>
4908
4909 PR lto/69707
4910 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4911
4912 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4913
4914 * testsuite/libgomp.c/target-31.c: Fix testcase.
4915
4916 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4917
4918 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4919 clause.
4920 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4921 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4922 reduction and map clauses.
4923 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4924
4925 2016-02-02 James Norris <jnorris@codesourcery.com>
4926
4927 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4928
4929 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4930
4931 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4932 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4933
4934 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4935 cases.
4936
4937 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4938 variables.
4939 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4940 (hsa_kmt_lib): Set variables.
4941 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4942 always_ld_library_path.
4943 * Makefile.in: Regenerate.
4944 * configure: Likewise.
4945 * testsuite/Makefile.in: Likewise.
4946
4947 * plugin/configfrag.ac (offload_additional_options)
4948 (offload_additional_lib_paths): Don't amend for hsa offloading.
4949 * configure: Regenerate.
4950
4951 * plugin/configfrag.ac: Don't configure for offloading target if
4952 we don't build the corresponding plugin.
4953 * configure: Regenerate.
4954
4955 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4956
4957 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4958 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4959
4960 2016-01-26 Tom de Vries <tom@codesourcery.com>
4961
4962 PR tree-optimization/69110
4963 * testsuite/libgomp.c/pr69110.c: New test.
4964
4965 2016-01-25 Richard Biener <rguenther@suse.de>
4966
4967 PR lto/69393
4968 * testsuite/libgomp.c++/pr69393.C: New testcase.
4969
4970 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4971
4972 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4973 function wasn't mapped to the device with non-shared memory.
4974
4975 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4976
4977 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4978
4979 2016-01-19 Martin Jambor <mjambor@suse.cz>
4980 Martin Liska <mliska@suse.cz>
4981
4982 * plugin/Makefrag.am: Add HSA plugin requirements.
4983 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4984 (HSA_RUNTIME_LIB): Likewise.
4985 (HSA_RUNTIME_CPPFLAGS): Likewise.
4986 (HSA_RUNTIME_INCLUDE): New substitution.
4987 (HSA_RUNTIME_LIB): Likewise.
4988 (HSA_RUNTIME_LDFLAGS): Likewise.
4989 (hsa-runtime): New configure option.
4990 (hsa-runtime-include): Likewise.
4991 (hsa-runtime-lib): Likewise.
4992 (PLUGIN_HSA): New substitution variable.
4993 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4994 configure options.
4995 (PLUGIN_HSA_CPPFLAGS): Likewise.
4996 (PLUGIN_HSA_LDFLAGS): Likewise.
4997 (PLUGIN_HSA_LIBS): Likewise.
4998 Check that we have access to HSA run-time.
4999 * libgomp-plugin.h (offload_target_type): New element
5000 OFFLOAD_TARGET_TYPE_HSA.
5001 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5002 args.
5003 (bool gomp_create_target_task): Updated.
5004 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5005 new field can_run_func.
5006 * libgomp_g.h (GOMP_target_ext): Update prototype.
5007 * oacc-host.c (host_run): Added a new parameter args.
5008 * target.c (calculate_firstprivate_requirements): New function.
5009 (copy_firstprivate_data): Likewise.
5010 (gomp_target_fallback_firstprivate): Use them.
5011 (gomp_target_unshare_firstprivate): New function.
5012 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5013 devices.
5014 (GOMP_target): Do host fallback for all shared memory devices. Do not
5015 pass any args to plugins.
5016 (GOMP_target_ext): Introduce device-specific argument parameter args.
5017 Allow host fallback if device shares memory. Do not remap data if
5018 device has shared memory.
5019 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5020 like host fallback for mappings.
5021 (GOMP_target_data): Treat shared memory devices like host fallback.
5022 (GOMP_target_data_ext): Likewise.
5023 (GOMP_target_update): Likewise.
5024 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5025 gomp_create_target_task.
5026 (GOMP_target_enter_exit_data): Likewise.
5027 (omp_target_alloc): Treat shared memory devices like host fallback.
5028 (omp_target_free): Likewise.
5029 (omp_target_is_present): Likewise.
5030 (omp_target_memcpy): Likewise.
5031 (omp_target_memcpy_rect): Likewise.
5032 (omp_target_associate_ptr): Likewise.
5033 (gomp_load_plugin_for_device): Also load can_run.
5034 * task.c (GOMP_PLUGIN_target_task_completion): Free
5035 firstprivate_copies.
5036 (gomp_create_target_task): Accept new argument args and store it to
5037 ttask.
5038 * plugin/plugin-hsa.c: New file.
5039
5040 2016-01-18 Tom de Vries <tom@codesourcery.com>
5041
5042 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5043 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5044 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5045 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5046 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5047 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5053 Same.
5054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5055 Same.
5056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5059 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5061 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5063 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5064 Same.
5065 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5066
5067 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5068
5069 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5070
5071 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5072
5073 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5074
5075 2016-01-12 James Norris <jnorris@codesourcery.com>
5076
5077 * libgomp.texi: Updates for OpenACC.
5078
5079 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5080
5081 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5082
5083 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5084
5085 PR fortran/66680
5086 * testsuite/libgomp.fortran/pr66680.f90: New test.
5087
5088 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5089
5090 PR middle-end/68960
5091 * testsuite/libgomp.c/pr68960.c: New test.
5092
5093 2016-01-06 Nathan Sidwell <nathan@acm.org>
5094
5095 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5096 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5097
5098 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5099
5100 Update copyright years.
5101
5102 * libgomp.texi: Bump @copying's copyright year.
5103
5104 2015-12-31 Nathan Sidwell <nathan@acm.org>
5105
5106 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5107 dg-additional-options syntax.
5108 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5109 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5110 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5111 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5112 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5113 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5114 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5115 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5117 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5118 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5119 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5120 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5121 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5122 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5123 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5124 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5125 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5126
5127 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5128
5129 * libgomp.h (REFCOUNT_LINK): Define.
5130 (struct splay_tree_key_s): Add link_key.
5131 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5132 Replace target address of the pointer with target address of newly
5133 mapped object in the splay tree. Set link pointer on target to the
5134 device address of the mapped object.
5135 (gomp_unmap_vars): Restore target address of the pointer in the splay
5136 tree for REFCOUNT_LINK objects after unmapping.
5137 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5138 declare target link" objects.
5139 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5140 "omp declare target link" objects, which were mapped for the image.
5141 (gomp_exit_data): Restore target address of the pointer in the splay
5142 tree for REFCOUNT_LINK objects after unmapping.
5143 * testsuite/libgomp.c/target-link-1.c: New file.
5144
5145 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5146
5147 * libgomp.h (gomp_device_state): New enum.
5148 (struct gomp_device_descr): Replace is_initialized with state.
5149 (gomp_fini_device): Remove declaration.
5150 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5151 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5152 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5153 (acc_set_device_type): Use state instead of is_initialized.
5154 (acc_set_device_num): Likewise.
5155 * target.c (resolve_device): Use state instead of is_initialized.
5156 Do not initialize finalized device.
5157 (gomp_map_vars): Do nothing if device is finalized.
5158 (gomp_unmap_vars): Likewise.
5159 (gomp_update): Likewise.
5160 (GOMP_offload_register_ver): Use state instead of is_initialized.
5161 (GOMP_offload_unregister_ver): Likewise.
5162 (gomp_init_device): Likewise.
5163 (gomp_unload_device): Likewise.
5164 (gomp_fini_device): Remove.
5165 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5166 (GOMP_target): Go to host fallback if device is finalized.
5167 (GOMP_target_ext): Likewise.
5168 (gomp_exit_data): Do nothing if device is finalized.
5169 (gomp_target_task_fn): Go to host fallback if device is finalized.
5170 (gomp_target_fini): New static function.
5171 (gomp_target_init): Use state instead of is_initialized.
5172 Call gomp_target_fini at exit.
5173
5174 2015-12-09 Tom de Vries <tom@codesourcery.com>
5175
5176 PR tree-optimization/68716
5177 * testsuite/libgomp.c/omp-nested-2.c: New test.
5178
5179 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5180
5181 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5182 target openacc_nvidia_accel_selected.
5183 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5184 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5185 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5186 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5187
5188 2015-12-01 Julian Brown <julian@codesourcery.com>
5189 James Norris <James_Norris@mentor.com>
5190
5191 * oacc-parallel.c (GOACC_host_data): New function.
5192 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5193 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5194 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5195 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5196 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5197 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5198 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5199
5200 2015-11-30 James Norris <jnorris@codesourcery.com>
5201 Cesar Philippidis <cesar@codesourcery.com>
5202
5203 libgomp/
5204 * libgomp.oacc-fortran/routine-5.f90: New test.
5205 * libgomp.oacc-fortran/routine-7.f90: New test.
5206 * libgomp.oacc-fortran/routine-9.f90: New test.
5207
5208 2015-11-30 Tom de Vries <tom@codesourcery.com>
5209
5210 PR tree-optimization/46032
5211 * testsuite/libgomp.c/pr46032.c: New test.
5212
5213 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5214
5215 PR libgomp/68579
5216 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5217 (gomp_create_target_task): Call it before freeing
5218 GOMP_TARGET_TASK_DATA tasks.
5219
5220 PR c/63326
5221 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5222 in between case label and OpenMP standalone directives.
5223 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5224
5225 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5226
5227 * configure: Regenerate.
5228
5229 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5230
5231 * testsuite/libgomp.c/target-35.c: New test.
5232
5233 2015-11-22 James Norris <jnorris@codesourcery.com>
5234 Cesar Philippidis <cesar@codesourcery.com>
5235
5236 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5237 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5238 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5239 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5240 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5241
5242 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5243
5244 PR middle-end/68221
5245 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5246 * testsuite/libgomp.c/reduction-12.c: Likewise.
5247 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5248 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5249
5250 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5251
5252 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5253 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5254 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5255 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5256 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5257 and fix.
5258 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5259 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5260
5261 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5262
5263 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5264 worker & gang cases.
5265 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5266
5267 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5268
5269 * config/nvptx/priority_queue.c: New file.
5270
5271 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5272
5273 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5274 sections.
5275
5276 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5277 Aldy Hernandez <aldyh@redhat.com>
5278 Ilya Verbin <ilya.verbin@intel.com>
5279
5280 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5281 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5282 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5283 iterators or IV by chunk size.
5284 * parallel.c (gomp_resolve_num_threads): Don't assume that
5285 if thr->ts.team is non-NULL, then pool must be non-NULL.
5286 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5287 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5288 GOMP_PLUGIN_target_task_completion.
5289 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5290 * Makefile.in: Regenerate.
5291 * libgomp.h: Shuffle prototypes and forward definitions around so
5292 priority queues can be defined.
5293 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5294 (enum gomp_target_task_state): New enum.
5295 (struct gomp_target_task): Add state, tgt, task and team fields.
5296 (gomp_create_target_task): Change return type to bool, add
5297 state argument.
5298 (gomp_target_task_fn): Change return type to bool.
5299 (struct gomp_device_descr): Add async_run_func.
5300 (struct gomp_task): Remove children, next_child, prev_child,
5301 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5302 Add pnode field.
5303 (struct gomp_taskgroup): Remove children.
5304 Add taskgroup_queue.
5305 (struct gomp_team): Change task_queue type to a priority queue.
5306 (splay_compare): Define inline.
5307 (priority_queue_offset): New.
5308 (priority_node_to_task): New.
5309 (task_to_priority_node): New.
5310 * oacc-mem.c: Do not include splay-tree.h.
5311 * priority_queue.c: New file.
5312 * priority_queue.h: New file.
5313 * splay-tree.c: Do not include splay-tree.h.
5314 (splay_tree_foreach_internal): New.
5315 (splay_tree_foreach): New.
5316 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5317 (splay_tree_callback): Define typedef.
5318 * target.c (splay_compare): Move to libgomp.h.
5319 (GOMP_target): Don't adjust *thr in any way around running offloaded
5320 task.
5321 (GOMP_target_ext): Likewise. Handle target nowait.
5322 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5323 return value from gomp_create_target_task, if false, fallthrough
5324 as if no dependencies exist.
5325 (gomp_target_task_fn): Change return type to bool, return true
5326 if the task should have another part scheduled later. Handle
5327 target nowait.
5328 (gomp_load_plugin_for_device): Initialize async_run.
5329 * task.c (gomp_init_task): Initialize children_queue.
5330 (gomp_clear_parent_in_list): New.
5331 (gomp_clear_parent_in_tree): New.
5332 (gomp_clear_parent): Handle priorities.
5333 (GOMP_task): Likewise.
5334 (priority_queue_move_task_first,
5335 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5336 New functions.
5337 (gomp_create_target_task): Use priority queues. Change return type
5338 to bool, add state argument, return false if for async
5339 {{enter,exit} data,update} constructs no dependencies need to be
5340 waited for, handle target nowait. Set task->fn to NULL instead of
5341 gomp_target_task_fn.
5342 (verify_children_queue): Remove.
5343 (priority_list_upgrade_task): New.
5344 (priority_queue_upgrade_task): New.
5345 (verify_task_queue): Remove.
5346 (priority_list_downgrade_task): New.
5347 (priority_queue_downgrade_task): New.
5348 (gomp_task_run_pre): Use priority queues.
5349 Abstract code out to priority_queue_downgrade_task.
5350 (gomp_task_run_post_handle_dependers): Use priority queues.
5351 (gomp_task_run_post_remove_parent): Likewise.
5352 (gomp_task_run_post_remove_taskgroup): Likewise.
5353 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5354 tasks specially.
5355 (GOMP_taskwait): Likewise.
5356 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5357 priority-queue_upgrade_task.
5358 (GOMP_taskgroup_start): Use priority queues.
5359 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5360 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5361 barrier.
5362 * taskloop.c (GOMP_taskloop): Handle priorities.
5363 * team.c (gomp_new_team): Call priority_queue_init.
5364 (free_team): Call priority_queue_free.
5365 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5366 team created for target nowait in implicit parallel region.
5367 (gomp_team_start): For nested check, test thr->ts.level instead of
5368 thr->ts.team != NULL.
5369 * testsuite/libgomp.c/doacross-3.c: New test.
5370 * testsuite/libgomp.c/ordered-5.c: New test.
5371 * testsuite/libgomp.c/priority.c: New test.
5372 * testsuite/libgomp.c/target-31.c: New test.
5373 * testsuite/libgomp.c/target-32.c: New test.
5374 * testsuite/libgomp.c/target-33.c: New test.
5375 * testsuite/libgomp.c/target-34.c: New test.
5376
5377 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5378
5379 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5380
5381 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5382 loop is sequential.
5383
5384 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5385
5386 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5387 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5388
5389 2015-11-12 James Norris <jnorris@codesourcery.com>
5390 Joseph Myers <joseph@codesourcery.com>
5391
5392 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5393 * oacc-parallel.c (GOACC_declare): New function.
5394 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5395 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5398 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5399
5400 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5401
5402 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5403
5404 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
5405
5406 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
5407 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
5408
5409 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5410
5411 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
5412 inadvertent commit.
5413
5414 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5415
5416 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
5417 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
5418 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
5419 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
5420 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
5421
5422 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
5423
5424 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
5425 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5426
5427 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5428 Ilya Verbin <ilya.verbin@intel.com>
5429
5430 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
5431 GOMP_loop_nonmonotonic_dynamic_start,
5432 GOMP_loop_nonmonotonic_guided_next,
5433 GOMP_loop_nonmonotonic_guided_start,
5434 GOMP_loop_ull_nonmonotonic_dynamic_next,
5435 GOMP_loop_ull_nonmonotonic_dynamic_start,
5436 GOMP_loop_ull_nonmonotonic_guided_next,
5437 GOMP_loop_ull_nonmonotonic_guided_start,
5438 GOMP_parallel_loop_nonmonotonic_dynamic,
5439 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
5440 (GOMP_target_41): Renamed to ...
5441 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5442 arguments.
5443 (GOMP_target_data_41): Renamed to ...
5444 (GOMP_target_data_ext): ... this.
5445 (GOMP_target_update_41): Renamed to ...
5446 (GOMP_target_update_ext): ... this.
5447 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
5448 GOMP_target_data_ext and GOMP_target_update_ext instead of
5449 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
5450 Export GOMP_loop_nonmonotonic_dynamic_next,
5451 GOMP_loop_nonmonotonic_dynamic_start,
5452 GOMP_loop_nonmonotonic_guided_next,
5453 GOMP_loop_nonmonotonic_guided_start,
5454 GOMP_loop_ull_nonmonotonic_dynamic_next,
5455 GOMP_loop_ull_nonmonotonic_dynamic_start,
5456 GOMP_loop_ull_nonmonotonic_guided_next,
5457 GOMP_loop_ull_nonmonotonic_guided_start,
5458 GOMP_parallel_loop_nonmonotonic_dynamic and
5459 GOMP_parallel_loop_nonmonotonic_guided.
5460 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
5461 GOMP_parallel_loop_nonmonotonic_guided,
5462 GOMP_loop_nonmonotonic_dynamic_start,
5463 GOMP_loop_nonmonotonic_guided_start,
5464 GOMP_loop_nonmonotonic_dynamic_next,
5465 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
5466 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
5467 GOMP_loop_ull_nonmonotonic_guided_start,
5468 GOMP_loop_ull_nonmonotonic_dynamic_next,
5469 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
5470 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
5471 functions.
5472 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
5473 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
5474 Use gomp_map_val function.
5475 (gomp_target_fallback_firstprivate): New static function.
5476 (GOMP_target_41): Renamed to ...
5477 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5478 arguments. Move firstprivate fallback handling into a new
5479 function.
5480 (GOMP_target_data_41): Renamed to ...
5481 (GOMP_target_data_ext): ... this.
5482 (GOMP_target_update_41): Renamed to ...
5483 (GOMP_target_update_ext): ... this.
5484 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
5485 gomp_map_0len_lookup instead of gomp_map_lookup.
5486 (omp_target_is_present): Use gomp_map_0len_lookup instead of
5487 gomp_map_lookup.
5488 * testsuite/libgomp.c/target-28.c: Likewise.
5489 * testsuite/libgomp.c/monotonic-1.c: New test.
5490 * testsuite/libgomp.c/monotonic-2.c: New test.
5491 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
5492 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
5493 * testsuite/libgomp.c/pr66199-5.c: New test.
5494 * testsuite/libgomp.c/pr66199-6.c: New test.
5495 * testsuite/libgomp.c/pr66199-7.c: New test.
5496 * testsuite/libgomp.c/pr66199-8.c: New test.
5497 * testsuite/libgomp.c/pr66199-9.c: New test.
5498 * testsuite/libgomp.c/reduction-11.c: New test.
5499 * testsuite/libgomp.c/reduction-12.c: New test.
5500 * testsuite/libgomp.c/reduction-13.c: New test.
5501 * testsuite/libgomp.c/reduction-14.c: New test.
5502 * testsuite/libgomp.c/reduction-15.c: New test.
5503 * testsuite/libgomp.c/target-12.c (main): Adjust for
5504 omp_target_is_present change for one-past-last element.
5505 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
5506 the same var is both mapped and privatized.
5507 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
5508 handling of zero-length array sections.
5509 * testsuite/libgomp.c/target-28.c: New test.
5510 * testsuite/libgomp.c/target-29.c: New test.
5511 * testsuite/libgomp.c/target-30.c: New test.
5512 * testsuite/libgomp.c/target-teams-1.c: New test.
5513 * testsuite/libgomp.c++/member-6.C: New test.
5514 * testsuite/libgomp.c++/member-7.C: New test.
5515 * testsuite/libgomp.c++/monotonic-1.C: New test.
5516 * testsuite/libgomp.c++/monotonic-2.C: New test.
5517 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
5518 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
5519 * testsuite/libgomp.c++/pr66199-3.C: New test.
5520 * testsuite/libgomp.c++/pr66199-4.C: New test.
5521 * testsuite/libgomp.c++/pr66199-5.C: New test.
5522 * testsuite/libgomp.c++/pr66199-6.C: New test.
5523 * testsuite/libgomp.c++/pr66199-7.C: New test.
5524 * testsuite/libgomp.c++/pr66199-8.C: New test.
5525 * testsuite/libgomp.c++/pr66199-9.C: New test.
5526 * testsuite/libgomp.c++/reduction-11.C: New test.
5527 * testsuite/libgomp.c++/reduction-12.C: New test.
5528 * testsuite/libgomp.c++/target-13.C: New test.
5529 * testsuite/libgomp.c++/target-14.C: New test.
5530 * testsuite/libgomp.c++/target-15.C: New test.
5531 * testsuite/libgomp.c++/target-16.C: New test.
5532 * testsuite/libgomp.c++/target-17.C: New test.
5533 * testsuite/libgomp.c++/target-18.C: New test.
5534 * testsuite/libgomp.c++/target-19.C: New test.
5535
5536 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5537
5538 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5539 and reduction copy.
5540 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5541 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5542 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5543 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5544 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5545 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5547 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5554
5555 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5556
5557 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5558 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
5559 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
5560 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
5561 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
5562 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
5563 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
5564 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
5565
5566 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
5567
5568 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
5569 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
5570 (GOMP_OFFLOAD_openacc_parallel): Likewise.
5571 * oacc-host.c (host_openacc_exec): Likewise.
5572 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
5573
5574 2015-11-03 Julian Brown <julian@codesourcery.com>
5575 Thomas Schwinge <thomas@codesourcery.com>
5576
5577 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
5578 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
5580 Likewise.
5581 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
5583
5584 2015-11-03 James Norris <jnorris@codesourcery.com>
5585
5586 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
5587 file.
5588 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
5589 Likewise.
5590 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
5591 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
5592 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5593 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
5594 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5595
5596 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5597
5598 * openacc.h (enum acc_device_t): Reformat. Ensure layout
5599 compatibility.
5600 (enum acc_async_t): Reformat.
5601 (acc_on_device): Declare compatible with builtin and provide C++
5602 wrapper.
5603 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
5604
5605 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
5606 Cesar Philippidis <cesar@codesourcery.com>
5607
5608 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
5609 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
5610 ... this. Add a description of the test at the top of the file.
5611 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
5612 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
5613 ... this. Add a description of the test at the top of the file.
5614
5615 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5616
5617 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
5618 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
5619 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
5620 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
5621 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
5622 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
5623
5624 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5625
5626 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
5627 dimensions.
5628
5629 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5630
5631 PR testsuite/68063
5632 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
5633
5634 2015-10-27 James Norris <jnorris@codesourcery.com>
5635
5636 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5637 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5638
5639 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
5640
5641 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5642 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5643
5644 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5645 acc_device_nvidia usage.
5646 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5647 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5649
5650 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5651 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5652
5653 PR libgomp/66518
5654 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5655
5656 PR libgomp/65437
5657 PR libgomp/66518
5658 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5659 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5660
5661 2015-10-23 Tom de Vries <tom@codesourcery.com>
5662
5663 PR testsuite/68063
5664 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5665
5666 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
5667
5668 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5669 vector_length.
5670 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5671
5672 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
5673 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
5674
5675 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5676 to 0 when mapnum is 0.
5677
5678 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
5679
5680 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5681 Cast to int from int32_t.
5682
5683 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5684 Aldy Hernandez <aldyh@redhat.com>
5685 Ilya Verbin <ilya.verbin@intel.com>
5686
5687 * config/linux/affinity.c (omp_get_place_num_procs,
5688 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5689 * config/linux/doacross.h: New file.
5690 * config/posix/affinity.c (omp_get_place_num_procs,
5691 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5692 * config/posix/doacross.h: New file.
5693 * env.c: Include gomp-constants.h.
5694 (struct gomp_task_icv): Rename run_sched_modifier to
5695 run_sched_chunk_size.
5696 (gomp_max_task_priority_var): New variable.
5697 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5698 (handle_omp_display_env): Change _OPENMP value from 201307 to
5699 201511. Print OMP_MAX_TASK_PRIORITY.
5700 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5701 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5702 chunk_size and run_sched_modifier to run_sched_chunk_size.
5703 (omp_get_max_task_priority, omp_get_initial_device,
5704 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5705 omp_get_partition_place_nums): New functions.
5706 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5707 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5708 to chunk_size.
5709 (omp_get_num_places_, omp_get_place_num_procs_,
5710 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5711 omp_get_place_proc_ids_8_, omp_get_place_num_,
5712 omp_get_partition_num_places_, omp_get_partition_place_nums_,
5713 omp_get_partition_place_nums_8_, omp_get_initial_device_,
5714 omp_get_max_task_priority_): New functions.
5715 * libgomp_g.h (GOMP_loop_doacross_static_start,
5716 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5717 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5718 GOMP_loop_ull_doacross_dynamic_start,
5719 GOMP_loop_ull_doacross_guided_start,
5720 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5721 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5722 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5723 GOMP_target_data_41, GOMP_target_update_41,
5724 GOMP_target_enter_exit_data): New prototypes.
5725 (GOMP_task): Add prototype argument.
5726 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5727 (struct gomp_doacross_work_share): New type.
5728 (struct gomp_work_share): Add doacross field.
5729 (struct gomp_task_icv): Rename run_sched_modifier to
5730 run_sched_chunk_size.
5731 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5732 GOMP_TASK_UNDEFERRED. Add comments.
5733 (struct gomp_task_depend_entry): Add comments.
5734 (struct gomp_task): Likewise.
5735 (struct gomp_taskgroup): Likewise.
5736 (struct gomp_target_task): New type.
5737 (struct gomp_team): Add comment.
5738 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5739 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5740 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5741 (struct target_var_desc): New type.
5742 (struct target_mem_desc): Adjust comment. Use struct
5743 target_var_desc instead of splay_tree_key for list.
5744 (REFCOUNT_INFINITY): Define.
5745 (struct splay_tree_key_s): Remove copy_from field.
5746 (struct gomp_device_descr): Add dev2dev_func field.
5747 (enum gomp_map_vars_kind): New enum.
5748 (gomp_map_vars): Add one argument.
5749 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5750 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5751 omp_get_place_num_procs, omp_get_place_num_procs_,
5752 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5753 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5754 omp_get_place_num_, omp_get_partition_num_places,
5755 omp_get_partition_num_places_, omp_get_partition_place_nums,
5756 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5757 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5758 omp_target_free, omp_target_is_present, omp_target_memcpy,
5759 omp_target_memcpy_rect, omp_target_associate_ptr and
5760 omp_target_disassociate_ptr.
5761 (GOMP_4.0.2): Renamed to ...
5762 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5763 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5764 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5765 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5766 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5767 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5768 GOMP_loop_ull_doacross_guided_start,
5769 GOMP_loop_ull_doacross_runtime_start,
5770 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5771 GOMP_doacross_ull_wait.
5772 * libgomp.texi: Document omp_get_max_task_priority.
5773 Rename modifier argument to chunk_size for omp_set_schedule and
5774 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5775 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5776 to run_sched_chunk_size renaming.
5777 (GOMP_loop_ordered_runtime_start): Likewise.
5778 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5779 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5780 GOMP_parallel_loop_runtime_start): New functions.
5781 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5782 to run_sched_chunk_size renaming.
5783 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5784 GOMP_loop_doacross_guided_start): New functions or aliases.
5785 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5786 run_sched_modifier to run_sched_chunk_size renaming.
5787 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5788 (gomp_loop_ull_doacross_static_start,
5789 gomp_loop_ull_doacross_dynamic_start,
5790 gomp_loop_ull_doacross_guided_start,
5791 GOMP_loop_ull_doacross_runtime_start): New functions.
5792 (GOMP_loop_ull_doacross_static_start,
5793 GOMP_loop_ull_doacross_dynamic_start,
5794 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5795 * oacc-mem.c (acc_map_data, present_create_copy,
5796 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5797 to gomp_map_vars.
5798 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5799 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5800 instead of false to gomp_map_vars.
5801 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5802 * omp.h.in (omp_lock_hint_t): New type.
5803 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5804 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5805 omp_get_place_num, omp_get_partition_num_places,
5806 omp_get_partition_place_nums, omp_get_initial_device,
5807 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5808 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5809 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5810 prototypes.
5811 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5812 (omp_lock_hint_none, omp_lock_hint_uncontended,
5813 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5814 omp_lock_hint_speculative): New parameters.
5815 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5816 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5817 omp_get_place_num, omp_get_partition_num_places,
5818 omp_get_partition_place_nums, omp_get_initial_device,
5819 omp_get_max_task_priority): New interfaces.
5820 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5821 to chunk_size.
5822 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5823 (omp_lock_hint_none, omp_lock_hint_uncontended,
5824 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5825 omp_lock_hint_speculative): New parameters.
5826 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5827 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5828 omp_get_place_num, omp_get_partition_num_places,
5829 omp_get_partition_place_nums, omp_get_initial_device,
5830 omp_get_max_task_priority): New functions and subroutines.
5831 * ordered.c: Include stdarg.h and string.h.
5832 (MAX_COLLAPSED_BITS): Define.
5833 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5834 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5835 GOMP_doacross_ull_wait): New functions.
5836 * target.c: Include errno.h.
5837 (resolve_device): If device is not initialized, call
5838 gomp_init_device on it.
5839 (gomp_map_lookup): New function.
5840 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5841 Don't bump refcount if REFCOUNT_INFINITY. Handle
5842 GOMP_MAP_ALWAYS_TO_P.
5843 (get_kind): Rename is_openacc argument to short_mapkind.
5844 (gomp_map_pointer): Use gomp_map_lookup.
5845 (gomp_map_fields_existing): New function.
5846 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5847 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5848 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5849 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5850 Adjust for tgt->list changed type and copy_from living in there.
5851 (gomp_copy_from_async): Adjust for tgt->list changed type and
5852 copy_from living in there.
5853 (gomp_unmap_vars): Likewise.
5854 (gomp_update): Likewise. Rename is_openacc argument to
5855 short_mapkind. Don't fail if object is not mapped.
5856 (gomp_load_image_to_device): Initialize refcount to
5857 REFCOUNT_INFINITY.
5858 (gomp_target_fallback): New function.
5859 (gomp_get_target_fn_addr): Likewise.
5860 (GOMP_target): Adjust gomp_map_vars caller, use
5861 gomp_get_target_fn_addr and gomp_target_fallback.
5862 (GOMP_target_41): New function.
5863 (gomp_target_data_fallback): New function.
5864 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5865 (GOMP_target_data_41): New function.
5866 (GOMP_target_update): Adjust gomp_update caller.
5867 (GOMP_target_update_41): New function.
5868 (gomp_exit_data, GOMP_target_enter_exit_data,
5869 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5870 omp_target_is_present, omp_target_memcpy,
5871 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5872 omp_target_associate_ptr, omp_target_disassociate_ptr,
5873 gomp_load_plugin_for_device): New functions.
5874 * task.c: Include gomp-constants.h. Include taskloop.c
5875 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5876 (gomp_task_handle_depend): New function.
5877 (GOMP_task): Use it. Add priority argument. Use
5878 gomp-constant.h constants instead of hardcoded numbers.
5879 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5880 (gomp_create_target_task): New function.
5881 (verify_children_queue, verify_taskgroup_queue,
5882 verify_task_queue): New functions.
5883 (gomp_task_run_pre): Call verify_*_queue functions.
5884 If an upcoming tied task is about to leave the sibling or
5885 taskgroup queues in an invalid state, adjust appropriately.
5886 Remove taskgroup argument. Add comments.
5887 (gomp_task_run_post_handle_dependers): Add comments.
5888 (gomp_task_run_post_remove_parent): Likewise.
5889 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5890 (GOMP_taskwait): Likewise. Add comments.
5891 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5892 problem such that the first non parent_depends_on task does not
5893 end up at the end of the children queue.
5894 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5895 GOMP_TASK_UNDEFERRED.
5896 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5897 * taskloop.c: New file.
5898 * testsuite/lib/libgomp.exp
5899 (check_effective_target_offload_device_nonshared_as): New proc.
5900 * testsuite/libgomp.c/affinity-2.c: New test.
5901 * testsuite/libgomp.c/doacross-1.c: New test.
5902 * testsuite/libgomp.c/doacross-2.c: New test.
5903 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5904 Add map clause to target.
5905 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5906 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5907 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5908 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5909 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5910 Likewise.
5911 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5912 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5913 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5914 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5915 not defined. Use those where needed.
5916 * testsuite/libgomp.c/for-4.c: New test.
5917 * testsuite/libgomp.c/for-5.c: New test.
5918 * testsuite/libgomp.c/for-6.c: New test.
5919 * testsuite/libgomp.c/linear-1.c: New test.
5920 * testsuite/libgomp.c/ordered-4.c: New test.
5921 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5922 only allowed on the loop iterator.
5923 * testsuite/libgomp.c/pr66199-3.c: New test.
5924 * testsuite/libgomp.c/pr66199-4.c: New test.
5925 * testsuite/libgomp.c/reduction-7.c: New test.
5926 * testsuite/libgomp.c/reduction-8.c: New test.
5927 * testsuite/libgomp.c/reduction-9.c: New test.
5928 * testsuite/libgomp.c/reduction-10.c: New test.
5929 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5930 map(tofrom:s).
5931 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5932 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5933 * testsuite/libgomp.c/target-11.c: New test.
5934 * testsuite/libgomp.c/target-12.c: New test.
5935 * testsuite/libgomp.c/target-13.c: New test.
5936 * testsuite/libgomp.c/target-14.c: New test.
5937 * testsuite/libgomp.c/target-15.c: New test.
5938 * testsuite/libgomp.c/target-16.c: New test.
5939 * testsuite/libgomp.c/target-17.c: New test.
5940 * testsuite/libgomp.c/target-18.c: New test.
5941 * testsuite/libgomp.c/target-19.c: New test.
5942 * testsuite/libgomp.c/target-20.c: New test.
5943 * testsuite/libgomp.c/target-21.c: New test.
5944 * testsuite/libgomp.c/target-22.c: New test.
5945 * testsuite/libgomp.c/target-23.c: New test.
5946 * testsuite/libgomp.c/target-24.c: New test.
5947 * testsuite/libgomp.c/target-25.c: New test.
5948 * testsuite/libgomp.c/target-26.c: New test.
5949 * testsuite/libgomp.c/target-27.c: New test.
5950 * testsuite/libgomp.c/taskloop-1.c: New test.
5951 * testsuite/libgomp.c/taskloop-2.c: New test.
5952 * testsuite/libgomp.c/taskloop-3.c: New test.
5953 * testsuite/libgomp.c/taskloop-4.c: New test.
5954 * testsuite/libgomp.c++/ctor-13.C: New test.
5955 * testsuite/libgomp.c++/doacross-1.C: New test.
5956 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5957 Replace offload_device with offload_device_nonshared_as.
5958 * testsuite/libgomp.c++/for-12.C: New test.
5959 * testsuite/libgomp.c++/for-13.C: New test.
5960 * testsuite/libgomp.c++/for-14.C: New test.
5961 * testsuite/libgomp.c++/linear-1.C: New test.
5962 * testsuite/libgomp.c++/member-1.C: New test.
5963 * testsuite/libgomp.c++/member-2.C: New test.
5964 * testsuite/libgomp.c++/member-3.C: New test.
5965 * testsuite/libgomp.c++/member-4.C: New test.
5966 * testsuite/libgomp.c++/member-5.C: New test.
5967 * testsuite/libgomp.c++/ordered-1.C: New test.
5968 * testsuite/libgomp.c++/reduction-5.C: New test.
5969 * testsuite/libgomp.c++/reduction-6.C: New test.
5970 * testsuite/libgomp.c++/reduction-7.C: New test.
5971 * testsuite/libgomp.c++/reduction-8.C: New test.
5972 * testsuite/libgomp.c++/reduction-9.C: New test.
5973 * testsuite/libgomp.c++/reduction-10.C: New test.
5974 * testsuite/libgomp.c++/reference-1.C: New test.
5975 * testsuite/libgomp.c++/simd14.C: New test.
5976 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5977 * testsuite/libgomp.c++/target-5.C: New test.
5978 * testsuite/libgomp.c++/target-6.C: New test.
5979 * testsuite/libgomp.c++/target-7.C: New test.
5980 * testsuite/libgomp.c++/target-8.C: New test.
5981 * testsuite/libgomp.c++/target-9.C: New test.
5982 * testsuite/libgomp.c++/target-10.C: New test.
5983 * testsuite/libgomp.c++/target-11.C: New test.
5984 * testsuite/libgomp.c++/target-12.C: New test.
5985 * testsuite/libgomp.c++/taskloop-1.C: New test.
5986 * testsuite/libgomp.c++/taskloop-2.C: New test.
5987 * testsuite/libgomp.c++/taskloop-3.C: New test.
5988 * testsuite/libgomp.c++/taskloop-4.C: New test.
5989 * testsuite/libgomp.c++/taskloop-5.C: New test.
5990 * testsuite/libgomp.c++/taskloop-6.C: New test.
5991 * testsuite/libgomp.c++/taskloop-7.C: New test.
5992 * testsuite/libgomp.c++/taskloop-8.C: New test.
5993 * testsuite/libgomp.c++/taskloop-9.C: New test.
5994 * testsuite/libgomp.fortran/affinity1.f90: New test.
5995 * testsuite/libgomp.fortran/affinity2.f90: New test.
5996
5997 2015-10-13 Tom de Vries <tom@codesourcery.com>
5998
5999 PR tree-optimization/67476
6000 * testsuite/libgomp.c/autopar-3.c: New test.
6001 * testsuite/libgomp.c/autopar-4.c: New test.
6002 * testsuite/libgomp.c/autopar-5.c: New test.
6003 * testsuite/libgomp.c/autopar-6.c: New test.
6004 * testsuite/libgomp.c/autopar-7.c: New test.
6005 * testsuite/libgomp.c/autopar-8.c: New test.
6006
6007 2015-10-12 James Norris <jnorris@codesourcery.com>
6008
6009 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6010 initializer.
6011
6012 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6013
6014 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6015 using load_gcc_lib.
6016
6017 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6018
6019 * oacc-ptx.h: Remove file, moving its content into...
6020 * config/nvptx/fortran.c: ... here...
6021 * config/nvptx/oacc-init.c: ..., here...
6022 * config/nvptx/oacc-parallel.c: ..., and here.
6023 * config/nvptx/openacc.f90: New file.
6024 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6025 (link_ptx): Don't link in predefined bits of PTX code.
6026
6027 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6028 Bernd Schmidt <bernds@codesourcery.com>
6029
6030 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6031 (struct targ_ptx_obj): New.
6032 (nvptx_tdata): Move earlier, change data format.
6033 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6034 objects.
6035 (GOMP_OFFLOAD_load_image): Adjust.
6036
6037 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6038
6039 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6040 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6041 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6042 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6043 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6044 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6045 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6046 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6047 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6048 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6065 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6066 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6070 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6072 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6073 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6074 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6076 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6080 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6081 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6082 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6084 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6085 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6086 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6087 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6088 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6089 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6090 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6091 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6092 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6093 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6094 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6095 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6096 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6097 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6098 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6099 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6100 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6101 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6102
6103 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6104
6105 * oacc-init.c (acc_on_device): Force optimization level.
6106
6107 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6108
6109 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6110 (cuda_errlist): Delete.
6111 (cuda_error): Reimplement.
6112
6113 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6114
6115 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6116 array.
6117 * libgomp.map (GOACC_parallel_keyed): New.
6118 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6119 all callers.
6120 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6121 and take keyed varargs list. Adjust call to exec_func.
6122 (GOACC_parallel): Force host fallback.
6123 * libgomp_g.h (GOACC_parallel): Remove.
6124 (GOACC_parallel_keyed): Declare.
6125 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6126 (stuct targ_gn_descriptor): Replace name field with launch field.
6127 (nvptx_exec): Lose separate geometry args, take array. Process
6128 dynamic dimensions and adjust.
6129 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6130 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6131 data.
6132 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6133 passing.
6134 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6135 passing.
6136
6137 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6138
6139 PR libgomp/67141
6140 * oacc-int.h (goacc_host_init): Add declaration.
6141 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6142 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6143
6144 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6145 Sebastian Pop <s.pop@samsung.com>
6146
6147 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
6148 match o/p.
6149 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6150 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6151 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6152 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6153 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6154
6155 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6156
6157 * configure.tgt: Add missing ;; in between nvptx and rtems
6158 snippets.
6159
6160 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6161
6162 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6163 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6164 (gomp_thread_pool_reservoir): Add priority member.
6165 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6166 priority.
6167 (parse_thread_pools): Likewise.
6168 * team.c (gomp_team_start): Call configuration provided
6169 gomp_adjust_thread_attr(). Destroy thread attributes if
6170 necessary.
6171 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6172
6173 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6174
6175 * config/posix/pool.h: New.
6176 * config/rtems/pool.h: Likewise.
6177 * config/rtems/proc.c: Likewise.
6178 * libgomp.h (gomp_thread_destructor): Declare.
6179 * team.c: Include configuration provided "pool.h".
6180 (gomp_get_thread_pool): Define in configuration.
6181 (gomp_team_end): Call configuration defined
6182 gomp_release_thread_pool().
6183
6184 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6185
6186 * config/rtems/bar.c: New.
6187 * config/rtems/bar.h: Likewise.
6188 * config/rtems/mutex.c: Likewise.
6189 * config/rtems/mutex.h: Likewise.
6190 * config/rtems/sem.c: Likewise.
6191 * config/rtems/sem.h: Likewise.
6192 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6193 <sys/lock.h> header file.
6194 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6195 supported by Newlib.
6196 * configure: Regenerate.
6197
6198 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6199
6200 * team.c (gomp_new_thread_pool): Delete and move content to ...
6201 (gomp_get_thread_pool): ... new function. Allocate and
6202 initialize thread pool on demand.
6203 (get_last_team): Use gomp_get_thread_pool().
6204 (gomp_team_start): Delete thread pool initialization.
6205
6206 2015-09-03 Tom de Vries <tom@codesourcery.com>
6207
6208 PR tree-optimization/65637
6209 * testsuite/libgomp.c/autopar-2.c: New test.
6210
6211 2015-08-29 Tom de Vries <tom@codesourcery.com>
6212
6213 PR tree-optimization/46193
6214 * testsuite/libgomp.c/pr46193.c: New test.
6215
6216 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6217
6218 libgomp/
6219 * libgomp.map: Add 4.0.2 version.
6220 * target.c (offload_image_descr): Add version field.
6221 (gomp_load_image_to_device): Add version argument. Adjust plugin
6222 call. Improve load mismatch diagnostic.
6223 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6224 call.
6225 (GOMP_offload_regster): Make stub function, move bulk to ...
6226 (GOMP_offload_register_ver): ... here. Process version argument.
6227 (GOMP_offload_unregister): Make stub function, move bulk to ...
6228 (GOMP_offload_unregister_ver): ... here. Process version argument.
6229 (gomp_init_device): Process version field.
6230 (gomp_unload_device): Process version field.
6231 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6232 macros. Check plugin version.
6233 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6234 loader and unloader types.
6235 * oacc-host.c: Include gomp-constants.h.
6236 (host_version): New.
6237 (host_load_image, host_unload_image): Adjust.
6238 (host_dispatch): Add host_version.
6239 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6240 (GOMP_OFFLOAD_version): New.
6241 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6242 (GOMP_OFFLOAD_unload_image): Likewise.
6243 * plugin/plugin-host.c: Include gomp-constants.h.
6244 (GOMP_OFFLOAD_version): New.
6245 (GOMP_OFFLOAD_load_image): Add version arg.
6246 (GOMP_OFFLOAD_unload_image): Likewise.
6247
6248 2015-08-24 Tom de Vries <tom@codesourcery.com>
6249
6250 PR tree-optimization/65468
6251 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6252
6253 2015-08-24 Tom de Vries <tom@codesourcery.com>
6254
6255 PR tree-optimization/65468
6256 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6257
6258 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6259
6260 PR libgomp/66761
6261 PR libgomp/67303
6262 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6263 (gomp_iter_guided_next): Idem.
6264 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6265 (gomp_iter_ull_guided_next): Idem.
6266 * config/linux/wait.h (do_spin): Idem.
6267
6268 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6269
6270 * libgomp-plugin.h (enum offload_target_type): Remove
6271 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6272 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6273 * openacc.h (enum acc_device_t): Likewise.
6274 * openacc_lib.h: Likewise.
6275 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6276 (acc_on_device): Just use __builtin_acc_on_device.
6277 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6278 of acc_on_device builtin.
6279 * plugin/plugin-host.h: Remove file.
6280 * plugin/plugin-host.c: Likewise, but salvage some content into...
6281 * oacc-host.c: ... this file.
6282 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6283 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6284 * Makefile.in: Regenerate.
6285 * configure: Likewise.
6286 * testsuite/lib/libgomp.exp
6287 (check_effective_target_openacc_host_nonshm_selected): Remove.
6288 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6289 ACC_DEVICE_TYPE=host_nonshm.
6290 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6291 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6292 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6293 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6294 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6295 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6296
6297 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6298 Jakub Jelinek <jakub@redhat.com>
6299
6300 * config/nvptx/affinity.c: New file.
6301 * config/nvptx/alloc.c: Likewise.
6302 * config/nvptx/bar.c: Likewise.
6303 * config/nvptx/barrier.c: Likewise.
6304 * config/nvptx/critical.c: Likewise.
6305 * config/nvptx/env.c: Likewise.
6306 * config/nvptx/error.c: Likewise.
6307 * config/nvptx/fortran.c: Likewise.
6308 * config/nvptx/iter.c: Likewise.
6309 * config/nvptx/iter_ull.c: Likewise.
6310 * config/nvptx/libgomp-plugin.c: Likewise.
6311 * config/nvptx/lock.c: Likewise.
6312 * config/nvptx/loop.c: Likewise.
6313 * config/nvptx/loop_ull.c: Likewise.
6314 * config/nvptx/mutex.c: Likewise.
6315 * config/nvptx/oacc-async.c: Likewise.
6316 * config/nvptx/oacc-cuda.c: Likewise.
6317 * config/nvptx/oacc-host.c: Likewise.
6318 * config/nvptx/oacc-init.c: Likewise.
6319 * config/nvptx/oacc-mem.c: Likewise.
6320 * config/nvptx/oacc-parallel.c: Likewise.
6321 * config/nvptx/oacc-plugin.c: Likewise.
6322 * config/nvptx/omp-lock.h: Likewise.
6323 * config/nvptx/ordered.c: Likewise.
6324 * config/nvptx/parallel.c: Likewise.
6325 * config/nvptx/proc.c: Likewise.
6326 * config/nvptx/ptrlock.c: Likewise.
6327 * config/nvptx/sections.c: Likewise.
6328 * config/nvptx/sem.c: Likewise.
6329 * config/nvptx/single.c: Likewise.
6330 * config/nvptx/splay-tree.c: Likewise.
6331 * config/nvptx/target.c: Likewise.
6332 * config/nvptx/task.c: Likewise.
6333 * config/nvptx/team.c: Likewise.
6334 * config/nvptx/time.c: Likewise.
6335 * config/nvptx/work.c: Likewise.
6336 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6337 * configure: Regenerate.
6338 * configure.tgt (config_path): Set to "nvptx" for target
6339 nvptx*-*-*.
6340
6341 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6342
6343 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6344
6345 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6346
6347 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6348 (cuda_errlist): Constify.
6349 (errmsg): Move into ...
6350 (cuda_error): ... here. Make smaller.
6351 (_XSTR, _STR): Delete.
6352 (cuda_synames): Delete.
6353 (verify_device_library): Delete.
6354 (nvptx_init): Don't call it.
6355
6356 2015-07-28 Tom de Vries <tom@codesourcery.com>
6357
6358 * testsuite/libgomp.c/uns-outer-4.c: New test.
6359
6360 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6361
6362 * testsuite/libgomp.c/pr66714.c: New test.
6363
6364 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6365
6366 PR libgomp/66950
6367 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6368 (fib_ref): New function.
6369 (fib): Correct corner cases in the recursion.
6370 (main): Replace the non-simd loop with fib_ref call.
6371 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6372 subroutine.
6373 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6374 for the last array element value. Replace the non-simd loop with
6375 fib_ref call. Remove redundant b_ref array. Remove the comparison
6376 of the last array element with according Fibonacci sequence element.
6377 (fib): Correct corner cases in the recursion.
6378
6379 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6380
6381 * target.c (gomp_offload_image_to_device): Rename to ...
6382 (gomp_load_image_to_device): ... here.
6383 (GOMP_offload_register): Adjust call.
6384 (gomp_init_device): Likewise.
6385 (gomp_unload_image_from_device): New. Broken out of ...
6386 (GOMP_offload_unregister): ... here. Call it.
6387 (gomp_unload_device): New.
6388 * libgomp.h (gomp_unload_device): Declare.
6389 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6390 mem maps.
6391
6392 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6393
6394 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6395 wait=-specific if.
6396 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6397 !=0 condition.
6398 (goacc_waits): Move !num_waits handling to ...
6399 (GOACC_wait): ... here, the only caller that might have zero waits.
6400
6401 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6402 (struct ptx_image_data): Move earlier, add fns field.
6403 (struct ptx_device): Add images and image_lock fields.
6404 (ptx_images, ptx_image_lock): Delete.
6405 (nvptx_open_device): Initialize images and image_lock fields.
6406 (nvptx_close_device): Destroy image_lock.
6407 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
6408 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
6409 fields.
6410
6411 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6412
6413 * target.c (GOMP_offload_register): Use int for device type arg.
6414 (GOMP_offload_unregister): Likewise.
6415
6416 * target.c (struct_offload_image_descr): Constify host_table.
6417 (gomp_offload_image_to_device): Likewise.
6418 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
6419
6420 * libgomp.h (gomp_device_descr): Constify target data arguments.
6421 * target.c (struct offload_image_descr): Constify target_data.
6422 (gomp_offload_image_to_device): Likewise.
6423 (GOMP_offload_register): Likewise.
6424 (GOMP_offload_unrefister): Likewise.
6425 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
6426 GOMP_OFFLOAD_unload_image): Constify target data.
6427 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
6428 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
6429
6430 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6431
6432 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
6433 Workaround driver library const error.
6434 (struct nvptx_tdata, nvptx_tdata_t): New.
6435 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
6436 type.
6437
6438 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
6439
6440 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
6441 of EPS parameter from integer to real.
6442 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6443 type of EPS parameter from integer to real.
6444
6445 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6446
6447 * team.c (get_last_team): New.
6448 (gomp_new_team): Recycle last non-nested team if possible.
6449 (gomp_team_end): Move team work share list free lock destruction
6450 to ...
6451 (free_team): ... here.
6452
6453 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
6454
6455 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
6456 and ref from int to double. Replaced their comparison with
6457 an inequality of their difference and EPS.
6458 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
6459 comparison of pri and a reference number with an inequality of their
6460 difference and EPS.
6461 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
6462 the comparison of sum and sum_ref with an inequality of their
6463 difference and EPS.
6464 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
6465 the comparison of pri and a reference number with an inequality of
6466 their difference and EPS.
6467
6468 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
6469
6470 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
6471 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
6472 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
6473 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
6474 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
6475 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
6476 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
6477 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
6478 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
6479 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
6480 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
6481 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
6482 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
6483 variables.
6484 (vec_mult): Likewise. Add #pragma omp taskwait.
6485 (main): Adjust caller.
6486 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
6487 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
6488 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
6489 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
6490 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
6491 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
6492 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
6493 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
6494 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
6495 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
6496 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
6497 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
6498 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
6499 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
6500 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
6501 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
6502 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
6503 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
6504 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
6505 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
6506 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
6507 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
6508 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
6509 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
6510 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
6511 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
6512 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
6513 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
6514 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
6515 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
6516 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
6517 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
6518 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
6519 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
6520 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
6521 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
6522 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
6523 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6524 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6525 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6526 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6527 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6528 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6529 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6530 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6531 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6532 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6533 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6534 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6535 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6536 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6537 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6538 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6539 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6540 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6541 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6542 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6543 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6544 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6545 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6546 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6547 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6548 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6549 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6550 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6551 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6552 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6553 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6554 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6555 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6556 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6557 (vec_mult): Add !$omp taskwait.
6558 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
6559 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
6560 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
6561 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
6562 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
6563 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
6564 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
6565 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
6566 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
6567 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
6568 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
6569 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
6570 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
6571 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
6572 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
6573 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
6574 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
6575 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
6576 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
6577 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
6578 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
6579 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
6580 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
6581 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
6582 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
6583 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
6584 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
6585 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
6586 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
6587 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
6588 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
6589 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
6590 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
6591 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
6592 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
6593 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
6594 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
6595 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
6596 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
6597 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
6598 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
6599 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
6600 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
6601 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
6602 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
6603 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
6604 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
6605 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
6606 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
6607 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
6608 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
6609 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
6610 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
6611 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
6612 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
6613 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
6614 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
6615 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
6616 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
6617 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
6618 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
6619 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
6620 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
6621 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
6622 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
6623 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
6624 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
6625
6626 2015-07-10 Tom de Vries <tom@codesourcery.com>
6627
6628 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
6629 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
6630
6631 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6632
6633 PR libgomp/65099
6634 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6635 in a 64-bit configuration.
6636 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6637 offloading testing if no such device is available.
6638 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6639 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6640
6641 2015-07-08 Tom de Vries <tom@codesourcery.com>
6642
6643 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6644 second call to f.
6645 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6646
6647 2015-07-07 Tom de Vries <tom@codesourcery.com>
6648
6649 PR tree-optimization/66642
6650 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6651 iteration count case.
6652 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6653 function, factor out of ...
6654 (main): ... here. Test low iteration count case.
6655
6656 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
6657
6658 * libgomp.h (gomp_thread_pool): Comment last_team field.
6659
6660 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
6661
6662 * testsuite/libgomp.c++/pr66702-1.C: Require
6663 vect_simd_clones effective target.
6664 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6665
6666 2015-06-30 Tom de Vries <tom@codesourcery.com>
6667
6668 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6669 already set. Use DEFAULT_CFLAGS in dg-runtest.
6670 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6671 "-O2".
6672
6673 2015-06-30 Tom de Vries <tom@codesourcery.com>
6674
6675 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6676 already set. Use DEFAULT_CFLAGS in dg-runtest.
6677 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6678 * testsuite/libgomp.c++/pr64824.C: Same.
6679 * testsuite/libgomp.c++/pr64868.C: Same.
6680 * testsuite/libgomp.c++/pr66199-1.C: Same.
6681 * testsuite/libgomp.c++/pr66199-2.C: Same.
6682 * testsuite/libgomp.c++/target-2.C: Same.
6683 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6684 -std=<standard> option.
6685 * testsuite/libgomp.c++/udr-11.C: Same.
6686 * testsuite/libgomp.c++/udr-12.C: Same.
6687 * testsuite/libgomp.c++/udr-13.C: Same.
6688 * testsuite/libgomp.c++/udr-14.C: Same.
6689 * testsuite/libgomp.c++/udr-15.C: Same.
6690 * testsuite/libgomp.c++/udr-16.C: Same.
6691 * testsuite/libgomp.c++/udr-17.C: Same.
6692 * testsuite/libgomp.c++/udr-18.C: Same.
6693 * testsuite/libgomp.c++/udr-19.C: Same.
6694 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6695 * testsuite/libgomp.c++/simd-1.C: Same.
6696 * testsuite/libgomp.c++/simd-2.C: Same.
6697 * testsuite/libgomp.c++/simd-3.C: Same.
6698 * testsuite/libgomp.c++/simd-4.C: Same.
6699 * testsuite/libgomp.c++/simd-5.C: Same.
6700 * testsuite/libgomp.c++/simd-6.C: Same.
6701 * testsuite/libgomp.c++/simd-7.C: Same.
6702 * testsuite/libgomp.c++/simd-8.C: Same.
6703 * testsuite/libgomp.c++/simd-9.C: Same.
6704 * testsuite/libgomp.c++/simd10.C: Same.
6705 * testsuite/libgomp.c++/simd11.C: Same.
6706 * testsuite/libgomp.c++/simd12.C: Same.
6707 * testsuite/libgomp.c++/simd13.C: Same.
6708
6709 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6710
6711 PR middle-end/66702
6712 * testsuite/libgomp.c++/pr66702-1.C: New test.
6713 * testsuite/libgomp.c++/pr66702-2.C: New test.
6714
6715 2015-06-30 Tom de Vries <tom@codesourcery.com>
6716
6717 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6718 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6719 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6720 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6721
6722 2015-06-30 Tom de Vries <tom@codesourcery.com>
6723
6724 PR tree-optimization/66652
6725 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6726 using restrict pointers.
6727 (main): Add arguments to calls to f.
6728 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6729
6730 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
6731
6732 * configure.ac: Fix check for header <sys/sysctl.h>.
6733 * configure: Regenerate.
6734 * config.h.in: Likewise.
6735
6736 2015-06-23 Tom de Vries <tom@codesourcery.com>
6737
6738 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6739 abort.
6740 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6741
6742 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6743
6744 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6745 acc_device_nvidia.
6746
6747 PR libgomp/66518
6748 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6749 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6750
6751 2015-06-15 Tom de Vries <tom@codesourcery.com>
6752
6753 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6754 dg-additional-options for any remaining options.
6755 * testsuite/libgomp.c/atomic-2.c: Same.
6756 * testsuite/libgomp.c/atomic-4.c: Same.
6757 * testsuite/libgomp.c/atomic-5.c: Same.
6758 * testsuite/libgomp.c/atomic-6.c: Same.
6759 * testsuite/libgomp.c/autopar-1.c: Same.
6760 * testsuite/libgomp.c/copyin-1.c: Same.
6761 * testsuite/libgomp.c/copyin-2.c: Same.
6762 * testsuite/libgomp.c/copyin-3.c: Same.
6763 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6764 * testsuite/libgomp.c/nestedfn-5.c: Same.
6765 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6766 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6767 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6768 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6769 * testsuite/libgomp.c/pr32362-1.c: Same.
6770 * testsuite/libgomp.c/pr32362-2.c: Same.
6771 * testsuite/libgomp.c/pr32362-3.c: Same.
6772 * testsuite/libgomp.c/pr39591-1.c: Same.
6773 * testsuite/libgomp.c/pr39591-2.c: Same.
6774 * testsuite/libgomp.c/pr39591-3.c: Same.
6775 * testsuite/libgomp.c/pr58392.c: Same.
6776 * testsuite/libgomp.c/pr58756.c: Same.
6777 * testsuite/libgomp.c/simd-1.c: Same.
6778 * testsuite/libgomp.c/simd-10.c: Same.
6779 * testsuite/libgomp.c/simd-11.c: Same.
6780 * testsuite/libgomp.c/simd-12.c: Same.
6781 * testsuite/libgomp.c/simd-13.c: Same.
6782 * testsuite/libgomp.c/simd-14.c: Same.
6783 * testsuite/libgomp.c/simd-15.c: Same.
6784 * testsuite/libgomp.c/simd-2.c: Same.
6785 * testsuite/libgomp.c/simd-3.c: Same.
6786 * testsuite/libgomp.c/simd-4.c: Same.
6787 * testsuite/libgomp.c/simd-5.c: Same.
6788 * testsuite/libgomp.c/simd-6.c: Same.
6789 * testsuite/libgomp.c/simd-7.c: Same.
6790 * testsuite/libgomp.c/simd-8.c: Same.
6791 * testsuite/libgomp.c/simd-9.c: Same.
6792
6793 2015-06-15 Tom de Vries <tom@codesourcery.com>
6794
6795 * testsuite/libgomp.c/pr35625.c: Fix typo.
6796
6797 2015-06-15 Tom de Vries <tom@codesourcery.com>
6798
6799 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6800 in dg-options.
6801 * testsuite/libgomp.c/atomic-3.c: Same.
6802 * testsuite/libgomp.c/debug-1.c: Same.
6803 * testsuite/libgomp.c/nqueens-1.c: Same.
6804 * testsuite/libgomp.c/pr26171.c: Same.
6805 * testsuite/libgomp.c/pr48591.c: Same.
6806 * testsuite/libgomp.c/pr64824.c: Same.
6807 * testsuite/libgomp.c/pr64868.c: Same.
6808 * testsuite/libgomp.c/pr66133.c: Same.
6809 * testsuite/libgomp.c/pr66199-1.c: Same.
6810 * testsuite/libgomp.c/pr66199-2.c: Same.
6811 * testsuite/libgomp.c/target-8.c: Same.
6812
6813 2015-06-15 Tom de Vries <tom@codesourcery.com>
6814
6815 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6816 -std={gnu99,c99}.
6817 * testsuite/libgomp.c/for-1.c: Same.
6818 * testsuite/libgomp.c/for-2.c: Same.
6819 * testsuite/libgomp.c/for-3.c: Same.
6820 * testsuite/libgomp.c/pr35625.c: Same.
6821 * testsuite/libgomp.c/pr39154.c: Same.
6822 * testsuite/libgomp.c/simd-16.c: Same.
6823 * testsuite/libgomp.c/simd-17.c: Same.
6824
6825 2015-06-13 Tom de Vries <tom@codesourcery.com>
6826
6827 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6828
6829 2015-06-13 Tom de Vries <tom@codesourcery.com>
6830
6831 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6832 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6833 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6834 (N): Define.
6835 (main): Use N instead of hardcoded constants.
6836
6837 2015-06-05 Tom de Vries <tom@codesourcery.com>
6838
6839 merge from gomp4 branch:
6840 2015-05-28 Tom de Vries <tom@codesourcery.com>
6841
6842 PR tree-optimization/65443
6843 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6844 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6845 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6846
6847 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6848
6849 * testsuite/libgomp.graphite/bounds.c: Adjust for
6850 cleanup-tree-dump removal.
6851 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6852 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6853 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6854 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6855 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6856 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6857 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6858 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6859 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6860 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6861
6862 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6863
6864 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6865 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6866 (futex_wake) [!__x86_64__]: Ditto.
6867
6868 2015-05-28 Julian Brown <julian@codesourcery.com>
6869
6870 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6871 function comment. Only call gomp_fatal if new argument is true.
6872 (acc_dev_num_out_of_range): New function.
6873 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6874 acc_dev_num_out_of_range as appropriate.
6875 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6876 (acc_get_device_num, acc_set_device_num): Update calls to
6877 resolve_device.
6878 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6879 output.
6880
6881 2015-05-28 Julian Brown <julian@codesourcery.com>
6882
6883 PR libgomp/65742
6884 * oacc-init.c (plugin/plugin-host.h): Include.
6885 (acc_on_device): Check whether we're in an offloaded region for
6886 host_nonshm
6887 plugin. Don't use __builtin_acc_on_device.
6888 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6889 nonshm_exec flag in thread-local data.
6890 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6891 data for host_nonshm plugin.
6892 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6893 for host_nonshm plugin.
6894 * plugin/plugin-host.h: New.
6895
6896 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6897
6898 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6899
6900 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6901
6902 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6903 Declare as int.
6904 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6905 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6906 Declare as int.
6907
6908 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6909
6910 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6911
6912 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6913
6914 * target.c (gomp_map_pointer): New function abstracting out
6915 GOMP_MAP_POINTER handling.
6916 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6917 gomp_map_pointer().
6918
6919 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6920
6921 PR middle-end/66199
6922 * testsuite/libgomp.c/pr66199-1.c: New test.
6923 * testsuite/libgomp.c/pr66199-2.c: New test.
6924 * testsuite/libgomp.c++/pr66199-1.C: New test.
6925 * testsuite/libgomp.c++/pr66199-2.C: New test.
6926 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6927 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6928
6929 2015-05-19 Julian Brown <julian@codesourcery.com>
6930
6931 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6932 on cuInit failure.
6933
6934 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6935
6936 PR middle-end/66133
6937 * testsuite/libgomp.c/pr66133.c: New test.
6938
6939 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6940
6941 * Makefile.in: Regenerated with automake-1.11.6.
6942 * aclocal.m4: Likewise.
6943 * config.h.in: Likewise.
6944 * configure: Likewise.
6945 * testsuite/Makefile.in: Likewise.
6946
6947 2015-05-08 Jason Merrill <jason@redhat.com>
6948
6949 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6950 _Complex.
6951
6952 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6953
6954 2015-05-06 Julian Brown <julian@codesourcery.com>
6955
6956 * oacc-init.c (acc_device_lock): Add explanatory comment.
6957 (resolve_device): Add comment about locking requirement.
6958 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6959 gomp_init_device and gomp_fini_device calls.
6960 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6961 (acc_get_device_num, acc_set_device_num): Add locking around
6962 resolve_device and gomp_init_device calls.
6963
6964 2015-05-06 Julian Brown <julian@codesourcery.com>
6965
6966 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6967 goacc_thread_lock on error paths.
6968 * oacc-mem.c (lookup_host): Remove locking from function. Note
6969 locking requirement for caller in function comment.
6970 (lookup_dev): Likewise.
6971 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6972 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6973 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6974 Add locking.
6975
6976 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6977
6978 PR testsuite/65205
6979 PR libgomp/65993
6980 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6981 don't expect "0x" prefix for "%p" format specifier, don't expect
6982 "(nil)" for NULL pointer.
6983 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7012 accurately specify what we're looking for.
7013 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7015 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7016 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7017 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7018
7019 2015-04-30 James Norris <jnorris@codesourcery.com>
7020
7021 PR testsuite/65205
7022 * testsuite/lib/libgomp.exp
7023 (check_effective_target_openacc_host_selected)
7024 (check_effective_target_openacc_host_nonshm_selected): New
7025 procedures.
7026 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7027 dg-shouldfail.
7028 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7043 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7044 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7045 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7046 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7049 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7050 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7051 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7052 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7053 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7054 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7055 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7056 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7057 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7058 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7059 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7064 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7065 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7066 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7067 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7068 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7071
7072 2015-04-08 Julian Brown <julian@codesourcery.com>
7073
7074 * libgomp.h (target_mem_desc: Remove mem_map field.
7075 (acc_dispatch_t): Remove open_device_func, close_device_func,
7076 get_device_num_func, set_device_num_func, target_data members.
7077 Change create_thread_data_func argument to device number instead of
7078 generic pointer.
7079 * oacc-async.c (assert.h): Include.
7080 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7081 (acc_wait_all, acc_wait_all_async): Use current host thread's
7082 active device, not base_dev.
7083 * oacc-cuda.c (acc_get_current_cuda_device)
7084 (acc_get_current_cuda_context, acc_get_cuda_stream)
7085 (acc_set_cuda_stream): Likewise.
7086 * oacc-host.c (host_dispatch): Don't set open_device_func,
7087 close_device_func, get_device_num_func or set_device_num_func.
7088 * oacc-init.c (base_dev, init_key): Remove.
7089 (cached_base_dev): New.
7090 (name_of_acc_device_t): New.
7091 (acc_init_1): Initialise default-numbered device, not zeroth.
7092 (acc_shutdown_1): Close all devices of a given type.
7093 (goacc_destroy_thread): Don't use base_dev.
7094 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7095 (goacc_attach_host_thread_to_device): New.
7096 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7097 (acc_get_num_devices): Don't use base_dev.
7098 (acc_set_device_type): Reimplement.
7099 (acc_get_device_type): Don't use base_dev.
7100 (acc_get_device_num): Tweak logic.
7101 (acc_set_device_num): Likewise.
7102 (acc_on_device): Use acc_get_device_type.
7103 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7104 (goacc_lazy_initialize): Reimplement with acc_init and
7105 goacc_attach_host_thread_to_device.
7106 * oacc-int.h (goacc_thread): Add base_dev field.
7107 (base_dev): Remove extern declaration.
7108 (goacc_attach_host_thread_to_device): Add prototype.
7109 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7110 base_dev.
7111 (acc_free): Likewise.
7112 (acc_memcpy_to_device): Likewise.
7113 (acc_memcpy_from_device): Likewise.
7114 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7115 goacc_lazy_initialize (throughout).
7116 (GOACC_parallel): Use tgt_offset to locate target functions.
7117 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7118 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7119 (gomp_load_plugin_for_device): Remove open_device, close_device,
7120 get_device_num, set_device_num openacc hook initialisation. Don't set
7121 openacc.target_data.
7122 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7123 (GOMP_OFFLOAD_openacc_close_device)
7124 (GOMP_OFFLOAD_openacc_get_device_num)
7125 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7126 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7127 to int.
7128 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7129 (instantiated_devices, ptx_dev_lock): New.
7130 (struct ptx_image_data): New.
7131 (ptx_devices, ptx_images, ptx_image_lock): New.
7132 (fini_streams_for_device): Reorder cuStreamDestroy call.
7133 (nvptx_get_num_devices): Remove forward declaration.
7134 (nvptx_init): Change return type to bool.
7135 (nvptx_fini): Remove.
7136 (nvptx_attach_host_thread_to_device): New.
7137 (nvptx_open_device): Return struct ptx_device* instead of void*.
7138 (nvptx_close_device): Change argument type to struct ptx_device*,
7139 return type to void.
7140 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7141 (kernel_target_data, kernel_host_table): Remove static globals.
7142 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7143 (GOMP_OFFLOAD_init_device): Reimplement.
7144 (GOMP_OFFLOAD_fini_device): Likewise.
7145 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7146 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7147 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7148 (GOMP_OFFLOAD_openacc_open_device)
7149 (GOMP_OFFLOAD_openacc_close_device)
7150 (GOMP_OFFLOAD_openacc_set_device_num)
7151 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7152 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7153 (device number).
7154
7155 testsuite/
7156 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7157
7158 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7159
7160 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7161 * libgomp.h (struct gomp_memory_mapping): Remove.
7162 (struct target_mem_desc): Change type of mem_map from
7163 gomp_memory_mapping * to splay_tree_s *.
7164 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7165 Add load_image_func, unload_image_func.
7166 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7167 Remove offload_regions_registered.
7168 (gomp_init_tables): Remove.
7169 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7170 to splay_tree_s *.
7171 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7172 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7173 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7174 offload_regions_registered.
7175 Initialize load_image_func, unload_image_func, mem_map.root.
7176 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7177 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7178 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7179 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7180 gomp_memory_mapping *. Use dev's lock and splay_tree.
7181 (lookup_dev): Use dev's lock.
7182 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7183 (acc_is_present): Likewise.
7184 (acc_map_data): Likewise.
7185 (acc_unmap_data): Likewise. Use dev's lock.
7186 (present_create_copy): Likewise.
7187 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7188 (update_dev_host): Likewise.
7189 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7190 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7191 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7192 (GOMP_OFFLOAD_get_table): Remove
7193 (GOMP_OFFLOAD_load_image): New function.
7194 (GOMP_OFFLOAD_unload_image): New function.
7195 * target.c (register_lock): New mutex for offload image registration.
7196 (num_devices): Do not guard with PLUGIN_SUPPORT.
7197 (gomp_realloc_unlock): New static function.
7198 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7199 before gomp_fatal.
7200 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7201 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7202 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7203 mem_map's.
7204 (gomp_unmap_vars): Likewise.
7205 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7206 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7207 (gomp_offload_image_to_device): New static function.
7208 (GOMP_offload_register): Add mutex lock.
7209 Call gomp_offload_image_to_device for all initialized devices.
7210 Replace gomp_realloc with gomp_realloc_unlock.
7211 (GOMP_offload_unregister): New function.
7212 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7213 get_table_func from the plugin with calls to init_device_func and
7214 gomp_offload_image_to_device.
7215 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7216 to splay_tree_s *.
7217 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7218 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7219 (GOMP_target_data): Do not call gomp_init_tables.
7220 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7221 (gomp_load_plugin_for_device): Replace register_image and get_table
7222 with load_image and unload_image in DLSYM ().
7223 (gomp_register_images_for_device): Remove function.
7224 (gomp_target_init): Do not initialize current_device.mem_map.*,
7225 current_device.offload_regions_registered.
7226 Remove call to gomp_register_images_for_device.
7227 Do not free offload_images and num_offload_images.
7228
7229 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7230
7231 PR fortran/65597
7232 * testsuite/libgomp.fortran/pr65597.f90: New test.
7233
7234 2015-03-27 Tom de Vries <tom@codesourcery.com>
7235
7236 PR testsuite/65594
7237 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7238 (init, check): New function.
7239 (foo): Change return type to void.
7240 (main): Call init and check.
7241
7242 2015-03-27 Tom de Vries <tom@codesourcery.com>
7243
7244 PR testsuite/65594
7245 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7246 (foo): Use M for non-inner loops to scale down test-case.
7247
7248 2015-03-25 Kai Tietz <ktietz@redhat.com>
7249
7250 PR libgomp/64972
7251 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7252 (GOACC_data_start): Likewise.
7253 * target.c (gomp_map_vars): Likewise.
7254
7255 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7256
7257 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7258 hppa*-*-hpux*.
7259
7260 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7261
7262 * testsuite/libgomp.c/target-10.c: New test.
7263 * testsuite/libgomp.c++/target-4.C: New test.
7264
7265 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7266
7267 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7268 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7269
7270 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7271
7272 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7273 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7274 (pthread.h): Check for this header file.
7275 * configure: Regenerate.
7276
7277 2015-02-25 Tom de Vries <tom@codesourcery.com>
7278
7279 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7280 (check_reduction_op, check_reduction_macro, max, min):
7281 Declare.
7282 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7283 function.
7284 (main): Use new functions.
7285
7286 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7287
7288 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7289 char * for variables holding dlerror return values.
7290 (DLSYM_OPT): Ditto.
7291
7292 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7293
7294 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7295
7296 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7297 Cesar Philippidis <cesar@codesourcery.com>
7298
7299 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7300 GOACC_ctaid, and GOACC_nctaid routines.
7301
7302 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7303
7304 PR c/64824
7305 * testsuite/libgomp.c/atomic-18.c: New test.
7306 * testsuite/libgomp.c++/atomic-16.C: New test.
7307
7308 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7309
7310 PR c/64824
7311 PR c/64868
7312 * testsuite/libgomp.c/pr64824.c: New test.
7313 * testsuite/libgomp.c/pr64868.c: New test.
7314 * testsuite/libgomp.c++/pr64824.C: New test.
7315 * testsuite/libgomp.c++/pr64868.C: New test.
7316
7317 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7318
7319 PR libgomp/64635
7320 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7321 Link with -lpthread.
7322 * config/aix/plugin-suffix.h: Delete.
7323
7324 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7325
7326 PR libgomp/64635
7327 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7328 (*-*-darwin*): Use config_path "bsd darwin posix".
7329 (*-*-hpux*): Use config_path "hpux posix".
7330 * target.c: Add include of plugin-suffix.h and use
7331 SONAME_SUFFIX macro.
7332 * config/aix/plugin-suffix.h: New file.
7333 * config/darwin/plugin-suffix.h: New file.
7334 * config/hpux/plugin-suffix.h: New file.
7335 * config/posix/plugin-suffix.h: New file.
7336
7337 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7338
7339 PR middle-end/64734
7340 * libgomp.c/pr64734.c: New test.
7341
7342 2015-01-23 Tom de Vries <tom@codesourcery.com>
7343
7344 PR libgomp/64672
7345 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7346
7347 2015-01-23 Tom de Vries <tom@codesourcery.com>
7348
7349 PR libgomp/64707
7350 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7351 dg-options.
7352
7353 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7354
7355 PR libgomp/64625
7356 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7357 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7358 formal parameter. Update all users.
7359 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7360 Document unused formal parameter.
7361
7362 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7363
7364 * oacc-parallel.c: Don't include <alloca.h>.
7365 (GOACC_parallel): Use gomp_alloca instead of alloca.
7366
7367 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7368
7369 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7370
7371 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7372 James Norris <jnorris@codesourcery.com>
7373 Tom de Vries <tom@codesourcery.com>
7374 Julian Brown <julian@codesourcery.com>
7375 Cesar Philippidis <cesar@codesourcery.com>
7376 Nathan Sidwell <nathan@codesourcery.com>
7377 Tobias Burnus <burnus@net-b.de>
7378
7379 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7380 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7381 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7382 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7383 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7384 Include $(top_srcdir)/plugin/Makefrag.am.
7385 (nodist_libsubinclude_HEADERS): Add openacc.h.
7386 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7387 openacc.f90, openacc.mod, openacc_kinds.mod.
7388 (omp_lib.mod): Generalize into...
7389 (%.mod): ... this new rule.
7390 (openacc_kinds.mod, openacc.mod): New rules.
7391 * plugin/configfrag.ac: New file.
7392 * configure.ac: Move plugin/offloading support into it. Include
7393 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7394 * plugin/Makefrag.am: New file.
7395 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7396 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7397 export.
7398 (libgomp-test-support.exp): New rule.
7399 (all-local): Depend on it.
7400 * Makefile.in: Regenerate.
7401 * testsuite/Makefile.in: Regenerate.
7402 * config.h.in: Likewise.
7403 * configure: Likewise.
7404 * configure.tgt: Harden shell syntax.
7405 * env.c: Include "oacc-int.h".
7406 (parse_acc_device_type): New function.
7407 (gomp_debug_var, goacc_device_type, goacc_device_num): New
7408 variables.
7409 (initialize_env): Initialize those. Call
7410 goacc_runtime_initialize.
7411 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
7412 (gomp_fatal): Call gomp_vfatal.
7413 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
7414 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
7415 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
7416 (splay_tree_node, splay_tree, splay_tree_key)
7417 (struct target_mem_desc, struct splay_tree_key_s)
7418 (struct gomp_memory_mapping, struct acc_dispatch_t)
7419 (struct gomp_device_descr, gomp_acc_insert_pointer)
7420 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
7421 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
7422 (gomp_free_memmap, gomp_fini_device): New declarations.
7423 (gomp_vdebug, gomp_debug): New macros.
7424 Include "splay-tree.h".
7425 * libgomp.map (OACC_2.0): New symbol version. Use for
7426 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
7427 acc_set_device_type_h_, acc_get_device_type,
7428 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
7429 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
7430 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
7431 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
7432 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
7433 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
7434 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
7435 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
7436 acc_copyin_array_h_, acc_present_or_copyin,
7437 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
7438 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
7439 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
7440 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
7441 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
7442 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
7443 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
7444 acc_update_device, acc_update_device_32_h_,
7445 acc_update_device_64_h_, acc_update_device_array_h_,
7446 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
7447 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
7448 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
7449 acc_is_present_64_h_, acc_is_present_array_h_,
7450 acc_memcpy_to_device, acc_memcpy_from_device,
7451 acc_get_current_cuda_device, acc_get_current_cuda_context,
7452 acc_get_cuda_stream, acc_set_cuda_stream.
7453 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
7454 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
7455 GOACC_update, GOACC_wait, GOACC_get_thread_num,
7456 GOACC_get_num_threads.
7457 (GOMP_PLUGIN_1.0): New symbol version. Use for
7458 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
7459 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
7460 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
7461 GOMP_PLUGIN_acc_thread.
7462 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
7463 environment variable.
7464 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
7465 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
7466 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
7467 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
7468 (splay_tree_remove): New declarations.
7469 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
7470 (splay_tree_remove, splay_tree_lookup): Move into...
7471 * splay-tree.c: ... this new file.
7472 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
7473 (splay_tree_node, splay_tree, splay_tree_key)
7474 (struct target_mem_desc, struct splay_tree_key_s)
7475 (struct gomp_device_descr): Don't declare.
7476 (num_devices_openmp): New variable.
7477 (gomp_get_num_devices ): Use it.
7478 (gomp_init_targets_once): New function.
7479 (gomp_get_num_devices ): Use it.
7480 (get_kind, gomp_copy_from_async, gomp_free_memmap)
7481 (gomp_fini_device, gomp_register_image_for_device): New functions.
7482 (gomp_map_vars): Add devaddrs parameter.
7483 (gomp_update): Add mm parameter.
7484 (gomp_init_device): Move most of it into...
7485 (gomp_init_tables): ... this new function.
7486 (gomp_register_images_for_device): Remove function.
7487 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
7488 Make them hidden instead of static.
7489 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
7490 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
7491 (GOMP_target_end_data, GOMP_target_update)
7492 (gomp_load_plugin_for_device, gomp_target_init): Update for
7493 OpenACC changes.
7494 * oacc-async.c: New file.
7495 * oacc-cuda.c: Likewise.
7496 * oacc-host.c: Likewise.
7497 * oacc-init.c: Likewise.
7498 * oacc-int.h: Likewise.
7499 * oacc-mem.c: Likewise.
7500 * oacc-parallel.c: Likewise.
7501 * oacc-plugin.c: Likewise.
7502 * oacc-plugin.h: Likewise.
7503 * oacc-ptx.h: Likewise.
7504 * openacc.f90: Likewise.
7505 * openacc.h: Likewise.
7506 * openacc_lib.h: Likewise.
7507 * plugin/plugin-host.c: Likewise.
7508 * plugin/plugin-nvptx.c: Likewise.
7509 * libgomp-plugin.c: Likewise.
7510 * libgomp-plugin.h: Likewise.
7511 * libgomp_target.h: Remove file after merging content into the
7512 former file. Update all users.
7513 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
7514 (offload_targets_s, offload_targets_s_openacc): New variables.
7515 (check_effective_target_openacc_nvidia_accel_present)
7516 (check_effective_target_openacc_nvidia_accel_selected): New
7517 procedures.
7518 (libgomp_init): Update for OpenACC changes.
7519 * testsuite/libgomp-test-support.exp.in: New file.
7520 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7521 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7522 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7523 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7524 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7525 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7526 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7527 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7528 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7529 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7530 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7531 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7532 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7533 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7534 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7535 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7536 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7537 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7538 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7539 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7540 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7541 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7542 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7543 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7544 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7545 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7546 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7547 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7548 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7549 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7550 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7551 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7552 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7553 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7554 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7555 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7556 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7557 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7558 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
7559 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7560 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7561 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7562 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7563 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7564 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7565 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
7566 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7567 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7568 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7569 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7570 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7571 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7572 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7573 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7574 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7575 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7576 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7577 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7578 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7579 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
7580 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
7581 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
7582 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7583 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7584 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7585 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
7586 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
7607 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7608 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
7610 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
7612 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
7613 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7614 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7615 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7616 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7617 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
7618 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7619 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7620 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7621 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
7622 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7623 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7624 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7625 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7626 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7627 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7628 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7629 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7633 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7634 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7636 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7637 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7639 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7640 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7651 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7660 Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7664 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7666 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7667 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7668 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7669 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7670 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7671 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7672 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7673 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7674 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7675 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7676 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7677 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7678 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7679 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7680 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7681 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7682 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7683 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7684 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7685 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7686 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7687 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7688 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7689 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7690 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7691 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7692 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7693 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7694 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7695 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7696 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7697 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7698 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7699 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7700 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7701 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7702 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7703 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7704 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7705 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7706 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7707 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7708 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7709 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7710 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7711 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7712 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7713 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7714 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7715 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7716 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7717 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7718 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7719 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7720 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7721
7722 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7723 Julian Brown <julian@codesourcery.com>
7724 David Malcolm <dmalcolm@redhat.com>
7725
7726 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7727 to "GNU Offloading and Multi Processing Runtime Library". Change
7728 all users.
7729 * configure: Regenerate.
7730 * libgomp.texi: Update.
7731
7732 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7733
7734 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7735 "$tgt_dir/lib32".
7736 * configure: Regenerate.
7737
7738 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7739 "intelmic" in $offload_targets.
7740
7741 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7742
7743 Update copyright years.
7744
7745 * libgomp.texi: Bump @copying's copyright year.
7746
7747 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7748
7749 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7750 Move load of target-supportes.exp earlier.
7751
7752 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7753
7754 * testsuite/libgomp.c/target-9.c: New test.
7755
7756 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7757
7758 * config.h.in: Regenerate.
7759 * configure: Regenerate.
7760 * configure.ac: Add GCC_CHECK_EMUTLS.
7761 * libgomp.h: Add check for USE_EMUTLS: this case
7762 is equal to HAVE_TLS.
7763 * team.c: Likewise.
7764
7765 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7766
7767 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7768
7769 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7770 Ilya Verbin <ilya.verbin@intel.com>
7771
7772 * testsuite/libgomp.c/target-critical-1.c: New test.
7773
7774 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7775
7776 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7777 to dg-options unless expensive testing is on.
7778 (TESTITERS): Define to N if not defined.
7779 (main): Use TESTITERS instead of N.
7780 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7781 dg-additional-options depending on whether expensive testing is on.
7782 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7783 Decrease N to 100000 and CHUNKSZ to 10000.
7784
7785 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7786
7787 PR fortran/63938
7788 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7789 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7790
7791 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7792
7793 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7794
7795 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7796
7797 PR bootstrap/63784
7798 * configure: Regenerated.
7799
7800 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7801
7802 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7803 vect_simd_clones effective target.
7804 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7805
7806 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7807
7808 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7809 of 32 as block_size.
7810 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7811 instead of 32 as block_size.
7812
7813 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7814 Ilya Verbin <ilya.verbin@intel.com>
7815
7816 * Makefile.in: Regenerate.
7817 * configure: Regenerate.
7818 * configure.ac: Set up offload_additional_options,
7819 offload_additional_lib_paths and offload_targets.
7820 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7821 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7822 * testsuite/Makefile.in: Regenerate.
7823 * testsuite/lib/libgomp.exp (libgomp_init): Append
7824 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7825 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7826 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7827
7828 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7829 Ilya Verbin <ilya.verbin@intel.com>
7830 Kirill Yukhin <kirill.yukhin@intel.com>
7831 Ilya Tocar <ilya.tocar@intel.com>
7832
7833 * testsuite/lib/libgomp.exp
7834 (check_effective_target_offload_device): New.
7835 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7836 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7837 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7838 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7839 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7840 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7841 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7842 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7843 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7844 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7845 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7846 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7847 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7848 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7849 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7850 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7851 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7852 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7853 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7854 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7855 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7856 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7857 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7858 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7859 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7860 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7861 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7862 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7863 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7864 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7865 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7866 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7867 * testsuite/libgomp.c/target-7.c: Fix test.
7868 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7869 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7870 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7871 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7872 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7873 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7874 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7875 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7876 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7877 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7878 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7879 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7880 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7881 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7882 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7883 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7884 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7885 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7886 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7887 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7888 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7889 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7890 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7891 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7892 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7893 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7894 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7895 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7896 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7897 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7898 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7899
7900 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7901 Ilya Verbin <ilya.verbin@intel.com>
7902 Thomas Schwinge <thomas@codesourcery.com>
7903 Andrey Turetskiy <andrey.turetskiy@intel.com>
7904
7905 * libgomp.map (GOMP_4.0.1): New symbol version.
7906 Add GOMP_offload_register.
7907 * libgomp_target.h: New file.
7908 * splay-tree.h: New file.
7909 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7910 (gomp_target_init): New forward declaration.
7911 (gomp_is_initialized): New static variable.
7912 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7913 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7914 New structures.
7915 (offload_images, num_offload_images, devices, num_devices): New static
7916 variables.
7917 (splay_compare): New static function.
7918 (struct gomp_device_descr): New structure.
7919 (gomp_get_num_devices): Call gomp_target_init.
7920 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7921 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7922 (GOMP_offload_register): New function.
7923 (GOMP_target): Arrange for host callback to be performed in a separate
7924 initial thread and contention group, inheriting ICVs from
7925 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7926 Add device initialization and lookup for target function in splay tree.
7927 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7928 (GOMP_target_end_data): Call gomp_unmap_vars.
7929 (GOMP_target_update): Add device initialization and call gomp_update.
7930 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7931 (gomp_target_init): New static functions.
7932
7933 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7934 Thomas Schwinge <thomas@codesourcery.com>
7935 Ilya Verbin <ilya.verbin@intel.com>
7936 Andrey Turetskiy <andrey.turetskiy@intel.com>
7937
7938 * config.h.in: Regenerate.
7939 * configure: Regenerate.
7940 * configure.ac: Check for libdl, required for plugin support.
7941 (PLUGIN_SUPPORT): Define if plugins are supported.
7942 (enable_offload_targets): Support Intel MIC targets.
7943 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7944
7945 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7946
7947 PR target/63610
7948 * configure: Regenerate.
7949
7950 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7951
7952 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7953
7954 2014-10-06 Marek Polacek <polacek@redhat.com>
7955
7956 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7957 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7958 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7959 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7960
7961 2014-10-06 Marek Polacek <polacek@redhat.com>
7962
7963 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7964 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7965 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7966 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7967 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7968 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7969 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7970 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7971 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7972 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7973 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7974 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7975 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7976 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7977 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7978 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7979 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7980 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7981 declarations.
7982
7983 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7984
7985 PR libgomp/61200
7986 * testsuite/libgomp.c/pr61200.c: New test.
7987
7988 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7989
7990 PR c++/63248
7991 * testsuite/libgomp.c++/pr63248.C: New test.
7992
7993 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7994
7995 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7996 is not zero, but taskgroup->children is NULL and there are
7997 any task->children, schedule those instead of waiting.
7998 * testsuite/libgomp.c/depend-6.c: New test.
7999 * testsuite/libgomp.c/depend-7.c: New test.
8000 * testsuite/libgomp.c/depend-8.c: New test.
8001 * testsuite/libgomp.c/depend-9.c: New test.
8002 * testsuite/libgomp.c/depend-10.c: New test.
8003
8004 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8005
8006 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8007 (struct gomp_taskwait): New type.
8008 (struct gomp_task): Add taskwait and parent_depends_on, remove
8009 in_taskwait and taskwait_sem fields.
8010 (gomp_finish_task): Don't destroy taskwait_sem.
8011 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8012 taskwait and parent_depends_on.
8013 (GOMP_task): For if (0) tasks with depend clause that depend on
8014 earlier tasks don't defer them, instead call
8015 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8016 Initialize redundant_out field, for redundant out entries just
8017 move them at the end of linked list instead of removing them
8018 completely, and set redundant_out flag instead of redundant.
8019 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8020 that task.
8021 (gomp_task_run_post_handle_dependers): If parent is in
8022 gomp_task_maybe_wait_for_dependencies and newly runnable task
8023 is not parent_depends_on, queue it in parent->children linked
8024 list after all runnable tasks with parent_depends_on set.
8025 Adjust for addition of taskwait indirection.
8026 (gomp_task_run_post_remove_parent): If parent is in
8027 gomp_task_maybe_wait_for_dependencies and task to be removed
8028 is parent_depends_on, decrement n_depend and if needed awake
8029 parent. Adjust for addition of taskwait indirection.
8030 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8031 (gomp_task_maybe_wait_for_dependencies): New function.
8032 * testsuite/libgomp.c/depend-5.c: New test.
8033
8034 2014-07-13 Tobias Burnus <burnus@net-b.de>
8035
8036 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8037 with TS 18508/Fortran 2015.
8038
8039 2014-07-06 Marek Polacek <polacek@redhat.com>
8040
8041 PR c/6940
8042 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8043
8044 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8045
8046 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8047 matches regex $lang_source_re, add $lang_include_flags to options.
8048 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8049 * testsuite/libgomp.c++/c++.exp: Likewise.
8050 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8051 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8052 ALWAYS_CFLAGS.
8053 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8054
8055 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8056
8057 * testsuite/libgomp.fortran/fortran.exp: Explain
8058 gfortran-dg-runtest usage.
8059
8060 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8061
8062 * testsuite/libgomp.fortran/simd5.f90: New test.
8063 * testsuite/libgomp.fortran/simd6.f90: New test.
8064 * testsuite/libgomp.fortran/simd7.f90: New test.
8065
8066 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8067
8068 * testsuite/libgomp.c/for-2.c: Define SC to static for
8069 #pragma omp for simd testing.
8070 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8071 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8072 SC macro.
8073 * testsuite/libgomp.c/simd-14.c: New test.
8074 * testsuite/libgomp.c/simd-15.c: New test.
8075 * testsuite/libgomp.c/simd-16.c: New test.
8076 * testsuite/libgomp.c/simd-17.c: New test.
8077 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8078 #pragma omp for simd testing.
8079 * testsuite/libgomp.c++/simd10.C: New test.
8080 * testsuite/libgomp.c++/simd11.C: New test.
8081 * testsuite/libgomp.c++/simd12.C: New test.
8082 * testsuite/libgomp.c++/simd13.C: New test.
8083
8084 * testsuite/libgomp.fortran/aligned1.f03: New test.
8085 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8086 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8087 tasks with !$omp parallel !$omp single.
8088 * testsuite/libgomp.fortran/target8.f90: New test.
8089 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8090 not to use trim in the combiner, instead call elemental function.
8091 (fn): New elemental function.
8092 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8093 Make elemental.
8094 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8095 omp_in): Likewise.
8096 * testsuite/libgomp.fortran/udr12.f90: New test.
8097 * testsuite/libgomp.fortran/udr13.f90: New test.
8098 * testsuite/libgomp.fortran/udr14.f90: New test.
8099 * testsuite/libgomp.fortran/udr15.f90: New test.
8100
8101 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8102
8103 * omp_lib.f90.in (openmp_version): Set to 201307.
8104 * omp_lib.h.in (openmp_version): Likewise.
8105 * testsuite/libgomp.c/target-8.c: New test.
8106 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8107 and inbranch clauses.
8108 * testsuite/libgomp.fortran/depend-3.f90: New test.
8109 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8110 openmp_version.
8111 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8112 * testsuite/libgomp.fortran/target1.f90: New test.
8113 * testsuite/libgomp.fortran/target2.f90: New test.
8114 * testsuite/libgomp.fortran/target3.f90: New test.
8115 * testsuite/libgomp.fortran/target4.f90: New test.
8116 * testsuite/libgomp.fortran/target5.f90: New test.
8117 * testsuite/libgomp.fortran/target6.f90: New test.
8118 * testsuite/libgomp.fortran/target7.f90: New test.
8119
8120 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8121
8122 PR fortran/60928
8123 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8124 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8125 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8126 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8127 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8128 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8129 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8130 * testsuite/libgomp.fortran/associate1.f90: New test.
8131 * testsuite/libgomp.fortran/associate2.f90: New test.
8132 * testsuite/libgomp.fortran/procptr1.f90: New test.
8133
8134 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8135
8136 * testsuite/libgomp.fortran/simd1.f90: New test.
8137 * testsuite/libgomp.fortran/udr1.f90: New test.
8138 * testsuite/libgomp.fortran/udr2.f90: New test.
8139 * testsuite/libgomp.fortran/udr3.f90: New test.
8140 * testsuite/libgomp.fortran/udr4.f90: New test.
8141 * testsuite/libgomp.fortran/udr5.f90: New test.
8142 * testsuite/libgomp.fortran/udr6.f90: New test.
8143 * testsuite/libgomp.fortran/udr7.f90: New test.
8144 * testsuite/libgomp.fortran/udr8.f90: New test.
8145 * testsuite/libgomp.fortran/udr9.f90: New test.
8146 * testsuite/libgomp.fortran/udr10.f90: New test.
8147 * testsuite/libgomp.fortran/udr11.f90: New test.
8148
8149 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8150
8151 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8152 vect_simd_clones effective target.
8153 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8154
8155 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8156
8157 PR middle-end/61252
8158 * testsuite/libgomp.c++/simd-9.C: New test.
8159
8160 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8161
8162 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8163 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8164 texts according to their @menu entry positions.
8165
8166 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8167
8168 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8169 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8170 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8171 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8172 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8173 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8174 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8175 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8176 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8177 * testsuite/libgomp.fortran/depend-1.f90: New test.
8178 * testsuite/libgomp.fortran/depend-2.f90: New test.
8179 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8180 * testsuite/libgomp.fortran/simd1.f90: New test.
8181 * testsuite/libgomp.fortran/simd2.f90: New test.
8182 * testsuite/libgomp.fortran/simd3.f90: New test.
8183 * testsuite/libgomp.fortran/simd4.f90: New test.
8184 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8185
8186 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8187
8188 * testsuite/libgomp.c/simd-10.c: New test.
8189 * testsuite/libgomp.c/simd-11.c: New test.
8190 * testsuite/libgomp.c/simd-12.c: New test.
8191 * testsuite/libgomp.c/simd-13.c: New test.
8192
8193 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8194
8195 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8196 atomic type clauses in any order and optional comma in between.
8197 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8198 * testsuite/libgomp.c/atomic-17.c: Likewise.
8199
8200 * testsuite/libgomp.c/simd-7.c: New test.
8201 * testsuite/libgomp.c/simd-8.c: New test.
8202 * testsuite/libgomp.c/simd-9.c: New test.
8203 * testsuite/libgomp.c/loop-16.c: New test.
8204
8205 2014-04-02 Richard Henderson <rth@redhat.com>
8206
8207 * config/linux/futex.h (futex_wait): Get error value from errno.
8208 (futex_wake): Likewise.
8209
8210 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8211
8212 PR c++/60331
8213 * testsuite/libgomp.c++/udr-11.C: New test.
8214 * testsuite/libgomp.c++/udr-12.C: New test.
8215 * testsuite/libgomp.c++/udr-13.C: New test.
8216 * testsuite/libgomp.c++/udr-14.C: New test.
8217 * testsuite/libgomp.c++/udr-15.C: New test.
8218 * testsuite/libgomp.c++/udr-16.C: New test.
8219 * testsuite/libgomp.c++/udr-17.C: New test.
8220 * testsuite/libgomp.c++/udr-18.C: New test.
8221 * testsuite/libgomp.c++/udr-19.C: New test.
8222
8223 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8224
8225 Update copyright years
8226
8227 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8228
8229 * hashtab.h: Use the standard form for the copyright notice.
8230
8231 2014-01-02 Tobias Burnus <burnus@net-b.de>
8232
8233 * libgomp.texi: Bump @copying's copyright year.
8234
8235 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8236
8237 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
8238 alloca () with __builtin_alloca ().
8239 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8240 * testsuite/libgomp.c/lock-3.c: Likewise.
8241 * testsuite/libgomp.c/pr48591.c: Likewise.
8242
8243 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8244
8245 PR testsuite/59534
8246 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8247 comparisons.
8248
8249 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8250
8251 PR libgomp/58756
8252 * testsuite/libgomp.c/pr58756.c: New test.
8253
8254 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8255
8256 PR libgomp/59467
8257 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8258 !$omp parallel.
8259
8260 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8261
8262 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8263 ALWAYS_CFLAGS.
8264 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8265 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8266 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8267 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8268 Likewise.
8269
8270 * libgomp_g.h: Include <stddef.h> for size_t.
8271
8272 * libgomp.spec.in: Update comment about libgomp's dependencies.
8273 * configure.ac: Likewise.
8274 * configure: Regenerate.
8275
8276 2013-10-16 Tobias Burnus <burnus@net-b.de>
8277
8278 * libgomp.texi: (Runtime Library Routines): Update references for
8279 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8280 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8281 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8282 (Environment Variables): Update references for OpenMP 4.0. Add
8283 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8284 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8285 order.
8286
8287 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8288
8289 * env.c (parse_bind_var): Initialize value to avoid
8290 (false positive) warning.
8291
8292 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8293
8294 PR libgomp/58691
8295 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8296 to check variable.
8297 (gomp_init_num_threads): Move i variable declaration into
8298 #ifdef CPU_ALLOC_SIZE block.
8299 * config/linux/affinity.c (gomp_affinity_init_level): Test
8300 gomp_places_list_len == 0 rather than gomp_places_list == 0
8301 when checking for topology reading error.
8302 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8303 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8304 gomp_places_list, only parse env var and always return false.
8305 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8306 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8307 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8308 and either of these variables were parsed correctly into a places
8309 list.
8310
8311 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8312 Jakub Jelinek <jakub@redhat.com>
8313
8314 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8315 of 5 loopfn matches.
8316 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8317 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8318 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8319 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8320 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8321 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8322 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8323 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8324
8325 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8326
8327 * Makefile.am (omp_lib.mod): Streamline rule.
8328 * Makefile.in: Regenerate.
8329
8330 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8331 exceptions.
8332
8333 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8334 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8335 * testsuite/libgomp.fortran/lib2.f: Likewise.
8336 * testsuite/libgomp.fortran/lib3.f: Likewise.
8337
8338 * configure.ac: Typo fix.
8339 * configure: Regenerate.
8340
8341 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8342 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8343
8344 * omp.h.in: Don't touch the user's namespace.
8345
8346 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8347 Tobias Burnus <burnus@net-b.de>
8348 Richard Henderson <rth@redhat.com>
8349
8350 * target.c: New file.
8351 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8352 * Makefile.in: Regenerated.
8353 * libgomp_g.h (GOMP_task): Add depend argument.
8354 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8355 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8356 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8357 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8358 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8359 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8360 GOMP_taskgroup_start, GOMP_taskgroup_end,
8361 GOMP_parallel_sections): New prototypes.
8362 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8363 (omp_is_initial_device_): New function.
8364 (ULP, STR1, STR2, ialias_redirect): Removed.
8365 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8366 omp_set_default_device_8_, omp_get_default_device_,
8367 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8368 functions.
8369 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8370 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8371 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8372 @@GOMP_4.0.
8373 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8374 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8375 omp_set_default_device, omp_set_default_device_,
8376 omp_set_default_device_8_, omp_get_default_device,
8377 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8378 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8379 omp_get_team_num_): Export @@OMP_4.0.
8380 * team.c (struct gomp_thread_start_data): Add place field.
8381 (gomp_thread_start): Clear thr->thread_pool and
8382 thr->task before returning. Use gomp_team_barrier_wait_final
8383 instead of gomp_team_barrier_wait. Initialize thr->place.
8384 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8385 team_cancelled and task_queued_count fields.
8386 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8387 before calling pthread_exit.
8388 (gomp_free_thread): No longer static. Use
8389 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8390 (gomp_team_start): Add flags argument. Set
8391 thr->thread_pool->threads_busy to nthreads immediately after creating
8392 new pool. Use gomp_managed_threads_lock instead of
8393 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8394 (gomp_team_end): Use gomp_managed_threads_lock instead of
8395 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8396 of gomp_team_barrier_wait. If team->team_cancelled, call
8397 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
8398 rather than thr->ts.work_share.
8399 (initialize_team): Don't call gomp_sem_init here.
8400 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8401 caller.
8402 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8403 * env.c (gomp_global_icv): Add default_device_var, target_data and
8404 bind_var initializers.
8405 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8406 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8407 gomp_places_list_len): New variables.
8408 (parse_bind_var, parse_one_place, parse_places_var): New functions.
8409 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
8410 sized places.
8411 (gomp_cancel_var): New global variable.
8412 (parse_int): New function.
8413 (handle_omp_display_env): New function.
8414 (initialize_env): Use it. Initialize default_device_var.
8415 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
8416 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
8417 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
8418 been successfully parsed (and call gomp_init_affinity in that case).
8419 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8420 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8421 omp_get_team_num, omp_is_initial_device): New functions.
8422 * libgomp.h: Include stdlib.h.
8423 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
8424 Define.
8425 (struct target_mem_desc): Forward declare.
8426 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
8427 and thread_limit_var fields.
8428 (gomp_get_num_devices): New prototype.
8429 (gomp_cancel_var): New extern decl.
8430 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
8431 team_cancelled and task_queued_count fields. Add comments about
8432 task_{,queued_,running_}count.
8433 (gomp_cancel_kind): New enum.
8434 (gomp_work_share_end_cancel): New prototype.
8435 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
8436 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
8437 and depend fields.
8438 (struct gomp_taskgroup): New type.
8439 (struct gomp_task_depend_entry,
8440 struct gomp_dependers_vec): New types.
8441 (gomp_finish_task): Free depend_hash if non-NULL.
8442 (struct gomp_team_state): Add place_partition_off
8443 and place_partition_len fields.
8444 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8445 gomp_places_list_len): New extern decls.
8446 (struct gomp_thread): Add place field.
8447 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8448 (gomp_init_thread_affinity): Add place argument.
8449 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8450 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8451 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8452 gomp_affinity_init_level, gomp_affinity_print_place): New
8453 prototypes.
8454 (gomp_team_start): Add flags argument.
8455 (gomp_thread_limit_var, gomp_remaining_threads_count,
8456 gomp_remaining_threads_lock): Remove.
8457 (gomp_managed_threads_lock): New variable.
8458 (struct gomp_thread_pool): Add threads_busy field.
8459 (gomp_free_thread): New prototype.
8460 * task.c: Include hashtab.h.
8461 (hash_entry_type): New typedef.
8462 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
8463 (gomp_init_task): Clear dependers, depend_hash, depend_count,
8464 copy_ctors_done and taskgroup fields.
8465 (GOMP_task): Add depend argument, handle depend clauses. If
8466 gomp_team_barrier_cancelled or if it's taskgroup has been
8467 cancelled, don't queue or start new tasks. Set copy_ctors_done
8468 field if needed. Initialize taskgroup field. If copy_ctors_done
8469 and already cancelled, don't discard the task. If taskgroup is
8470 non-NULL, enqueue the task into taskgroup queue. Increment
8471 num_children field in taskgroup. Increment task_queued_count.
8472 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
8473 gomp_task_run_post_remove_taskgroup): New inline functions.
8474 (gomp_task_run_post_handle_depend_hash,
8475 gomp_task_run_post_handle_dependers,
8476 gomp_task_run_post_handle_depend): New functions.
8477 (GOMP_taskwait): Use them. If more than one new tasks
8478 have been queued, wake other threads if needed.
8479 (gomp_barrier_handle_tasks): Likewise. If
8480 gomp_team_barrier_cancelled, don't start any new tasks, just free
8481 all tasks.
8482 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
8483 * omp_lib.f90.in
8484 (omp_proc_bind_kind, omp_proc_bind_false,
8485 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8486 omp_proc_bind_spread): New params.
8487 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8488 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8489 omp_get_team_num, omp_is_initial_device): New interfaces.
8490 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
8491 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
8492 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
8493 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
8494 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
8495 useless use omp_lib_kinds.
8496 * omp.h.in (omp_proc_bind_t): New typedef.
8497 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8498 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8499 omp_get_team_num, omp_is_initial_device): New prototypes.
8500 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
8501 through to gomp_team_start.
8502 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
8503 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
8504 Adjust gomp_parallel_loop_start callers.
8505 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8506 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8507 GOMP_loop_end_cancel): New functions.
8508 (GOMP_parallel_end): Add ialias_redirect.
8509 * hashtab.h: New file.
8510 * libgomp.texi (Environment Variables): Minor cleanup,
8511 update section refs to OpenMP 4.0rc2.
8512 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
8513 environment variables.
8514 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
8515 team->work_shares_to_free to thr->ts.work_share before calling
8516 free_work_share.
8517 (gomp_work_share_end_cancel): New function.
8518 * config/linux/proc.c: Include errno.h.
8519 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
8520 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
8521 sizeof (cpu_set_t) to determine number of iterations. Fix up check
8522 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
8523 gomp_cpuset_size is sizeof (cpu_set_t).
8524 (gomp_init_num_threads): Initialize gomp_cpuset_size,
8525 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8526 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8527 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
8528 contain any logical CPUs.
8529 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8530 is NULL. Use gomp_cpusetp instead of &cpuset and pass
8531 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8532 pthread_getaffinity_np. Check gomp_places_list instead of
8533 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
8534 * config/linux/bar.c (gomp_barrier_wait_end,
8535 gomp_barrier_wait_last): Use BAR_* defines.
8536 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
8537 from state where needed. Set work_share_cancelled to 0 on last
8538 thread.
8539 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8540 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8541 functions.
8542 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8543 Add cpusetsize argument.
8544 (gomp_cpuset_size, gomp_cpusetp): Declare.
8545 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8546 (affinity_counter): Remove.
8547 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8548 if CPU_ALLOC_SIZE isn't defined.
8549 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8550 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8551 bind current thread to the first place.
8552 (gomp_init_thread_affinity): Rewritten. Add place argument, just
8553 pthread_setaffinity_np to gomp_places_list[place].
8554 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8555 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8556 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8557 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8558 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8559 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8560 (gomp_barrier_t): Add awaited_final field.
8561 (gomp_barrier_init): Initialize awaited_final field.
8562 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
8563 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
8564 prototypes.
8565 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
8566 defines.
8567 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
8568 gomp_team_barrier_cancelled): New inline functions.
8569 (gomp_barrier_last_thread,
8570 gomp_team_barrier_set_task_pending,
8571 gomp_team_barrier_clear_task_pending,
8572 gomp_team_barrier_set_waiting_for_tasks,
8573 gomp_team_barrier_waiting_for_tasks,
8574 gomp_team_barrier_done): Use BAR_* defines.
8575 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
8576 (gomp_barrier_wait_end): Use BAR_* defines.
8577 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
8578 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
8579 Use BAR_* defines.
8580 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
8581 gomp_team_barrier_cancel): New functions.
8582 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
8583 argument.
8584 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8585 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8586 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8587 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
8588 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8589 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8590 (gomp_barrier_t): Add cancellable field.
8591 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
8592 gomp_team_barrier_cancel): New prototypes.
8593 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
8594 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
8595 gomp_team_barrier_cancelled): New inline functions.
8596 (gomp_barrier_wait_start, gomp_barrier_last_thread,
8597 gomp_team_barrier_set_task_pending,
8598 gomp_team_barrier_clear_task_pending,
8599 gomp_team_barrier_set_waiting_for_tasks,
8600 gomp_team_barrier_waiting_for_tasks,
8601 gomp_team_barrier_done): Use BAR_* defines.
8602 * barrier.c (GOMP_barrier_cancel): New function.
8603 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
8604 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8605 omp_proc_bind_spread): New params.
8606 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8607 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8608 omp_get_team_num, omp_is_initial_device): New externals.
8609 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
8610 New functions.
8611 (gomp_resolve_num_threads): Adjust for thread_limit now being in
8612 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8613 infinity. If not nested, just return minimum of max_num_threads
8614 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
8615 to the returned value. Otherwise, don't update atomically
8616 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
8617 (GOMP_parallel_end): Adjust for thread_limit now being in
8618 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8619 infinity. Adjust threads_busy in the pool rather than
8620 gomp_remaining_threads_count. Remember team->nthreads and call
8621 gomp_team_end before adjusting threads_busy, if not nested
8622 afterwards, just set it to 1 non-atomically. Add ialias.
8623 (GOMP_parallel_start): Adjust gomp_team_start caller.
8624 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
8625 * testsuite/libgomp.c/affinity-1.c: New test.
8626 * testsuite/libgomp.c/atomic-15.c: New test.
8627 * testsuite/libgomp.c/atomic-16.c: New test.
8628 * testsuite/libgomp.c/atomic-17.c: New test.
8629 * testsuite/libgomp.c/cancel-for-1.c: New test.
8630 * testsuite/libgomp.c/cancel-for-2.c: New test.
8631 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
8632 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
8633 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
8634 * testsuite/libgomp.c/cancel-sections-1.c: New test.
8635 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8636 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8637 * testsuite/libgomp.c/depend-1.c: New test.
8638 * testsuite/libgomp.c/depend-2.c: New test.
8639 * testsuite/libgomp.c/depend-3.c: New test.
8640 * testsuite/libgomp.c/depend-4.c: New test.
8641 * testsuite/libgomp.c/for-1.c: New test.
8642 * testsuite/libgomp.c/for-1.h: New file.
8643 * testsuite/libgomp.c/for-2.c: New test.
8644 * testsuite/libgomp.c/for-2.h: New file.
8645 * testsuite/libgomp.c/for-3.c: New test.
8646 * testsuite/libgomp.c/pr58392.c: New test.
8647 * testsuite/libgomp.c/simd-1.c: New test.
8648 * testsuite/libgomp.c/simd-2.c: New test.
8649 * testsuite/libgomp.c/simd-3.c: New test.
8650 * testsuite/libgomp.c/simd-4.c: New test.
8651 * testsuite/libgomp.c/simd-5.c: New test.
8652 * testsuite/libgomp.c/simd-6.c: New test.
8653 * testsuite/libgomp.c/target-1.c: New test.
8654 * testsuite/libgomp.c/target-2.c: New test.
8655 * testsuite/libgomp.c/target-3.c: New test.
8656 * testsuite/libgomp.c/target-4.c: New test.
8657 * testsuite/libgomp.c/target-5.c: New test.
8658 * testsuite/libgomp.c/target-6.c: New test.
8659 * testsuite/libgomp.c/target-7.c: New test.
8660 * testsuite/libgomp.c/taskgroup-1.c: New test.
8661 * testsuite/libgomp.c/thread-limit-1.c: New test.
8662 * testsuite/libgomp.c/thread-limit-2.c: New test.
8663 * testsuite/libgomp.c/thread-limit-3.c: New test.
8664 * testsuite/libgomp.c/udr-1.c: New test.
8665 * testsuite/libgomp.c/udr-2.c: New test.
8666 * testsuite/libgomp.c/udr-3.c: New test.
8667 * testsuite/libgomp.c++/affinity-1.C: New test.
8668 * testsuite/libgomp.c++/atomic-10.C: New test.
8669 * testsuite/libgomp.c++/atomic-11.C: New test.
8670 * testsuite/libgomp.c++/atomic-12.C: New test.
8671 * testsuite/libgomp.c++/atomic-13.C: New test.
8672 * testsuite/libgomp.c++/atomic-14.C: New test.
8673 * testsuite/libgomp.c++/atomic-15.C: New test.
8674 * testsuite/libgomp.c++/cancel-for-1.C: New test.
8675 * testsuite/libgomp.c++/cancel-for-2.C: New test.
8676 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8677 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8678 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8679 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8680 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8681 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8682 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8683 * testsuite/libgomp.c++/cancel-test.h: New file.
8684 * testsuite/libgomp.c++/for-9.C: New test.
8685 * testsuite/libgomp.c++/for-10.C: New test.
8686 * testsuite/libgomp.c++/for-11.C: New test.
8687 * testsuite/libgomp.c++/simd-1.C: New test.
8688 * testsuite/libgomp.c++/simd-2.C: New test.
8689 * testsuite/libgomp.c++/simd-3.C: New test.
8690 * testsuite/libgomp.c++/simd-4.C: New test.
8691 * testsuite/libgomp.c++/simd-5.C: New test.
8692 * testsuite/libgomp.c++/simd-6.C: New test.
8693 * testsuite/libgomp.c++/simd-7.C: New test.
8694 * testsuite/libgomp.c++/simd-8.C: New test.
8695 * testsuite/libgomp.c++/target-1.C: New test.
8696 * testsuite/libgomp.c++/target-2.C: New test.
8697 * testsuite/libgomp.c++/target-2-aux.cc: New file.
8698 * testsuite/libgomp.c++/target-3.C: New test.
8699 * testsuite/libgomp.c++/taskgroup-1.C: New test.
8700 * testsuite/libgomp.c++/udr-1.C: New test.
8701 * testsuite/libgomp.c++/udr-2.C: New test.
8702 * testsuite/libgomp.c++/udr-3.C: New test.
8703 * testsuite/libgomp.c++/udr-4.C: New test.
8704 * testsuite/libgomp.c++/udr-5.C: New test.
8705 * testsuite/libgomp.c++/udr-6.C: New test.
8706 * testsuite/libgomp.c++/udr-7.C: New test.
8707 * testsuite/libgomp.c++/udr-8.C: New test.
8708 * testsuite/libgomp.c++/udr-9.C: New test.
8709
8710 2013-09-20 Jakub Jelinek <jakub@redhat.com>
8711
8712 PR testsuite/57605
8713 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8714 ALWAYS_CFLAGS.
8715
8716 2013-09-20 Alan Modra <amodra@gmail.com>
8717
8718 * configure: Regenerate.
8719
8720 2013-09-19 Jakub Jelinek <jakub@redhat.com>
8721
8722 * testsuite/libgomp.c/sections-2.c: New test.
8723
8724 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
8725
8726 * testsuite/libgomp.fortran/strassen.f90:
8727 Add dg-skip-if aarch64_tiny.
8728
8729 2013-06-20 Iain Sandoe <iain@codesourcery.com>
8730 Cesar Philippidis <cesar@codesourcery.com>
8731
8732 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8733 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8734 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8735 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8736 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8737 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8738 Use dg-runtest rather than gfortran-dg-runtest.
8739
8740 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8741
8742 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8743 Linux-based x86 systems to cover all GNU systems.
8744 * testsuite/libgomp.c/lock-3.c: Likewise.
8745 * testsuite/libgomp.c/pr48591.c: Likewise.
8746
8747 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8748
8749 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8750 GNU/Hurd, as done for Linux-based systems.
8751
8752 * config/posix/ptrlock.h: Fix comment.
8753
8754 2013-05-27 Tobias Burnus <burnus@net-b.de>
8755
8756 PR fortran/57423
8757 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8758 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8759 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8760 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8761 omp_destroy_nest_lock): Correct arguments to match the one in
8762 the OpenMP spec.
8763 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8764 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8765 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8766 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8767
8768 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8769
8770 * testsuite/libgomp.c/loop-13.c: New test.
8771 * testsuite/libgomp.c/loop-14.c: New test.
8772 * testsuite/libgomp.c/loop-15.c: New test.
8773 * testsuite/libgomp.c++/loop-13.C: New test.
8774 * testsuite/libgomp.c++/loop-14.C: New test.
8775 * testsuite/libgomp.c++/loop-15.C: New test.
8776
8777 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8778
8779 PR middle-end/56217
8780 * testsuite/libgomp.c++/pr56217.C: New test.
8781
8782 2013-02-01 Alan Modra <amodra@gmail.com>
8783
8784 * task.c (GOMP_task, GOMP_taskwait): Comment.
8785
8786 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8787 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8788
8789 PR libgomp/55561
8790 * config/linux/wait.h (do_spin): Use atomic load for addr.
8791 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8792 for intptr and ptrlock.
8793 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8794 for ptrlock.
8795
8796 2013-01-22 Alan Modra <amodra@gmail.com>
8797
8798 PR libgomp/51376
8799 PR libgomp/56073
8800 * task.c (GOMP_task): Revert 2011-12-09 change.
8801 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8802 barrier to read task->children..
8803 (gomp_barrier_handle_tasks): ..and matching atomic store with
8804 release barrier here when setting parent->children to NULL.
8805
8806 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8807 Tobias Burnus <burnus@net-b.de>
8808
8809 PR driver/55884
8810 * testsuite/libgomp.fortran/fortran.exp: Use
8811 -fintrinsic-modules-path= instead of
8812 -fintrinsic-modules-path.
8813
8814 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8815
8816 Update copyright years.
8817
8818 2012-12-19 Tobias Burnus <burnus@net-b.de>
8819
8820 * testsuite/libgomp.fortran/fortran.exp: Set
8821 -fintrinsic-modules-path.
8822
8823 2012-12-19 Tobias Burnus <burnus@net-b.de>
8824
8825 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8826 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8827
8828 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8829
8830 PR libgomp/55411
8831 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8832 if pool had any threads_used.
8833
8834 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8835
8836 * testsuite/libgomp.c++/pr24455.C: Use
8837 -Wl,-undefined,dynamic_lookup on darwin.
8838
8839 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8840
8841 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8842
8843 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8844
8845 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8846
8847 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8848 Jim MacArthur <jim.macarthur@arm.com>
8849 Marcus Shawcroft <marcus.shawcroft@arm.com>
8850 Nigel Stephens <nigel.stephens@arm.com>
8851 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8852 Richard Earnshaw <rearnsha@arm.com>
8853 Sofiane Naci <sofiane.naci@arm.com>
8854 Stephen Thomas <stephen.thomas@arm.com>
8855 Tejas Belagod <tejas.belagod@arm.com>
8856 Yufeng Zhang <yufeng.zhang@arm.com>
8857
8858 * configure.tgt: Add AArch64.
8859
8860 2012-10-04 Jason Merrill <jason@redhat.com>
8861
8862 * testsuite/libgomp.c++/tls-init1.C: New.
8863
8864 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8865
8866 * configure: Regenerated.
8867
8868 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8869
8870 * config/linux/mips/futex.h (sys_futex0): Change to static
8871 function with noinline, nomips16 attributes under MIPS16. Adjust
8872 asm statement to place 'li v0,SYS_futex' immediately before
8873 syscall insn.
8874
8875 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8876
8877 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8878 conflict with index.html on case-insensitive file systems.
8879
8880 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8881
8882 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8883 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8884
8885 2012-07-02 Richard Guenther <rguenther@suse.de>
8886 Michael Matz <matz@suse.de>
8887 Tobias Grosser <tobias@grosser.es>
8888 Sebastian Pop <sebpop@gmail.com>
8889
8890 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8891 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8892 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8893 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8894
8895 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8896
8897 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8898
8899 2012-06-22 Richard Guenther <rguenther@suse.de>
8900
8901 Merge from graphite branch
8902 2012-01-13 Tobias Grosser <tobias@grosser.es>
8903
8904 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8905 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8906
8907 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8908
8909 PR middle-end/53580
8910 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8911 use GOMP_barrier () call instead.
8912 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8913 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8914 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8915 call GOMP_barrier instead.
8916 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8917
8918 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8919
8920 PR libgomp/52993
8921 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8922 argument to memset call.
8923
8924 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8925
8926 * configure: Regenerated.
8927
8928 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8929
8930 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8931
8932 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8933
8934 PR bootstrap/52812
8935 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8936
8937 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8938
8939 PR middle-end/52547
8940 * testsuite/libgomp.c/pr52547.c: New test.
8941
8942 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8943
8944 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8945
8946 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8947
8948 * configure.tgt (mips-sgi-irix6*): Remove.
8949
8950 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8951
8952 * configure.tgt (alpha*-dec-osf*): Remove.
8953
8954 * config/osf/sem.h: Remove.
8955 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8956
8957 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8958
8959 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8960
8961 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8962
8963 PR libstdc++/52188
8964 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8965 Remove ENABLE_SYMVERS_SOL2.
8966 * configure: Regenerate.
8967 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8968 (PREPROCESS): New variable.
8969 (libgomp.ver): New target.
8970 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8971 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8972 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8973 Use libgomp.ver.
8974 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8975 * Makefile.in: Regenerate.
8976
8977 2012-02-14 Walter Lee <walt@tilera.com>
8978
8979 * configure.tgt: Handle tilegx and tilepro.
8980 * config/linux/tile/futex.h: New file.
8981
8982 2012-02-08 Richard Guenther <rguenther@suse.de>
8983
8984 PR tree-optimization/46886
8985 * testsuite/libgomp.c/pr46886.c: New testcase.
8986
8987 2012-01-25 Matthias Klose <doko@ubuntu.com>
8988
8989 * config/linux/arm: Remove empty directory.
8990 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8991
8992 2011-12-09 Alan Modra <amodra@gmail.com>
8993
8994 PR libgomp/51376
8995 * task.c (GOMP_taskwait): Don't access task->children outside of
8996 task_lock mutex region.
8997 (GOMP_task): Likewise.
8998
8999 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9000
9001 PR libgomp/51132
9002 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9003 to file scope.
9004 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9005 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9006 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9007 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9008 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9009
9010 2011-12-02 Alan Modra <amodra@gmail.com>
9011
9012 * config/linux/affinity.c: Use atomic rather than sync builtin.
9013 * config/linux/lock.c: Likewise.
9014 * config/linux/ptrlock.h: Likewise.
9015 * config/linux/ptrlock.c: Likewise.
9016 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9017 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9018 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9019 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9020 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9021 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9022 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9023 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9024 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9025 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9026
9027 2011-11-30 Alan Modra <amodra@gmail.com>
9028
9029 PR libgomp/51298
9030 * config/linux/bar.h: Use atomic rather than sync builtins.
9031 * config/linux/bar.c: Likewise. Add missing acquire
9032 synchronisation on generation field.
9033 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9034 double unlock.
9035
9036 2011-11-30 Alan Modra <amodra@gmail.com>
9037
9038 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9039 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9040 * config/linux/mutex.h: Use atomic rather than sync builtins.
9041 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9042 * config/linux/omp-lock.h: Comment fix.
9043 * config/linux/arm/mutex.h: Delete.
9044 * config/linux/powerpc/mutex.h: Delete.
9045 * config/linux/ia64/mutex.h: Delete.
9046 * config/linux/mips/mutex.h: Delete.
9047
9048 2011-11-30 Alan Modra <amodra@gmail.com>
9049
9050 PR libgomp/51249
9051 * config/linux/sem.h: Rewrite.
9052 * config/linux/sem.c: Rewrite.
9053
9054 2011-11-28 Richard Henderson <rth@redhat.com>
9055
9056 * libgomp.h (enum memmodel): New.
9057
9058 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9059
9060 * configure: Regenerate.
9061
9062 2011-10-10 Matthias Klose <doko@ubuntu.com>
9063
9064 * config/posix95: Remove empty directory.
9065
9066 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9067
9068 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9069
9070 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9071
9072 PR fortran/49792
9073 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9074 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9075
9076 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9077
9078 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9079
9080 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9081
9082 PR libgomp/49965
9083 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9084
9085 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9086
9087 * config/linux/proc.h: New.
9088 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9089 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9090 (gomp_init_num_threads): Update call to cpuset_popcount.
9091 (get_num_procs): Ditto.
9092 * config/linux/affinity.c (gomp_init_affinity): Call
9093 gomp_cpuset_popcount.
9094
9095 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9096
9097 PR fortran/42041
9098 PR fortran/46752
9099 * omp.h.in (omp_in_final): New prototype.
9100 * omp_lib.f90.in (omp_in_final): New interface.
9101 (omp_integer_kind, omp_logical_kind): Remove
9102 and replace all its uses in the module with 4.
9103 (openmp_version): Change to 201107.
9104 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9105 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9106 kind for the parameters.
9107 (omp_in_final): New external.
9108 (openmp_version): Change to 201107.
9109 * task.c (omp_in_final): New function.
9110 (gomp_init_task): Initialize final_task.
9111 (GOMP_task): Remove unused attribute from flags. Handle final
9112 tasks.
9113 (GOMP_taskyield): New function.
9114 (omp_in_final): Return true if if (false) or final (true) task
9115 or descendant of final (true).
9116 * fortran.c (omp_in_final_): New function.
9117 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9118 (GOMP_3.0): Export GOMP_taskyield.
9119 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9120 variables.
9121 (parse_unsigned_long_list): New function.
9122 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9123 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9124 even if parse_affinity returned false.
9125 * config/linux/affinity.c (gomp_init_affinity): Handle
9126 gomp_cpu_affinity_len == 0.
9127 * libgomp_g.h (GOMP_taskyield): New prototype.
9128 * libgomp.h (struct gomp_task): Add final_task field.
9129 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9130 * team.c (gomp_team_start): Override new task's nthreads_var icv
9131 if list form OMP_NUM_THREADS has been used and it has value for
9132 the new nesting level.
9133
9134 * testsuite/libgomp.c/atomic-11.c: New test.
9135 * testsuite/libgomp.c/atomic-12.c: New test.
9136 * testsuite/libgomp.c/atomic-13.c: New test.
9137 * testsuite/libgomp.c/atomic-14.c: New test.
9138 * testsuite/libgomp.c/reduction-6.c: New test.
9139 * testsuite/libgomp.c/task-5.c: New test.
9140 * testsuite/libgomp.c++/atomic-2.C: New test.
9141 * testsuite/libgomp.c++/atomic-3.C: New test.
9142 * testsuite/libgomp.c++/atomic-4.C: New test.
9143 * testsuite/libgomp.c++/atomic-5.C: New test.
9144 * testsuite/libgomp.c++/atomic-6.C: New test.
9145 * testsuite/libgomp.c++/atomic-7.C: New test.
9146 * testsuite/libgomp.c++/atomic-8.C: New test.
9147 * testsuite/libgomp.c++/atomic-9.C: New test.
9148 * testsuite/libgomp.c++/task-8.C: New test.
9149 * testsuite/libgomp.c++/reduction-4.C: New test.
9150 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9151 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9152 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9153 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9154 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9155 * testsuite/libgomp.fortran/pointer1.f90: New test.
9156 * testsuite/libgomp.fortran/pointer2.f90: New test.
9157 * testsuite/libgomp.fortran/task4.f90: New test.
9158
9159 2011-08-02 Tobias Burnus <burnus@net-b.de>
9160
9161 * libgomp.texi: Update OpenMP spec references to 3.1.
9162 (omp_in_final,OMP_PROC_BIND): New sections.
9163 (OMP_NUM_THREADS): Document that the value can be now a list.
9164 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9165
9166 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9167
9168 * config/linux/x86/futex.h: Check __x86_64__ instead of
9169 __LP64__.
9170
9171 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9172
9173 PR middle-end/49897
9174 PR middle-end/49898
9175 * testsuite/libgomp.c/pr49897-1.c: New test.
9176 * testsuite/libgomp.c/pr49897-2.c: New test.
9177 * testsuite/libgomp.c/pr49898-1.c: New test.
9178 * testsuite/libgomp.c/pr49898-2.c: New test.
9179
9180 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9181
9182 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9183 for ia32 instead of ilp32.
9184
9185 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9186 * testsuite/libgomp.c/atomic-6.c: Likewise.
9187
9188 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9189
9190 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9191 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9192
9193 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9194
9195 PR libgomp/45351
9196 * config/osf/sem.h: New file.
9197 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9198
9199 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9200
9201 PR target/49541
9202 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9203 ldflags.
9204
9205 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9206
9207 * config/linux/wait.h (do_spin): New inline, largely copied
9208 from do_wait, just don't do futex_wait here, instead return true if
9209 it should be done.
9210 (do_wait): Implement using do_spin.
9211 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9212 to prototype.
9213 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9214 __sync_bool_compare_and_swap, pass the oldval to
9215 gomp_mutex_lock_slow.
9216 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9217 If all mutex contenders are just spinning and not sleeping, don't
9218 change state to 2 unnecessarily. Optimize the loop when state has
9219 already become 2 to use just one atomic operation per loop instead
9220 of two.
9221 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9222 to prototype.
9223 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9224 __sync_bool_compare_and_swap, pass the oldval to
9225 gomp_mutex_lock_slow.
9226
9227 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9228
9229 PR libgomp/49490
9230 * iter.c (gomp_iter_static_next): For chunk size 0
9231 only use n ceil/ nthreads size for the first
9232 n % nthreads threads in the team instead of
9233 all threads except for the last few ones which
9234 get less work or none at all.
9235 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9236 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9237 chunk argument, set run_sched_modifier to 0 for static
9238 resp. 1 for other kinds. If chunk argument is 0
9239 and not static, set value to 1.
9240
9241 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9242
9243 PR c++/49043
9244 * testsuite/libgomp.c++/pr49043.C: New test.
9245
9246 PR c++/48869
9247 * testsuite/libgomp.c++/pr48869.C: New test.
9248
9249 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9250
9251 PR fortran/48894
9252 * fortran.c: Include limits.h.
9253 (TO_INT): Define.
9254 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9255 *set.
9256 (omp_set_num_threads_8_, omp_set_schedule_8_,
9257 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9258 omp_get_team_size_8_): Use TO_INT macro.
9259 * testsuite/libgomp.fortran/pr48894.f90: New test.
9260
9261 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9262
9263 PR middle-end/48591
9264 * testsuite/libgomp.c/pr48591.c: New test.
9265
9266 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9267
9268 PR bootstrap/48135
9269 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9270 * configure: Regenerate.
9271
9272 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9273
9274 PR fortran/47886
9275 * testsuite/libgomp.fortran/task3.f90: New test.
9276
9277 2011-02-24 Tobias Burnus <burnus@net-b.de>
9278
9279 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9280
9281 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9282
9283 PR libgomp/47854
9284 * libgomp.texi (omp_get_wtime): Don't say time in the past
9285 must be Unix Epoch.
9286
9287 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9288
9289 PR libgomp/47804
9290 * testsuite/libgomp.fortran/fortran.exp: Check for both
9291 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9292 but $blddir != "", still append ${blddir}/${lang_library_path}
9293 to ld_library_path.
9294
9295 2011-02-16 Tobias Burnus <burnus@net-b.de>
9296
9297 PR libgomp/47758
9298 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9299 of libquadmath.a before adding its libpath to ldflags.
9300
9301 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9302
9303 PR libgomp/47731
9304 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9305 to FUTEX_WAIT futex syscall.
9306 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9307
9308 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9309
9310 * configure: Regenerate.
9311
9312 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9313
9314 PR libstdc++/36104
9315 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9316
9317 2011-01-16 Gerald Pfeifer
9318
9319 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9320
9321 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9322
9323 PR fortran/46874
9324 * libgomp.fortran/allocatable6.f90: New test.
9325
9326 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9327
9328 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9329 * configure: Regenerate.
9330
9331 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9332
9333 PR target/40125
9334 PR lto/46695
9335 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9336 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9337 * aclocal.m4: Regenerate.
9338 * configure: Regenerate.
9339 * Makefile.in: Regenerate.
9340 * testsuite/Makefile.in: Regenerate.
9341
9342 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9343
9344 PR fortran/46753
9345 * libgomp.fortran/pr46753.f90: New test.
9346
9347 PR libgomp/43706
9348 * env.c (initialize_env): Default to spin count 300000
9349 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9350 is specified.
9351
9352 PR libgomp/45240
9353 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9354 at the end if sync builtins aren't supported.
9355
9356 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9357
9358 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9359
9360 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9361
9362 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9363
9364 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9365
9366 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9367
9368 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9369 Tobias Burnus <burnus@net-b.de>
9370
9371 PR fortran/32049
9372 * configure.ac:
9373 * configure: Regenerate.
9374
9375 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9376
9377 * config/linux/futex.h: New.
9378 * config/linux/arm/mutex.h: New.
9379 * configure.tgt (arm*-*-linux*): Add config path.
9380
9381 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9382
9383 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9384
9385 2010-09-23 Tobias Burnus <burnus@net-b.de>
9386
9387 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9388 Change Fortran datatype to LOGICAL.
9389 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9390 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9391
9392 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9393
9394 * configure: Regenerate.
9395
9396 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9397
9398 * libgomp.texi: Add function keyword to a couple of Fortran
9399 interfaces, use integer instead of int for Fortran.
9400
9401 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
9402
9403 * libgomp.texi: Fix spelling and pasto problems throughout.
9404 Adjust prototypes to match code.
9405
9406 2010-07-24 Tobias Burnus <burnus@net-b.de>
9407
9408 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
9409 silence -fwhole-file warning.
9410
9411 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9412
9413 * configure.tgt (*-*-solaris2.[56]*): Removed.
9414
9415 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9416
9417 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
9418 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
9419 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
9420 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
9421 targetting solaris2*.
9422 * configure: Regenerate.
9423 * config.h.in: Regenerate.
9424
9425 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
9426 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
9427 Add libgomp_version_dep.
9428 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
9429 versioning.
9430 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
9431 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
9432 * Makefile.in: Regenerate.
9433
9434 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
9435 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9436 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
9437 to common block, protected by
9438 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9439
9440 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9441
9442 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
9443
9444 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
9445
9446 PR bootstrap/43170
9447 * configure: Regenerate.
9448
9449 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9450
9451 PR other/43620
9452 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
9453 * configure: Regenerate.
9454 * Makefile.in: Regenerate.
9455 * testsuite/Makefile.in: Regenerate.
9456
9457 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9458
9459 PR c/43893
9460 * testsuite/libgomp.c/pr43893.c: New test.
9461 * testsuite/libgomp.c++/pr43893.C: New test.
9462
9463 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9464
9465 PR middle-end/43570
9466 * testsuite/libgomp.fortran/vla8.f90: New test.
9467
9468 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9469
9470 PR libgomp/43706
9471 * config/linux/affinity.c (gomp_init_affinity): Decrease
9472 gomp_available_cpus if affinity mask confines the process to fewer
9473 CPUs.
9474 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
9475 non-NULL, just return gomp_available_cpus.
9476
9477 PR libgomp/43569
9478 * sections.c (gomp_sections_init): Initialize ws->mode.
9479
9480 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9481
9482 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9483 not unused bar variable.
9484 * configure: Regenerate.
9485
9486 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9487
9488 * Makefile.in: Regenerate.
9489 * aclocal.m4: Regenerate.
9490 * testsuite/Makefile.in: Regenerate.
9491
9492 2010-03-22 Jakub Jelinek <jakub@redhat.com>
9493
9494 PR libgomp/42942
9495 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
9496 (initialize_env): Adjust callers.
9497 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
9498 when the argument is 0.
9499
9500 * testsuite/libgomp.c/pr42942.c: New test.
9501
9502 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9503
9504 PR middle-end/42644
9505 PR middle-end/42130
9506 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9507 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
9508
9509 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9510
9511 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
9512 * testsuite/libgomp.c++/task-6.C: Likewise.
9513
9514 2010-01-28 Steve Ellcey <sje@cup.hp.com>
9515
9516 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
9517
9518 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
9519
9520 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
9521 * configure: Regenerate.
9522
9523 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9524
9525 PR fortran/42866
9526 * testsuite/libgomp.fortran/allocatable5.f90: New test.
9527
9528 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
9529
9530 * configure.ac: Test for executability of GFORTRAN.
9531 * configure: Regenerate.
9532
9533 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9534
9535 * configure: Regenerate.
9536
9537 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9538
9539 PR libgomp/42602
9540 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9541
9542 2010-01-03 Richard Guenther <rguenther@suse.de>
9543
9544 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9545
9546 2009-12-23 Sebastian Pop <sebpop@gmail.com>
9547
9548 * testsuite/libgomp.graphite/pr4118.c: New.
9549
9550 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9551
9552 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9553 for darwin, protect the test with require-effective-target tls_runtime.
9554 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9555
9556 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9557
9558 PR target/41605
9559 * testsuite/lib/libgomp.exp: Provide -B options to allow for
9560 link spec %s substitutions for static libraries.
9561
9562 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
9563
9564 PR testsuite/42135
9565 * libgomp.graphite/force-parallel-2.c: Reduce array size.
9566
9567 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9568
9569 * Makefile.in: Regenerate.
9570 * configure: Regenerate.
9571 * testsuite/Makefile.in: Regenerate.
9572
9573 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
9574
9575 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
9576 settings for LC_ALL and LANG.
9577
9578 2009-11-25 Jakub Jelinek <jakub@redhat.com>
9579
9580 PR fortran/42162
9581 * testsuite/libgomp.fortran/pr42162.f90: New test.
9582
9583 2009-11-13 Jakub Jelinek <jakub@redhat.com>
9584
9585 PR middle-end/42029
9586 * testsuite/libgomp.c/pr42029.c: New test.
9587
9588 2009-10-26 Jakub Jelinek <jakub@redhat.com>
9589
9590 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9591 *s. Accept ld version without text in ()s.
9592 * configure: Regenerated.
9593
9594 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
9595
9596 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
9597
9598 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9599
9600 PR libgomp/41418
9601 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
9602 or a hyphen (happens with fortran language disabled).
9603 * configure: Regenerate.
9604
9605 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9606
9607 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
9608 use sed script portable to Solaris /bin/sed for extracting ld
9609 version.
9610 * configure: Regenerate.
9611
9612 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
9613
9614 * testsuite/libgomp.graphite/bounds.c: New test.
9615
9616 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9617
9618 * Makefile.am (libgomp_la_LINK): New.
9619 * Makefile.in: Regenerate.
9620
9621 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9622
9623 * configure.ac (AC_PREREQ): Bump to 2.64.
9624
9625 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9626
9627 * Makefile.am (install-html, install-pdf): Remove.
9628 * Makefile.in: Regenerate.
9629
9630 * Makefile.in: Regenerate.
9631 * aclocal.m4: Regenerate.
9632 * config.h.in: Regenerate.
9633 * configure: Regenerate.
9634 * testsuite/Makefile.in: Regenerate.
9635
9636 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9637
9638 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9639 * Makefile.in: Regenerate.
9640
9641 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
9642
9643 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9644 * Makefile.in: Regenerate.
9645
9646 2009-08-19 Tobias Burnus <burnus@net-b.de>
9647
9648 PR fortran/41102
9649 omp_lib.h.in: Fix -std=f95 errors.
9650
9651 2009-08-14 David Edelsohn <edelsohn@gnu.org>
9652
9653 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9654 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9655 * testsuite/libgomp.graphite/graphite.exp: New.
9656
9657 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
9658
9659 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9660 only build.
9661
9662 2009-08-04 David Daney <ddaney@caviumnetworks.com>
9663
9664 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9665 needed memory barrier semantics.
9666 * config/linux/mips/mutex.h: New file.
9667
9668 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9669
9670 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9671
9672 2009-07-16 Joseph Myers <joseph@codesourcery.com>
9673
9674 * configure: Regenerate.
9675
9676 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
9677
9678 PR testsuite/40699
9679 PR testsuite/40707
9680 PR testsuite/40709
9681 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9682 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9683 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9684
9685 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9686
9687 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9688 options when choosing a multilib.
9689
9690 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
9691
9692 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9693 ld_library_path. Use add_path. Add just find_libgcc_s to
9694 ld_library_path, not every libgcc multilib directory.
9695 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9696 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9697 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9698 Use add_path.
9699 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9700
9701 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
9702
9703 * Makefile.am (LTLDFLAGS): Define.
9704 (LINK): Define.
9705 * Makefile.in: Regenerate.
9706
9707 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
9708
9709 PR fortran/39718
9710 * testsuite/libgomp.fortran/fortran.exp: Don't link with
9711 libgfortranbegin, check existence of libgfortran.a instead of
9712 libgfortranbegin.a.
9713
9714 2009-05-20 Jakub Jelinek <jakub@redhat.com>
9715
9716 PR libgomp/40174
9717 * team.c (gomp_thread_start): Destroy thr->release semaphore.
9718 (gomp_free_pool_helper): Likewise.
9719
9720 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
9721 Jakub Jelinek <jakub@redhat.com>
9722
9723 PR fortran/35423
9724 * testsuite/libgomp.fortran/workshare2.f90: New test.
9725
9726 2009-04-09 Nick Clifton <nickc@redhat.com>
9727
9728 * iter.c: Change copyright header to refer to version 3 of the
9729 GNU General Public License with version 3.1 of the GCC Runtime
9730 Library Exception and to point readers at the COPYING3 and
9731 COPYING3.RUNTIME files and the FSF's license web page.
9732 * alloc.c: Likewise.
9733 * barrier.c: Likewise.
9734 * config/bsd/proc.c: Likewise.
9735 * config/linux/affinity.c: Likewise.
9736 * config/linux/alpha/futex.h: Likewise.
9737 * config/linux/bar.c: Likewise.
9738 * config/linux/bar.h: Likewise.
9739 * config/linux/ia64/futex.h: Likewise.
9740 * config/linux/ia64/mutex.h: Likewise.
9741 * config/linux/lock.c: Likewise.
9742 * config/linux/mips/futex.h: Likewise.
9743 * config/linux/mutex.c: Likewise.
9744 * config/linux/mutex.h: Likewise.
9745 * config/linux/powerpc/futex.h: Likewise.
9746 * config/linux/proc.c: Likewise.
9747 * config/linux/ptrlock.c: Likewise.
9748 * config/linux/ptrlock.h: Likewise.
9749 * config/linux/s390/futex.h: Likewise.
9750 * config/linux/sem.c: Likewise.
9751 * config/linux/sem.h: Likewise.
9752 * config/linux/sparc/futex.h: Likewise.
9753 * config/linux/wait.h: Likewise.
9754 * config/linux/x86/futex.h: Likewise.
9755 * config/mingw32/proc.c: Likewise.
9756 * config/mingw32/time.c: Likewise.
9757 * config/posix/affinity.c: Likewise.
9758 * config/posix/bar.c: Likewise.
9759 * config/posix/bar.h: Likewise.
9760 * config/posix/lock.c: Likewise.
9761 * config/posix/mutex.h: Likewise.
9762 * config/posix/proc.c: Likewise.
9763 * config/posix/ptrlock.h: Likewise.
9764 * config/posix/sem.c: Likewise.
9765 * config/posix/sem.h: Likewise.
9766 * config/posix/time.c: Likewise.
9767 * config/posix95/lock.c: Likewise.
9768 * critical.c: Likewise.
9769 * env.c: Likewise.
9770 * error.c: Likewise.
9771 * fortran.c: Likewise.
9772 * iter_ull.c: Likewise.
9773 * libgomp.h: Likewise.
9774 * libgomp_f.h.in: Likewise.
9775 * libgomp_g.h: Likewise.
9776 * loop.c: Likewise.
9777 * loop_ull.c: Likewise.
9778 * omp.h.in: Likewise.
9779 * omp_lib.f90.in: Likewise.
9780 * omp_lib.h.in: Likewise.
9781 * ordered.c: Likewise.
9782 * parallel.c: Likewise.
9783 * sections.c: Likewise.
9784 * single.c: Likewise.
9785 * task.c: Likewise.
9786 * team.c: Likewise.
9787 * work.c: Likewise.
9788
9789 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9790
9791 * testsuite/config/default.exp: Change copyright header to refer to
9792 version 3 of the GNU General Public License and to point readers
9793 at the COPYING3 file and the FSF's license web page.
9794
9795 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9796
9797 PR middle-end/39573
9798 * libgomp.c++/pr39573.C: New test.
9799
9800 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9801
9802 PR other/39591
9803 * testsuite/libgomp.c/pr39591-1.c: New test.
9804 * testsuite/libgomp.c/pr39591-2.c: New test.
9805 * testsuite/libgomp.c/pr39591-3.c: New test.
9806
9807 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9808
9809 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9810 * testsuite/libgomp.c/atomic-6.c: Ditto.
9811
9812 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9813
9814 PR c/39495
9815 * testsuite/libgomp.c/loop-12.c: New test.
9816 * testsuite/libgomp.c/loop-11.c: New test.
9817 * testsuite/libgomp.c++/loop-11.C: New test.
9818 * testsuite/libgomp.c++/loop-12.C: New test.
9819 * testsuite/libgomp.c++/for-8.C: New test.
9820
9821 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9822
9823 * configure: Regenerate.
9824
9825 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9826
9827 PR middle-end/39154
9828 * testsuite/libgomp.c/pr39154.c: New test.
9829
9830 2009-01-30 Ian Lance Taylor <iant@google.com>
9831
9832 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9833 libgomp_ld_is_gold. Get gold version number.
9834 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9835 * configure: Rebuild.
9836
9837 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9838
9839 * testsuite/lib/libgomp.exp: Add -B option for targets that
9840 use libgfortran.a%s in their specs.
9841
9842 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9843
9844 PR libgomp/38086
9845 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9846 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9847 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9848 * configure: Regenerated.
9849 * config.h.in: Likewise.
9850
9851 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9852
9853 PR c++/38650
9854 * testsuite/libgomp.c/pr38650.c: New test.
9855 * testsuite/libgomp.c++/pr38650.C: New test.
9856
9857 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9858
9859 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9860
9861 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9862
9863 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9864
9865 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9866
9867 * configure: Regenerate.
9868
9869 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9870
9871 PR middle-end/36802
9872 * testsuite/libgomp.c/pr36802-1.c: New test.
9873 * testsuite/libgomp.c/pr36802-2.c: New test.
9874 * testsuite/libgomp.c/pr36802-3.c: New test.
9875
9876 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9877
9878 PR libgomp/38270
9879 * config/linux/powerpc/mutex.h: New.
9880
9881 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9882
9883 PR c++/38257
9884 * testsuite/libgomp.c++/for-7.C: New test.
9885
9886 PR c++/38348
9887 * testsuite/libgomp.c++/for-6.C: New test.
9888
9889 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9890
9891 PR testsuite/28870
9892 * testsuite/lib/libgomp.exp: Include new timeout library files.
9893 (libgomp_target_compile): Set timeout value from new proc.
9894
9895 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9896
9897 PR libgomp/37938
9898 * config/linux/ia64/mutex.h: New.
9899
9900 2008-11-04 Tobias Burnus <burnus@net-b.de>
9901
9902 PR libgomp/37935
9903 * libgomp.texi (Runtime library routines, environment variables):
9904 Update for OpenMP version 3.0.
9905
9906 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9907 Steve Ellcey <sje@cup.hp.com>
9908
9909 * configure: Regenerate for new libtool.
9910 * Makefile.in: Ditto.
9911 * testsuite/Makefile.in: Ditto.
9912
9913 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9914 Andreas Tobler <a.tobler@schweiz.org>
9915
9916 * config/bsd/proc.c: New file.
9917 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9918 * configure.ac: Check for header <sys/sysctl.h>
9919 * configure: Regenerate.
9920 * config.h.in: Likewise.
9921
9922 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9923
9924 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9925
9926 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9927
9928 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9929 * Makefile.in: Regenerated.
9930 * testsuite/Makefile.in: Regenerated.
9931
9932 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9933
9934 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9935 depend on blddir if blddir exists.
9936 (libgomp_target_compile): Likewise.
9937 * testsuite/libgomp.c++/c++.exp: Likewise.
9938 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9939
9940 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9941
9942 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9943 Do not list GPL as Invariant Section.
9944
9945 2008-07-28 Ilie Garbacea <ilie@mips.com>
9946 Chao-ying Fu <fu@mips.com>
9947
9948 * configure.tgt: Enable futex for MIPS.
9949 * config/linux/mips/futex.h: New file.
9950
9951 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9952
9953 * team.c (gomp_team_end): Free team immediately if it has
9954 just one thread.
9955
9956 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9957
9958 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9959 * testsuite/libgomp.fortran/fortran.exp: Same.
9960 * testsuite/libgomp.c/c.exp: Same.
9961 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9962 directory to library path first.
9963
9964 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9965
9966 * env.c (parse_stacksize): Add cast to avoid warning.
9967 (parse_spincount): Likewise.
9968
9969 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9970
9971 * testsuite/libgomp.c/loop-10.c: New test.
9972 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9973 * libgomp.c++/loop-6.C (main): Likewise.
9974
9975 PR debug/36617
9976 * testsuite/libgomp.c/debug-1.c: New test.
9977
9978 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9979
9980 * testsuite/libgomp.c/nqueens-1.c: New test.
9981
9982 PR c++/36523
9983 * testsuite/libgomp.c++/task-7.C: New function.
9984
9985 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9986
9987 * configure: Regenerate.
9988
9989 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9990
9991 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9992 mutex when HAVE_SYNC_BUILTINS isn't defined.
9993
9994 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9995
9996 * libgomp.texi (omp_test_lock): Fix typo.
9997
9998 2008-06-12 Tobias Burnus <burnus@net-b.de>
9999
10000 * omp_lib.f90.in: Add "implicit none".
10001
10002 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10003
10004 PR middle-end/36506
10005 * testsuite/libgomp.c/reduction-5.c: New test.
10006
10007 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10008
10009 * libgomp.h (struct gomp_task): Add in_tied_task field.
10010 * task.c (gomp_init_task): Initialize it.
10011 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10012 unconditionally. Don't call gomp_team_barrier_wake if
10013 current task is implicit or if(0) from implicit and number of
10014 running tasks is equal to nthreads - 1.
10015
10016 PR libgomp/36471
10017 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10018 omp_get_team_size_8): Fix pastos.
10019
10020 PR libgomp/36469
10021 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10022 * configure: Regenerated.
10023 * config.h.in: Regenerated.
10024 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10025 defined.
10026
10027 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10028
10029 PR bootstrap/36452
10030 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10031 (GOMP_loop_ull_dynamic_start): Likewise.
10032 (GOMP_loop_ull_guided_start): Likewise.
10033 (GOMP_loop_ull_ordered_static_start): Likewise.
10034 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10035 (GOMP_loop_ull_ordered_guided_start): Likewise.
10036
10037 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10038 Richard Henderson <rth@redhat.com>
10039 Ulrich Drepper <drepper@redhat.com>
10040 Jakob Blomer <jakob.blomer@ira.uka.de>
10041
10042 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10043 Substitute also OMP_*LOCK_25*.
10044 * configure: Regenerated.
10045 * config.h.in: Regenerated.
10046 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10047 ptrlock.c and task.c.
10048 * Makefile.in: Regenerated.
10049 * testsuite/Makefile.in: Regenerated.
10050 * task.c: New file.
10051 * loop_ull.c: New file.
10052 * iter_ull.c: New file.
10053 * libgomp.h: Include ptrlock.h.
10054 (enum gomp_task_kind): New type.
10055 (struct gomp_team): Add task_lock, task_queue, task_count,
10056 task_running_count, single_count fields. Add
10057 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10058 Remove work_share_lock, generation_mask,
10059 oldest_live_gen, num_live_gen and init_work_shares fields, add
10060 work work_share_list_alloc, work_share_list_free and work_share_chunk
10061 fields. Change work_shares from pointer to pointers into an array.
10062 Change ordered_release field into gomp_sem_t ** from flexible array
10063 member. Add implicit_task and initial_work_shares fields.
10064 Move close to the end of the struct.
10065 (struct gomp_team_state): Add single_count, last_work_share,
10066 active_level and level fields, remove work_share_generation.
10067 (gomp_barrier_handle_tasks): New prototype.
10068 (gomp_finish_task): New inline function.
10069 (struct gomp_work_share): Move chunk_size, end, incr into
10070 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10071 next_ll fields. Reshuffle fields. Add next_alloc,
10072 next_ws, next_free and inline_ordered_team_ids fields, change
10073 ordered_team_ids into pointer from flexible array member.
10074 Add mode field. Put lock and next into a different cache line
10075 from most of the write-once fields.
10076 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10077 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10078 gomp_iter_ull_guided_next): New prototypes.
10079 (gomp_new_icv): New prototype.
10080 (struct gomp_thread): Add thread_pool and task fields.
10081 (struct gomp_thread_pool): New type.
10082 (gomp_new_team): New prototype.
10083 (gomp_team_start): Change type of last argument.
10084 (gomp_new_work_share): Removed.
10085 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10086 (gomp_work_share_init_done): New static inline.
10087 (gomp_throttled_spin_count_var, gomp_available_cpus,
10088 gomp_managed_threads): New extern decls.
10089 (gomp_init_task): New prototype.
10090 (gomp_spin_count_var): New extern var decl.
10091 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10092 or no alias support, or if not PIC.
10093 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10094 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10095 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10096 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10097 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10098 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10099 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10100 gomp_test_nest_lock_25): New prototypes.
10101 (omp_lock_symver, strong_alias): Define.
10102 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10103 decls.
10104 (gomp_end_task): New.
10105 (struct gomp_task_icv, gomp_global_icv): New.
10106 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10107 (struct gomp_task): New.
10108 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10109 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10110 (gomp_icv): New.
10111 (gomp_schedule_type): Reorder enum to match
10112 omp_sched_t.
10113 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10114 fields.
10115 (gomp_thread_start): Add gomp_team_barrier_wait call.
10116 For non-nested case remove clearing of docked thread thr fields.
10117 Use pool fields instead of global gomp_* variables. Use
10118 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10119 Create tasks for each member thread.
10120 (free_team): Only destroy team barrier, task_lock here and free it.
10121 (gomp_free_thread): Free last_team if non-NULL.
10122 (gomp_team_end): Call gomp_team_barrier_wait instead of
10123 gomp_barrier_wait. For nested case call one extra
10124 gomp_barrier_wait. Move here some destruction from free_team.
10125 Call free_team on pool->last_team if any, rather than freeing
10126 current team. Destroy work_share_list_free_lock ifndef
10127 HAVE_SYNC_BUILTINS.
10128 (gomp_new_icv): New function.
10129 (gomp_threads, gomp_threads_size, gomp_threads_used,
10130 gomp_threads_dock): Removed.
10131 (gomp_thread_destructor): New variable.
10132 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10133 functions.
10134 (gomp_team_start): Create new pool if current thread doesn't have
10135 one. Use pool fields instead of global gomp_* variables.
10136 Initialize thread_pool field for new threads. Clear single_count.
10137 Change last argument from ws to team, don't create
10138 new team, set ts.work_share to &team->work_shares[0] and clear
10139 ts.last_work_share. Don't clear ts.work_share_generation.
10140 If number of threads changed, adjust atomically gomp_managed_threads.
10141 Use gomp_init_task instead of gomp_new_task,
10142 set thr->task to the corresponding implicit_task array entry.
10143 Create tasks for each member thread. Initialize ts.level.
10144 (initialize_team): Call pthread_key_create on
10145 gomp_thread_destructor.
10146 (team_destructor): New function.
10147 (new_team): Removed.
10148 (gomp_new_team): New function.
10149 (free_team): Free gomp_work_share blocks chained through next_alloc,
10150 instead of freeing work_shares and destroying work_share_lock.
10151 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10152 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10153 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10154 of gomp_barrier_wait.
10155 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10156 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10157 if gomp_work_share_start returned true. Don't unlock ws->lock.
10158 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10159 of gomp_barrier_wait.
10160 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10161 gomp_work_share_init_done if gomp_work_share_start returned true.
10162 Don't unlock ws->lock.
10163 * work.c: Include stddef.h.
10164 (free_work_share): Use work_share_list_free_lock instead
10165 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10166 Call gomp_fini_work_share and then either free ws if orphaned, or
10167 put it into work_share_list_free list of the current team.
10168 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10169 functions.
10170 (gomp_work_share_start, gomp_work_share_end,
10171 gomp_work_share_end_nowait): Rewritten.
10172 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10173 (openmp_version): Set to 200805.
10174 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10175 omp_sched_guided, omp_sched_auto): New parameters.
10176 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10177 omp_set_max_active_levels, omp_get_max_active_levels,
10178 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10179 omp_get_active_level): New interfaces.
10180 * omp_lib.h.in (openmp_version): Set to 200805.
10181 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10182 omp_sched_guided, omp_sched_auto): New parameters.
10183 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10184 omp_set_max_active_levels, omp_get_max_active_levels,
10185 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10186 omp_get_active_level): New externals.
10187 * loop.c: Include limits.h.
10188 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10189 GFS_AUTO.
10190 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10191 Likewise. Use gomp_icv.
10192 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10193 ts.static_trip here.
10194 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10195 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10196 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10197 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10198 don't unlock ws->lock, otherwise lock it.
10199 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10200 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10201 (gomp_parallel_loop_start): Call gomp_new_team instead of
10202 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10203 Adjust gomp_team_start caller. Pass 0 as second argument to
10204 gomp_resolve_num_threads.
10205 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10206 If adding ws->chunk_size nthreads + 1 times after end won't
10207 overflow, set ws->mode to 1.
10208 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10209 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10210 GOMP_loop_ull_ordered_static_start,
10211 GOMP_loop_ull_ordered_dynamic_start,
10212 GOMP_loop_ull_ordered_guided_start,
10213 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10214 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10215 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10216 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10217 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10218 prototypes.
10219 * libgomp.map: Export lock routines also @@OMP_2.0.
10220 (GOMP_loop_ordered_dynamic_first,
10221 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10222 GOMP_loop_ordered_static_first): Remove.
10223 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10224 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10225 GOMP_loop_ull_ordered_dynamic_next,
10226 GOMP_loop_ull_ordered_dynamic_start,
10227 GOMP_loop_ull_ordered_guided_next,
10228 GOMP_loop_ull_ordered_guided_start,
10229 GOMP_loop_ull_ordered_runtime_next,
10230 GOMP_loop_ull_ordered_runtime_start,
10231 GOMP_loop_ull_ordered_static_next,
10232 GOMP_loop_ull_ordered_static_start,
10233 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10234 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10235 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10236 (omp_set_schedule, omp_get_schedule,
10237 omp_get_thread_limit, omp_set_max_active_levels,
10238 omp_get_max_active_levels, omp_get_level,
10239 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10240 omp_set_schedule_, omp_set_schedule_8_,
10241 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10242 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10243 omp_get_max_active_levels_, omp_get_level_,
10244 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10245 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10246 New exports @@OMP_3.0.
10247 * omp.h.in (omp_sched_t): New type.
10248 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10249 omp_set_max_active_levels, omp_get_max_active_levels,
10250 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10251 omp_get_active_level): New prototypes.
10252 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10253 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10254 gomp_thread_limit_var, gomp_remaining_threads_count,
10255 gomp_remaining_threads_lock): New variables.
10256 (parse_spincount): New function.
10257 (initialize_env): Call gomp_init_num_threads unconditionally.
10258 Initialize gomp_available_cpus. Call parse_spincount,
10259 initialize gomp_{,throttled_}spin_count_var
10260 depending on presence and value of OMP_WAIT_POLICY and
10261 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10262 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10263 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10264 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10265 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10266 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10267 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10268 (gomp_global_icv): New.
10269 (parse_schedule): Use it. Parse "auto".
10270 (omp_set_num_threads): Use gomp_icv.
10271 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10272 Likewise.
10273 (omp_get_max_threads): Move from parallel.c.
10274 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10275 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10276 add ialias.
10277 (parse_stacksize, parse_wait_policy): New functions.
10278 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10279 both wrappers for compatibility and new locks.
10280 (omp_set_schedule, omp_get_schedule,
10281 omp_get_thread_limit, omp_set_max_active_levels,
10282 omp_get_max_active_levels, omp_get_level,
10283 omp_get_ancestor_thread_num, omp_get_team_size,
10284 omp_get_active_level): New ialias_redirect.
10285 (omp_set_schedule_, omp_set_schedule_8_,
10286 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10287 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10288 omp_get_max_active_levels_, omp_get_level_,
10289 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10290 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10291 New functions.
10292 * parallel.c: Include limits.h.
10293 (gomp_resolve_num_threads): Add count argument. Rewritten.
10294 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10295 argument to gomp_team_start. Pass 0 as second argument to
10296 gomp_resolve_num_threads.
10297 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10298 if gomp_thread_limit_var != ULONG_MAX.
10299 (omp_in_parallel): Implement using ts.active_level.
10300 (omp_get_max_threads): Move to env.c.
10301 (omp_get_level, omp_get_ancestor_thread_num,
10302 omp_get_team_size, omp_get_active_level): New functions,
10303 add ialias.
10304 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10305 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10306 gomp_iter_dynamic_next instead of the _locked variant and don't take
10307 lock around it, otherwise acquire it before calling
10308 gomp_iter_dynamic_next_locked.
10309 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10310 gomp_iter_dynamic_next instead of the _locked variant and don't take
10311 lock around it.
10312 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10313 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10314 Adjust gomp_team_start caller. Pass count as second argument to
10315 gomp_resolve_num_threads, don't adjust num_threads after the call.
10316 Use gomp_icv.
10317 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10318 ws->chunk_size by incr.
10319 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10320 code.
10321 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10322 types.
10323 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10324 (omp_check_defines): Check even the compat defines.
10325 * config/linux/ptrlock.c: New file.
10326 * config/linux/ptrlock.h: New file.
10327 * config/linux/wait.h: New file.
10328 * config/posix/ptrlock.c: New file.
10329 * config/posix/ptrlock.h: New file.
10330 * config/linux/bar.h (gomp_team_barrier_wait,
10331 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10332 (gomp_team_barrier_set_task_pending,
10333 gomp_team_barrier_clear_task_pending,
10334 gomp_team_barrier_set_waiting_for_tasks,
10335 gomp_team_barrier_waiting_for_tasks,
10336 gomp_team_barrier_done): New inlines.
10337 (gomp_barrier_t): Rewritten.
10338 (gomp_barrier_state_t): New typedef.
10339 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10340 gomp_barrier_wait_start): Rewritten.
10341 (gomp_barrier_wait_end): Change second argument to
10342 gomp_barrier_state_t.
10343 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10344 inlines.
10345 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10346 futex.h.
10347 (gomp_barrier_wait_end): Rewritten.
10348 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10349 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10350 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10351 (gomp_barrier_state_t): New typedef.
10352 (gomp_team_barrier_wait,
10353 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10354 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10355 into the return value. Return gomp_barrier_state_t.
10356 (gomp_team_barrier_set_task_pending,
10357 gomp_team_barrier_clear_task_pending,
10358 gomp_team_barrier_set_waiting_for_tasks,
10359 gomp_team_barrier_waiting_for_tasks,
10360 gomp_team_barrier_done): New inlines.
10361 (gomp_barrier_wait_end): Change second argument to
10362 gomp_barrier_state_t.
10363 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10364 inlines.
10365 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10366 (gomp_barrier_wait_end): Change second argument to
10367 gomp_barrier_state_t.
10368 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10369 gomp_team_barrier_wake): New functions.
10370 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10371 futex.h.
10372 (gomp_futex_wake, gomp_futex_wait): New variables.
10373 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10374 * config/linux/lock.c: Rewrite to make locks task owned,
10375 for backwards compatibility provide the old entrypoints
10376 if symbol versioning. Include wait.h instead of libgomp.h and
10377 futex.h.
10378 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10379 * config/posix95/lock.c: Rewrite to make locks task owned,
10380 for backwards compatibility provide the old entrypoints
10381 if symbol versioning.
10382 * config/posix/lock.c: Rewrite to make locks task owned,
10383 for backwards compatibility provide the old entrypoints
10384 if symbol versioning.
10385 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10386 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10387 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10388 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10389 (sys_futex0): Return error code.
10390 (futex_wake, futex_wait): If ENOSYS was returned, clear
10391 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10392 (cpu_relax, atomic_write_barrier): New static inlines.
10393 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10394 (futex_wake, futex_wait): If ENOSYS was returned, clear
10395 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10396 (cpu_relax, atomic_write_barrier): New static inlines.
10397 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10398 (sys_futex0): Return error code.
10399 (futex_wake, futex_wait): If ENOSYS was returned, clear
10400 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10401 (cpu_relax, atomic_write_barrier): New static inlines.
10402 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10403 (sys_futex0): Return error code.
10404 (futex_wake, futex_wait): If ENOSYS was returned, clear
10405 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10406 (cpu_relax, atomic_write_barrier): New static inlines.
10407 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10408 (sys_futex0): Return error code.
10409 (futex_wake, futex_wait): If ENOSYS was returned, clear
10410 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10411 (cpu_relax, atomic_write_barrier): New static inlines.
10412 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10413 (sys_futex0): Return error code.
10414 (futex_wake, futex_wait): If ENOSYS was returned, clear
10415 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10416 (cpu_relax, atomic_write_barrier): New static inlines.
10417 * config/linux/sem.c: Include wait.h instead of libgomp.h and
10418 futex.h.
10419 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
10420 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
10421 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
10422 types.
10423 (omp_nest_lock_t): Change owner into void *, add lock field.
10424 * config/posix95/omp-lock.h: Include semaphore.h.
10425 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10426 (omp_lock_t): Use sem_t instead of mutex if semaphores
10427 aren't broken.
10428 (omp_nest_lock_t): Likewise. Change owner to void *.
10429 * config/posix/omp-lock.h: Include semaphore.h.
10430 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10431 (omp_lock_t): Use sem_t instead of mutex if semaphores
10432 aren't broken.
10433 (omp_nest_lock_t): Likewise. Add owner field.
10434
10435 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10436
10437 * testsuite/libgomp.c/collapse-1.c: New test.
10438 * testsuite/libgomp.c/collapse-2.c: New test.
10439 * testsuite/libgomp.c/collapse-3.c: New test.
10440 * testsuite/libgomp.c/icv-1.c: New test.
10441 * testsuite/libgomp.c/icv-2.c: New test.
10442 * testsuite/libgomp.c/lib-2.c: New test.
10443 * testsuite/libgomp.c/lock-1.c: New test.
10444 * testsuite/libgomp.c/lock-2.c: New test.
10445 * testsuite/libgomp.c/lock-3.c: New test.
10446 * testsuite/libgomp.c/loop-4.c: New test.
10447 * testsuite/libgomp.c/loop-5.c: New test.
10448 * testsuite/libgomp.c/loop-6.c: New test.
10449 * testsuite/libgomp.c/loop-7.c: New test.
10450 * testsuite/libgomp.c/loop-8.c: New test.
10451 * testsuite/libgomp.c/loop-9.c: New test.
10452 * testsuite/libgomp.c/nested-3.c: New test.
10453 * testsuite/libgomp.c/nestedfn-6.c: New test.
10454 * testsuite/libgomp.c/sort-1.c: New test.
10455 * testsuite/libgomp.c/task-1.c: New test.
10456 * testsuite/libgomp.c/task-2.c: New test.
10457 * testsuite/libgomp.c/task-3.c: New test.
10458 * testsuite/libgomp.c/task-4.c: New test.
10459 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
10460 to C++ testsuite default compiler options.
10461 * testsuite/libgomp.c++/collapse-1.C: New test.
10462 * testsuite/libgomp.c++/collapse-2.C: New test.
10463 * testsuite/libgomp.c++/ctor-10.C: New test.
10464 * testsuite/libgomp.c++/for-1.C: New test.
10465 * testsuite/libgomp.c++/for-2.C: New test.
10466 * testsuite/libgomp.c++/for-3.C: New test.
10467 * testsuite/libgomp.c++/for-4.C: New test.
10468 * testsuite/libgomp.c++/for-5.C: New test.
10469 * testsuite/libgomp.c++/loop-8.C: New test.
10470 * testsuite/libgomp.c++/loop-9.C: New test.
10471 * testsuite/libgomp.c++/loop-10.C: New test.
10472 * testsuite/libgomp.c++/task-1.C: New test.
10473 * testsuite/libgomp.c++/task-2.C: New test.
10474 * testsuite/libgomp.c++/task-3.C: New test.
10475 * testsuite/libgomp.c++/task-4.C: New test.
10476 * testsuite/libgomp.c++/task-5.C: New test.
10477 * testsuite/libgomp.c++/task-6.C: New test.
10478 * testsuite/libgomp.fortran/allocatable1.f90: New test.
10479 * testsuite/libgomp.fortran/allocatable2.f90: New test.
10480 * testsuite/libgomp.fortran/allocatable3.f90: New test.
10481 * testsuite/libgomp.fortran/allocatable4.f90: New test.
10482 * testsuite/libgomp.fortran/collapse1.f90: New test.
10483 * testsuite/libgomp.fortran/collapse2.f90: New test.
10484 * testsuite/libgomp.fortran/collapse3.f90: New test.
10485 * testsuite/libgomp.fortran/collapse4.f90: New test.
10486 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
10487 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
10488 * testsuite/libgomp.fortran/lib4.f90: New test.
10489 * testsuite/libgomp.fortran/lock-1.f90: New test.
10490 * testsuite/libgomp.fortran/lock-2.f90: New test.
10491 * testsuite/libgomp.fortran/nested1.f90: New test.
10492 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
10493 * testsuite/libgomp.fortran/strassen.f90: New test.
10494 * testsuite/libgomp.fortran/tabs1.f90: New test.
10495 * testsuite/libgomp.fortran/tabs2.f: New test.
10496 * testsuite/libgomp.fortran/task1.f90: New test.
10497 * testsuite/libgomp.fortran/task2.f90: New test.
10498 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
10499 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10500 * testsuite/libgomp.c/pr26943-2.c: Likewise.
10501 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10502 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10503
10504 2008-05-23 Jakub Jelinek <jakub@redhat.com>
10505
10506 PR c++/36308
10507 * testsuite/libgomp.c++/ctor-11.C: New test.
10508 * testsuite/libgomp.c++/ctor-12.C: New test.
10509
10510 2008-05-15 Janis Johnson <janis187@us.ibm.com>
10511
10512 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
10513
10514 2008-05-07 Jakub Jelinek <jakub@redhat.com>
10515
10516 PR middle-end/36106
10517 * testsuite/libgomp.c/atomic-5.c: New test.
10518 * testsuite/libgomp.c/atomic-6.c: New test.
10519 * testsuite/libgomp.c/autopar-1.c: New test.
10520
10521 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10522
10523 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10524 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10525 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10526 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10527 * configure: Regenerate.
10528 * Makefile.in, testsuite/Makefile.in: Likewise.
10529
10530 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10531
10532 PR bootstrap/35457
10533 * aclocal.m4: Regenerate.
10534 * configure: Regenerate.
10535
10536 2008-03-18 Jakub Jelinek <jakub@redhat.com>
10537
10538 PR middle-end/35611
10539 * testsuite/libgomp.c/atomic-4.c: New test.
10540
10541 PR libgomp/35625
10542 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10543 (gomp_iter_guided_next): Likewise.
10544 * testsuite/libgomp.c/pr35625.c: New test.
10545
10546 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10547
10548 * aclocal.m4: Regenerate.
10549 * configure: Likewise.
10550 * Makefile.in: Likewise.
10551 * testsuite/Makefile.in: Likewise.
10552
10553 2008-03-13 Jakub Jelinek <jakub@redhat.com>
10554
10555 PR middle-end/35185
10556 * testsuite/libgomp.c++/pr35185.C: New test.
10557
10558 2008-03-12 Jakub Jelinek <jakub@redhat.com>
10559
10560 PR middle-end/35549
10561 * testsuite/libgomp.c/pr35549.c: New test.
10562
10563 2008-03-06 Jakub Jelinek <jakub@redhat.com>
10564
10565 * testsuite/libgomp.c/atomic-3.c: New test.
10566
10567 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10568
10569 PR fortran/33197
10570 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
10571 .F08 file suffixes.
10572
10573 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
10574
10575 PR libgomp/33131
10576 * configure.ac: Add ACX_HEADER_STRING.
10577 * env.c: Include strings.h.
10578 * aclocal.m4: Regenerate.
10579 * config.h.in: Regenerate.
10580 * configure: Regenerate.
10581 * Makefile.in: Regenerate.
10582 * testsuite/Makefile.in: Regenerate.
10583
10584 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10585
10586 PR middle-end/35196
10587 * testsuite/libgomp.c/pr35196.c: New test.
10588
10589 PR middle-end/35130
10590 * testsuite/libgomp.fortran/pr35130.f90: New test.
10591 * testsuite/libgomp.c/pr35130.c: New test.
10592
10593 2008-01-25 Jakub Jelinek <jakub@redhat.com>
10594
10595 PR middle-end/33880
10596 * testsuite/libgomp.c/pr33880.c: New test.
10597 * testsuite/libgomp.fortran/pr33880.f90: New test.
10598
10599 2008-01-24 David Edelsohn <edelsohn@gnu.org>
10600
10601 * configure: Regenerate.
10602
10603 2008-01-08 Jakub Jelinek <jakub@redhat.com>
10604
10605 * configure.ac: Move futex checking into ../config/futex.m4.
10606 * configure: Rebuilt.
10607 * aclocal.m4: Rebuilt.
10608 * Makefile.in: Rebuilt.
10609
10610 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
10611 2007-10-15 ../config/tls.m4 change.
10612
10613 2007-12-19 Jakub Jelinek <jakub@redhat.com>
10614
10615 PR c++/34513
10616 * testsuite/libgomp.c/pr34513.c: New test.
10617 * testsuite/libgomp.c++/pr34513.C: New test.
10618
10619 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
10620
10621 PR target/32765
10622 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
10623
10624 2007-12-04 Jakub Jelinek <jakub@redhat.com>
10625
10626 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
10627
10628 2007-12-03 Jakub Jelinek <jakub@redhat.com>
10629
10630 * testsuite/libgomp.c/private-1.c: New test.
10631
10632 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
10633 Paolo Bonzini <bonzini@gnu.org>
10634
10635 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10636 instead of 'VPATH ='.
10637 * Makefile.in: Regenerate.
10638
10639 2007-11-23 Matthias Klose <doko@ubuntu.com>
10640
10641 * configure.ac: Adjust makeinfo version check.
10642 * configure: Regenerate.
10643
10644 2007-11-10 Jakub Jelinek <jakub@redhat.com>
10645
10646 PR fortran/34020
10647 * testsuite/libgomp.fortran/pr34020.f90: New test.
10648
10649 2007-11-06 Jakub Jelinek <jakub@redhat.com>
10650
10651 PR c++/33894
10652 * testsuite/libgomp.c++/atomic-1.C: New test.
10653
10654 2007-10-25 Jakub Jelinek <jakub@redhat.com>
10655
10656 PR libgomp/33275
10657 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10658 Make x and y integers rather than (implicit) reals. Add private (j)
10659 clause to the last omp parallel.
10660
10661 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
10662
10663 * configure: Regenerate following changes to ../config/tls.m4.
10664
10665 2007-09-28 Jakub Jelinek <jakub@redhat.com>
10666
10667 * testsuite/libgomp.fortran/stack.f90: New test.
10668
10669 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
10670
10671 * config/mingw32/proc.c: New file.
10672
10673 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
10674
10675 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10676 (main): Use __get_cpuid to get i386 target fetaures.
10677 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10678 (main): Use __get_cpuid to get x86_64 target fetaures.
10679
10680 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
10681
10682 PR target/32765
10683 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10684 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10685
10686 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10687
10688 PR fortran/32550
10689 * testsuite/libgomp.fortran/pr32550.f90: New test.
10690 * testsuite/libgomp.fortran/crayptr2.f90: New test.
10691
10692 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
10693
10694 * aclocal.m4: Regenerated.
10695
10696 2007-07-05 Tobias Burnus <burnus@net-b.de>
10697
10698 PR fortran/32359
10699 * testsuite/libgomp.fortran/pr32359.f90: New.
10700
10701 2007-07-02 Jakub Jelinek <jakub@redhat.com>
10702
10703 PR libgomp/32468
10704 * sections.c (GOMP_parallel_sections_start): Only decrease
10705 number of threads to COUNT if dyn_var is true.
10706 * testsuite/libgomp.c/pr32468.c: New test.
10707
10708 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10709
10710 PR libgomp/26308
10711 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10712
10713 2007-06-21 Jakub Jelinek <jakub@redhat.com>
10714
10715 PR middle-end/32362
10716 * testsuite/libgomp.c/pr32362-1.c: New test.
10717 * testsuite/libgomp.c/pr32362-2.c: New test.
10718 * testsuite/libgomp.c/pr32362-3.c: New test.
10719
10720 2007-06-07 Jakub Jelinek <jakub@redhat.com>
10721
10722 * team.c (gomp_team_start): Fix setting up thread_attr
10723 stack size.
10724
10725 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
10726
10727 * configure: Regenerate.
10728
10729 2007-05-23 Steve Ellcey <sje@cup.hp.com>
10730
10731 * Makefile.in: Regenerate.
10732 * configure: Regenerate.
10733 * aclocal.m4: Regenerate.
10734 * testsuite/Makefile.in: Regenerate.
10735
10736 2007-05-04 Jakub Jelinek <jakub@redhat.com>
10737
10738 * config/linux/proc.c: New file.
10739
10740 PR libgomp/28482
10741 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10742
10743 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10744
10745 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10746
10747 2007-04-16 Matthias Klose <doko@debian.org>
10748
10749 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10750 flags if not building with -m64.
10751 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10752 flag for i?86-*-* targets, if current target matches -m64.
10753
10754 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10755
10756 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10757 * Makefile.in: Regenerate.
10758
10759 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10760
10761 PR testsuite/31369
10762 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10763 ld_library_path.
10764 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10765
10766 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10767
10768 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10769 decls.
10770 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10771 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10772 (parse_affinity): New function.
10773 (initialize_env): Call it and gomp_init_affinity.
10774 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10775 create new pthread_attr_t and call gomp_init_thread_affinity
10776 on it for each thread before passing the attribute to pthread_create.
10777 * config/linux/affinity.c: New file.
10778 * config/posix/affinity.c: New file.
10779 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10780 * configure: Rebuilt.
10781 * config.h.in: Rebuilt.
10782 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10783 * Makefile.in: Rebuilt.
10784
10785 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10786
10787 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10788 *-*-darwin*.
10789 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10790 and use it if found.
10791
10792 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10793
10794 * testsuite/config/default.exp: New file.
10795 * testsuite/lib/libgomp.exp: New file.
10796 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10797 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10798 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10799 (libgomp_load): Remove.
10800 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10801 always_ld_library_path, not ld_library_path. Set additional_flags
10802 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10803 (target_compile): Do not call libgomp_init. Append lang_library_path
10804 and lang_link_flags to options.
10805 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10806 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10807 here.
10808 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10809 always_ld_library_path. Set LD_LIBRARY_PATH here.
10810 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10811 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10812 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10813 CX8 flag.
10814 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10815 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10816 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10817 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10818 * testsuite/libgomp.c/atomic-10.c: Ditto.
10819
10820 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10821
10822 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10823 dg-final cleanup-modules line.
10824 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10825 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10826 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10827 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10828 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10829 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10830 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10831
10832 2007-03-18 Andreas Schwab <schwab@suse.de>
10833
10834 * acinclude.m4: Adjust regular expression for ld version
10835 extraction.
10836 * configure: Regenerate.
10837
10838 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10839
10840 * Makefile.am: Add install-pdf target as copied from
10841 automake v1.10 rules.
10842 * Makefile.in: Regenerate
10843
10844 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10845
10846 PR libgomp/28486
10847 * configure: Regenerate.
10848
10849 PR c++/30703
10850 * testsuite/libgomp.c++/pr30703.C: New test.
10851
10852 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10853
10854 Revert:
10855 2006-07-05 Eric Christopher <echristo@apple.com>
10856 * configure.ac: Depend addition of -pthread on host OS.
10857 * configure: Regenerate.
10858
10859 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10860
10861 * libgomp.texi: Fix spacing after abbreviations.
10862
10863 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10864
10865 PR libgomp/30546
10866 * configure.ac: Add check for makeinfo
10867 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10868 if an appropiate version of makeinfo is found.
10869 * aclocal.m4: Regenerated.
10870 * configure: Regenerated.
10871 * Makefile.in: Regenerated.
10872 * testsuite/Makefile.in: Regenerated.
10873
10874 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10875
10876 PR libgomp/30540
10877 * libgomp.texi: More about implementation-dependent settings.
10878
10879 2007-01-26 Tobias Burnus <burnus@net-b.de>
10880
10881 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10882
10883 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10884
10885 PR middle-end/30494
10886 * testsuite/libgomp.c/pr30494.c: New test.
10887
10888 2007-01-15 Tom Tromey <tromey@redhat.com>
10889
10890 * configure: Rebuilt.
10891 * configure.ac: Fixed comment.
10892
10893 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10894
10895 * libgomp.texi: Document implementation specific default values of
10896 environment variables.
10897
10898 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10899
10900 PR libgomp/28209
10901 * libgomp.texi: New file.
10902 * configure.ac: Add --enable-generated-files-in-srcdir option.
10903 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10904 files to srcdir.
10905 * Makefile.in: Regenerated.
10906 * config.h.in: Regenerated.
10907 * testsuite/Makefile.in: Regenerated.
10908 * NOTES: Removed.
10909
10910 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10911
10912 PR libgomp/29949
10913 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10914
10915 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10916
10917 * configure: Regenerate.
10918
10919 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10920
10921 PR libgomp/29947
10922 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10923 start if there shouldn't be any loop iterations.
10924 (gomp_loop_ordered_static_start): Remove start == end test.
10925 * testsuite/libgomp.c/pr29947-1.c: New test.
10926 * testsuite/libgomp.c/pr29947-2.c: New test.
10927
10928 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10929
10930 * configure.tgt: Force initial-exec TLS model on Linux only.
10931
10932 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10933
10934 * configure: Regenerated.
10935
10936 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10937
10938 * env.c (parse_schedule): Reject out of range values.
10939 (parse_unsigned_long): Reject out of range, negative or zero values.
10940
10941 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10942
10943 PR fortran/29629
10944 * testsuite/libgomp.fortran/pr29629.f90: New test.
10945
10946 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10947
10948 PR libgomp/29494
10949 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10950 * config/posix95: New directory.
10951 * config/posix95/omp-lock.h: New file.
10952 * config/posix95/lock.c: Likewise.
10953
10954 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10955
10956 * aclocal.m4: Regenerate.
10957 * configure: Regenerate.
10958
10959 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10960
10961 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10962 '<' to '<='.
10963
10964 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10965
10966 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10967 test.
10968 * configure: Regenerate.
10969 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10970
10971 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10972
10973 PR middle-end/25261
10974 PR middle-end/28790
10975 * testsuite/libgomp.c/nestedfn-4.c: New test.
10976 * testsuite/libgomp.c/nestedfn-5.c: New test.
10977 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10978
10979 PR fortran/29097
10980 * testsuite/libgomp.fortran/condinc1.f: New test.
10981 * testsuite/libgomp.fortran/condinc2.f: New test.
10982 * testsuite/libgomp.fortran/condinc3.f90: New test.
10983 * testsuite/libgomp.fortran/condinc4.f90: New test.
10984 * testsuite/libgomp.fortran/condinc1.inc: New file.
10985
10986 2006-09-18 Tom Tromey <tromey@redhat.com>
10987
10988 * configure: Rebuilt.
10989
10990 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10991
10992 PR c/28768
10993 PR preprocessor/14634
10994 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10995 to AC_DEFINE.
10996 * configure: Regenerate.
10997
10998 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10999
11000 * testsuite/libgomp.fortran/reduction3.f90: Change
11001 -2147483648 to -huge(i)-1 to avoid overflow.
11002 * testsuite/libgomp.fortran/reduction4.f90: Change
11003 Z'ffffffff' to not(0) to avoid overflow.
11004
11005 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11006
11007 PR libgomp/25938
11008 * Makefile.am (libsubincludedir): New.
11009 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11010 * Makefile.in: Regenerate.
11011
11012 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11013
11014 PR libgomp/28725
11015 * env.c: Include ctype.h.
11016 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11017 leading and/or trailing whitespace and compare strings case
11018 insensitively.
11019
11020 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11021
11022 PR fortran/28390
11023 * testsuite/libgomp.fortran/pr28390.f: New test.
11024
11025 2006-07-05 Eric Christopher <echristo@apple.com>
11026
11027 * configure.ac: Depend addition of -pthread on host OS.
11028 * configure: Regenerate.
11029
11030 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11031
11032 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11033 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11034 defined.
11035
11036 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11037
11038 PR libgomp/26175
11039 PR libgomp/26477
11040 * configure.ac: If neither --enable-linux-futex nor
11041 --disable-linux-futex is passed, determine the default by checking
11042 for compiling and/or running against NPTL. With --enable-linux-futex,
11043 check if SYS_gettid and SYS_futex are defined.
11044 * configure: Rebuilt.
11045
11046 2006-06-14 Richard Henderson <rth@redhat.com>
11047
11048 PR libgomp/28008
11049 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11050 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11051
11052 2006-06-09 Richard Henderson <rth@redhat.com>
11053
11054 * env.c (gomp_nthreads_var): Change to unsigned long.
11055 (gomp_run_sched_chunk): Likewise.
11056 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11057 (initialize_env): Initialize gomp_thread_attr.
11058 * libgomp.h (gomp_nthreads_var): Update decl.
11059 (gomp_run_sched_chunk): Likewise.
11060 (gomp_thread_attr): Declare.
11061 * team.c (gomp_thread_attr): Export.
11062 (initialize_team): Don't initialize it.
11063
11064 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11065
11066 PR fortran/27916
11067 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11068 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11069
11070 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11071
11072 * config/mingw32/time.c: New file.
11073 * configure.tgt: Use it.
11074
11075 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11076
11077 * Makefile.am: Add install-html target. Add install-html to .PHONY
11078 * Makefile.in: Regenerate.
11079
11080 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11081
11082 PR libgomp/27612
11083 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11084 * testsuite/libgomp.c/critical-1.c: Likewise.
11085 * testsuite/libgomp.c/loop-1.c: Likewise.
11086 * testsuite/libgomp.c/loop-2.c: Likewise.
11087 * testsuite/libgomp.c/single-1.c: Likewise.
11088 * testsuite/libgomp.c/ordered-1.c: Likewise.
11089 * testsuite/libgomp.c/ordered-2.c: Likewise.
11090
11091 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11092
11093 PR middle-end/27416
11094 * libgomp.fortran/pr27416-1.f90: New test.
11095
11096 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11097
11098 PR fortran/27395
11099 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11100 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11101
11102 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11103
11104 PR c++/26943
11105 * testsuite/libgomp.c/pr26943-1.c: New test.
11106 * testsuite/libgomp.c/pr26943-2.c: New test.
11107 * testsuite/libgomp.c/pr26943-3.c: New test.
11108 * testsuite/libgomp.c/pr26943-4.c: New test.
11109 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11110 * testsuite/libgomp.c++/pr26943.C: New test.
11111
11112 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11113
11114 PR middle-end/27337
11115 * testsuite/libgomp.c++/pr27337.C: New test.
11116
11117 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11118
11119 PR c/26171
11120 * testsuite/libgomp.c/pr26171.c: New test.
11121
11122 2006-04-25 Richard Henderson <rth@redhat.com>
11123
11124 PR libgomp/25865
11125 * configure.ac: Use GCC_CHECK_TLS.
11126 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11127 * Makefile.in, aclocal.m4, configure: Regenerate.
11128
11129 2006-04-10 Matthias Klose <doko@debian.org>
11130
11131 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11132 directory names containing underscores.
11133
11134 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11135
11136 PR c++/26691
11137 * testsuite/libgomp.c++/pr26691.C: New test.
11138
11139 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11140
11141 * testsuite/libgomp.fortran/retval2.f90: New test.
11142
11143 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11144
11145 * testsuite/libgomp.c++: New directory.
11146
11147 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11148
11149 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11150 * config/posix/sem.c: Implement the above.
11151
11152 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11153
11154 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11155 define HAVE_BROKEN_POSIX_SEMAPHORES.
11156 * configure: Rebuilt.
11157 * config.h.in: Rebuilt.
11158
11159 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11160
11161 PR bootstrap/26161
11162 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11163 for the other pthread check.
11164 * configure: Regenerate.
11165 * config.h.in: Regenerate.
11166
11167 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11168
11169 PR libgomp/25938
11170 PR libgomp/25984
11171 * Makefile.am (fincludedir): New variable.
11172 (nodist_include_HEADERS): Remove Fortran files.
11173 (nodist_finclude_HEADERS): New variable.
11174 * Makefile.in: Regenerated.
11175
11176 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11177
11178 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11179 Remove tests for returning assumed character length arrays.
11180
11181 2006-02-12 Roger Sayle <roger@eyesopen.com>
11182 John David Anglin <dave@hiauly1.hia.nrc.ca>
11183
11184 PR libgomp/25936
11185 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11186
11187 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11188
11189 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11190
11191 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11192
11193 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11194 part of LD_LIBRARY_PATH manually.
11195
11196 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11197
11198 PR libgomp/25852
11199 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11200 libgomp_init.
11201
11202 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11203
11204 PR libgomp/25884
11205 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11206 * configure.ac (PERL): Don't set.
11207 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11208 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11209 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11210 * omp.h.in: Wrap the new configure substitutions with @ characters.
11211 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11212 * aclocal.m4, configure, Makefile.in: Regenerate.
11213 * mkomp_h.pl: Delete.
11214
11215 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11216
11217 PR libgomp/25259
11218 * configure.ac: Use GCC_HEADER_STDINT.
11219 * libgomp.h: Include gstdint.h.
11220 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11221 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11222
11223 2006-01-24 Richard Henderson <rth@redhat.com>
11224
11225 PR libgomp/25942
11226 * configure.ac: Add AM_MAINTAINER_MODE.
11227 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11228
11229 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11230
11231 * Makefile.in: Regenerate.
11232 * testsuite/Makefile.in: Regenerate.
11233 * aclocal.m4: Regenerate.
11234
11235 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11236
11237 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11238 Solaris.
11239 * configure.ac: Add check for loadavg.h.
11240 (link_gomp): Adjust comment.
11241 * configure: Regenerate.
11242 * config.h.in: Regenerate.
11243
11244 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11245
11246 PR libgomp/25877
11247 * configure.ac: Remove check for alloca.h.
11248 * configure: Regenerate.
11249 * config.h.in: Regenerate.
11250 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11251 * team.c: Remove use of alloca.h.
11252 Call gomp_alloca instead of alloca.
11253
11254 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11255
11256 PR libgomp/25877
11257 * team.c: Add include of alloca.h.
11258 * configure.ac: Add check for alloca.h.
11259 * configure: Regenerate.
11260 * config.h.in: Regenerate.
11261
11262 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR fortran/25219
11265 * testsuite/libgomp.fortran/pr25219.f90: New test.
11266
11267 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11268
11269 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11270 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11271 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11272 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11273 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11274 testsuite/libgomp.fortran/threadprivate1.f90,
11275 testsuite/libgomp.fortran/threadprivate2.f90,
11276 testsuite/libgomp.fortran/threadprivate3.f90,
11277 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11278 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11279 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11280 effective-target to TLS runtime.
11281
11282 * testsuite/libgomp.fortran/pr25162.f: Require
11283 effective-target TLS runtime.
11284
11285 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11286
11287 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11288 * testsuite/libgomp.c/nestedfn-3.c: New test.
11289
11290 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11291
11292 PR fortran/25162
11293 * testsuite/libgomp.fortran/pr25162.f: New test.
11294
11295 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11296
11297 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11298 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11299
11300 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11301
11302 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11303 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11304 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11305 single.c, team.c, work.c, config/linux/alpha/futex.h,
11306 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11307 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11308 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11309 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11310 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11311 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11312 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11313 FSF address.
11314
11315 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11316
11317 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11318 to nodist_noinst_HEADERS.
11319 * Makefile.in: Rebuilt.
11320
11321 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11322 add integer count field.
11323 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11324 omp_nest_lock_t type change.
11325 (omp_init_nest_lock): Likewise. Initialize count to 0.
11326 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11327 Increment count.
11328 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11329 Decrement count.
11330 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11331 Increment count if successful and return the new nesting level.
11332 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11333 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11334 * testsuite/libgomp.c/lib-1.c: New test.
11335 * testsuite/libgomp.fortran/lib1.f90: New test.
11336 * testsuite/libgomp.fortran/lib2.f: New test.
11337 * testsuite/libgomp.fortran/lib3.f: New test.
11338
11339 2005-11-17 Richard Henderson <rth@redhat.com>
11340
11341 PR 24845
11342 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11343 * configure.ac (link_gomp): New. Substitute it.
11344 (AC_CONFIG_FILES): Add libgomp.spec.
11345 * libgomp.spec.in: New file.
11346 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11347 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11348
11349 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11350
11351 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11352 reduction(-:var) behaving the same as reduction(+:var).
11353 * testsuite/libgomp.c/reduction-4.c: New test.
11354
11355 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11356
11357 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11358 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11359 testsuite/libgomp.c/copyin-3.c,
11360 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11361 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11362 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11363 testsuite/libgomp.c++/pr24455.C,
11364 testsuite/libgomp.fortran/threadprivate1.f90,
11365 testsuite/libgomp.fortran/threadprivate2.f90,
11366 testsuite/libgomp.fortran/threadprivate3.f90,
11367 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11368 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11369 testsuite/libgomp.fortran/omp_parse3.f90: Require
11370 effective-target TLS.
11371
11372 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11373
11374 * HEADER: Remove.
11375
11376 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11377
11378 PR libgomp/24797
11379 * team.c (initialize_team): Pass NULL rather than free as
11380 pthread_key_create destructor. Initialize thread specific data
11381 pointer in initial thread to a static local variable rather than
11382 malloced memory.
11383
11384 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11385
11386 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11387 its location to ld_library_path.
11388
11389 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11390
11391 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11392
11393 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11394
11395 * testsuite/libgomp.c: Rename from libgomp.dg.
11396
11397 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11398
11399 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11400 threadprivate variable 'i'.
11401
11402 2005-11-09 Jakub Jelinek <jakub@redhat.com>
11403
11404 * config/linux/s390/futex.h: New file.
11405 * configure.tgt: Use it.
11406
11407 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
11408 before the parallel.
11409
11410 2005-11-08 Jakub Jelinek <jakub@redhat.com>
11411
11412 PR c++/24734
11413 * testsuite/libgomp.c++/master-1.C: New test.
11414
11415 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11416
11417 * testsuite/libgomp.dg/copyin-3.c: New test.
11418
11419 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11420
11421 * testsuite/libgomp.fortran/retval1.f90: New test.
11422 * testsuite/libgomp.fortran/vla7.f90: New test.
11423
11424 2005-11-06 Jakub Jelinek <jakub@redhat.com>
11425
11426 * testsuite/libgomp.fortran/vla2.f90: New test.
11427 * testsuite/libgomp.fortran/vla3.f90: New test.
11428 * testsuite/libgomp.fortran/vla4.f90: New test.
11429 * testsuite/libgomp.fortran/vla5.f90: New test.
11430 * testsuite/libgomp.fortran/vla6.f90: New test.
11431
11432 2005-11-01 Jakub Jelinek <jakub@redhat.com>
11433
11434 * config/linux/sparc/futex.h: New file.
11435 * configure.tgt: Use it.
11436 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
11437
11438 * critical.c: Include stdlib.h.
11439 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
11440 ignoring return value.
11441 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
11442 LIBGOMP_CHECK_SYNC_BUILTINS check.
11443 * configure: Rebuilt.
11444
11445 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11446
11447 * testsuite/libgomp.fortran/vla1.f90: New test.
11448
11449 2005-10-31 Richard Henderson <rth@redhat.com>
11450
11451 * testsuite/libgomp.fortran/character2.f90: Fix race condition
11452 setting 's' in different threads.
11453
11454 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11455
11456 * libgomp.h (attribute_hidden, ialias): Define.
11457 * config/posix/proc.c (omp_get_num_procs): Add ialias.
11458 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
11459 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
11460 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11461 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11462 omp_test_lock, omp_test_nest_lock): Likewise.
11463 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
11464 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11465 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11466 omp_test_lock, omp_test_nest_lock): Likewise.
11467 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
11468 omp_get_dynamic, omp_get_nested): Likewise.
11469 * parallel.c (omp_get_num_threads, omp_get_max_threads,
11470 omp_get_thread_num, omp_in_parallel): Likewise.
11471 * fortran.c (ialias_redirect): Define.
11472 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
11473 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
11474 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
11475 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
11476 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
11477 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
11478 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
11479 omp_get_wtime): Add ialias_redirect.
11480
11481 2005-10-30 Jakub Jelinek <jakub@redhat.com>
11482
11483 * fortran.c: Include stdlib.h.
11484
11485 2005-10-29 Jakub Jelinek <jakub@redhat.com>
11486
11487 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
11488 * Makefile.in: Regenerated.
11489
11490 2005-10-28 Jakub Jelinek <jakub@redhat.com>
11491
11492 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
11493 * libgomp_f.h.in (omp_check_defines): New function.
11494 * env.c: Include libgomp_f.h.
11495 (initialize_env): Call omp_check_defines.
11496
11497 * testsuite/libgomp.dg/copyin-2.c: New test.
11498 * testsuite/libgomp.c++/copyin-2.C: New test.
11499 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
11500
11501 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
11502 * testsuite/libgomp.fortran/sharing2.f90: New test.
11503
11504 * testsuite/libgomp.dg/copyin-1.c: New test.
11505 * testsuite/libgomp.c++/copyin-1.C: New test.
11506
11507 2005-10-26 Jakub Jelinek <jakub@redhat.com>
11508
11509 * testsuite/libgomp.fortran/crayptr1.f90: New test.
11510
11511 * testsuite/libgomp.fortran/workshare1.f90: New test.
11512
11513 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
11514 only test.
11515 * libgomp.fortran/sharing1.f90: New test.
11516
11517 2005-10-24 Jakub Jelinek <jakub@redhat.com>
11518
11519 PR c++/24502
11520 * testsuite/libgomp.c++/loop-7.C: New test.
11521
11522 * testsuite/libgomp.dg/nestedfn-2.c: New test.
11523
11524 * testsuite/libgomp.dg/nestedfn-1.c: New test.
11525 * testsuite/libgomp.fortran/reduction6.f90: New test.
11526 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11527
11528 2005-10-23 Richard Henderson <rth@redhat.com>
11529
11530 * testsuite/libgomp.c++/ctor-1.C: New.
11531 * testsuite/libgomp.c++/ctor-2.C: New.
11532 * testsuite/libgomp.c++/ctor-3.C: New.
11533 * testsuite/libgomp.c++/ctor-4.C: New.
11534 * testsuite/libgomp.c++/ctor-5.C: New.
11535 * testsuite/libgomp.c++/ctor-6.C: New.
11536 * testsuite/libgomp.c++/ctor-7.C: New.
11537 * testsuite/libgomp.c++/ctor-8.C: New.
11538 * testsuite/libgomp.c++/ctor-9.C: New.
11539
11540 2005-10-21 Diego Novillo <dnovillo@redhat.com>
11541
11542 PR 24455
11543 * testsuite/libgomp.c++/pr24455-1.C: New test.
11544 * testsuite/libgomp.c++/pr24455.C: New test.
11545 * testsuite/libgomp.dg/pr24455-1.c: New test.
11546 * testsuite/libgomp.dg/pr24455.c: New test.
11547
11548 2005-10-20 Richard Henderson <rth@redhat.com>
11549
11550 * testsuite/libgomp.c++/loop-6.C: New.
11551 * testsuite/libgomp.dg/loop-3.c: New.
11552
11553 2005-10-20 Jakub Jelinek <jakub@redhat.com>
11554
11555 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11556 explicitly private.
11557 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
11558 explicitly shared.
11559
11560 2005-10-19 Diego Novillo <dnovillo@redhat.com>
11561
11562 * testsuite/libgomp.fortran/jacobi.f: New test.
11563
11564 2005-10-19 Richard Henderson <rth@redhat.com>
11565
11566 * configure.tgt (i?86-linux): Default to with_arch instead of
11567 CFLAGS. Add -mtune to match target_cpu.
11568 (x86_64-linux): Tune to i686.
11569
11570 * fortran.c (omp_test_nest_lock_): Fix typo.
11571
11572 2005-10-19 Jakub Jelinek <jakub@redhat.com>
11573
11574 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11575 gomp_ordered_sync): Do nothing if team->nthreads == 1.
11576 * testsuite/libgomp.dg/ordered-3.c: New test.
11577
11578 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
11579 Remove volatile keyword.
11580
11581 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
11582 in COMMON block to avoid warnings on 64-bit targets.
11583
11584 2005-10-18 Diego Novillo <dnovillo@redhat.com>
11585
11586 * testsuite/libgomp.dg/shared-3.c: New test.
11587
11588 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11589
11590 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
11591 * testsuite/libgomp.fortran/reduction5.f90: New test.
11592
11593 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11594
11595 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
11596 dg-options.
11597 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
11598 flush loop now that __sync_synchronize has proper memory barrier.
11599 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
11600 Add -ffixed-form to dg-options.
11601
11602 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11603
11604 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
11605 from subdirectories.
11606 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
11607 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
11608 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
11609 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
11610 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
11611 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
11612 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
11613 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
11614 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
11615 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
11616 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
11617 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
11618 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
11619 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
11620 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
11621 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
11622 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
11623 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
11624 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
11625 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
11626 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
11627 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
11628 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
11629 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
11630 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
11631
11632 2005-10-17 Jakub Jelinek <jakub@redhat.com>
11633
11634 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11635 lang_library_path exists. Use find instead of glob to gather tests.
11636 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11637
11638 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11639
11640 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11641 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11642 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11643 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11644 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11645 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11646 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11647 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11648 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11649 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11650 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11651 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11652 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11653
11654 2005-10-15 Jakub Jelinek <jakub@redhat.com>
11655
11656 * testsuite/libgomp.dg/vla-1.c: New test.
11657
11658 * testsuite/libgomp.fortran/reference2.f90: New test.
11659
11660 * testsuite/libgomp.fortran/character2.f90: Remove explicit
11661 declaration of omp_get_thread_num.
11662 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
11663 use omp_lib.
11664
11665 * testsuite/libgomp.fortran/reduction1.f90: New test.
11666 * testsuite/libgomp.fortran/reduction2.f90: New test.
11667 * testsuite/libgomp.fortran/reduction3.f90: New test.
11668 * testsuite/libgomp.fortran/reduction4.f90: New test.
11669
11670 2005-10-13 Richard Henderson <rth@redhat.com>
11671
11672 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11673 * Makefile.in: Regenerate.
11674 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11675 * libgomp.h: Include bar.h.
11676 (struct gomp_barrier): Remove.
11677 (struct gomp_team): Add barrier. Replace master_barrier with
11678 master_release. Replace threads with ordered_release.
11679 (struct gomp_thread): Replace barrier with release.
11680 * ordered.c (gomp_ordered_first): Update for ordered_release change.
11681 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11682 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11683 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11684 (GOMP_single_copy_end): Likewise.
11685 * team.c (gomp_threads_dock): New.
11686 (gomp_barrier_init, gomp_barrier_destroy): Remove.
11687 (gomp_thread_start): Use gomp_barrier_wait.
11688 (new_team, free_team): Update for gomp_team changes.
11689 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11690 (gomp_team_end): Use gomp_barrier_wait.
11691 (initialize_team): Update for gomp_thread changes.
11692 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11693 (gomp_work_share_end_nowait): Use atomic ops when available.
11694 * config/linux/bar.c, config/linux/bar.h: New files.
11695 * config/posix/bar.c, config/posix/bar.h: New files.
11696
11697 2005-10-13 Jakub Jelinek <jakub@redhat.com>
11698
11699 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11700 * testsuite/libgomp.dg/single-2.c: New test.
11701
11702 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11703 lang_link_flags): Unset, so that they aren't inherited from previously
11704 sourced *.exp.
11705
11706 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11707
11708 2005-10-12 Richard Henderson <rth@redhat.com>
11709
11710 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11711 (libgomp_init): Use lang_test_file, lang_library_path, and
11712 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
11713
11714 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11715 (lang_test_file, lang_link_flags): New.
11716 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11717
11718 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11719 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11720 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11721 testsuite/libgomp.c++/parallel-1.C,
11722 testsuite/libgomp.c++/reduction-1.C,
11723 testsuite/libgomp.c++/reduction-2.C,
11724 testsuite/libgomp.c++/reduction-3.C,
11725 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11726 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11727 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11728 New files, largely cribbed from the C testsuite.
11729
11730 2005-10-12 Jakub Jelinek <jakub@redhat.com>
11731
11732 * testsuite/libgomp.fortran/character1.f90: New test.
11733 * testsuite/libgomp.fortran/character2.f90: New test.
11734
11735 * testsuite/libgomp.dg/nested-1.c: New test.
11736 * testsuite/libgomp.dg/nested-2.c: New test.
11737 * testsuite/libgomp.fortran/do1.f90: New test.
11738 * testsuite/libgomp.fortran/do2.f90: New test.
11739
11740 * testsuite/libgomp.fortran/reference1.f90: New test.
11741
11742 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11743
11744 * testsuite/libgomp.dg/reduction-1.c: New test.
11745 * testsuite/libgomp.dg/reduction-2.c: New test.
11746 * testsuite/libgomp.dg/reduction-3.c: New test.
11747
11748 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11749
11750 * testsuite/libgomp.dg/atomic-1.c: New test.
11751 * testsuite/libgomp.dg/atomic-2.c: New test.
11752
11753 2005-10-09 Richard Henderson <rth@redhat.com>
11754
11755 * critical.c (atomic_lock): New.
11756 (initialize_critical): Initialize it.
11757 (GOMP_atomic_start, GOMP_atomic_end): New.
11758 * libgomp.map: Export them.
11759 * libgomp_g.h: Declare them.
11760
11761 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11762
11763 2005-10-02 Richard Henderson <rth@redhat.com>
11764
11765 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11766 to XCFLAGS instead of CFLAGS.
11767
11768 2005-09-30 Richard Henderson <rth@redhat.com>
11769
11770 * configure.ac: Determine whether -pthread or -lpthread is needed.
11771 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11772 * Makefine.in, configure: Rebuild.
11773
11774 2005-09-28 Richard Henderson <rth@redhat.com>
11775
11776 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11777 * testsuite/libgomp.dg/omp-single-3.c: New test.
11778
11779 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11780
11781 * testsuite/libgomp.dg/omp-single-2.c: New test.
11782 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11783
11784 2005-09-27 Richard Henderson <rth@redhat.com>
11785
11786 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11787 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11788
11789 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11790
11791 * testsuite/libgomp.dg/omp-loop03.c: New test.
11792
11793 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11794
11795 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11796
11797 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11798
11799 * testsuite/libgomp.dg/omp-single-1.c: New test.
11800 * testsuite/libgomp.dg/shared-1.c: Return 0.
11801 Add prototype for abort.
11802 * testsuite/libgomp.dg/shared-2.c: Likewise.
11803
11804 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11805
11806 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11807 constructs.
11808
11809 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11810
11811 * testsuite/libgomp.dg/shared-1.c: New test.
11812 * testsuite/libgomp.dg/shared-2.c: New test.
11813
11814 2005-09-24 Richard Henderson <rth@redhat.com>
11815
11816 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11817
11818 2005-09-24 Richard Henderson <rth@redhat.com>
11819
11820 * iter.c (gomp_iter_static_next): Round up when computing number
11821 of iterations. Don't bother distributing a remainder equally.
11822
11823 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11824 Don't call srand. Zero b before testing.
11825 (main): New.
11826
11827 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11828
11829 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11830 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11831
11832 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11833
11834 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11835 without !$omp end do, followed immediately by subroutine end.
11836
11837 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11838
11839 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11840
11841 2005-09-22 Richard Henderson <rth@redhat.com>
11842
11843 * critical.c (GOMP_critical_name_start): Change argument to void**.
11844 Reuse the pointer space if the mutex fits.
11845 (GOMP_critical_name_end): Likewise.
11846 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11847 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11848 (GOMP_critical_name_end): Likewise.
11849 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11850 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11851
11852 2005-09-20 Richard Henderson <rth@redhat.com>
11853
11854 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11855 (create_lock_lock): New.
11856 (initialize_critical): Initialize it.
11857 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11858 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11859
11860 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11861
11862 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11863
11864 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11865
11866 * testsuite/libgomp.dg/omp-loop01.c: New test.
11867 * testsuite/libgomp.dg/omp-loop02.c: New test.
11868
11869 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11870
11871 * configure.ac (AC_PROG_FC): Add.
11872 (USE_FORTRAN): New automake conditional.
11873 * configure: Rebuilt.
11874 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11875 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11876 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11877 Add rules to build them.
11878 * Makefile.in: Rebuilt.
11879 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11880 OMP_NEST_LOCK_KIND.
11881 * libgomp.map: Add Fortran wrappers.
11882 * libgomp_f.h.in: New file.
11883 * omp_lib.h.in: New file.
11884 * omp_lib.f90.in: New file.
11885 * fortran.c: New file.
11886 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11887 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11888 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11889 libgfortran has been built.
11890 * testsuite/libgomp.fortran/fortran.exp: New file.
11891 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11892 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11893 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11894 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11895 * testsuite/libgomp.fortran/omp_hello.f: New test.
11896 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11897 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11898 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11899 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11900 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11901 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11902 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11903 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11904
11905 2005-08-30 Richard Henderson <rth@redhat.com>
11906
11907 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11908 function for when aliases are not usable.
11909 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11910 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11911 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11912 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11913 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11914 GOMP_loop_ordered_guided_next): Likewise.
11915 * ordered.c (GOMP_ordered_start): Likewise.
11916
11917 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11918
11919 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11920 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11921 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11922 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11923 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11924 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11925 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11926 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11927 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11928
11929 2005-07-07 Eric Christopher <echristo@redhat.com>
11930 Diego Novillo <dnovillo@redhat.com>
11931
11932 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11933 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11934 up code.
11935 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11936 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11937 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11938 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11939 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11940 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11941 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11942
11943 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11944
11945 * TOPLEVEL.patch: Remove.
11946
11947 2005-05-16 Richard Henderson <rth@redhat.com>
11948
11949 * configure.ac: Test for clock_gettime.
11950 * config.h.in, configure: Rebuild.
11951 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11952 (omp_get_wtime): Use clock_gettime if available.
11953 (omp_get_wtick): Use clock_getres if available.
11954
11955 2005-05-11 Richard Henderson <rth@redhat.com>
11956
11957 * config/linux/ia64/futex.h: New file.
11958 * configure.tgt: Use it.
11959
11960 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11961
11962 2005-05-07 Richard Henderson <rth@redhat.com>
11963
11964 * config/linux/powerpc/futex.h: New file.
11965 * configure.tgt: Use it.
11966
11967 * config/linux/i486/futex.h: Merge ...
11968 * config/linux/x86_64/futex.h: ... into ...
11969 * config/linux/x86/futex.h: ... here.
11970 * configure.tgt: Update to match.
11971
11972 2005-05-06 Richard Henderson <rth@redhat.com>
11973
11974 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11975 * config/linux/i486/futex.h: Likewise.
11976 * config/linux/x86_64/futex.h: Likewise.
11977
11978 * config/linux/lock.c: New file.
11979 * config/linux/omp-lock.h: New file.
11980
11981 * critical.c, env.h: Don't include omp.h
11982 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11983 * config/posix/time.c: Likewise.
11984 * config/posix/omp-lock.h: New file.
11985 * libgomp.h: Include omp-lock.h and omp.h.
11986 * Makefile.am (nodist_include_HEADERS): New.
11987 (omp.h): New rule.
11988 * configure.ac (PERL): New.
11989 * mkomp_h.pl: New file.
11990 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11991 with templates.
11992 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11993
11994 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11995 build directory. Re-add -march=i486 hack.
11996
11997 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11998 (libgomp_link_flags): Remove.
11999 (libgomp_initialized): Remove.
12000 (libgomp_init): Don't protect from reinitialization. Copy code
12001 from libstdc++ for getting the multilib set correctly.
12002
12003 2005-05-05 Richard Henderson <rth@redhat.com>
12004
12005 * config/linux/alpha/futex.h: New file.
12006 * configure.tgt (alpha*-*-linux*): Use it.
12007
12008 * config/posix/mutex.c: New file.
12009 * config/posix/sem.c: Use libgomp.h.
12010
12011 * configure.tgt (x86_64-linux): Also test CC for -m32.
12012 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12013
12014 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12015 after $gccpath.
12016
12017 * Makefile.am (SUBDIRS): New.
12018 (libgomp_la_LDFLAGS): Add -lpthread.
12019 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12020 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12021
12022 * libgomp_g.h: New file.
12023 * libgomp.h: Split out all public declarations to libgomp_g.h.
12024 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12025 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12026 * config/linux/sem.h: Likewise.
12027 * config/posix/sem.h: Likewise.
12028
12029 * Makefile.am (AM_LDFLAGS): New.
12030 (libgomp_version_script): Split out from ...
12031 (libgomp_la_LDFLAGS): ... here.
12032 (libgomp_version_info): New.
12033 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12034 (LIBGOMP_ENABLE): New.
12035 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12036 (LIBGOMP_ENABLE_SYMVERS): New.
12037 * configure.ac (AC_INIT): Version 1.0.
12038 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12039 (enable-linux-futex): Likewise. Rename from enable-futex.
12040 (libtool_VERSION): New.
12041 (LIBGOMP_ENABLE_SYMVERS): Use it.
12042 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12043 * Makefile.in, aclocal.m4, configure: Rebuild.
12044
12045 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12046 (gomp_mutex_unlock_slow): Fix typo.
12047 * config/linux/sem.c: Similarly.
12048 (gomp_sem_post_slow): Fix typo.
12049 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12050 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12051 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12052
12053 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12054 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12055 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12056 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12057 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12058 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12059 LDFLAGS. Pull enable_futex check to top-level.
12060 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12061 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12062
12063 First attempt at real configury.
12064 * Makefile, config.h: Remove file.
12065 * Makefile.am, Makefile.in: New file.
12066 * acinclude.m4 aclocal.m4: New file.
12067 * configure.ac, configure.tgt, configure: New file.
12068
12069 * config/posix/lock.c: Rename from sys-lock.c.
12070 * config/posix/mutex.h: Rename from sys-mutex.h.
12071 * config/posix/sem.c: Rename from sys-sem.c.
12072 * config/posix/sem.h: Rename from sys-sem.h.
12073 * config/posix/proc.c: Rename from sys-proc.c.
12074 * config/posix/time.c: Rename from sys-proc.c.
12075
12076 * config/linux/mutex.c: New file.
12077 * config/linux/mutex.h: New file.
12078 * config/linux/sem.c: New file.
12079 * config/linux/sem.h: New file.
12080 * config/linux/i486/futex.h: New file.
12081 * config/linux/x86_64/futex.h: New file.
12082
12083 2005-05-04 Richard Henderson <rth@redhat.com>
12084
12085 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12086 * libgomp.h: Declare them.
12087 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12088 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12089
12090 2005-05-04 Richard Henderson <rth@redhat.com>
12091
12092 * libgomp-1 code drop
12093
12094 2005-05-04 Richard Henderson <rth@redhat.com>
12095
12096 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12097 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12098 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12099 (gomp_iter_static_next): Update.
12100 (gomp_ordered_static_next): Update.
12101 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12102 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12103 totally empty range.
12104 (gomp_loop_ordered_static_next): Refine test for calling
12105 gomp_ordered_static_next.
12106 * testsuite/ordered-1.c: Add case for more threads than iterations.
12107
12108 * iter.c (gomp_iter_runtime_next_locked): Remove.
12109 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12110 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12111 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12112 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12113 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12114 gomp_loop_ordered_guided_next): Downcase name, make static, add
12115 an external alias with the old name.
12116 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12117 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12118 switch and call one of the above static functions.
12119 * libgomp.h: Update.
12120
12121 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12122 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12123 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12124 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12125 GOMP_loop_ordered_guided_start): Update to match.
12126 * sections.c (GOMP_sections_start): Likewise.
12127 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12128
12129 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12130 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12131 Use bounds check instead of modulus.
12132 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12133 (gomp_ordered_last): Don't sync with ordered_owner here.
12134 (gomp_ordered_next): Likewise.
12135 (gomp_ordered_static_loop_next): Likewise.
12136 * loop.c, libgomp.h: Update to match.
12137
12138 * libgomp.h (GOMP_barrier): Declare.
12139
12140 * testsuite/barrier-1.c: New file.
12141 * testsuite/critical-1.c: New file.
12142 * testsuite/ordered-2.c: New file.
12143 * testsuite/ordered-1.c: New file.
12144 * testsuite/sections-1.c: New file.
12145 * testsuite/single-1.c: New file.
12146 * testsuite/Makefile (TESTS): Add them.
12147
12148 2005-05-04 Richard Henderson <rth@redhat.com>
12149
12150 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12151 * loop.c (GOMP_loop_static_start): If not the startup thread,
12152 acquire the mutex to wait for initialization complete.
12153 (GOMP_loop_ordered_static_start): Likewise.
12154 (GOMP_loop_ordered_runtime_start): Likewise.
12155 (GOMP_loop_ordered_static_first): Remove.
12156 (GOMP_loop_ordered_dynamic_first): Remove.
12157 (GOMP_loop_ordered_guided_first): Remove.
12158 (GOMP_loop_ordered_runtime_first): Remove.
12159 * ordered.c (gomp_ordered_loop_first): Post to own release when
12160 we're the first thread.
12161 (gomp_ordered_loop_last): Wait on release if not owner.
12162 (gomp_ordered_loop_next): Likewise.
12163 (gomp_ordered_static_loop_init): New.
12164 (gomp_ordered_static_loop_next): Use ordered_owner.
12165 (GOMP_ordered_start): Likewise.
12166 * work.c (gomp_new_work_share): Initialize ordered_owner.
12167
12168 2005-05-03 Richard Henderson <rth@redhat.com>
12169
12170 * Makefile (OPT): New.
12171 (CFLAGS): Use it.
12172
12173 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12174 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12175 * libgomp.h, libgomp.map, NOTES: Update to match.
12176
12177 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12178 Add initialized and thr members.
12179 (gomp_thread_start): Pause when initially spawned to wait for
12180 the whole team to be created.
12181 (gomp_team_start): Release team members at the end.
12182
12183 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12184 (f_foo_1): Use GOMP_loop_end.
12185 (f_foo_2): Use GOMP_loop_end_nowait.
12186
12187 * testsuite/loop-2.c: New file.
12188 * testsuite/Makefile (TESTS): Add it.
12189
12190 2005-05-03 Richard Henderson <rth@redhat.com>
12191
12192 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12193 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12194 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12195 initial work_share.
12196
12197 * testsuite/Makefile: New file.
12198 * testsuite/loop-1.c: New file.
12199
12200 2005-05-03 Richard Henderson <rth@redhat.com>
12201
12202 Initial implementation and checkin.
12203 \f
12204 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12205
12206 Copying and distribution of this file, with or without modification,
12207 are permitted in any medium without royalty provided the copyright
12208 notice and this notice are preserved.