]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
Workaround bogus warning in fibonacci_heap<K,V>::consolidate.
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
a1289887
MR
12019-11-18 Maciej W. Rozycki <macro@wdc.com>
2
3 * testsuite/Makefile.in: Regenerate.
4
8916ba87
AS
52019-11-15 Andrew Stubbs <ams@codesourcery.com>
6
7 * testsuite/libgomp.c/target-print-1.c: New file.
8 * testsuite/libgomp.fortran/target-print-1.f90: New file.
9 * testsuite/libgomp.oacc-c/print-1.c: New file.
10 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
11
237957cc
AS
122019-11-13 Andrew Stubbs <ams@codesourcery.com>
13 Kwok Cheung Yeung <kcy@codesourcery.com>
14 Julian Brown <julian@codesourcery.com>
15 Tom de Vries <tom@codesourcery.com>
16
17 * plugin/Makefrag.am: Add amdgcn plugin support.
18 * plugin/configfrag.ac: Likewise.
19 * plugin/plugin-gcn.c: New file.
20 * configure: Regenerate.
21 * Makefile.in: Regenerate.
22 * testsuite/Makefile.in: Regenerate.
23
cee16451
AS
242019-11-13 Andrew Stubbs <ams@codesourcery.com>
25
26 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
27 and use team_malloc variants.
28 (gomp_gcn_exit_kernel): Use team_free.
29 * libgomp.h (TEAM_ARENA_SIZE): Define.
30 (TEAM_ARENA_START): Define.
31 (TEAM_ARENA_FREE): Define.
32 (TEAM_ARENA_END): Define.
33 (team_malloc): New function.
34 (team_malloc_cleared): New function.
35 (team_free): New function.
36 * team.c (gomp_new_team): Initialize and use team_malloc.
37 (free_team): Use team_free.
38 (gomp_free_thread): Use team_free.
39 (gomp_pause_host): Use team_free.
40 * work.c (gomp_init_work_share): Use team_malloc.
41 (gomp_fini_work_share): Use team_free.
42
fa499995
AS
432019-11-13 Andrew Stubbs <ams@codesourcery.com>
44 Kwok Cheung Yeung <kcy@codesourcery.com>
45 Julian Brown <julian@codesourcery.com>
46 Tom de Vries <tom@codesourcery.com>
47
48 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
49 * Makefile.in: Regenerate.
50 * config.h.in (PLUGIN_GCN): Add new undef.
51 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
52 * config/gcn/affinity-fmt.c: New file.
53 * config/gcn/bar.c: New file.
54 * config/gcn/bar.h: New file.
55 * config/gcn/doacross.h: New file.
56 * config/gcn/icv-device.c: New file.
57 * config/gcn/oacc-target.c: New file.
58 * config/gcn/simple-bar.h: New file.
59 * config/gcn/target.c: New file.
60 * config/gcn/task.c: New file.
61 * config/gcn/team.c: New file.
62 * config/gcn/time.c: New file.
63 * configure.ac: Add amdgcn*-*-*.
64 * configure: Regenerate.
65 * configure.tgt: Add amdgcn*-*-*.
66 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
67 * libgomp.h (gcn_thrs): Add amdgcn variant.
68 (set_gcn_thrs): Likewise.
69 (gomp_thread): Likewise.
70 * oacc-int.h (goacc_thread): Likewise.
71 * oacc-target.c: New file.
72 * openacc.f90 (acc_device_gcn): New parameter.
73 * openacc.h (acc_device_t): Add acc_device_gcn.
74 * team.c (gomp_free_pool_helper): Add amdgcn support.
75
d2903ce0
AS
762019-11-13 Andrew Stubbs <ams@codesourcery.com>
77 Julian Brown <julian@codesourcery.com>
78
79 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
80 parameter.
81 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
82 queue constructor.
83 * oacc-host.c (host_openacc_async_construct): Add device parameter.
84 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
85 device parameter.
86
b3d14b3a
AS
872019-11-13 Andrew Stubbs <ams@codesourcery.com>
88
89 * configure.tgt (nvptx*-*-*): Add "accel" directory.
90 * config/nvptx/libgomp-plugin.c: Move ...
91 * config/accel/libgomp-plugin.c: ... to here.
92 * config/nvptx/lock.c: Move ...
93 * config/accel/lock.c: ... to here.
94 * config/nvptx/mutex.c: Move ...
95 * config/accel/mutex.c: ... to here.
96 * config/nvptx/mutex.h: Move ...
97 * config/accel/mutex.h: ... to here.
98 * config/nvptx/oacc-async.c: Move ...
99 * config/accel/oacc-async.c: ... to here.
100 * config/nvptx/oacc-cuda.c: Move ...
101 * config/accel/oacc-cuda.c: ... to here.
102 * config/nvptx/oacc-host.c: Move ...
103 * config/accel/oacc-host.c: ... to here.
104 * config/nvptx/oacc-init.c: Move ...
105 * config/accel/oacc-init.c: ... to here.
106 * config/nvptx/oacc-mem.c: Move ...
107 * config/accel/oacc-mem.c: ... to here.
108 * config/nvptx/oacc-plugin.c: Move ...
109 * config/accel/oacc-plugin.c: ... to here.
110 * config/nvptx/omp-lock.h: Move ...
111 * config/accel/omp-lock.h: ... to here.
112 * config/nvptx/openacc.f90: Move ...
113 * config/accel/openacc.f90: ... to here.
114 * config/nvptx/pool.h: Move ...
115 * config/accel/pool.h: ... to here.
116 * config/nvptx/proc.c: Move ...
117 * config/accel/proc.c: ... to here.
118 * config/nvptx/ptrlock.c: Move ...
119 * config/accel/ptrlock.c: ... to here.
120 * config/nvptx/ptrlock.h: Move ...
121 * config/accel/ptrlock.h: ... to here.
122 * config/nvptx/sem.c: Move ...
123 * config/accel/sem.c: ... to here.
124 * config/nvptx/sem.h: Move ...
125 * config/accel/sem.h: ... to here.
126 * config/nvptx/thread-stacksize.h: Move ...
127 * config/accel/thread-stacksize.h: ... to here.
128
62aee289
MR
1292019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
130 Tobias Burnus <tobias@codesourcery.com>
131 Frederik Harwath <frederik@codesourcery.com>
132 Thomas Schwinge <thomas@codesourcery.com>
133
134 libgomp/
135 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
136 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
137 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
138
a2c26c50
TB
1392019-11-11 Tobias Burnus <tobias@codesourcery.com>
140 Kwok Cheung Yeung <kcy@codesourcery.com>
141
142 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
143 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
144
6d4868f3
TS
1452019-11-11 Thomas Schwinge <thomas@codesourcery.com>
146
bfa1837b
TS
147 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
148
6d4868f3
TS
149 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
150 run'.
151 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
152 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
153
5d183d17
FH
1542019-11-06 Thomas Schwinge <thomas@codesourcery.com>
155
156 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
157 Add expected warnings about missing reduction clauses.
158 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
159 Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
161 Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
163 Likewise.
164
d8f03b03
TB
1652019-11-04 Tobias Burnus <tobias@codesourcery.com>
166
167 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
168 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
169 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
170 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
171 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
172 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
173
12fd2ec5
TB
1742019-11-04 Tobias Burnus <tobias@codesourcery.com>
175
176 PR fortran/92305
177 * testsuite/libgomp.fortran/allocatable2.f90: Use
178 unique numbers with 'stop'.
179 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
180 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
181 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
182 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
183 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
184
92e63bd2
TB
1852019-11-01 Tobias Burnus <tobias@codesourcery.com>
186
187 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
188 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
189 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
190 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
191 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
192 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
193
91ae0a46
TB
1942019-10-30 Tobias Burnus <tobias@codesourcery.com>
195
196 * testsuite/libgomp.fortran/target9.f90: New.
197
c425e66b
TB
1982019-10-30 Tobias Burnus <tobias@codesourcery.com>
199
200 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
201 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
202 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
203 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
204 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
205 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
206 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
207 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
208 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
209 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
210 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
211 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
212 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
213 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
214 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
215 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
216 * testsuite/libgomp.fortran/associate1.f90: Ditto.
217 * testsuite/libgomp.fortran/associate2.f90: Ditto.
218 * testsuite/libgomp.fortran/associate3.f90: Ditto.
219 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
220 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
221 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
222 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
223 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
224 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
225 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
226 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
227 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
228 * testsuite/libgomp.fortran/character1.f90: Ditto.
229 * testsuite/libgomp.fortran/character2.f90: Ditto.
230 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
231 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
232 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
233 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
234 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
235 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
236 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
237 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
238 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
239 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
240 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
241 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
242 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
243 * testsuite/libgomp.fortran/do1.f90: Ditto.
244 * testsuite/libgomp.fortran/do2.f90: Ditto.
245 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
246 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
247 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
248 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
249 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
250 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
251 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
252 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
253 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
254 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
255 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
256 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
257 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
258 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
259 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
260 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
261 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
262 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
263 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
264 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
265 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
266 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
267 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
268 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
269 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
270 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
271 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
272 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
273 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
274 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
275 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
276 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
277 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
278 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
279 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
280 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
281 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
282 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
283 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
284 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
285 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
286 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
287 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
288 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
289 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
290 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
291 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
292 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
293 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
294 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
295 * testsuite/libgomp.fortran/lib1.f90: Ditto.
296 * testsuite/libgomp.fortran/lib4.f90: Ditto.
297 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
298 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
299 * testsuite/libgomp.fortran/nested1.f90: Ditto.
300 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
301 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
302 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
303 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
304 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
305 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
306 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
307 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
308 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
309 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
310 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
311 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
312 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
313 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
314 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
315 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
316 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
317 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
318 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
319 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
320 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
321 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
322 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
323 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
324 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
325 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
326 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
327 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
328 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
329 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
330 * testsuite/libgomp.fortran/pr28390.f: Ditto.
331 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
332 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
333 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
334 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
335 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
336 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
337 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
338 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
339 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
340 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
341 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
342 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
343 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
344 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
345 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
346 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
347 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
348 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
349 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
350 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
351 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
352 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
353 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
354 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
355 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
356 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
357 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
358 * testsuite/libgomp.fortran/reference1.f90: Ditto.
359 * testsuite/libgomp.fortran/reference2.f90: Ditto.
360 * testsuite/libgomp.fortran/retval1.f90: Ditto.
361 * testsuite/libgomp.fortran/retval2.f90: Ditto.
362 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
363 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
364 * testsuite/libgomp.fortran/simd1.f90: Ditto.
365 * testsuite/libgomp.fortran/simd2.f90: Ditto.
366 * testsuite/libgomp.fortran/simd3.f90: Ditto.
367 * testsuite/libgomp.fortran/simd4.f90: Ditto.
368 * testsuite/libgomp.fortran/simd5.f90: Ditto.
369 * testsuite/libgomp.fortran/simd6.f90: Ditto.
370 * testsuite/libgomp.fortran/simd7.f90: Ditto.
371 * testsuite/libgomp.fortran/stack.f90: Ditto.
372 * testsuite/libgomp.fortran/strassen.f90: Ditto.
373 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
374 * testsuite/libgomp.fortran/tabs2.f: Ditto.
375 * testsuite/libgomp.fortran/target1.f90: Ditto.
376 * testsuite/libgomp.fortran/target2.f90: Ditto.
377 * testsuite/libgomp.fortran/target3.f90: Ditto.
378 * testsuite/libgomp.fortran/target4.f90: Ditto.
379 * testsuite/libgomp.fortran/target5.f90: Ditto.
380 * testsuite/libgomp.fortran/target6.f90: Ditto.
381 * testsuite/libgomp.fortran/target7.f90: Ditto.
382 * testsuite/libgomp.fortran/target8.f90: Ditto.
383 * testsuite/libgomp.fortran/task1.f90: Ditto.
384 * testsuite/libgomp.fortran/task2.f90: Ditto.
385 * testsuite/libgomp.fortran/task3.f90: Ditto.
386 * testsuite/libgomp.fortran/task4.f90: Ditto.
387 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
388 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
389 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
390 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
391 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
392 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
393 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
394 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
395 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
396 * testsuite/libgomp.fortran/udr1.f90: Ditto.
397 * testsuite/libgomp.fortran/udr10.f90: Ditto.
398 * testsuite/libgomp.fortran/udr11.f90: Ditto.
399 * testsuite/libgomp.fortran/udr12.f90: Ditto.
400 * testsuite/libgomp.fortran/udr13.f90: Ditto.
401 * testsuite/libgomp.fortran/udr14.f90: Ditto.
402 * testsuite/libgomp.fortran/udr15.f90: Ditto.
403 * testsuite/libgomp.fortran/udr2.f90: Ditto.
404 * testsuite/libgomp.fortran/udr3.f90: Ditto.
405 * testsuite/libgomp.fortran/udr4.f90: Ditto.
406 * testsuite/libgomp.fortran/udr5.f90: Ditto.
407 * testsuite/libgomp.fortran/udr6.f90: Ditto.
408 * testsuite/libgomp.fortran/udr7.f90: Ditto.
409 * testsuite/libgomp.fortran/udr8.f90: Ditto.
410 * testsuite/libgomp.fortran/udr9.f90: Ditto.
411 * testsuite/libgomp.fortran/vla1.f90: Ditto.
412 * testsuite/libgomp.fortran/vla2.f90: Ditto.
413 * testsuite/libgomp.fortran/vla3.f90: Ditto.
414 * testsuite/libgomp.fortran/vla4.f90: Ditto.
415 * testsuite/libgomp.fortran/vla5.f90: Ditto.
416 * testsuite/libgomp.fortran/vla6.f90: Ditto.
417 * testsuite/libgomp.fortran/vla7.f90: Ditto.
418 * testsuite/libgomp.fortran/vla8.f90: Ditto.
419 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
420 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
421
01509e2f
TB
4222019-10-30 Tobias Burnus <tobias@codesourcery.com>
423
424 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
425 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
426 Ditto; add 'dg-do run' for torture testing.
427 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
428 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
429 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
430 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
431 * testsuite/libgomp.fortran/pr28390.f: Ditto.
432 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
433 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
434 * testsuite/libgomp.fortran/task2.f90: Ditto.
435 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
436 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
437 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
438 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
439 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
440 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
441
ffbdd78a
TB
4422019-10-28 Tobias Burnus <tobias@codesourcery.com>
443
444 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
445 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
446 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
447 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
448 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
449 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
450 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
451 Use 'stop' not abort().
452 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
453 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
454 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
455 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
456 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
457 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
458 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
459 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
460 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
461 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
462 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
463 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
464 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
465 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
466 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
467 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
468 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
469 Ditto.
470 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
471 Ditto.
472 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
473 Ditto.
474 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
475 Ditto.
476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
477 Ditto.
478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
479 Ditto.
480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
481 Ditto.
482 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
483 Ditto.
484 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
485 Ditto.
486 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
487 Ditto.
488 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
489 Ditto.
490 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
491 Ditto.
492 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
493 Ditto.
494 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
495 Ditto.
496 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
497 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
498 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
499 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
500 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
501 Likewise and also add 'dg-do run'.
502 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
503 Ditto.
504
ec084613
CP
5052019-10-25 Cesar Philippidis <cesar@codesourcery.com>
506 Tobias Burnus <tobias@codesourcery.com>
507
508 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
509 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
510 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
511
77ef3394
JJ
5122019-10-14 Jakub Jelinek <jakub@redhat.com>
513
514 PR libgomp/92081
515 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
516 than 0.
517
08c14aaa
TB
5182019-10-11 Tobias Burnus <tobias@codesourcery.com>
519
520 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
521 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
522
6bbead0c
TS
5232019-10-09 Thomas Schwinge <thomas@codesourcery.com>
524
525 PR middle-end/92036
526 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
527 file.
528
eba3dee8
TB
5292019-10-09 Tobias Burnus <tobias@codesourcery.com>
530
531 PR testsuite/91884
532 * testsuite/libgomp.fortran/fortran.exp: Conditionally
533 add -lquadmath.
534 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
535
7d48e14f
JJ
5362019-10-09 Jakub Jelinek <jakub@redhat.com>
537
538 PR libgomp/92028
539 * target.c (gomp_map_vars_internal): Readd the previous
540 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
541 though do that just in the !not_found_cnt case.
542
65b67cf3
TB
5432019-10-08 Tobias Burnus <tobias@codesourcery.com>
544
545 * gfortran.dg/gomp/target-simd.f90: New.
546
6c7e076b
JB
5472019-10-02 Julian Brown <julian@codesourcery.com>
548 Cesar Philippidis <cesar@codesourcery.com>
549
550 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
551 * target.c (FIELD_TGT_EMPTY): Define.
552 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
553 as switch instead of list of ifs.
554 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
555
d61bff85
AT
5562019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
557
558 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
559 include. Replace alloca () with __builtin_alloca ().
560 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
561
810f316d
JJ
5622019-10-01 Jakub Jelinek <jakub@redhat.com>
563
564 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
565 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
566 * oacc-parallel.c: Don't include "libgomp_g.h".
567 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
568 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
569 * aclocal.m4: Regenerated.
570 * config.h.in: Regenerated.
571 * configure: Regenerated.
572 * Makefile.in: Regenerated.
573
d7f9ee98
KCY
5742019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
575
576 * libgomp_g.h: Include stdint.h instead of gstdint.h.
577
e9085da5
MR
5782019-09-27 Maciej W. Rozycki <macro@wdc.com>
579
580 * configure: Regenerate.
581
c28712be
TB
5822019-09-13 Tobias Burnus <tobias@codesourcery.com>
583
584 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
585 string is initialized.
586
3c086f8d
FW
5872019-09-06 Florian Weimer <fweimer@redhat.com>
588
589 * configure: Regenerate.
590
c6c2d1bc
CLT
5912019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
592
593 PR other/79543
594 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
595 scanning to conform to the GNU Coding Standards.
596 * configure: Regenerate.
597
5cb72d83
JJ
5982019-08-28 Jakub Jelinek <jakub@redhat.com>
599
600 PR libgomp/91530
601 * testsuite/libgomp.c/scan-21.c: New test.
602 * testsuite/libgomp.c/scan-22.c: New test.
603
0ad7981c
JJ
6042019-08-27 Jakub Jelinek <jakub@redhat.com>
605
606 PR libgomp/91530
607 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
608 targets.
609 * testsuite/libgomp.c/scan-12.c: Likewise.
610 * testsuite/libgomp.c/scan-13.c: Likewise.
611 * testsuite/libgomp.c/scan-14.c: Likewise.
612 * testsuite/libgomp.c/scan-15.c: Likewise.
613 * testsuite/libgomp.c/scan-16.c: Likewise.
614 * testsuite/libgomp.c/scan-17.c: Likewise.
615 * testsuite/libgomp.c/scan-18.c: Likewise.
616 * testsuite/libgomp.c/scan-19.c: Likewise.
617 * testsuite/libgomp.c/scan-20.c: Likewise.
618 * testsuite/libgomp.c++/scan-9.C: Likewise.
619 * testsuite/libgomp.c++/scan-10.C: Likewise.
620 * testsuite/libgomp.c++/scan-11.C: Likewise.
621 * testsuite/libgomp.c++/scan-12.C: Likewise.
622 * testsuite/libgomp.c++/scan-14.C: Likewise.
623 * testsuite/libgomp.c++/scan-15.C: Likewise.
624 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
625 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
626 * testsuite/libgomp.c++/scan-16.C: Likewise.
627
1e67491a
TK
6282019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
629
630 PR fortran/91473
631 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
632 -std=legacy so invalid code in the test case is accepted.
633
393fdeb1
TK
6342019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
635
636 PR fortran/91422
637 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
638 dimension.
639
8860d270
JJ
6402019-08-08 Jakub Jelinek <jakub@redhat.com>
641
642 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
643 perform the lookup in the first loop only if !not_found_cnt, otherwise
644 perform lookups for it in the second loop guarded with
645 if (not_found_cnt || has_firstprivate).
646 * testsuite/libgomp.c/target-37.c: New test.
647 * testsuite/libgomp.c++/target-22.C: New test.
648
398e3feb
JJ
6492019-08-07 Jakub Jelinek <jakub@redhat.com>
650
651 * testsuite/libgomp.c/target-18.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.
655 * testsuite/libgomp.c++/target-9.C (struct S): New type.
656 (foo): Use use_device_addr clause instead of use_device_ptr clause
657 where required by OpenMP 5.0, add further tests for both use_device_ptr
658 and use_device_addr clauses. Add t and u arguments.
659 (main): Adjust caller.
660
d81ab49d
JJ
6612019-08-06 Jakub Jelinek <jakub@redhat.com>
662
663 * testsuite/libgomp.c++/loop-13.C: New test.
664 * testsuite/libgomp.c++/loop-14.C: New test.
665 * testsuite/libgomp.c++/loop-15.C: New test.
666
c3ac76aa
JJ
6672019-07-31 Jakub Jelinek <jakub@redhat.com>
668
669 PR middle-end/91301
670 * testsuite/libgomp.c++/for-27.C: New test.
671
8dc63166
SK
6722019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
673
393fdeb1 674 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8dc63166 675 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
393fdeb1 676
554a530f
JJ
6772019-07-20 Jakub Jelinek <jakub@redhat.com>
678
679 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
680
6cda84b5
JJ
6812019-07-08 Jakub Jelinek <jakub@redhat.com>
682
683 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
684 * testsuite/libgomp.c++/scan-16.C: Likewise.
685
1f52d1a8
JJ
6862019-07-06 Jakub Jelinek <jakub@redhat.com>
687
6f67abcd
JJ
688 * testsuite/libgomp.c/scan-19.c: New test.
689 * testsuite/libgomp.c/scan-20.c: New test.
690
1f52d1a8
JJ
691 * testsuite/libgomp.c/scan-11.c: New test.
692 * testsuite/libgomp.c/scan-12.c: New test.
693 * testsuite/libgomp.c/scan-13.c: New test.
694 * testsuite/libgomp.c/scan-14.c: New test.
695 * testsuite/libgomp.c/scan-15.c: New test.
696 * testsuite/libgomp.c/scan-16.c: New test.
697 * testsuite/libgomp.c/scan-17.c: New test.
698 * testsuite/libgomp.c/scan-18.c: New test.
699 * testsuite/libgomp.c++/scan-9.C: New test.
700 * testsuite/libgomp.c++/scan-10.C: New test.
701 * testsuite/libgomp.c++/scan-11.C: New test.
702 * testsuite/libgomp.c++/scan-12.C: New test.
703 * testsuite/libgomp.c++/scan-13.C: New test.
704 * testsuite/libgomp.c++/scan-14.C: New test.
705 * testsuite/libgomp.c++/scan-15.C: New test.
706 * testsuite/libgomp.c++/scan-16.C: New test.
707
2f03073f
JJ
7082019-07-04 Jakub Jelinek <jakub@redhat.com>
709
710 * testsuite/libgomp.c/scan-9.c: New test.
711 * testsuite/libgomp.c/scan-10.c: New test.
712
2f6bb511
JJ
7132019-07-03 Jakub Jelinek <jakub@redhat.com>
714
715 * testsuite/libgomp.c++/scan-1.C: New test.
716 * testsuite/libgomp.c++/scan-2.C: New test.
717 * testsuite/libgomp.c++/scan-3.C: New test.
718 * testsuite/libgomp.c++/scan-4.C: New test.
719 * testsuite/libgomp.c++/scan-5.C: New test.
720 * testsuite/libgomp.c++/scan-6.C: New test.
721 * testsuite/libgomp.c++/scan-7.C: New test.
722 * testsuite/libgomp.c++/scan-8.C: New test.
723 * testsuite/libgomp.c/scan-1.c: New test.
724 * testsuite/libgomp.c/scan-2.c: New test.
725 * testsuite/libgomp.c/scan-3.c: New test.
726 * testsuite/libgomp.c/scan-4.c: New test.
727 * testsuite/libgomp.c/scan-5.c: New test.
728 * testsuite/libgomp.c/scan-6.c: New test.
729 * testsuite/libgomp.c/scan-7.c: New test.
730 * testsuite/libgomp.c/scan-8.c: New test.
731
bd194a51
TS
7322019-06-18 Thomas Schwinge <thomas@codesourcery.com>
733
85fca03a
TS
734 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
735 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
736 Likewise.
737
bd194a51
TS
738 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
739 check.
740
6652161e
CP
7412019-06-18 Cesar Philippidis <cesar@codesourcery.com>
742
743 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
744 file.
745
3a37d6f6
TS
7462019-06-18 Thomas Schwinge <thomas@codesourcery.com>
747
4017da8d
TS
748 PR fortran/90743
749 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
750 case.
751 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
752 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
753 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
754 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
755
6f7c1f65
TS
756 PR testsuite/90861
757 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
758
3a37d6f6
TS
759 PR middle-end/90862
760 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
761
f45ce17d
TV
7622019-06-16 Tom de Vries <tdevries@suse.de>
763
764 PR tree-optimization/89376
765 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
766
00908992
TV
7672019-06-15 Tom de Vries <tdevries@suse.de>
768
769 PR tree-optimization/89713
770 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
771 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
772
211b7533
JJ
7732019-06-15 Jakub Jelinek <jakub@redhat.com>
774
775 PR middle-end/90779
776 * testsuite/libgomp.c/pr90779.c: New test.
777 * testsuite/libgomp.fortran/pr90779.f90: New test.
778
120a01d1
TV
7792019-06-15 Tom de Vries <tdevries@suse.de>
780
781 PR tree-optimization/90009
782 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
783
c29c92c7
FX
7842019-06-13 Feng Xue <fxue@os.amperecomputing.com>
785
786 PR tree-optimization/89713
787 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
788
ce9c4ec3
JJ
7892019-06-11 Jakub Jelinek <jakub@redhat.com>
790
791 PR target/90811
792 * testsuite/libgomp.c/pr90811.c: New test.
793
28b3a77c
JJ
7942019-06-05 Jakub Jelinek <jakub@redhat.com>
795
796 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
797 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
798
7855700e
JJ
7992019-06-04 Jakub Jelinek <jakub@redhat.com>
800
801 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
802 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
803 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
804 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
805
a7155c2e
RO
8062019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
807
808 * configure.ac: Call AX_COUNT_CPUS.
809 Substitute CPU_COUNT.
810 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
811 count fallback.
812 * aclocal.m4: Regenerate.
813 * configure: Regenerate.
814 * Makefile.in, testsuite/Makefile.in: Regenerate.
815
7e47198b
JJ
8162019-05-29 Jakub Jelinek <jakub@redhat.com>
817
818 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
819 to ...
820 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
821 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
822 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
823
fcfb8032
JJ
8242019-05-27 Jakub Jelinek <jakub@redhat.com>
825
8e7757ba
JJ
826 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
827
36c7a3ff
JJ
828 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
829
fcfb8032
JJ
830 PR libgomp/90641
831 * work.c (gomp_init_work_share): Instead of aligning final ordered
832 value to multiples of long long alignment, align to that the
833 first part (ordered team ids) and if inline_ordered_team_ids
834 is not on a long long alignment boundary within the structure,
835 use __alignof__ (long long) - 1 pad size always.
836 * loop.c (GOMP_loop_start): Fix *mem computation if
837 inline_ordered_team_ids is not aligned on long long alignment boundary
838 within the structure.
839 * loop-ull.c (GOMP_loop_ull_start): Likewise.
840 * sections.c (GOMP_sections2_start): Likewise.
841
b5c26449
JJ
8422019-05-24 Jakub Jelinek <jakub@redhat.com>
843
6c7ae8c5
JJ
844 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
845 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
846
b5c26449
JJ
847 PR libgomp/90585
848 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
849 HAVE_INTTYPES_H is defined.
850 (print_uint64_t): New typedef.
851 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
852 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
853 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
854 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
855 before casting to void *.
856 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
857 * oacc-mem.c: Don't include config.h nor stdint.h.
858 * target.c: Don't include config.h.
859 * oacc-cuda.c: Likewise.
860 * oacc-host.c: Don't include stdint.h.
861
3e03ed66
JJ
8622019-05-20 Jakub Jelinek <jakub@redhat.com>
863
864 PR libgomp/90527
865 * alloc.c (_GNU_SOURCE): Define.
866
5fae049d
TS
8672019-05-17 Thomas Schwinge <thomas@codesourcery.com>
868
869 * acc_prof.h: New file.
870 * oacc-profiling.c: Likewise.
871 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
872 Add these, respectively.
873 * Makefile.in: Regenerate.
874 * env.c (initialize_env): Call goacc_profiling_initialize.
875 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
876 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
877 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
878 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
879 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
880 acc_prof_register, acc_prof_unregister, and acc_register_library.
881 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
882 GOMP_PLUGIN_goacc_thread.
883 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
884 prof_callbacks_enabled members.
885 (goacc_prof_enabled, goacc_profiling_initialize)
886 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
887 (goacc_profiling_dispatch): Declare.
888 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
889 (GOACC_PROFILING_SETUP_P): Define.
890 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
891 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
892 OpenACC Profiling Interface.
893 * oacc-cuda.c (acc_get_current_cuda_device)
894 (acc_get_current_cuda_context, acc_get_cuda_stream)
895 (acc_set_cuda_stream): Likewise.
896 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
897 (acc_init, acc_set_device_type, acc_get_device_type)
898 (acc_get_device_num, goacc_lazy_initialize): Likewise.
899 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
900 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
901 (acc_unmap_data, present_create_copy, delete_copyout)
902 (update_dev_host): Likewise.
903 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
904 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
905 Likewise.
906 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
907 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
908 Likewise.
909 * libgomp.texi: Update.
910 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
911 file.
912 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
914 Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
916 Likewise.
917 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
918 Likewise.
919 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
920 Likewise.
921
1f4c5b9b
CLT
9222019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
923
924 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
925 (struct goacc_asyncqueue_list): Likewise.
926 (goacc_aq): Likewise.
927 (goacc_aq_list): Likewise.
928 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
929 (GOMP_OFFLOAD_openacc_async_test): Remove.
930 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
931 (GOMP_OFFLOAD_openacc_async_wait): Remove.
932 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
933 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
934 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
935 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
936 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
937 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
938 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
939 (GOMP_OFFLOAD_openacc_async_exec): Declare.
940 (GOMP_OFFLOAD_openacc_async_construct): Declare.
941 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
942 (GOMP_OFFLOAD_openacc_async_test): Declare.
943 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
944 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
945 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
946 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
947 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
948
949 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
950 (gomp_acc_insert_pointer): Adjust declaration.
951 (gomp_copy_host2dev): New declaration.
952 (gomp_copy_dev2host): Likewise.
953 (gomp_map_vars_async): Likewise.
954 (gomp_unmap_tgt): Likewise.
955 (gomp_unmap_vars_async): Likewise.
956 (gomp_fini_device): Likewise.
957
958 * oacc-async.c (get_goacc_thread): New function.
959 (get_goacc_thread_device): New function.
960 (lookup_goacc_asyncqueue): New function.
961 (get_goacc_asyncqueue): New function.
962 (acc_async_test): Adjust code to use new async design.
963 (acc_async_test_all): Likewise.
964 (acc_wait): Likewise.
965 (acc_wait_async): Likewise.
966 (acc_wait_all): Likewise.
967 (acc_wait_all_async): Likewise.
968 (goacc_async_free): New function.
969 (goacc_init_asyncqueues): Likewise.
970 (goacc_fini_asyncqueues): Likewise.
971 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
972 design.
973 (acc_set_cuda_stream): Likewise.
974 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
975 (host_openacc_register_async_cleanup): Remove.
976 (host_openacc_async_exec): New function.
977 (host_openacc_async_test): Adjust parameters.
978 (host_openacc_async_test_all): Remove.
979 (host_openacc_async_wait): Remove.
980 (host_openacc_async_wait_async): Remove.
981 (host_openacc_async_wait_all): Remove.
982 (host_openacc_async_wait_all_async): Remove.
983 (host_openacc_async_set_async): Remove.
984 (host_openacc_async_synchronize): New function.
985 (host_openacc_async_serialize): New function.
986 (host_openacc_async_host2dev): New function.
987 (host_openacc_async_dev2host): New function.
988 (host_openacc_async_queue_callback): New function.
989 (host_openacc_async_construct): New function.
990 (host_openacc_async_destruct): New function.
991 (struct gomp_device_descr host_dispatch): Remove initialization of old
992 interface, add intialization of new async sub-struct.
993 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
994 (goacc_attach_host_thread_to_device): Remove old async code usage.
995 * oacc-int.h (goacc_init_asyncqueues): New declaration.
996 (goacc_fini_asyncqueues): Likewise.
997 (goacc_async_copyout_unmap_vars): Likewise.
998 (goacc_async_free): Likewise.
999 (get_goacc_asyncqueue): Likewise.
1000 (lookup_goacc_asyncqueue): Likewise.
1001 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1002 design.
1003 (present_create_copy): Adjust code to use new async design.
1004 (delete_copyout): Likewise.
1005 (update_dev_host): Likewise.
1006 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1007 async design.
1008 (gomp_acc_remove_pointer): Adjust code to use new async design.
1009 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1010 design.
1011 (GOACC_enter_exit_data): Likewise.
1012 (goacc_wait): Likewise.
1013 (GOACC_update): Likewise.
1014 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1015 when called, warn as obsolete in comment.
1016 * target.c (goacc_device_copy_async): New function.
1017 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1018 add goacc_device_copy_async case.
1019 (gomp_copy_dev2host): Likewise.
1020 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1021 (gomp_map_pointer): Likewise.
1022 (gomp_map_fields_existing): Likewise.
1023 (gomp_map_vars_internal): New always_inline function, renamed from
1024 gomp_map_vars.
1025 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1026 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1027 passing goacc_asyncqueue argument.
1028 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1029 (gomp_unref_tgt): New function.
1030 (gomp_unmap_vars_internal): New always_inline function, renamed from
1031 gomp_unmap_vars.
1032 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1033 (gomp_unmap_vars_async): Implement by calling
1034 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1035 (gomp_fini_device): New function.
1036 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1037 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1038 new async interface.
1039 (gomp_target_fini): Adjust code to call gomp_fini_device.
1040
1041 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1042 (struct ptx_stream): Remove.
1043 (struct nvptx_thread): Remove current_stream field.
1044 (cuda_map_create): Remove.
1045 (cuda_map_destroy): Remove.
1046 (map_init): Remove.
1047 (map_fini): Remove.
1048 (map_pop): Remove.
1049 (map_push): Remove.
1050 (struct goacc_asyncqueue): Define.
1051 (struct nvptx_callback): Define.
1052 (struct ptx_free_block): Define.
1053 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1054 stream_lock, and next fields.
1055 (enum ptx_event_type): Remove.
1056 (struct ptx_event): Remove.
1057 (ptx_event_lock): Remove.
1058 (ptx_events): Remove.
1059 (init_streams_for_device): Remove.
1060 (fini_streams_for_device): Remove.
1061 (select_stream_for_async): Remove.
1062 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1063 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1064 case.
1065 (nvptx_open_device): Add free_blocks initialization, remove
1066 init_streams_for_device call.
1067 (nvptx_close_device): Remove fini_streams_for_device call, add
1068 free_blocks destruct code.
1069 (event_gc): Remove.
1070 (event_add): Remove.
1071 (nvptx_exec): Adjust parameters and code.
1072 (nvptx_free): Likewise.
1073 (nvptx_host2dev): Remove.
1074 (nvptx_dev2host): Remove.
1075 (nvptx_set_async): Remove.
1076 (nvptx_async_test): Remove.
1077 (nvptx_async_test_all): Remove.
1078 (nvptx_wait): Remove.
1079 (nvptx_wait_async): Remove.
1080 (nvptx_wait_all): Remove.
1081 (nvptx_wait_all_async): Remove.
1082 (nvptx_get_cuda_stream): Remove.
1083 (nvptx_set_cuda_stream): Remove.
1084 (GOMP_OFFLOAD_alloc): Adjust code.
1085 (GOMP_OFFLOAD_free): Likewise.
1086 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1087 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1088 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1089 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1090 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1091 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1092 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1093 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1094 (cuda_free_argmem): New function.
1095 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1096 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1097 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1098 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1099 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1100 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1101 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1102 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1103 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1104 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1105 (cuda_callback_wrapper): New function.
1106 (cuda_memcpy_sanity_check): New function.
1107 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1108 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1109 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1110 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1111
da2d30c1
TS
11122019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1113
1114 PR target/87835
1115 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1116
2bbbfa4e
TS
11172019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1118
1119 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1120
bbf1efe1
KB
11212019-03-27 Kevin Buettner <kevinb@redhat.com>
1122
1123 * team.c (gomp_team_start): Initialize pool->threads[0].
1124
1241136c
TS
11252019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1126
b03d721a
TS
1127 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1128 "-foffload=$offload_target".
1129 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1130 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1131 * testsuite/lib/libgomp.exp
1132 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1133 as (conceptually) merged into
1134 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1135 users.
1136
0a0384b4
TS
1137 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1138 * testsuite/libgomp-test-support.exp.in: Adjust.
1139 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1140 openacc_device_types_s.
1141 (offload_target_to_openacc_device_type): New proc.
1142 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1143 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1144 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1145 * Makefile.in: Regenerate.
1146 * configure: Likewise.
1147 * testsuite/Makefile.in: Likewise.
1148
ee332b4a
TS
1149 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1150 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1151 instead of OFFLOAD_TARGETS.
1152 * target.c (gomp_target_init): Adjust.
1153 * testsuite/libgomp-test-support.exp.in: Likewise.
1154 * testsuite/lib/libgomp.exp: Likewise. Populate
1155 openacc_device_types_s instead of offload_targets_s_openacc.
1156 (check_effective_target_openacc_nvidia_accel_selected)
1157 (check_effective_target_openacc_host_selected): Adjust.
1158 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1159 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1160 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1161 * Makefile.in: Regenerate.
1162 * config.h.in: Likewise.
1163 * configure: Likewise.
1164 * testsuite/Makefile.in: Likewise.
1165
1241136c
TS
1166 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1167 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1168 "offloading: supported, but hardware not accessible".
1169 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1170 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1171
19695f4d
CLT
11722019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1173
1174 PR c/87924
1175 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1176 goacc_wait().
1177 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1178 and related adjustment.
1179
8b44f8ec
JJ
11802019-01-30 Jakub Jelinek <jakub@redhat.com>
1181
1182 PR c++/88988
1183 * testsuite/libgomp.c++/pr88988.C: New test.
1184
be3a87e7
JJ
11852019-01-28 Jakub Jelinek <jakub@redhat.com>
1186
1187 PR middle-end/89002
1188 * testsuite/libgomp.c/pr89002.c: New test.
1189
497ef4d7
RB
11902019-01-28 Richard Biener <rguenther@suse.de>
1191
1192 PR testsuite/89064
1193 PR tree-optimization/86865
1194 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1195
738c56d4
TV
11962019-01-24 Tom de Vries <tdevries@suse.de>
1197
1198 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1199 once instantiated_devices drops to 0.
1200
4a75460b
TV
12012019-01-23 Tom de Vries <tdevries@suse.de>
1202
1203 PR target/PR88946
1204 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1205 cuMemFree.
1206 (nvptx_exec): Don't call map_push if mapnum == 0.
1207 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1208
4fef8e4d
TV
12092019-01-23 Tom de Vries <tdevries@suse.de>
1210
1211 PR target/88941
1212 PR target/88939
1213 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1214 (map_fini): Remove "assert (!s->map->active)".
1215 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1216
2ee6cb22
TV
12172019-01-23 Tom de Vries <tdevries@suse.de>
1218
1219 PR target/87835
1220 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1221 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1222
d41d952c
TV
12232019-01-15 Tom de Vries <tdevries@suse.de>
1224
1225 PR target/80547
1226 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1227 New test.
1228
efb56ae8
TV
12292019-01-12 Tom de Vries <tdevries@suse.de>
1230
1231 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1232 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1233 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1234 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1235
2c2ff168
TV
12362019-01-12 Tom de Vries <tdevries@suse.de>
1237
1238 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1239
a1057758
TV
12402019-01-12 Tom de Vries <tdevries@suse.de>
1241
1242 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1243 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1244 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1245
56314b77
TV
12462019-01-12 Tom de Vries <tdevries@suse.de>
1247
1248 PR target/85486
1249 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1250 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1251
b39e4366
TV
12522019-01-12 Tom de Vries <tdevries@suse.de>
1253
1254 PR target/85381
1255 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1256 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1257
2cb7a501
TV
12582019-01-12 Tom de Vries <tdevries@suse.de>
1259
1260 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1261 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1262 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1263
8e77f71e
TV
12642019-01-12 Tom de Vries <tdevries@suse.de>
1265
1266 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1267 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1268 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1269
52d22ece
TV
12702019-01-12 Tom de Vries <tdevries@suse.de>
1271
1272 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1273 resources diagnostic.
1274
2b9d9e39
TV
12752019-01-12 Tom de Vries <tdevries@suse.de>
1276
1277 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1278 vector length to be 128.
1279 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1280 length 2097152 to be reduced to 1024 instead of 32.
1281
4102bda6
TS
12822019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1283 James Norris <jnorris@codesourcery.com>
1284
1285 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1286 Library Routines", and "Environment Variables".
1287
052aaace
TV
12882019-01-11 Tom de Vries <tdevries@suse.de>
1289
1290 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1291 num_workers 16.
1292
9390f916
TV
12932019-01-11 Tom de Vries <tdevries@suse.de>
1294
1295 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1296 -foffload=-w.
1297 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1298 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1299 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1300 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1301
2c3e7ad2
TV
13022019-01-11 Tom de Vries <tdevries@suse.de>
1303
1304 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1305 test.
1306
e222497d
NS
13072019-01-10 Nathan Sidwell <nathan@acm.org>
1308 Julian Brown <julian@codesourcery.com>
1309
1310 PR lto/71959
1311 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1312 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1313
cb87fec3
SH
13142019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1315
1316 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1317 and paste code.
1318
30b4d0d0
SH
13192019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1320
1321 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1322 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1323 write.
1324
5d0bc70a
TV
13252019-01-09 Tom de Vries <tdevries@suse.de>
1326
1327 PR target/88756
1328 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1329 #define instead of "const int".
1330 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1331 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1332 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1333 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1334
2c372e81
TV
13352019-01-09 Tom de Vries <tdevries@suse.de>
1336
1337 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1338 one worker.
1339
43493c97
TV
13402019-01-07 Tom de Vries <tdevries@suse.de>
1341
1342 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1343 GOMP_OPENACC_DIM argument.
1344
5c571497
TV
13452019-01-03 Tom de Vries <tdevries@suse.de>
1346
1347 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1348 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1349
a5544970
JJ
13502019-01-01 Jakub Jelinek <jakub@redhat.com>
1351
1352 Update copyright years.
1353
3f27508c
JJ
13542019-01-01 Jakub Jelinek <jakub@redhat.com>
1355
1356 * libgomp.texi: Bump @copying's copyright year.
1357
59d5960c
TS
13582018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1359
1360 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1361 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1362 (GOACC_declare): Redefine the "device" argument to "flags".
1363
a44c1790
TS
13642018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1365 Cesar Philippidis <cesar@codesourcery.com>
1366
1367 * target.c (struct gomp_coalesce_chunk): New structure.
1368 (struct gomp_coalesce_buf): Update the chunks member to use that
1369 type. Adjust all users.
1370
a152954e
TV
13712018-12-19 Tom de Vries <tdevries@suse.de>
1372
1373 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1374 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1375 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1376
49188cd1
TV
13772018-12-19 Tom de Vries <tdevries@suse.de>
1378
1379 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1380 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1381 gcc/testsuite/gcc.dg/goacc.
1382 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1383
c759830b
TS
13842018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1385 Chung-Lin Tang <cltang@codesourcery.com>
1386
1387 * oacc-mem.c (acc_present_or_create): Remove definition and change
1388 to alias of acc_create.
1389 (acc_present_or_copyin): Remove definition and change to alias of
1390 acc_copyin.
1391 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1392 of acc_present_or_create.
1393 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1394 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1397 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1398 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1399 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1400 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1401 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1402 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1403 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1404 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1405 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1406 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1407 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1408 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1409
7de562ee
TS
14102018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1411
f847198e
TS
1412 PR libgomp/88495
1413 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
1414 "identical parameters".
1415 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
1416 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
1417
c8ab8aab
TS
1418 PR libgomp/88484
1419 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
1420 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
1421
1404af62
TS
1422 PR libgomp/88407
1423 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
1424 (nvptx_wait_async): Unseen async-argument is a no-op.
1425 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
1426 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
1427 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1428 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1429 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1430 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
1431 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
1432 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
1433 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
1434
7de562ee
TS
1435 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
1436 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1437
17469af7
CLT
14382018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
1439
1440 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
1441 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1442 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1443
18c247cc
TS
14442018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1445
1446 PR libgomp/88370
1447 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
1448 (acc_set_cuda_stream): Clarify.
1449 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1450 "async_valid_p".
1451 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
1452 acc_async_sync".
1453 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
1454 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
1455 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
1456 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1457
b0aba46c
TV
14582018-12-14 Tom de Vries <tdevries@suse.de>
1459
1460 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
1461 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
1462 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
1463 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
1464 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
1465
fe0827ee
TV
14662018-12-13 Tom de Vries <tdevries@suse.de>
1467
1468 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
1469 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
1470 * fortran.c (omp_display_affinity_): ... here.
1471 * libgomp.h (gomp_print_string): Declare.
1472 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
1473 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1474 write.
1475
a51f8c92
JJ
14762018-12-13 Jakub Jelinek <jakub@redhat.com>
1477
1478 PR libgomp/88460
1479 * testsuite/libgomp.c++/for-24.C (results): Include it in
1480 omp declare target region.
1481 (main): Use map (always, tofrom: results) instead of
1482 map (tofrom: results).
1483
a6ef2ac9
JJ
14842018-12-12 Jakub Jelinek <jakub@redhat.com>
1485
7a289b7d
JJ
1486 PR fortran/88463
1487 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
1488 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
1489
a6ef2ac9
JJ
1490 * testsuite/libgomp.c-c++-common/for-16.c: New test.
1491
9c47a019
AS
14922018-12-12 Andreas Schwab <schwab@suse.de>
1493
1494 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
1495 clobbered.
1496
d0cbb206
TK
14972018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1498
1499 PR fortran/88411
1500 * testsuite/libgomp.fortran/async_io_8.f90: New test.
1501
84ca08d2
TS
15022018-12-09 Thomas Schwinge <thomas@codesourcery.com>
1503 Jakub Jelinek <jakub@redhat.com>
1504
1505 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
1506 devicep->host2dev_func.
1507
6997628d
JJ
15082018-12-08 Jakub Jelinek <jakub@redhat.com>
1509
1510 PR libgomp/87995
1511 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
1512 tls_runtime effective target.
1513 (t): New threadprivate variable.
1514 (main): Set t in threads which execute iterations of the worksharing
1515 loop. Propagate that to the task after the loop and don't abort
1516 if the current taskgroup hasn't been cancelled.
1517
daa8c1d7
JJ
15182018-12-02 Jakub Jelinek <jakub@redhat.com>
1519
4a82df9a
JJ
1520 * testsuite/libgomp.c/task-reduction-3.c: New test.
1521
daa8c1d7
JJ
1522 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
1523
fe570ff8
CP
15242018-11-30 Cesar Philippidis <cesar@codesourcery.com>
1525
1526 PR libgomp/88288
1527 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1528 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1529
c223608f
TS
15302018-11-30 Thomas Schwinge <thomas@codesourcery.com>
1531
1532 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1533
fc60283c
RB
15342018-10-19 Richard Biener <rguenther@suse.de>
1535
1536 PR tree-optimization/88182
1537 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1538
ffcf3b79
JJ
15392018-11-26 Jakub Jelinek <jakub@redhat.com>
1540
1541 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1542 (RUNTEST): Don't define.
1543 (RUNTESTDEFAULTFLAGS): Add.
1544 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1545 (distclean-am): Depend on distclean-DEJAGNU.
1546 (check-am): If -j% option is present in MFLAGS and if
1547 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1548 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1549 * testsuite/Makefile.in: Regenerated.
1550
ef6e6914
RB
15512018-11-26 Richard Biener <rguenther@suse.de>
1552
1553 PR tree-optimization/88182
1554 * testsuite/libgomp.c++/pr88182.C: New testcase.
1555
72d3bb76
JJ
15562018-11-20 Jakub Jelinek <jakub@redhat.com>
1557
1558 PR bootstrap/88106
1559 * config/mingw32/affinity-fmt.c: New file.
1560
207286c3
JJ
15612018-11-09 Jakub Jelinek <jakub@redhat.com>
1562
9666c522
JJ
1563 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
1564 (gomp_display_affinity): Use __builtin_choose_expr to handle
1565 properly handle argument having integral, or pointer or some other
1566 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
1567 with uint64_t type instead of %llx and unsigned long long.
1568
207286c3
JJ
1569 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
1570 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
1571
2033f45b
RO
15722018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1573
1574 * affinity.c: Include <string.h>, <stdio.h>.
1575 (gomp_display_affinity_place): Remove cpusetp.
1576 * teams.c: Include <limits.h>.
1577
28567c40
JJ
15782018-11-08 Jakub Jelinek <jakub@redhat.com>
1579
8991d779
JJ
1580 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
1581 in_reduction clause for s[0].
1582
28567c40
JJ
1583 * affinity.c (gomp_display_affinity_place): New function.
1584 * affinity-fmt.c: New file.
1585 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
1586 * config/linux/affinity.c (gomp_display_affinity_place): New function.
1587 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
1588 Move these functions to ...
1589 * config/nvptx/teams.c: ... here. New file.
1590 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
1591 New functions.
1592 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
1593 functions.
1594 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
1595 and _aligned_malloc.
1596 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
1597 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
1598 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
1599 gomp_affinity_format_len): New variables.
1600 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
1601 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
1602 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
1603 modifiers. Display (non-default) chunk sizes. Print
1604 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
1605 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
1606 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
1607 * fortran.c: Include stdio.h and string.h.
1608 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
1609 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
1610 (omp_set_affinity_format_, omp_get_affinity_format_,
1611 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
1612 omp_pause_resource_all_): New functions.
1613 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
1614 switch.
1615 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
1616 functions to ...
1617 * teams.c: ... here. New file.
1618 * libgomp_g.h: Include gstdint.h.
1619 (GOMP_loop_nonmonotonic_runtime_start,
1620 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
1621 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
1622 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
1623 GOMP_parallel_loop_nonmonotonic_runtime,
1624 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1625 GOMP_loop_ull_nonmonotonic_runtime_start,
1626 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
1627 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
1628 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1629 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
1630 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
1631 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1632 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1633 GOMP_teams_reg): Declare.
1634 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
1635 gomp_aligned_alloc uses fallback implementation.
1636 (gomp_aligned_alloc, gomp_aligned_free): Declare.
1637 (enum gomp_schedule_type): Add GFS_MONOTONIC.
1638 (struct gomp_doacross_work_share): Add extra field.
1639 (struct gomp_work_share): Add task_reductions field.
1640 (struct gomp_taskgroup): Add workshare and reductions fields.
1641 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1642 (gomp_thread_handle): New typedef.
1643 (gomp_display_affinity_place, gomp_set_affinity_format,
1644 gomp_display_string, gomp_display_affinity,
1645 gomp_display_affinity_thread): Declare.
1646 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1647 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1648 gomp_workshare_task_reduction_register): Declare.
1649 (gomp_team_start): Add taskgroup argument.
1650 (gomp_pause_host): Declare.
1651 (gomp_init_work_share, gomp_work_share_start): Change bool argument
1652 to size_t.
1653 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1654 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1655 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1656 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1657 GOMP_loop_ull_doacross_start,
1658 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1659 GOMP_loop_maybe_nonmonotonic_runtime_next,
1660 GOMP_loop_maybe_nonmonotonic_runtime_start,
1661 GOMP_loop_nonmonotonic_runtime_next,
1662 GOMP_loop_nonmonotonic_runtime_start,
1663 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1664 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1665 GOMP_loop_ull_nonmonotonic_runtime_next,
1666 GOMP_loop_ull_nonmonotonic_runtime_start,
1667 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1668 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1669 GOMP_taskgroup_reduction_register,
1670 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1671 GOMP_teams_reg and GOMP_taskwait_depend.
1672 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1673 omp_{capture,display}_affinity{,_}, and
1674 omp_[gs]et_affinity_format{,_}.
1675 * loop.c: Include string.h.
1676 (GOMP_loop_runtime_next): Add ialias.
1677 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1678 (gomp_loop_static_start, gomp_loop_dynamic_start,
1679 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1680 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1681 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1682 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1683 or gomp_doacross_init callers.
1684 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1685 GOMP_loop_doacross_start): New functions.
1686 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1687 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1688 Mask off GFS_MONOTONIC bit.
1689 (GOMP_loop_maybe_nonmonotonic_runtime_next,
1690 GOMP_loop_maybe_nonmonotonic_runtime_start,
1691 GOMP_loop_nonmonotonic_runtime_next,
1692 GOMP_loop_nonmonotonic_runtime_start,
1693 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1694 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1695 functions.
1696 (gomp_parallel_loop_start): Pass NULL as taskgroup to
1697 gomp_team_start.
1698 * loop_ull.c: Include string.h.
1699 (GOMP_loop_ull_runtime_next): Add ialias.
1700 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1701 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1702 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1703 gomp_loop_ull_ordered_dynamic_start,
1704 gomp_loop_ull_ordered_guided_start,
1705 gomp_loop_ull_doacross_static_start,
1706 gomp_loop_ull_doacross_dynamic_start,
1707 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1708 and gomp_doacross_ull_init callers.
1709 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1710 GOMP_loop_ull_doacross_start): New functions.
1711 (GOMP_loop_ull_runtime_start,
1712 GOMP_loop_ull_ordered_runtime_start,
1713 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1714 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1715 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1716 GOMP_loop_ull_nonmonotonic_runtime_next,
1717 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1718 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1719 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1720 (omp_pause_resource_t, omp_depend_t): New typedefs.
1721 (enum omp_lock_hint_t): Renamed to ...
1722 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
1723 enumerators using numbers and omp_lock_hint_* as their aliases.
1724 (omp_lock_hint_t): New typedef. Rename to ...
1725 (omp_sync_hint_t): ... this.
1726 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1727 omp_sync_hint_t instead of omp_lock_hint_t.
1728 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1729 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1730 Declare.
1731 (omp_target_is_present, omp_target_disassociate_ptr):
1732 Change first argument from void * to const void *.
1733 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1734 from void * to const void *.
1735 (omp_target_associate_ptr): Change first and second arguments from
1736 void * to const void *.
1737 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1738 omp_pause_hard): New parameters.
1739 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1740 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1741 New interfaces.
1742 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1743 omp_pause_hard): New parameters.
1744 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1745 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1746 New externals.
1747 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1748 EXTRA argument. If not needed to prepare array, if extra is 0,
1749 clear ws->doacross, otherwise allocate just doacross structure and
1750 extra payload. If array is needed, allocate also extra payload.
1751 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1752 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1753 doacross == NULL.
1754 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1755 gomp_team_start.
1756 (GOMP_parallel): Likewise. Formatting fix.
1757 (GOMP_parallel_reductions): New function.
1758 (GOMP_cancellation_point): If taskgroup has workshare
1759 flag set, check cancelled of prev taskgroup if any.
1760 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1761 on prev taskgroup if any.
1762 * sections.c: Include string.h.
1763 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1764 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1765 (GOMP_sections2_start): New function.
1766 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1767 Pass NULL as taskgroup to gomp_team_start.
1768 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1769 gomp_work_share_start callers.
1770 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1771 If taskgroup has workshare flag set, check cancelled on prev
1772 taskgroup if any. Guard all cancellation tests with
1773 gomp_cancel_var test.
1774 (omp_target_is_present, omp_target_disassociate_ptr):
1775 Change ptr argument from void * to const void *.
1776 (omp_target_memcpy): Change src argument from void * to const void *.
1777 (omp_target_memcpy_rect): Likewise.
1778 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1779 instead of char * where needed.
1780 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1781 from void * to const void *.
1782 (omp_pause_resource, omp_pause_resource_all): New functions.
1783 * task.c (gomp_task_handle_depend): Handle new depend array format
1784 in addition to the old. Handle mutexinoutset kinds the same as
1785 inout for now, handle unspecified kinds.
1786 (gomp_create_target_task): If taskgroup has workshare flag set, check
1787 cancelled on prev taskgroup if any. Guard all cancellation tests with
1788 gomp_cancel_var test. Handle new depend array format count in
1789 addition to the old.
1790 (GOMP_task): Likewise. Adjust function comment.
1791 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1792 cancelled on prev taskgroup if any. Guard all cancellation tests with
1793 gomp_cancel_var test.
1794 (GOMP_taskwait_depend): New function.
1795 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1796 format in addition to the old. Handle mutexinoutset kinds the same as
1797 inout for now, handle unspecified kinds. Fix a function comment typo.
1798 (gomp_taskgroup_init): New function.
1799 (GOMP_taskgroup_start): Use it.
1800 (gomp_reduction_register, gomp_create_artificial_team,
1801 GOMP_taskgroup_reduction_register,
1802 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1803 gomp_parallel_reduction_register,
1804 gomp_workshare_task_reduction_register,
1805 gomp_workshare_taskgroup_start,
1806 GOMP_workshare_task_reduction_unregister): New functions.
1807 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1808 check cancelled on prev taskgroup if any. Guard all cancellation
1809 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1810 by calling GOMP_taskgroup_reduction_register.
1811 * team.c (gomp_thread_attr): Remove comment.
1812 (struct gomp_thread_start_data): Add handle field.
1813 (gomp_thread_start): Call pthread_detach.
1814 (gomp_new_team): Adjust gomp_init_work_share caller.
1815 (gomp_free_pool_helper): Call pthread_detach.
1816 (gomp_team_start): Add taskgroup argument, initialize implicit
1817 tasks' taskgroup field to that. Don't call
1818 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1819 (gomp_team_end): Determine nesting by thr->ts.level != 0
1820 rather than thr->ts.team != NULL.
1821 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1822 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1823 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1824 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1825 if more than 1 allocate also extra payload at the end of array. Never
1826 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1827 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1828 return true instead of ws.
1829 * Makefile.in: Regenerated.
1830 * configure: Regenerated.
1831 * config.h.in: Regenerated.
1832 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1833 in some cases.
1834 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1835 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1836 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1837 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1838 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1839 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1840 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1841 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1842 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1843 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1844 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1845 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1846 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1847 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1848 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1849 define a different N(test), don't define N(f0) to N(f14), but instead
1850 define N(f20) to N(f34) using != comparisons.
1851 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1852 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1853 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1854 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1855 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1856 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1857 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1858 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1859 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1860 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1861 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1862 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1863 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1864 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1865 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1866 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1867 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1868 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1869 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1870 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1871 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1872 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1873 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1874 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1875 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1876 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1877 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1878 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1879 * testsuite/libgomp.c++/depend-1.C: New test.
1880 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1881 * testsuite/libgomp.c++/depobj-1.C: New test.
1882 * testsuite/libgomp.c++/for-16.C: New test.
1883 * testsuite/libgomp.c++/for-21.C: New test.
1884 * testsuite/libgomp.c++/for-22.C: New test.
1885 * testsuite/libgomp.c++/for-23.C: New test.
1886 * testsuite/libgomp.c++/for-24.C: New test.
1887 * testsuite/libgomp.c++/for-25.C: New test.
1888 * testsuite/libgomp.c++/for-26.C: New test.
1889 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1890 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1891 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1892 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1893 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1894 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1895 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1896 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1897 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1898 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1899 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1900 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1901 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1902 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1903 * testsuite/libgomp.c/task-reduction-1.c: New test.
1904 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1905 * testsuite/libgomp.c/task-reduction-2.c: New test.
1906 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1907 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1908 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1909 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1910 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1911 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1912 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1913 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1914 * testsuite/libgomp.c/teams-1.c: New test.
1915 * testsuite/libgomp.c/teams-2.c: New test.
1916 * testsuite/libgomp.c/thread-limit-4.c: New test.
1917 * testsuite/libgomp.c/thread-limit-5.c: New test.
1918 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1919
58168bbf
CLT
19202018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1921
1922 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1923 acc_memcpy_to/from_device functions, now with async parameter.
1924 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1925 (acc_memcpy_from_device): Likewise.
1926 (acc_memcpy_to_device_async): New API function.
1927 (acc_memcpy_from_device_async): Likewise.
1928 (present_create_copy): Add async parameter and async setting/unsetting.
1929 (acc_create): Adjust present_create_copy call.
1930 (acc_copyin): Likewise.
1931 (acc_present_or_create): Likewise.
1932 (acc_present_or_copyin): Likewise.
1933 (acc_create_async): New API function.
1934 (acc_copyin_async): New API function.
1935 (delete_copyout): Add async parameter and async setting/unsetting.
1936 (acc_delete): Adjust delete_copyout call.
1937 (acc_copyout): Likewise.
1938 (acc_delete_async): New API function.
1939 (acc_copyout_async): Likewise.
1940 (update_dev_host): Add async parameter and async setting/unsetting.
1941 (acc_update_device): Adjust update_dev_host call.
1942 (acc_update_self): Likewise.
1943 (acc_update_device_async): New API function.
1944 (acc_update_self_async): Likewise.
1945 * openacc.h (acc_copyin_async): Declare new API function.
1946 (acc_create_async): Likewise.
1947 (acc_copyout_async): Likewise.
1948 (acc_delete_async): Likewise.
1949 (acc_update_device_async): Likewise.
1950 (acc_update_self_async): Likewise.
1951 (acc_memcpy_to_device_async): Likewise.
1952 (acc_memcpy_from_device_async): Likewise.
1953 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1954 (acc_copyin_async_64_h): New subroutine.
1955 (acc_copyin_async_array_h): New subroutine.
1956 (acc_create_async_32_h): New subroutine.
1957 (acc_create_async_64_h): New subroutine.
1958 (acc_create_async_array_h): New subroutine.
1959 (acc_copyout_async_32_h): New subroutine.
1960 (acc_copyout_async_64_h): New subroutine.
1961 (acc_copyout_async_array_h): New subroutine.
1962 (acc_delete_async_32_h): New subroutine.
1963 (acc_delete_async_64_h): New subroutine.
1964 (acc_delete_async_array_h): New subroutine.
1965 (acc_update_device_async_32_h): New subroutine.
1966 (acc_update_device_async_64_h): New subroutine.
1967 (acc_update_device_async_array_h): New subroutine.
1968 (acc_update_self_async_32_h): New subroutine.
1969 (acc_update_self_async_64_h): New subroutine.
1970 (acc_update_self_async_array_h): New subroutine.
1971 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1972 (acc_copyin_async_64_h): New subroutine.
1973 (acc_copyin_async_array_h): New subroutine.
1974 (acc_create_async_32_h): New subroutine.
1975 (acc_create_async_64_h): New subroutine.
1976 (acc_create_async_array_h): New subroutine.
1977 (acc_copyout_async_32_h): New subroutine.
1978 (acc_copyout_async_64_h): New subroutine.
1979 (acc_copyout_async_array_h): New subroutine.
1980 (acc_delete_async_32_h): New subroutine.
1981 (acc_delete_async_64_h): New subroutine.
1982 (acc_delete_async_array_h): New subroutine.
1983 (acc_update_device_async_32_h): New subroutine.
1984 (acc_update_device_async_64_h): New subroutine.
1985 (acc_update_device_async_array_h): New subroutine.
1986 (acc_update_self_async_32_h): New subroutine.
1987 (acc_update_self_async_64_h): New subroutine.
1988 (acc_update_self_async_array_h): New subroutine.
1989 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1990 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1991 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1992 acc_memcpy_to_device_async*, acc_update_device_async*, and
1993 acc_update_self_async* entries.
1994 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1995 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1996 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1997
22e05272
JM
19982018-10-31 Joseph Myers <joseph@codesourcery.com>
1999
2000 PR bootstrap/82856
2001 * Makefile.am: Include multilib.am
2002 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2003 (CLEANFILES): Remove libgomp.info.
2004 * configure.ac: Remove AC_PREREQ.
2005 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2006 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2007 Regenerate.
2008
87a5ccfb
JM
20092018-10-29 Joseph Myers <joseph@codesourcery.com>
2010 Julian Brown <julian@codesourcery.com>
2011
2012 * testsuite/libgomp.oacc-c++/this.C: New.
2013
2049befd
CP
20142018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2015
2016 * plugin/plugin-nvptx.c (struct cuda_map): New.
2017 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2018 h_tail with (cuda_map *) map.
2019 (cuda_map_create): New function.
2020 (cuda_map_destroy): New function.
2021 (map_init): Update to use a linked list of cuda_map objects.
2022 (map_fini): Likewise.
2023 (map_pop): Likewise.
2024 (map_push): Likewise. Return CUdeviceptr instead of void.
2025 (init_streams_for_device): Remove stales references to ptx_stream
2026 members.
2027 (select_stream_for_async): Likewise.
2028 (nvptx_exec): Update call to map_init.
2029
8e36332c
CP
20302018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2031 Julian Brown <julian@codesourcery.com>
2032
2033 PR middle-end/86336
2034 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2035
2b4c9065
NK
20362018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2037 Thomas Koenig <tkoenig@gcc.gnu.org>
2038
2039 PR fortran/25829
2040 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2041 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2042 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2043 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2044 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2045 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2046 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2047
bd9b3d3d
CP
20482018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2049 Tom de Vries <tdevries@suse.de>
2050
2051 PR target/85590
2052 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2053 (cuOccupancyMaxPotentialBlockSize): Declare.
2054 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2055 CUDA_ONE_CALL_MAYBE_NULL.
2056 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2057 CUoccupancyB2DSize and declare
2058 cuOccupancyMaxPotentialBlockSize.
2059 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2060 default num_gangs and num_workers when the driver supports it.
2061
8e09a12f
TV
20622018-08-08 Tom de Vries <tdevries@suse.de>
2063
2064 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2065 CUDA_ONE_CALL_MAYBE_NULL.
2066 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2067 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2068 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2069 are not found.
2070
cedd9bd0
TV
20712018-08-08 Tom de Vries <tdevries@suse.de>
2072
2073 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2074 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2075 present.
2076
b113af95
TV
20772018-08-08 Tom de Vries <tdevries@suse.de>
2078
2079 * plugin/plugin-nvptx.c
2080 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2081 (nvptx_open_device): Use
2082 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2083
94767dac
TV
20842018-08-08 Tom de Vries <tdevries@suse.de>
2085
2086 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2087 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2088
02150de8
TV
20892018-08-07 Tom de Vries <tdevries@suse.de>
2090
2091 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2092 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2093 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2094 corresponding call in CUDA_ONE_CALL. Add def/undef of
2095 CUDA_ONE_CALL_MAYBE_NULL.
2096 (CUDA_CALL_EXISTS): Define.
2097
9e28b107
TV
20982018-08-07 Tom de Vries <tdevries@suse.de>
2099
2100 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2101 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2102 corresponding undefs right after.
2103
09940090
TV
21042018-08-04 Tom de Vries <tdevries@suse.de>
2105
2106 * plugin/configfrag.ac: For --without-cuda-driver, set
2107 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2108 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2109 * configure: Regenerate.
2110
77e0a97a
TV
21112018-08-02 Tom de Vries <tdevries@suse.de>
2112
2113 PR target/86660
2114 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2115 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2116 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2117 Same.
2118 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2119 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2120 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2121
701d080a
CP
21222018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2123 Thomas Schwinge <thomas@codesourcery.com>
2124
2125 * config/nvptx/oacc-parallel.c: Truncate.
2126
094db6be
CP
21272018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2128 James Norris <jnorris@codesourcery.com>
2129
2130 * plugin/plugin-nvptx.c (struct map): Removed.
701d080a
CP
2131 (map_init, map_pop): Remove use of struct map.
2132 (map_push): Likewise and change argument list.
094db6be
CP
2133 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2134
8c6310a2
TV
21352018-08-01 Tom de Vries <tdevries@suse.de>
2136
2137 * plugin/cuda-lib.def: New file. Factor out of ...
2138 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2139 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2140 using CUDA_CALLS.
2141
1d4a51cf
AV
21422018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2143
2144 Revert 'AsyncI/O patch committed'.
2145 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2146 Thomas Koenig <tkoenig@gcc.gnu.org>
2147
2148 PR fortran/25829
2149 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2150 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2151 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2152 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2153 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2154 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2155 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2156
4cdfee3f
TV
21572018-07-30 Tom de Vries <tdevries@suse.de>
2158
2159 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2160 (nvptx_exec): Ensure worker and vector default dims don't exceed
2161 targ_fn->max_threads_per_block.
2162
0b210c43
TV
21632018-07-30 Tom de Vries <tdevries@suse.de>
2164
2165 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2166 (nvptx_open_device): Init default_dims for device.
2167 (nvptx_exec): Use default_dims from device.
2168
5883c5cc
JJ
21692018-07-26 Jakub Jelinek <jakub@redhat.com>
2170
5d36384c
JJ
2171 PR testsuite/86660
2172 * testsuite/libgomp.c++/for-15.C (results): Include it in
2173 omp declare target region.
2174 (main): Use map (always, tofrom: results) instead of
2175 map (tofrom: results).
2176
5883c5cc
JJ
2177 PR middle-end/86660
2178 * testsuite/libgomp.c/pr86660.c: New test.
2179
88a4654d
CP
21802018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2181 Tom de Vries <tdevries@suse.de>
2182
2183 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2184 sufficient resources to launch a kernel, and give a hint on how to fix
2185 it.
2186
0c6c2f5f
CP
21872018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2188 Tom de Vries <tdevries@suse.de>
2189
2190 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2191 max_threads_per_block and max_threads_per_multiprocessor fields.
2192 (nvptx_open_device): Initialize new fields.
2193 (nvptx_exec): Use num_sms, and new fields.
2194
6dd58010
TV
21952018-07-26 Tom de Vries <tdevries@suse.de>
2196
2197 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2198 to correct locations. Remove xfail.
2199
b2eb1779
TV
22002018-07-26 Tom de Vries <tdevries@suse.de>
2201
2202 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2203 acc_wait. Move acc_async_test calls to correct locations. Remove
2204 xfail.
2205
b1f45884
NK
22062018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2207 Thomas Koenig <tkoenig@gcc.gnu.org>
2208
2209 PR fortran/25829
2210 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2211 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2212 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2213 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2214 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2215 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2216 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2217
3a106211
JJ
22182018-07-17 Jakub Jelinek <jakub@redhat.com>
2219
a3bccfa1
JJ
2220 PR middle-end/86542
2221 * testsuite/libgomp.c++/pr86542.C: New test.
2222
3a106211
JJ
2223 PR middle-end/86539
2224 * testsuite/libgomp.c++/pr86539.C: New test.
2225
2bae8b2f
JJ
22262018-07-11 Jakub Jelinek <jakub@redhat.com>
2227
2228 PR c++/86443
2229 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2230 (results): Make sure the variable is not inside declare target region.
2231 (qux): Remove unused function.
2232
0b27c3ed
JJ
22332018-07-10 Jakub Jelinek <jakub@redhat.com>
2234
2235 PR c++/86443
2236 * testsuite/libgomp.c++/for-15.C: New test.
2237
f0391511
JJ
22382018-06-26 Jakub Jelinek <jakub@redhat.com>
2239
2240 PR c++/86291
2241 * testsuite/libgomp.c++/pr86291.C: New test.
2242
1a6d1d24
GP
22432018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2244
2245 * libgomp.texi (Top): Move www.openmp.org to https.
2246 (Enabling OpenMP): Ditto.
2247 (omp_get_active_level): Ditto.
2248 (omp_get_ancestor_thread_num): Ditto.
2249 (omp_get_cancellation): Ditto.
2250 (omp_get_default_device): Ditto.
2251 (omp_get_dynamic): Ditto.
2252 (omp_get_level): Ditto.
2253 (omp_get_max_active_levels): Ditto.
2254 (omp_get_max_task_priority): Ditto.
2255 (omp_get_max_threads): Ditto.
2256 (omp_get_nested): Ditto.
2257 (omp_get_num_devices): Ditto.
2258 (omp_get_num_procs): Ditto.
2259 (omp_get_num_teams): Ditto.
2260 (omp_get_num_threads): Ditto.
2261 (omp_get_proc_bind): Ditto.
2262 (omp_get_schedule): Ditto.
2263 (omp_get_team_num): Ditto.
2264 (omp_get_team_size): Ditto.
2265 (omp_get_thread_limit): Ditto.
2266 (omp_get_thread_num): Ditto.
2267 (omp_in_parallel): Ditto.
2268 (omp_in_final): Ditto.
2269 (omp_is_initial_device): Ditto.
2270 (omp_set_default_device): Ditto.
2271 (omp_set_dynamic): Ditto.
2272 (omp_set_max_active_levels): Ditto.
2273 (omp_set_nested): Ditto.
2274 (omp_set_num_threads): Ditto.
2275 (omp_set_schedule): Ditto.
2276 (omp_init_lock): Ditto.
2277 (omp_set_lock): Ditto.
2278 (omp_test_lock): Ditto.
2279 (omp_unset_lock): Ditto.
2280 (omp_destroy_lock): Ditto.
2281 (omp_init_nest_lock): Ditto.
2282 (omp_set_nest_lock): Ditto.
2283 (omp_test_nest_lock): Ditto.
2284 (omp_unset_nest_lock): Ditto.
2285 (omp_destroy_nest_lock): Ditto.
2286 (omp_get_wtick): Ditto.
2287 (omp_get_wtime): Ditto.
2288 (OMP_CANCELLATION): Ditto.
2289 (OMP_DISPLAY_ENV): Ditto.
2290 (OMP_DEFAULT_DEVICE): Ditto.
2291 (OMP_DYNAMIC): Ditto.
2292 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2293 (OMP_MAX_TASK_PRIORITY): Ditto.
2294 (OMP_NESTED): Ditto.
2295 (OMP_NUM_THREADS): Ditto.
2296 (OMP_PROC_BIND): Ditto.
2297 (OMP_PLACES): Ditto.
2298 (OMP_STACKSIZE): Ditto.
2299 (OMP_SCHEDULE): Ditto.
2300 (OMP_THREAD_LIMIT): Ditto.
2301 (OMP_WAIT_POLICY): Ditto.
2302
31dd69b7
CP
23032018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2304 James Norris <jnorris@codesourcery.com>
2305 Julian Brown <julian@codesourcery.com>
2306 Thomas Schwinge <thomas@codesourcery.com>
2307 Tom de Vries <tom@codesourcery.com>
2308
2309 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2310 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2311 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2312 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2313 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2314 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2315 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2316 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2317 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2318 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2319 Likewise.
2320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2321 Likewise.
2322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2323 Likewise.
2324 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2325 Likewise.
2326 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2327 Likewise.
2328 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2329 Likewise.
2330 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2331 Likewise.
2332 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2333 Likewise.
2334 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2335 Likewise.
2336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2337 Likewise.
2338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2339 Likewise.
2340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2341 Likewise.
2342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2343 Likewise.
2344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2345 Likewise.
2346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2347 Likewise.
2348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2349 Likewise.
2350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2351 Likewise.
2352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2353 Likewise.
2354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2355 Likewise.
2356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2357 Likewise.
2358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2359 Likewise.
2360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2361 Likewise.
2362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2363 Likewise.
2364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2365 Likewise.
2366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2367 Likewise.
2368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2369 Likewise.
2370 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2371 Likewise.
2372 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2373 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2374 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2375 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2376 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2377 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2378 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2379 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2380 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2381 Likewise.
2382 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2383 Likewise.
2384 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2385 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2386 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2387 Likewise.
2388 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2389 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2390 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2391 Likewise.
2392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2393 Likewise.
2394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2395 Likewise.
2396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2397 Likewise.
2398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2399 Likewise.
2400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2401 Likewise.
2402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2403 Likewise.
2404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2405 Likewise.
2406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2407 Likewise.
2408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2409 Likewise.
2410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2411 Likewise.
2412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2413 Likewise.
2414 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2415 Likewise.
2416 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2417 Likewise.
2418 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2419 Likewise.
2420 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2421 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
2422 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2423 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
2424 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
2425 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
2426 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
2427
829c6349
CLT
24282018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
2429 Thomas Schwinge <thomas@codesourcery.com>
2430 Cesar Philippidis <cesar@codesourcery.com>
2431
2432 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
2433 (gomp_acc_remove_pointer): Update declaration.
2434 (gomp_acc_declare_allocate): Declare.
2435 (gomp_remove_var): Declare.
2436 * libgomp.map (OACC_2.5): Define.
2437 * oacc-mem.c (acc_map_data): Update refcount.
2438 (acc_unmap_data): Likewise.
2439 (present_create_copy): Likewise.
2440 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
2441 (acc_copyin): Likewise.
2442 (FLAG_FINALIZE): Define.
2443 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
2444 (acc_delete_finalize): New function.
2445 (acc_delete_finalize_async): New function.
2446 (acc_copyout_finalize): New function.
2447 (acc_copyout_finalize_async): New function.
2448 (gomp_acc_insert_pointer): Update refcounts.
2449 (gomp_acc_remove_pointer): Return if data is not present on the
2450 accelerator.
2451 * oacc-parallel.c (find_pset): Rename to find_pointer.
2452 (find_pointer): Add support for GOMP_MAP_POINTER.
2453 (handle_ftn_pointers): New function.
2454 (GOACC_parallel_keyed): Update refcounts of variables.
2455 (GOACC_enter_exit_data): Add support for finalized data mappings.
2456 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
2457 of fortran arrays.
2458 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
2459 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
2460 for GOMP_MAP_FORCE_FROM.
2461 * openacc.f90 (module openacc_internal): Add
2462 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
2463 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
2464 acc_copyout_finalize and acc_delete_finalize.
2465 (acc_copyout_finalize_32_h): New subroutine.
2466 (acc_copyout_finalize_64_h): New subroutine.
2467 (acc_copyout_finalize_array_h): New subroutine.
2468 (acc_delete_finalize_32_h): New subroutine.
2469 (acc_delete_finalize_64_h): New subroutine.
2470 (acc_delete_finalize_array_h): New subroutine.
2471 * openacc.h (acc_copyout_finalize): Declare.
2472 (acc_copyout_finalize_async): Declare.
2473 (acc_delete_finalize): Declare.
2474 (acc_delete_finalize_async): Declare.
2475 * openacc_lib.h (acc_copyout_finalize): New interface.
2476 (acc_delete_finalize): New interface.
2477 * target.c (gomp_map_vars): Update dynamic_refcount.
2478 (gomp_remove_var): New function.
2479 (gomp_unmap_vars): Use it.
2480 (gomp_unload_image_from_device): Likewise.
2481 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
2482 case to utilize OpenACC 2.5 data clause semantics.
2483 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2484 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2485 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2486 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2487 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2488 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2489 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2490 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2491 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2492 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2493 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2494 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
2495 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
2496 utilize OpenACC 2.5 data clause semantics.
2497 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2498 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2499 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2500 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2501 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2502 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2503 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2504 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2505 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2506
4358400b
JW
25072018-05-21 Janus Weil <janus@gcc.gnu.org>
2508
2509 PR fortran/85841
2510 PR testsuite/85865
2511 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
2512 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2513 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2514 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2515 * testsuite/libgomp.fortran/task2.f90: Ditto.
2516 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2517 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2518 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2519 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2520 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2521 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2522 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2523 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
2524 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
2525
950ad0ba
CP
25262018-05-18 Cesar Philippidis <cesar@codesourcery.com>
2527
2528 PR c++/85782
2529 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2530
f5ad16f1
TV
25312018-05-09 Tom de Vries <tom@codesourcery.com>
2532
2533 PR libgomp/82901
2534 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2535 to GOACC_enter_exit_data.
2536
edbd038a
TV
25372018-05-09 Tom de Vries <tom@codesourcery.com>
2538
2539 PR libgomp/83792
2540 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2541 (async_synchronous_p): New function.
2542 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2543 async_valid_p.
2544 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2545 async_valid_stream_id_p.
2546 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2547 * oacc-parallel.c (GOACC_parallel_keyed): Same.
2548
37d6c719
TV
25492018-05-07 Tom de Vries <tom@codesourcery.com>
2550
2551 PR testsuite/85677
2552 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2553 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2554
63f12215
TV
25552018-05-03 Tom de Vries <tom@codesourcery.com>
2556
2557 PR testsuite/85106
2558 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2559 extra_tool_flags if it contains an -foffload=-fdump-* flag.
2560 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2561 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
2562
ec00d3fa
TV
25632018-05-02 Tom de Vries <tom@codesourcery.com>
2564
2565 PR libgomp/85411
2566 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
2567 GOMP_OPENACC_DIM ...
2568 * env.c (parse_gomp_openacc_dim): ... here. New function.
2569 (initialize_env): Call parse_gomp_openacc_dim.
2570 (goacc_default_dims): Define.
2571 * libgomp.h (goacc_default_dims): Declare.
2572 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
2573 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
2574 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
2575 GOMP_PLUGIN_acc_default_dim.
2576 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
2577 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
2578
92243e7c
TV
25792018-05-02 Tom de Vries <tom@codesourcery.com>
2580
2581 PR testsuite/83791
2582 * testsuite/libgomp.c++/udr-9.C: Update.
2583 * testsuite/libgomp.c++/atomic-16.C: Remove.
2584 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
2585 * testsuite/libgomp.c++/loop-13.C: Remove.
2586 * testsuite/libgomp.c++/loop-14.C: Remove.
2587 * testsuite/libgomp.c++/loop-15.C: Remove.
2588 * testsuite/libgomp.c++/monotonic-1.C: Remove.
2589 * testsuite/libgomp.c++/monotonic-2.C: Remove.
2590 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
2591 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
2592 * testsuite/libgomp.c++/ordered-1.C: Remove.
2593 * testsuite/libgomp.c++/pr45784.C: Remove.
2594 * testsuite/libgomp.c++/pr64824.C: Remove.
2595 * testsuite/libgomp.c++/pr64868.C: Remove.
2596 * testsuite/libgomp.c++/pr66199-1.C: Remove.
2597 * testsuite/libgomp.c++/pr66199-2.C: Remove.
2598 * testsuite/libgomp.c++/pr66199-3.C: Remove.
2599 * testsuite/libgomp.c++/pr66199-4.C: Remove.
2600 * testsuite/libgomp.c++/pr66199-5.C: Remove.
2601 * testsuite/libgomp.c++/pr66199-6.C: Remove.
2602 * testsuite/libgomp.c++/pr66199-7.C: Remove.
2603 * testsuite/libgomp.c++/pr66199-8.C: Remove.
2604 * testsuite/libgomp.c++/pr66199-9.C: Remove.
2605 * testsuite/libgomp.c++/pr69389.C: Remove.
2606 * testsuite/libgomp.c++/simd10.C: Remove.
2607 * testsuite/libgomp.c++/simd11.C: Remove.
2608 * testsuite/libgomp.c++/simd12.C: Remove.
2609 * testsuite/libgomp.c++/simd13.C: Remove.
2610 * testsuite/libgomp.c++/target-1.C: Remove.
2611 * testsuite/libgomp.c++/target-3.C: Remove.
2612 * testsuite/libgomp.c++/target-4.C: Remove.
2613 * testsuite/libgomp.c++/target-5.C: Remove.
2614 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
2615 * testsuite/libgomp.c++/taskloop-1.C: Remove.
2616 * testsuite/libgomp.c++/taskloop-2.C: Remove.
2617 * testsuite/libgomp.c++/taskloop-3.C: Remove.
2618 * testsuite/libgomp.c++/taskloop-4.C: Remove.
2619 * testsuite/libgomp.c++/udr-9.C: Remove.
2620 * testsuite/libgomp.c++/for-10.C: Remove.
2621 * testsuite/libgomp.c++/for-11.C: Remove.
2622 * testsuite/libgomp.c++/for-12.C: Remove.
2623 * testsuite/libgomp.c++/for-13.C: Remove.
2624 * testsuite/libgomp.c++/for-14.C: Remove.
2625 * testsuite/libgomp.c++/for-9.C: Remove.
2626 * testsuite/libgomp.c/atomic-18.c: Move ...
2627 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
2628 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
2629 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
2630 * testsuite/libgomp.c/loop-13.c: Move ...
2631 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
2632 * testsuite/libgomp.c/loop-14.c: Move ...
2633 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
2634 * testsuite/libgomp.c/loop-15.c: Remove.
2635 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
2636 * testsuite/libgomp.c/monotonic-1.c: Move ...
2637 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
2638 * testsuite/libgomp.c/monotonic-2.c: Move ...
2639 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2640 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2641 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2642 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2643 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2644 * testsuite/libgomp.c/ordered-4.c: Move ...
2645 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2646 * testsuite/libgomp.c/pr45784.c: Move ...
2647 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2648 * testsuite/libgomp.c/pr64824.c: Move ...
2649 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2650 * testsuite/libgomp.c/pr64868.c: Move ...
2651 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2652 * testsuite/libgomp.c/pr66199-1.c: Move ...
2653 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2654 * testsuite/libgomp.c/pr66199-2.c: Move ...
2655 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2656 * testsuite/libgomp.c/pr66199-3.c: Move ...
2657 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2658 * testsuite/libgomp.c/pr66199-4.c: Move ...
2659 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2660 * testsuite/libgomp.c/pr66199-5.c: Move ...
2661 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2662 * testsuite/libgomp.c/pr66199-6.c: Move ...
2663 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2664 * testsuite/libgomp.c/pr66199-7.c: Move ...
2665 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2666 * testsuite/libgomp.c/pr66199-8.c: Move ...
2667 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2668 * testsuite/libgomp.c/pr66199-9.c: Move ...
2669 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2670 * testsuite/libgomp.c/pr69389.c: Move ...
2671 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2672 * testsuite/libgomp.c/simd-14.c: Move ...
2673 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2674 * testsuite/libgomp.c/simd-15.c: Move ...
2675 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2676 * testsuite/libgomp.c/simd-16.c: Move ...
2677 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2678 * testsuite/libgomp.c/simd-17.c: Move ...
2679 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2680 * testsuite/libgomp.c/target-1.c: Move ...
2681 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2682 * testsuite/libgomp.c/target-10.c: Move ...
2683 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2684 * testsuite/libgomp.c/target-13.c: Move ...
2685 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2686 * testsuite/libgomp.c/target-2.c: Move ...
2687 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2688 * testsuite/libgomp.c/taskgroup-1.c: Move ...
2689 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2690 * testsuite/libgomp.c/taskloop-1.c: Move ...
2691 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2692 * testsuite/libgomp.c/taskloop-2.c: Move ...
2693 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2694 * testsuite/libgomp.c/taskloop-3.c: Move ...
2695 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2696 * testsuite/libgomp.c/taskloop-4.c: Move ...
2697 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2698 * testsuite/libgomp.c/udr-1.c: Move ...
2699 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2700 * testsuite/libgomp.c/for-1.c: Move ...
2701 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2702 * testsuite/libgomp.c/for-1.h: Move ...
2703 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2704 * testsuite/libgomp.c/for-2.c: Move ...
2705 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2706 * testsuite/libgomp.c/for-2.h: Move ...
2707 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2708 * testsuite/libgomp.c/for-3.c: Move ...
2709 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2710 * testsuite/libgomp.c/for-4.c: Move ...
2711 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2712 * testsuite/libgomp.c/for-5.c: Move ...
2713 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2714 * testsuite/libgomp.c/for-6.c: Move ...
2715 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2716
1f62d637
TV
27172018-05-02 Tom de Vries <tom@codesourcery.com>
2718
2719 PR libgomp/82428
2720 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2721 __builtin_goacc_parlevel_{id,size}.
2722 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2723 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2724 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2725 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2726 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2727 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2728 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2729 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2730 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2731 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2732 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2733 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2734 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2735 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2736 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2737 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2738 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2739 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2740 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2741 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2742 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2743 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2744 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2745
9220b511
TV
27462018-05-02 Tom de Vries <tom@codesourcery.com>
2747
2748 PR testsuite/85106
2749 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2750
6c3c13c1
TV
27512018-05-02 Tom de Vries <tom@codesourcery.com>
2752
2753 PR testsuite/85106
2754 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2755
8d70b61e
JB
27562018-04-29 Julian Brown <julian@codesourcery.com>
2757 Tom de Vries <tom@codesourcery.com>
2758
2759 PR testsuite/85527
2760 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2761 arbitrary order for iterations of atomic subtract check.
2762
4a57a4b6
TV
27632018-04-28 Tom de Vries <tom@codesourcery.com>
2764
2765 PR testsuite/85527
2766 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2767 atomic capture results obtained in parallel loop to an array, instead of
2768 to a scalar.
2769
df36a3d3
TV
27702018-04-26 Tom de Vries <tom@codesourcery.com>
2771
2772 PR libgomp/84020
2773 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2774 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2775 (process_GOMP_NVPTX_JIT): New function.
2776 (link_ptx): Use process_GOMP_NVPTX_JIT.
2777
d160ae78
RB
27782018-04-26 Richard Biener <rguenther@suse.de>
2779 Tom de Vries <tom@codesourcery.com>
2780
2781 PR lto/85422
2782 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2783
ca9dc642
TV
27842018-04-26 Tom de Vries <tom@codesourcery.com>
2785
2786 PR target/85519
2787 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2788 recursion depth from 25 to 23.
2789 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2790
7b47ecf2
L
27912018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2792
2793 * configure: Regenerated.
2794
e91eba31
NS
27952018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2796 Tom de Vries <tom@codesourcery.com>
2797
2798 PR target/85445
2799 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2800
6e0d40b6
TS
28012018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2802
2803 PR libgomp/85463
2804 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2805 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2806 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2807 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2808 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2809 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2810
2811 PR libfortran/85166
2812 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2813 abort".
2814 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2815
a0e1df88
JJ
28162018-04-19 Jakub Jelinek <jakub@redhat.com>
2817
2818 * configure: Regenerated.
2819
001ddaa8
DM
28202018-04-18 David Malcolm <dmalcolm@redhat.com>
2821
2822 PR jit/85384
2823 * configure: Regenerate.
2824
05e0af43
CP
28252018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2826 Tom de Vries <tom@codesourcery.com>
2827
2828 PR middle-end/84955
2829 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2830 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2831
bc436e10
TK
28322018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2833
2834 PR fortran/83064
2835 PR testsuite/85346
2836 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2837 test from gfortran.dg to here.
2838
ffb164c7
JJ
28392018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2840
2841 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2842 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2843
28442018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2845
2846 PR middle-end/84955
2847 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2848 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2849
2ba16fd2
TV
28502018-04-05 Tom de Vries <tom@codesourcery.com>
2851
2852 PR target/85204
2853 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2854
46dbeb40
TV
28552018-03-26 Tom de Vries <tom@codesourcery.com>
2856
2857 PR tree-optimization/85063
2858 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2859 * testsuite/libgomp.c/switch-conversion.c: New test.
2860 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2861 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2862
bfc24e32
TK
28632018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2864
2865 PR fortran/84381
2866 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2867 call abort by STOP n.
2868 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2869 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2870 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2871 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2872 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2873 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2874 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2875 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2876 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2877 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2878 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2879 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2880 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2881 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2882 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2883 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2884 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2885 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2886 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2887 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2888 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2889 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2890 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2891 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2892 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2893 * testsuite/libgomp.fortran/character1.f90: Likewise.
2894 * testsuite/libgomp.fortran/character2.f90: Likewise.
2895 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2896 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2897 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2898 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2899 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2900 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2901 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2902 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2903 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2904 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2905 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2906 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2907 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2908 * testsuite/libgomp.fortran/do1.f90: Likewise.
2909 * testsuite/libgomp.fortran/do2.f90: Likewise.
2910 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2911 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2912 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2913 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2914 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2915 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2916 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2917 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2918 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2919 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2920 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2921 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2922 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2923 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2924 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2925 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2926 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2927 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2928 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2929 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2930 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2931 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2932 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2933 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2934 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2935 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2936 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2937 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2938 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2939 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2940 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2941 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2942 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2943 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2944 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2945 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2946 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2947 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2948 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2949 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2950 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2951 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2952 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2953 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2954 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2955 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2956 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2957 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2958 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2959 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2960 * testsuite/libgomp.fortran/lib2.f: Likewise.
2961 * testsuite/libgomp.fortran/lib3.f: Likewise.
2962 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2963 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2964 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2965 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2966 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2967 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2968 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2969 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2970 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2971 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2972 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2973 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2974 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2975 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2976 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2977 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2978 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2979 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2980 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2981 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2982 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2983 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2984 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2985 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2986 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2987 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2988 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2989 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2990 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2991 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2992 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2993 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2994 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2995 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2996 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2997 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2998 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2999 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3000 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3001 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3002 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3003 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3004 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3005 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3006 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3007 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3008 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3009 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3010 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3011 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3012 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3013 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3014 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3015 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3016 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3017 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3018 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3019 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3020 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3021 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3022 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3023 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3024 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3025 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3026 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3027 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3028 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3029 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3030 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3031 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3032 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3033 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3034 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3035 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3036 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3037 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3038 * testsuite/libgomp.fortran/stack.f90: Likewise.
3039 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3040 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3041 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3042 * testsuite/libgomp.fortran/target1.f90: Likewise.
3043 * testsuite/libgomp.fortran/target2.f90: Likewise.
3044 * testsuite/libgomp.fortran/target3.f90: Likewise.
3045 * testsuite/libgomp.fortran/target4.f90: Likewise.
3046 * testsuite/libgomp.fortran/target5.f90: Likewise.
3047 * testsuite/libgomp.fortran/target6.f90: Likewise.
3048 * testsuite/libgomp.fortran/target7.f90: Likewise.
3049 * testsuite/libgomp.fortran/target8.f90: Likewise.
3050 * testsuite/libgomp.fortran/task1.f90: Likewise.
3051 * testsuite/libgomp.fortran/task2.f90: Likewise.
3052 * testsuite/libgomp.fortran/task3.f90: Likewise.
3053 * testsuite/libgomp.fortran/task4.f90: Likewise.
3054 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3055 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3056 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3057 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3058 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3059 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3060 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3061 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3062 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3063 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3064 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3065 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3066 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3067 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3068 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3069 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3070 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3071 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3072 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3073 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3074 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3075 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3076 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3077 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3078 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3079 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3080 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3081 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3082 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3083 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3084 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3085 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3086 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3087 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3088 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3089 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3090 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3091 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3092 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3093 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3094 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3095 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3096 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3097 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3098 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3099 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3100 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3101 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3102 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3103 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3104 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3105 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3106 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3107 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3108 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3109 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3110 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3111 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3112 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3113 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3114 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3115 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3116 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3117 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3118 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3119 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3120 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3121 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3122 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3123 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3124 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3125 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3126 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3127 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3128 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3129 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3130 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3131 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3132 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3133 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3134 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3135 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3136 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3137 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3138 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3139 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3140 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3141 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3142 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3143 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3144 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3145 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3146 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3147 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3148 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3149 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3150 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3151 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3152 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3153 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3154 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3155 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3156 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3157 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3158 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3159 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3160 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3161 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3162 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3163 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3164 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3165 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3166 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3167 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3168 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3169 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3170 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3171 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3172 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3173 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3174 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3175 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3176 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3177 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3178 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3179 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3180
79cf14ae
RB
31812018-03-20 Richard Biener <rguenther@suse.de>
3182
3183 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3184 parallelizable loop.
3185
14e335ed
IT
31862018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3187
3188 PR target/84148
3189 * configure: Regenerate.
3190
83d9be55
JJ
31912018-02-16 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR fortran/84418
3194 * libgomp.fortran/pr84418-1.f90: New test.
3195 * libgomp.fortran/pr84418-2.f90: New test.
3196
d1fe6124
JJ
31972018-02-14 Jakub Jelinek <jakub@redhat.com>
3198
3199 PR fortran/84313
3200 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3201 -std=f2003 -fall-intrinsics into dg-additional-options.
3202
3d224921
MJ
32032018-02-08 Martin Jambor <mjambor@suse.cz>
3204
3205 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3206 clonable.
3207
c7c30edd
MJ
32082018-02-08 Martin Jambor <mjambor@suse.cz>
3209
3210 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3211
f320fdfd
RO
32122018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3213
3214 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3215 [__cplusplus]: Declare extern "C".
3216
c31bc4ac
TV
32172018-02-07 Tom de Vries <tom@codesourcery.com>
3218
3219 PR libgomp/84217
3220 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3221
99ae7ce5
CS
32222018-01-29 Christoph Spiel <cspiel@freenet.de>
3223 Jakub Jelinek <jakub@redhat.com>
3224
3225 PR libgomp/84096
3226 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3227 instead of omp_lock_t.
3228
e77a1236
TV
32292018-01-25 Tom de Vries <tom@codesourcery.com>
3230
3231 PR target/84028
3232 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3233
3dede32b
TV
32342018-01-24 Tom de Vries <tom@codesourcery.com>
3235
3236 PR target/83589
3237 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3238
be606483
TV
32392018-01-24 Tom de Vries <tom@codesourcery.com>
3240
3241 PR target/81352
3242 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3243
8c8e9a6b
TV
32442018-01-19 Tom de Vries <tom@codesourcery.com>
3245 Cesar Philippidis <cesar@codesourcery.com>
3246
3247 PR target/83920
3248 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3249 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3250
65e6aea3
JJ
32512018-01-03 Jakub Jelinek <jakub@redhat.com>
3252
85ec4feb
JJ
3253 Update copyright years.
3254
65e6aea3
JJ
3255 * libgomp.texi: Bump @copying's copyright year.
3256
60bf575c
TV
32572017-12-30 Tom de Vries <tom@codesourcery.com>
3258
3259 PR libgomp/83046
3260 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3261 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3262
7ec16b79
TV
32632017-12-27 Tom de Vries <tom@codesourcery.com>
3264
3265 PR c++/83046
3266 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3267 (test_nonstatic): Fix return type to workaround PR83046.
3268
ac550b9a
JJ
32692017-12-05 Jakub Jelinek <jakub@redhat.com>
3270
3271 PR testsuite/83281
3272 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3273 j suffix instead of i.
3274 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3275 Likewise.
3276
ebdc83f0
CP
32772017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3278
3279 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3280 call to acc_wait (1).
3281
3b3e6283
JJ
32822017-11-24 Jakub Jelinek <jakub@redhat.com>
3283
3284 PR fortran/81304
3285 * testsuite/libgomp.fortran/pr81304.f90: New test.
3286
3b575376
JJ
32872017-11-23 Jakub Jelinek <jakub@redhat.com>
3288
3289 PR fortran/81841
3290 * libgomp.fortran/pr81841.f90: New test.
3291
b13547d8
JJ
32922017-11-22 Jakub Jelinek <jakub@redhat.com>
3293
3294 PR libgomp/83106
3295 * target.c (gomp_target_init): Compute lengths just once and
3296 use them in both malloc size and subsequent copying.
3297
efe33ced
IT
32982017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3299
3300 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3301 * acinclude.m4: Add cet.m4.
3302 * configure: Regenerate.
3303 * Makefile.in: Likewise.
3304 * testsuite/Makefile.in: Likewise.
3305
a7cf2612
TV
33062017-11-15 Tom de Vries <tom@codesourcery.com>
3307
3308 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3309 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3310 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3311 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3312 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3313 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3314
dde76623
TV
33152017-11-14 Tom de Vries <tom@codesourcery.com>
3316
3317 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3318 non-nvidia devices.
3319
4dbeb716
JJ
33202017-11-07 Jakub Jelinek <jakub@redhat.com>
3321
3322 PR c++/82835
3323 * testsuite/libgomp.c++/pr82835.C: New test.
3324
454f8b2b
ML
33252017-11-06 Martin Liska <mliska@suse.cz>
3326
3327 * testsuite/libgomp.c++/loop-2.C: Return a value
3328 for functions with non-void return type, or change type to void,
3329 or add -Wno-return-type for test.
3330 * testsuite/libgomp.c++/loop-4.C: Likewise.
3331 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3332 * testsuite/libgomp.c++/shared-1.C: Likewise.
3333 * testsuite/libgomp.c++/single-1.C: Likewise.
3334 * testsuite/libgomp.c++/single-2.C: Likewise.
3335
12e9c8ce
TV
33362017-10-31 Tom de Vries <tom@codesourcery.com>
3337
3338 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3339 "do {} while (false)".
3340 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3341 after HSA_DEBUG call.
3342
7324369a
JJ
33432017-10-28 Jakub Jelinek <jakub@redhat.com>
3344
3345 * target.c (struct gomp_coalesce_buf): New type.
3346 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3347 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3348 (gomp_copy_host2dev): Add CBUF argument, if copying into
3349 the cached ranges, memcpy into buffer instead of copying
3350 into device.
3351 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3352 Add CBUF argument, pass it through to other calls.
3353 (gomp_map_vars): Aggregate copies from host to device if small enough
3354 and with small enough gaps in between into memcpy into a buffer and
3355 fewer host to device copies from the buffer.
3356 (gomp_update): Adjust gomp_copy_host2dev caller.
3357
933ab0e6
TS
33582017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3359
3360 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3361 run" directive.
3362 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3363 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3364 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3365 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3366
92d5d01a
TV
33672017-10-16 Tom de Vries <tom@codesourcery.com>
3368
3369 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3370 openacc_nvidia_accel_selected.
3371 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3372 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3373 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3374 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3375 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3376 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3377 openacc_nvidia_accel_selected. Skip for shared memory device.
3378 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3379 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3380
191411e4
MJ
33812017-10-09 Martin Jambor <mjambor@suse.cz>
3382
3383 PR hsa/82416
3384 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3385
e923330e
TV
33862017-10-07 Tom de Vries <tom@codesourcery.com>
3387
3388 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3389 Remove acc_device_nvidia references.
3390 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3391 Same.
3392
8fe3ed4c
TV
33932017-10-05 Tom de Vries <tom@codesourcery.com>
3394
3395 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3396 vector_length(32) clause from acc parallel directive.
3397 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3398
26596ee5
TV
33992017-10-04 Tom de Vries <tom@codesourcery.com>
3400
3401 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3402 (main): Reduce sum of arr elements. Assert that hres is exactly
3403 representable in 32-bit floating point.
3404 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3405 (main): Reduce sum of arr elements. Assert that hres and hmres are
3406 exactly representable in 32-bit floating point.
3407 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3408
5c561fa9
TV
34092017-09-28 Tom de Vries <tom@codesourcery.com>
3410
3411 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
3412 setting.
3413 * testsuite/libgomp.c++/pr69393.C: Same.
3414 * testsuite/libgomp.c++/taskloop-1.C: Same.
3415 * testsuite/libgomp.c++/taskloop-3.C: Same.
3416 * testsuite/libgomp.c++/taskloop-4.C: Same.
3417 * testsuite/libgomp.c/for-4.c: Same.
3418 * testsuite/libgomp.c/pr66199-3.c: Same.
3419 * testsuite/libgomp.c/pr66199-4.c: Same.
3420 * testsuite/libgomp.c/pr66199-6.c: Same.
3421 * testsuite/libgomp.c/taskloop-1.c: Same.
3422 * testsuite/libgomp.c/taskloop-3.c: Same.
3423 * testsuite/libgomp.c/taskloop-4.c: Same.
3424 * testsuite/libgomp.fortran/aligned1.f03: Same.
3425 * testsuite/libgomp.fortran/condinc1.f: Same.
3426 * testsuite/libgomp.fortran/condinc3.f90: Same.
3427 * testsuite/libgomp.fortran/crayptr1.f90: Same.
3428 * testsuite/libgomp.fortran/crayptr2.f90: Same.
3429 * testsuite/libgomp.fortran/crayptr3.f90: Same.
3430 * testsuite/libgomp.fortran/omp_cond1.f: Same.
3431 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
3432 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
3433 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
3434 * testsuite/libgomp.fortran/recursion1.f90: Same.
3435 * testsuite/libgomp.fortran/target2.f90: Same.
3436 * testsuite/libgomp.fortran/target5.f90: Same.
3437 * testsuite/libgomp.fortran/task3.f90: Same.
3438
7d6206fe
TV
34392017-09-28 Tom de Vries <tom@codesourcery.com>
3440
3441 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
3442 vector_length(32) clause from acc parallel directive.
3443 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
3444
84c8627c
TV
34452017-09-27 Tom de Vries <tom@codesourcery.com>
3446
3447 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
3448 Remove acc_device_nvidia references.
3449
ebc6a85e
TV
34502017-09-16 Tom de Vries <tom@codesourcery.com>
3451
3452 PR c/81875
3453 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
3454
82419efb
TV
34552017-09-14 Tom de Vries <tom@codesourcery.com>
3456
3457 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
3458 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
3459 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
3460 * testsuite/libgomp.c/c.exp: Include test-cases from
3461 libgomp.c-c++-common.
3462 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
3463 files.
3464
8b586510
JJ
34652017-09-14 Jakub Jelinek <jakub@redhat.com>
3466
3467 PR c++/81314
3468 * testsuite/libgomp.c++/pr81314.C: New test.
3469
9651fbaf
GP
34702017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
3471
3472 * libgomp.texi (Top): www.openacc.org now uses https.
3473 (Enabling OpenACC): Ditto.
3474 (acc_get_num_devices): Ditto.
3475 (acc_set_device_type): Ditto.
3476 (acc_get_device_type): Ditto.
3477 (acc_set_device_num): Ditto.
3478 (acc_get_device_num): Ditto.
3479 (acc_async_test): Ditto.
3480 (acc_async_test_all): Ditto.
3481 (acc_wait): Ditto.
3482 (acc_wait_all): Ditto.
3483 (acc_wait_all_async): Ditto.
3484 (acc_wait_async): Ditto.
3485 (acc_init): Ditto.
3486 (acc_shutdown): Ditto.
3487 (acc_on_device): Ditto.
3488 (acc_malloc): Ditto.
3489 (acc_free): Ditto.
3490 (acc_copyin): Ditto.
3491 (acc_present_or_copyin): Ditto.
3492 (acc_create): Ditto.
3493 (acc_present_or_create): Ditto.
3494 (acc_copyout): Ditto.
3495 (acc_delete): Ditto.
3496 (acc_update_device): Ditto.
3497 (acc_update_self): Ditto.
3498 (acc_map_data): Ditto.
3499 (acc_unmap_data): Ditto.
3500 (acc_deviceptr): Ditto.
3501 (acc_hostptr): Ditto.
3502 (acc_is_present): Ditto.
3503 (acc_memcpy_to_device): Ditto.
3504 (acc_memcpy_from_device): Ditto.
3505 (acc_get_current_cuda_device): Ditto.
3506 (acc_get_current_cuda_context): Ditto.
3507 (acc_get_cuda_stream): Ditto.
3508 (acc_set_cuda_stream): Ditto.
3509 (ACC_DEVICE_TYPE): Ditto.
3510 (ACC_DEVICE_NUM): Ditto.
3511 (OpenACC Library Interoperability): Ditto.
3512
50aa16c3
JJ
35132017-08-09 Jakub Jelinek <jakub@redhat.com>
3514
3515 PR c/81687
3516 * testsuite/libgomp.c/pr81687-1.c: New test.
3517 * testsuite/libgomp.c/pr81687-2.c: New test.
3518
56b5041c
JJ
35192017-08-07 Jakub Jelinek <jakub@redhat.com>
3520
3521 PR c/69389
3522 * testsuite/libgomp.c/pr69389.c: New test.
3523 * testsuite/libgomp.c++/pr69389.C: New test.
3524
f4c222c0
TV
35252017-08-07 Tom de Vries <tom@codesourcery.com>
3526
3527 PR middle-end/78266
3528 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3529 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3530
a40ff0ae
JJ
35312017-07-27 Jakub Jelinek <jakub@redhat.com>
3532
3533 PR c/45784
3534 * testsuite/libgomp.c/pr45784.c: New test.
3535 * testsuite/libgomp.c++/pr45784.C: New test.
3536
3717fbe3
TV
35372017-07-19 Tom de Vries <tom@codesourcery.com>
3538
3539 * testsuite/libgomp.oacc-c/vec.c: New test.
3540
9607b014
TV
35412017-07-03 Tom de Vries <tom@codesourcery.com>
3542
3543 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3544
dfb15f6b
TV
35452017-06-27 Tom de Vries <tom@codesourcery.com>
3546
3547 * plugin/plugin-nvptx.c (notify_var): New function.
3548 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3549
22f1a037
TV
35502017-06-27 Tom de Vries <tom@codesourcery.com>
3551
3552 * env.c (parse_unsigned_long_1): Factor out of ...
3553 (parse_unsigned_long): ... here.
3554 (parse_int_1): Factor out of ...
3555 (parse_int): ... here.
3556 (parse_int_secure): New function.
3557 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3558 * secure_getenv.h: Factor out of ...
3559 * plugin/plugin-hsa.c: ... here.
3560 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3561
d54d1fc3
JJ
35622017-06-21 Jakub Jelinek <jakub@redhat.com>
3563
3564 PR c++/81130
3565 * testsuite/libgomp.c++/pr81130.C: New test.
3566
4f4b0ab8
RO
35672017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3568
3569 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
3570 default args.
3571 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
3572 dg-xfail-run-if default args.
3573
40ffd95f
BE
35742017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3575
3576 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
3577 * testsuite/libgomp.c/pr39591-3.c: Likewise.
3578
01275e1e
JJ
35792017-05-30 Jakub Jelinek <jakub@redhat.com>
3580
3581 PR libgomp/80822
3582 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
3583 (gomp_affinity_init_level): Use it. Always analyze the core and thread
3584 sibling lists, depending on level just pick up what CPUs to put
3585 together into a place vs. whether add multiple ordered places.
3586
78672bd8
TS
35872017-05-24 Thomas Schwinge <thomas@codesourcery.com>
3588
7ce64403
TS
3589 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
3590 * libgomp.map (OACC_2.0.1): Add these.
3591 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
3592 for "acc_wait", and "acc_wait_all", respectively.
3593 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
3594 for "acc_wait", and "acc_wait_all", respectively.
3595 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
3596 * libgomp.texi (acc_wait, acc_wait_all): Update.
3597 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
3598 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
3599 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3600
318686c2
TS
3601 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
3602 acc_present_or_copyin and acc_present_or_create procedures,
3603 respectively.
3604 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
3605 generally different variants of OpenACC Runtime Library functions.
3606 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3607
a6745534
TS
3608 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
3609 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3610
9b94fbc7
TS
3611 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
3612 of preprocessor definitions.
3613 * libgomp.h (strong_alias): Guard by "#ifdef
3614 HAVE_ATTRIBUTE_ALIAS".
3615 * oacc-mem.c: Provide "acc_pcreate" as alias for
3616 "acc_present_or_create", and "acc_pcopyin" as alias for
3617 "acc_present_or_copyin".
3618 * libgomp.map: New version "OACC_2.0.1".
3619 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
3620 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
3621 its content into...
3622 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
3623 Extend testing.
3624
78672bd8
TS
3625 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
3626 when disabling nvptx offloading.
3627
0c36d0d5
TS
36282017-05-23 Thomas Schwinge <thomas@codesourcery.com>
3629
fd71a9a2
TS
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
3631 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3632 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3633
0c36d0d5
TS
3634 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
3635 * testsuite/lib/libgomp.exp
3636 (check_effective_target_openacc_nvidia_accel_configured): New
3637 proc.
3638 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3639 (check_effective_target_c++): New procs.
3640 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3641 (check_effective_target_c++): Likewise.
3642
c24783c4
JJ
36432017-05-22 Jakub Jelinek <jakub@redhat.com>
3644
655e5265
JJ
3645 PR middle-end/80809
3646 * testsuite/libgomp.c/pr80809-2.c: New test.
3647 * testsuite/libgomp.c/pr80809-3.c: New test.
3648
e9e2ef9f
JJ
3649 PR middle-end/80809
3650 * testsuite/libgomp.c/pr80809-1.c: New test.
3651
c24783c4
JJ
3652 PR middle-end/80853
3653 * testsuite/libgomp.c/pr80853.c: New test.
3654
0da2f96a
TS
36552017-05-19 Thomas Schwinge <thomas@codesourcery.com>
3656
7fd549d2
TS
3657 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3658 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3659 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3660 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3661 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3662
0da2f96a
TS
3663 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3664 Debug output for failure.
3665
62ffe920
RO
36662017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3667
3668 * testsuite/lib/libgomp.exp: Load scanlang.exp.
3669
f49215b1
JJ
36702017-04-27 Jakub Jelinek <jakub@redhat.com>
3671
3672 PR bootstrap/80531
3673 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3674 bootstrap compare failures.
3675
2260d19d
AM
36762017-04-20 Alexander Monakov <amonakov@ispras.ru>
3677
3678 * testsuite/libgomp.c/target-36.c: New testcase.
3679
19929ba9
JJ
36802017-04-13 Jakub Jelinek <jakub@redhat.com>
3681
3682 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3683 instead of char.
3684
fbc698e0
JJ
36852017-04-11 Jakub Jelinek <jakub@redhat.com>
3686
3687 PR libgomp/80394
3688 * testsuite/libgomp.c/pr80394.c: New test.
3689
c4060df4
JJ
36902017-04-04 Jakub Jelinek <jakub@redhat.com>
3691
3692 PR libgomp/79876
3693 * config/posix/thread-stacksize.h: New file.
3694 * config/darwin/thread-stacksize.h: New file.
3695 * config/nvptx/thread-stacksize.h: New file.
3696 * env.c: Include thread-stacksize.h.
3697 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3698 instead of 0. Call pthread_attr_setstacksize even if
3699 GOMP_DEFAULT_STACKSIZE is non-zero.
3700
e02d868a
JJ
37012017-03-30 Jakub Jelinek <jakub@redhat.com>
3702
3703 * env.c (initialize_env): Initialize stacksize to 0.
3704
7ba8651e
CP
37052017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3706
3707 PR c++/80029
3708 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3709
eebc5e2d
JJ
37102017-03-08 Jakub Jelinek <jakub@redhat.com>
3711
3712 PR c/79940
3713 * testsuite/libgomp.c/pr79940.c: New test.
3714
1eb08f52
RO
37152017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3716
3717 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3718 targets.
3719 Add __float128 options.
3720
b0f78ff3
JDA
37212017-02-11 John David Anglin <danglin@gcc.gnu.org>
3722
3723 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3724 hppa*-*-* dg-skip-if directive.
3725
1bbe0d8f
JJ
37262017-02-09 Jakub Jelinek <jakub@redhat.com>
3727
3728 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3729 dg-skip-if directive into a comment.
3730
02889d23
CLT
37312017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3732 Chung-Lin Tang <cltang@codesourcery.com>
3733
3734 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3735 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3736 add additional case.
3737 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3738 "openacc_nvidia_accel_selected".
3739 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3740 Add num_workers(8) clause.
3741
5896a41d
JDA
37422017-02-08 John David Anglin <danglin@gcc.gnu.org>
3743
3744 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3745 hppa*-*-*.
3746 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3747 include complex.h on hppa*-*-hpux*.
3748 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3749
345a8c17
TS
37502017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3751
e70ab10d
TS
3752 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3753
345a8c17
TS
3754 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3755 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3756 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3757 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3758 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3759 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3760 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3761 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3762 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3763 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3764
dced339c
TS
37652017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3766
3767 * libgomp-plugin.h: #include <stdbool.h>.
3768 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3769 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3770 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3771 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3772 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3773 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3774 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3775 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3776 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3777 (GOMP_OFFLOAD_openacc_async_test)
3778 (GOMP_OFFLOAD_openacc_async_test_all)
3779 (GOMP_OFFLOAD_openacc_async_wait)
3780 (GOMP_OFFLOAD_openacc_async_wait_async)
3781 (GOMP_OFFLOAD_openacc_async_wait_all)
3782 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3783 (GOMP_OFFLOAD_openacc_async_set_async)
3784 (GOMP_OFFLOAD_openacc_create_thread_data)
3785 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3786 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3787 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3788 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3789 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3790 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3791 these.
3792 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3793 (GOMP_OFFLOAD_unload_image): Fix argument types.
3794
23749904
JJ
37952017-01-26 Jakub Jelinek <jakub@redhat.com>
3796
c1cadde1
JJ
3797 * testsuite/lib/libgomp.exp
3798 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3799 check_compile invocation. Fix up removal of executable. Drop
3800 bogus "2>&1" argument.
3801
23749904
JJ
3802 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3803 directive.
3804
38052017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5fd1486c
PJ
3806 Martin Jambor <mjambor@suse.cz>
3807
3808 * plugin/hsa.h: Moved to top level include.
3809 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3810
73aa401e
JJ
38112017-01-21 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR other/79046
3814 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3815 of cat to get version from BASE-VER file.
3816 * testsuite/Makefile.in: Regenerated.
3817
b32e85fa
JJ
38182017-01-19 Jakub Jelinek <jakub@redhat.com>
3819
3820 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3821 for _WIN64.
3822
3c36aa6b
JJ
38232017-01-17 Jakub Jelinek <jakub@redhat.com>
3824
d190d5c0
JJ
3825 * plugin/hsa.h: Add GCC runtime library exception.
3826 * plugin/hsa_ext_finalize.h: Likewise.
3827
2393d337
JJ
3828 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3829 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3830 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3831 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3832 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3833 library to link ptx plugin against.
3834 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3835 (CUDA_CALLS): Define.
3836 (cuda_lib, cuda_lib_inited): New variables.
3837 (init_cuda_lib): New function.
3838 (CUDA_CALL_PREFIX): Define.
3839 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3840 (CUDA_CALL): Use FN instead of (FN).
3841 (CUDA_CALL_NOCHECK): Define.
3842 (cuda_error, fini_streams_for_device, select_stream_for_async,
3843 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3844 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3845 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3846 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3847 CUDA_CALL_NOCHECK.
3848 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3849 CUDA_CALL_NOCHECK.
3850 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3851 Use CUDA_CALL_NOCHECK.
3852 * plugin/cuda/cuda.h: New file.
3853 * config.h.in: Regenerated.
3854 * configure: Regenerated.
3855
3c36aa6b
JJ
3856 PR other/79046
3857 * configure.ac: Add GCC_BASE_VER.
3858 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3859 get version from BASE-VER file.
3860 * testsuite/Makefile.in: Regenerated.
3861 * configure: Regenerated.
3862 * Makefile.in: Regenerated.
3863
c508bc2d
FXC
38642017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3865
3866 PR libgomp/60670
3867 * Makefile.am: Make fincludedir multilib-aware.
3868 * Makefile.in: Regenerate.
3869
c1a9c369
JJ
38702017-01-01 Jakub Jelinek <jakub@redhat.com>
3871
cbe34bb5
JJ
3872 Update copyright years.
3873
c1a9c369
JJ
3874 * libgomp.texi: Bump @copying's copyright year.
3875
e7a7f4be
SH
38762016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3877
3878 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3879 pthread_spinlock_t instead of gomp_mutex_t lock.
3880 (gomp_get_thread_pool): Likewise.
3881 (gomp_release_thread_pool): Likewise.
3882 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3883 Likewise.
3884
d313d52c
SH
38852016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3886
3887 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3888 thread pool in case nthreads == 1.
3889
630e3c3a
AM
38902016-11-30 Alexander Monakov <amonakov@ispras.ru>
3891
3892 * config/nvptx/env.c: Delete.
3893 * icv.c: Move definitions of ICV variables back ...
3894 * env.c: ...here. Do not compile environment-related functionality if
3895 LIBGOMP_OFFLOADED_ONLY is set.
3896
9e38af5c
AM
38972016-11-30 Alexander Monakov <amonakov@ispras.ru>
3898
3899 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3900 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3901 * configure: Regenerate.
3902 * config.h.in: Likewise.
3903
f96b7f1f
AM
39042016-11-30 Alexander Monakov <amonakov@ispras.ru>
3905
3906 * Makefile.in: Regenerate with automake-1.11.6.
3907 * aclocal.m4: Likewise.
3908 * configure: Likewise.
3909 * testsuite/Makefile.in: Likewise.
3910
6a6951b1
AM
39112016-11-28 Alexander Monakov <amonakov@ispras.ru>
3912
3913 * config/nvptx/critical.c: Delete to use generic implementation.
3914
c7ac071f
JH
39152016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3916
3917 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3918 ../../affinity.c as fallback.
3919 * config/nvptx/affinity.c: Delete to use fallback implementation.
3920
6103184e 39212016-11-23 Alexander Monakov <amonakov@ispras.ru>
92a285c1 3922 Jakub Jelinek <jakub@redhat.com>
6103184e
AM
3923 Dmitry Melnik <dm@ispras.ru>
3924
3925 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3926 * Makefile.in. Regenerate.
3927 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3928 (LIBGOMP_USE_PTHREADS): ...here; new define.
3929 * configure: Regenerate.
3930 * config.h.in: Likewise.
3931 * config/posix/affinity.c: Move to...
3932 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3933 interface by LIBGOMP_USE_PTHREADS.
3934 * critical.c: Split out GOMP_atomic_{start,end} into...
3935 * atomic.c: ...here (new file).
3936 * env.c: Split out ICV definitions into...
3937 * icv.c: ...here (new file) and...
3938 * icv-device.c: ...here. New file.
3939 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3940 (gomp_destroy_lock_30): Ditto.
3941 (gomp_set_lock_30): Ditto.
3942 (gomp_unset_lock_30): Ditto.
3943 (gomp_test_lock_30): Ditto.
3944 (gomp_init_nest_lock_30): Ditto.
3945 (gomp_destroy_nest_lock_30): Ditto.
3946 (gomp_set_nest_lock_30): Ditto.
3947 (gomp_unset_nest_lock_30): Ditto.
3948 (gomp_test_nest_lock_30): Ditto.
3949 * lock.c: New.
3950 * config/nvptx/lock.c: New.
3951 * config/nvptx/bar.c: New.
3952 * config/nvptx/bar.h: New.
3953 * config/nvptx/doacross.h: New.
3954 * config/nvptx/error.c: New.
3955 * config/nvptx/icv-device.c: New.
3956 * config/nvptx/mutex.h: New.
3957 * config/nvptx/pool.h: New.
3958 * config/nvptx/proc.c: New.
3959 * config/nvptx/ptrlock.h: New.
3960 * config/nvptx/sem.h: New.
3961 * config/nvptx/simple-bar.h: New.
3962 * config/nvptx/target.c: New.
3963 * config/nvptx/task.c: New.
3964 * config/nvptx/team.c: New.
3965 * config/nvptx/time.c: New.
3966 * config/posix/simple-bar.h: New.
3967 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3968 (gomp_num_teams_var): Declare.
3969 (struct gomp_thread_pool): Change threads_dock member to
3970 gomp_simple_barrier_t.
3971 [__nvptx__] (gomp_thread): New implementation.
3972 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3973 (gomp_thread_destructor): Ditto.
3974 (gomp_init_thread_affinity): Ditto.
3975 * team.c: Guard uses of Pthreads-specific interfaces by
3976 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3977 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3978 * config/nvptx/alloc.c: Delete.
3979 * config/nvptx/barrier.c: Ditto.
3980 * config/nvptx/fortran.c: Ditto.
3981 * config/nvptx/iter.c: Ditto.
3982 * config/nvptx/iter_ull.c: Ditto.
3983 * config/nvptx/loop.c: Ditto.
3984 * config/nvptx/loop_ull.c: Ditto.
3985 * config/nvptx/ordered.c: Ditto.
3986 * config/nvptx/parallel.c: Ditto.
3987 * config/nvptx/priority_queue.c: Ditto.
3988 * config/nvptx/sections.c: Ditto.
3989 * config/nvptx/single.c: Ditto.
3990 * config/nvptx/splay-tree.c: Ditto.
3991 * config/nvptx/work.c: Ditto.
3992 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3993 -foffload=-lgfortran in addition to -lgfortran.
3994 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3995 * plugin/plugin-nvptx.c: Include <limits.h>.
3996 (struct targ_fn_descriptor): Add new fields.
3997 (struct ptx_device): Ditto. Set them...
3998 (nvptx_open_device): ...here.
3999 (nvptx_adjust_launch_bounds): New.
4000 (nvptx_host2dev): Allow NULL 'nvthd'.
4001 (nvptx_dev2host): Ditto.
4002 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4003 (link_ptx): Adjust log sizes.
4004 (nvptx_host2dev): Allow NULL 'nvthd'.
4005 (nvptx_dev2host): Ditto.
4006 (nvptx_set_clocktick): New. Use it...
4007 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4008 fields.
4009 (GOMP_OFFLOAD_dev2dev): New.
4010 (nvptx_adjust_launch_bounds): New.
4011 (nvptx_stacks_size): New.
4012 (nvptx_stacks_alloc): New.
4013 (nvptx_stacks_free): New.
4014 (GOMP_OFFLOAD_run): New.
4015 (GOMP_OFFLOAD_async_run): New (stub).
4016
56b1c60e
MJ
40172016-11-23 Martin Jambor <mjambor@suse.cz>
4018
4019 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4020 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4021 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4022
b8d89b03 40232016-11-23 Martin Liska <mliska@suse.cz>
92a285c1 4024 Martin Jambor <mjambor@suse.cz>
b8d89b03
ML
4025
4026 * plugin/hsa.h: New file.
4027 * plugin/hsa_ext_finalize.h: New file.
4028 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4029 header file unistd.h, and functions secure_getenv, __secure_getenv,
4030 getuid, geteuid, getgid and getegid.
4031 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4032 -D_GNU_SOURCE.
4033 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4034 Handle various cases of secure_getenv presence, add an implementation
4035 when we can test effective UID and GID.
4036 (struct hsa_runtime_fn_info): New structure.
4037 (hsa_runtime_fn_info hsa_fns): New variable.
4038 (hsa_runtime_lib): Likewise.
4039 (support_cpu_devices): Likewise.
4040 (init_enviroment_variables): Load newly introduced ENV
4041 variables.
4042 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4043 (hsa_fatal): Likewise.
4044 (DLSYM_FN): New macro.
4045 (init_hsa_runtime_functions): New function.
4046 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4047 structure. Depending on environment, also allow CPU devices.
4048 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4049 (get_kernarg_memory_region): Likewise.
4050 (GOMP_OFFLOAD_init_device): Likewise.
4051 (destroy_hsa_program): Likewise.
4052 (init_basic_kernel_info): New function.
4053 (GOMP_OFFLOAD_load_image): Use it.
4054 (create_and_finalize_hsa_program): Call hsa run-time functions via
4055 hsa_fns structure.
4056 (create_single_kernel_dispatch): Likewise.
4057 (release_kernel_dispatch): Likewise.
4058 (init_single_kernel): Likewise.
4059 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4060 (get_group_size): New function.
4061 (run_kernel): Likewise.
4062 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4063 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4064 structure.
4065 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4066 * testsuite/libgomp-test-support.exp.in: Likewise.
4067 * Makefile.in: Regenerated.
4068 * aclocal.m4: Likewise.
4069 * config.h.in: Likewise.
4070 * configure: Likewise.
4071 * testsuite/Makefile.in: Likewise.
4072
18d2ada8 40732016-11-15 Martin Jambor <mjambor@suse.cz>
92a285c1 4074 Alexander Monakov <amonakov@ispras.ru>
18d2ada8
MJ
4075
4076 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4077 mapping clauses to target constructs.
4078 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4079
84c1b9d3
MK
40802016-11-15 Matthias Klose <doko@ubuntu.com>
4081
4082 * configure: Regenerate.
4083
b4c3a85b
JJ
40842016-11-10 Jakub Jelinek <jakub@redhat.com>
4085
8ebd1b31
JJ
4086 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4087 * omp_lib.h.in (openmp_version): Likewise.
4088 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4089 of 201307.
4090 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4091
b4c3a85b
JJ
4092 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4093 (fib_wrapper): Add map(from: x) clause.
4094 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4095 (e_53_2): Likewise.
4096 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4097 (accum): Add map(tmp) clause.
4098 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4099 (accum): Add map(tofrom: tmp) clause.
4100 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4101 (gramSchmidt): Likewise.
4102 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4103 map(tofrom: sum) clause.
4104 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4105 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4106 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4107 only allowed on the loop iterator.
4108 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4109 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4110 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4111 * testsuite/libgomp.fortran/doacross1.f90: New test.
4112 * testsuite/libgomp.fortran/doacross3.f90: New test.
4113 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4114 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4115 * testsuite/libgomp.fortran/doacross2.f90: New test.
4116 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4117 #pragma omp atomic read.
4118 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4119 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4120
6668eb45
CP
41212016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4122 Nathan Sidwell <nathan@acm.org>
4123
4124 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4125 to determine default geometry.
4126 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4127 dimension.
4128
f10e37a1
JJ
41292016-11-01 Jakub Jelinek <jakub@redhat.com>
4130
4131 * hashtab.h: Use standard GPLv3 with runtime exception
4132 boilerplate.
4133
015c7760
AH
41342016-10-27 Aldy Hernandez <aldyh@redhat.com>
4135
4136 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4137 size when allocating new thread.
4138
20a1e5b8
MP
41392016-09-14 Marek Polacek <polacek@redhat.com>
4140
4141 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4142
1cad9284
JJ
41432016-08-19 Jakub Jelinek <jakub@redhat.com>
4144
4145 PR fortran/71014
4146 * testsuite/libgomp.fortran/pr71014.f90: New test.
4147
2c71d454
CLT
41482016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4149
4150 PR middle-end/70895
4151 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4152 firstprivate clauses.
4153 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4154 copy clauses.
4155 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4156 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4157 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4158 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4159 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4160 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4161 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4162 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4163 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4164 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4165 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4166 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4167
7c713714
CLT
41682016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4169
4170 PR fortran/70598
4171 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4172
5c934396
JJ
41732016-08-08 Jakub Jelinek <jakub@redhat.com>
4174
4175 PR c++/58706
4176 * testsuite/libgomp.c++/pr58706.C: New test.
4177
9ef64248
TS
41782016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4179
bbc79c0e
TS
4180 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4181 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4182 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4183 Likewise.
4184 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4185 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4186 Likewise.
4187 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4188
9ef64248
TS
4189 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4190 test, and don't hardcode -O0.
4191
c1311c86
NS
41922016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4193
4194 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4195
b1c9c068
CP
41962016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4197
4198 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4199 test.
4200
b4410f63
L
42012016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4202
4203 PR middle-end/71734
4204 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4205 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4206
a8dbab92
JJ
42072016-07-01 Jakub Jelinek <jakub@redhat.com>
4208
4209 PR fortran/71717
4210 * testsuite/libgomp.fortran/associate3.f90: New test.
4211
9b6a8d0f
JJ
42122016-06-17 Jakub Jelinek <jakub@redhat.com>
4213
4214 * testsuite/libgomp.c++/target-21.C: New test.
4215
283635f9
JJ
42162016-06-16 Jakub Jelinek <jakub@redhat.com>
4217
4218 * testsuite/libgomp.c++/target-20.C: New test.
4219
27d6ba88
TS
42202016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4221 Cesar Philippidis <cesar@codesourcery.com>
4222
4223 PR middle-end/71373
4224 * libgomp.oacc-c/nested-function-1.c: New file.
4225 * libgomp.oacc-c/nested-function-2.c: Likewise.
4226 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4227 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4228 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4229
4b1ffdb1
TS
42302016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4231
4232 PR c/71381
4233 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4234 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4235 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4236
d821b794
CLT
42372016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4238
4239 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4240 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4241
3616a8c5
CP
42422016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4243
4244 PR c/70688
5eed9a88 4245 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3616a8c5 4246
7211a097
JJ
42472016-05-26 Jakub Jelinek <jakub@redhat.com>
4248
4249 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4250 instead of invalid schedule(static, 0).
4251 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4252
b4557008
CLT
42532016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4254
4255 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4256 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4257 parameter, use to set async stream around call to gomp_unmap_vars,
4258 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4259 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4260 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4261 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4262 (event_add): Add int parameter, initialize 'val' field when
4263 adding new ptx_event struct.
4264 (nvptx_evec): Adjust event_add() call arguments.
4265 (nvptx_host2dev): Likewise.
4266 (nvptx_dev2host): Likewise.
4267 (nvptx_wait_async): Likewise.
4268 (nvptx_wait_all_async): Likewise.
4269 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4270 pass to event_add() call.
4271 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4272 parameter.
4273 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4274 call openacc.register_async_cleanup_func() hook.
4275 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4276 * target.c (gomp_copy_from_async): Delete function.
4277 (gomp_map_vars): Remove async_refcount.
4278 (gomp_unmap_vars): Likewise.
4279 (gomp_load_image_to_device): Likewise.
4280 (omp_target_associate_ptr): Likewise.
4281 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4282 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4283 (gomp_copy_from_async): Remove.
4284
6ce13072
CLT
42852016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4286
4287 * target.c (gomp_device_copy): New function.
4288 (gomp_copy_host2dev): Likewise.
4289 (gomp_copy_dev2host): Likewise.
4290 (gomp_free_device_memory): Likewise.
4291 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4292 (gomp_map_pointer): Likewise.
4293 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4294 NULL value from alloc_func plugin hook.
4295 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4296 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4297 (gomp_unmap_vars): Likewise.
4298 (gomp_update): Adjust to call gomp_copy_dev2host and
4299 gomp_copy_host2dev functions.
4300 (gomp_unload_image_from_device): Handle false value from
4301 unload_image_func plugin hook.
4302 (gomp_init_device): Handle false value from init_device_func
4303 plugin hook.
4304 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4305 (omp_target_free): Adjust to call gomp_free_device_memory.
4306 (omp_target_memcpy): Handle return values from host2dev_func,
4307 dev2host_func, and dev2dev_func plugin hooks.
4308 (omp_target_memcpy_rect_worker): Likewise.
4309 (gomp_target_fini): Handle false value from fini_device_func
4310 plugin hook.
4311 * libgomp.h (struct gomp_device_descr): Adjust return type of
4312 init_device_func, fini_device_func, unload_image_func, free_func,
4313 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4314 * oacc-init.c (acc_shutdown_1): Handle false value from
4315 fini_device_func plugin hook.
4316 * oacc-host.c (host_init_device): Change return type to bool.
4317 (host_fini_device): Likewise.
4318 (host_unload_image): Likewise.
4319 (host_free): Likewise.
4320 (host_dev2host): Likewise.
4321 (host_host2dev): Likewise.
4322 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4323 (acc_memcpy_to_device): Likewise.
4324 (acc_memcpy_from_device): Likewise.
4325 (delete_copyout): Add libfnname parameter, handle free_func
4326 hook fatal error case.
4327 (acc_delete): Adjust delete_copyout call.
4328 (acc_copyout): Likewise.
4329 (update_dev_host): Move gomp_mutex_unlock to after
4330 host2dev/dev2host hook calls.
4331
4332 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4333 to 'hsa_error_msg', for clarity.
4334 (hsa_fatal): Likewise.
4335 (hsa_error): New function.
4336 (init_hsa_context): Change return type to bool, adjust to return
4337 false on error.
4338 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4339 return value.
4340 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4341 return false on error.
4342 (get_agent_info): Adjust to return NULL on error.
4343 (destroy_hsa_program): Change return type to bool, adjust to
4344 return false on error.
4345 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4346 (destroy_module): Change return type to bool, adjust to
4347 return false on error.
4348 (GOMP_OFFLOAD_unload_image): Likewise.
4349 (GOMP_OFFLOAD_fini_device): Likewise.
4350 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4351 (GOMP_OFFLOAD_free): Change to return false when called.
4352 (GOMP_OFFLOAD_dev2host): Likewise.
4353 (GOMP_OFFLOAD_host2dev): Likewise.
4354 (GOMP_OFFLOAD_dev2dev): Likewise.
4355
4356 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4357 (CUDA_CALL): Likewise.
4358 (CUDA_CALL_ASSERT): Likewise.
4359 (map_init): Change return type to bool, use CUDA_CALL* macros.
4360 (map_fini): Likewise.
4361 (init_streams_for_device): Change return type to bool, adjust
4362 call to map_init.
4363 (fini_streams_for_device): Change return type to bool, adjust
4364 call to map_fini.
4365 (select_stream_for_async): Release stream_lock before calls to
4366 GOMP_PLUGIN_fatal, adjust call to map_init.
4367 (nvptx_init): Use CUDA_CALL* macros.
4368 (nvptx_attach_host_thread_to_device): Change return type to bool,
4369 use CUDA_CALL* macros.
4370 (nvptx_open_device): Use CUDA_CALL* macros.
4371 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4372 macros.
4373 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4374 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4375 (nvptx_exec): Use CUDA_CALL* macros.
4376 (nvptx_alloc): Use CUDA_CALL* macros.
4377 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4378 (nvptx_host2dev): Likewise.
4379 (nvptx_dev2host): Likewise.
4380 (nvptx_wait): Use CUDA_CALL* macros.
4381 (nvptx_wait_async): Likewise.
4382 (nvptx_wait_all): Likewise.
4383 (nvptx_wait_all_async): Likewise.
4384 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4385 use CUDA_CALL* macros, adjust call to map_fini.
4386 (GOMP_OFFLOAD_init_device): Change return type to bool,
4387 adjust code accordingly.
4388 (GOMP_OFFLOAD_fini_device): Likewise.
4389 (GOMP_OFFLOAD_load_image): Adjust calls to
4390 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4391 use CUDA_CALL* macros.
4392 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4393 return code.
4394 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4395 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4396 handle error return.
4397 (GOMP_OFFLOAD_dev2host): Likewise.
4398 (GOMP_OFFLOAD_host2dev): Likewise.
4399 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4400 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4401
e46c7770
CP
44022016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4403
4404 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4405 (acc_free): Likewise.
4406 (acc_memcpy_to_device): Likewise.
4407 (acc_memcpy_from_device): Likewise.
4408 (acc_deviceptr): Likewise.
4409 (acc_hostptr): Likewise.
4410 (acc_is_present): Likewise.
4411 (acc_map_data): Likewise.
4412 (acc_unmap_data): Likewise.
4413 (present_create_copy): Likewise.
4414 (delete_copyout): Likewise.
4415 (update_dev_host): Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
4417 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
4418 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
4419 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4420 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
4421 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
4422 it only runs on nvptx targets.
4423 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4424 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4425 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4426 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4427 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4428 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4429 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4430 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4431 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4432 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4433 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4434 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4435 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4436 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4437 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4438 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4439 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4440 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4441 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4442 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4443 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4444 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4445 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4446
a5057543
MJ
44472016-05-23 Martin Jambor <mjambor@suse.cz>
4448
4449 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
4450
e37288a6
CLT
44512016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
4452
4453 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
4454 to gomp_init_targets_once.
4455 (acc_set_device_type): Remove !cached_base_dev condition on call to
4456 gomp_init_targets_once, move call to before acc_device_lock acquire,
4457 to avoid deadlock.
4458 (acc_get_device_num): Remove !cached_base_dev condition on call to
4459 gomp_init_targets_once.
4460 (acc_set_device_num): Likewise.
4461
51d9ed48
MJ
44622016-05-16 Martin Jambor <mjambor@suse.cz>
4463
92a285c1 4464 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
51d9ed48 4465
5b37e866
NS
44662016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4467
4468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
4469 expected partitioning.
4470
e7ff0319
CP
44712016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4472
4473 PR middle-end/70626
4474 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
4475 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
4476 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
4477
c2bd3b69
AM
44782016-04-21 Alexander Monakov <amonakov@ispras.ru>
4479
4480 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
4481 non-fatal.
4482
84311083
JJ
44832016-04-19 Jakub Jelinek <jakub@redhat.com>
4484
4485 PR middle-end/70680
4486 * testsuite/libgomp.c/pr70680-1.c: New test.
4487 * testsuite/libgomp.c/pr70680-2.c: New test.
4488
aadc043f
CP
44892016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4490
4491 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
4492 pass parameter variables to subroutines.
4493
e387fc64
CP
44942016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4495
4496 PR middle-end/70643
4497 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
4498
10c3c424
CP
44992016-04-13 Cesar Philippidis <cesar@codesourcery.com>
4500
4501 PR testsuite/68242
4502 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
4503 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4504
27f9add3
TS
45052016-04-12 Thomas Schwinge <thomas@codesourcery.com>
4506
58d32aeb
TS
4507 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
4508 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
4509 GOACC_declare prototype.
4510
d97633ef
TS
4511 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
4512 Merge this file, and...
4513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
4514 ... this file, and...
4515 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
4516 ... this file, and...
4517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
4518 ... this file, and...
4519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
4520 ... this file, and...
4521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
4522 ... this file, and...
4523 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
4524 ... this file, and...
4525 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
4526 ... this file, and...
4527 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4528 ... this file, and...
4529 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4530 ... this file, and...
4531 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4532 ... this file, and...
4533 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4534 ... this file, and...
4535 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4536 ... this file into...
4537 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4538 file.
4539
27f9add3
TS
4540 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4541 Make failure observable.
4542
21f3a236
JJ
45432016-04-12 Jakub Jelinek <jakub@redhat.com>
4544
4545 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4546 field.
4547 * target.c (gomp_target_fallback_firstprivate,
4548 gomp_target_unshare_firstprivate): Removed.
4549 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4550 before waiting for dependencies.
4551 (gomp_target_task_fn): Don't copy firstprivate vars here.
4552 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4553 firstprivate_copies here.
4554 (gomp_create_target_task): Don't initialize firstprivate_copies field.
4555 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4556 explicit/implicit firstprivate.
4557
c42cfb5c
CP
45582016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4559
4560 PR lto/70289
4561 PR ipa/70348
4562 PR tree-optimization/70373
4563 PR middle-end/70533
4564 PR middle-end/70534
4565 PR middle-end/70535
4566 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
4567 test.
4568 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
4569 test.
4570 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
4571 test.
4572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
4573 test.
4574 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
4575 test.
4576 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
4577 test.
4578 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
4579 test.
4580 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
4581 test.
4582 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
4583 test.
4584 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
4585 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
4586 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
4587 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
4588 test.
4589 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
4590 test.
4591 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
4592 test.
4593 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
4594 test.
4595 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
4596 coverage.
4597 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4598 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4599 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
4600 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
4601 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
4602 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
4603 coverage.
4604 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4605 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4606 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4607 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4608 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
4609 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
4610 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
4611 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
4612 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
4613 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4614 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4615 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4616 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4617 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4618 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
4619
2620c80d
TS
46202016-03-30 Thomas Schwinge <thomas@codesourcery.com>
4621 James Norris <jnorris@codesourcery.com>
4622 Nathan Sidwell <nathan@codesourcery.com>
4623 Julian Brown <julian@codesourcery.com>
4624 Cesar Philippidis <cesar@codesourcery.com>
4625 Chung-Lin Tang <cltang@codesourcery.com>
4626 Tom de Vries <tom@codesourcery.com>
4627
4628 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
4629 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4630 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4631 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
4632 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4633 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4634 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4635 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4636 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4637 XFAIL.
4638 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4639 Incorporate...
4640 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4641 file.
4642 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4643 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4644 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4646 Likewise.
4647 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4648 Likewise.
4649 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4650 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4651 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4652 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4653 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4654 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4655 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4656 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4657 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4658 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4659 Likewise.
4660 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4661 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4662 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4663 file...
4664 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4665 file into...
4666 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4667 file. Update.
4668 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4669 file.
4670 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4671 Likewise.
4672 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4673 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4674 ... this new file. Update.
4675 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4676 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4677 ... this new file. Update.
4678 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4679 file. Incorporate...
4680 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4681 file, and...
4682 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4683 file, and...
4684 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4685 file.
4686 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4687
ce83104b
TS
46882016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4689
4690 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4691 set-torture-options.
4692
6e0df3b7
TS
46932016-03-24 Thomas Schwinge <thomas@codesourcery.com>
4694
4695 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4696 gcc-dg-runtest.
4697 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4698 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4699 -fno-builtin-acc_on_device instead of -O0.
4700 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4701 -O0.
4702 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4703 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4704 Likewise.
4705 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4706 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4707 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4708 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4709 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4710 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4711 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4712 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4713 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4714 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4715 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4716 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4717 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4718 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4719 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4720 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4721 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4722 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4723 Don't specify -O2.
4724 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4725 Likewise.
4726 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4727 Likewise.
4728
f9c8babb
ML
47292016-03-24 Martin Liska <mliska@suse.cz>
4730
4731 * plugin/plugin-hsa.c (packet_store_release): New function
4732 that is taken from the HSA runtime manual.
4733 (GOMP_OFFLOAD_run): Use the function.
4734
04833609
JJ
47352016-03-23 Jakub Jelinek <jakub@redhat.com>
4736
4737 PR c++/70376
4738 * testsuite/libgomp.c++/pr70376.C: New test.
4739
d79ee524
TV
47402016-03-23 Tom de Vries <tom@codesourcery.com>
4741
4742 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4743 initialization of lresult and lvresult.
4744 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4745
b6d1f2b5
JN
47462016-03-23 James Norris <jnorris@codesourcery.com>
4747 Daichi Fukuoka <dc-fukuoka@sgi.com>
4748
4749 PR libgomp/69414
4750 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4751 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4752 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4753 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4754
7397fce2
ML
47552016-03-23 Martin Liska <mliska@suse.cz>
4756
4757 PR hsa/70337
4758 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4759 argument just in case a dispatched kernel uses that argument.
4760
ee2e7d51
TS
47612016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4762
4763 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4764 -ftree-parallelize-loops/-fopenacc changes.
4765 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4766 Likewise.
4767 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4768 Likewise.
4769 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4770 Likewise.
4771 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4772 Likewise.
4773 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4774 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4775
be9f7143
TS
47762016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4777
4778 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4779 always_ld_library_path the path to libgcc_s.
4780
f6c1032d
CP
47812016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4782
4783 PR testsuite/70009
4784 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4785
5a6452e6
TV
47862016-03-09 Tom de Vries <tom@codesourcery.com>
4787
4788 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4789 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4790 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4791 Same.
4792 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4793 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4794 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4795 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4796
96a71bd5
MJ
47972016-03-07 Martin Jambor <mjambor@suse.cz>
4798
4799 * testsuite/lib/libgomp.exp
4800 (check_effective_target_hsa_offloading_selected_nocache): New.
4801 (check_effective_target_hsa_offloading_selected): Likewise.
4802 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4803 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4804 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4805 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4806 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4807 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4808 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4809 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4810 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4811 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4812 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4813 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4814 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4815 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4816 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4817 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4818 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4819
02e0b5b2
MJ
48202016-03-07 Martin Jambor <mjambor@suse.cz>
4821
4822 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4823 non-shared memory accelerators.
4824 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4825 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4826 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4827 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4828 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4829 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4830 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4831 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4832 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4833
45548f30
MJ
48342016-03-07 Martin Jambor <mjambor@suse.cz>
4835
4836 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4837 ALWAYS_CFLAGS.
4838
da3d46cb
JJ
48392016-03-02 Jakub Jelinek <jakub@redhat.com>
4840
4841 PR libgomp/69555
4842 * testsuite/libgomp.c++/pr69555-1.C: New test.
4843 * testsuite/libgomp.c++/pr69555-2.C: New test.
4844
622174b2
KM
48452016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4846 Martin Jambor <mjambor@suse.cz>
4847
4848 * testsuite/lib/libgomp.exp
4849 (check_effective_target_offload_device_shared_as): New proc.
4850 * testsuite/libgomp.c++/declare_target-1.C: New test.
4851
e6861a99
IV
48522016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4853
4854 PR driver/68463
4855 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4856
f99c3557
TS
48572016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4858
4859 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4860 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4861 dims.
4862 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4863 -ftree-parallelize-loops/-fopenacc changes.
4864 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4866 Likewise.
4867 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4868 Likewise.
4869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4870 Likewise.
4871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4872 Likewise.
4873 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4874 Likewise.
4875 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4876 Likewise.
4877 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4878 Likewise.
4879 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4880 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4881 Likewise.
4882 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4883 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4884 Likewise.
4885 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4886 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4887 Likewise.
4888
d5ace3b5
CP
48892016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4890
4891 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4892
f3609a89
JJ
48932016-02-19 Jakub Jelinek <jakub@redhat.com>
4894
4895 PR driver/69805
4896 * testsuite/libgomp.c/pr69805.c: New test.
4897
2175df99
TV
48982016-02-16 Tom de Vries <tom@codesourcery.com>
4899
4900 PR lto/67709
4901 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4902
17b6426c
TV
49032016-02-09 Tom de Vries <tom@codesourcery.com>
4904
4905 PR tree-optimization/69599
4906 * testsuite/libgomp.c/omp-nested-3.c: New test.
4907 * testsuite/libgomp.c/pr46032-2.c: New test.
4908 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4909 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4910
34df756c
TV
49112016-02-09 Tom de Vries <tom@codesourcery.com>
4912
4913 PR lto/69707
4914 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4915
5854ee30
AM
49162016-02-02 Alexander Monakov <amonakov@ispras.ru>
4917
4918 * testsuite/libgomp.c/target-31.c: Fix testcase.
4919
e70b6ad7
AM
49202016-02-02 Alexander Monakov <amonakov@ispras.ru>
4921
4922 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4923 clause.
4924 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4925 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4926 reduction and map clauses.
4927 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4928
bd78a45f
JN
49292016-02-02 James Norris <jnorris@codesourcery.com>
4930
4931 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4932
41d809d3
TS
49332016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4934
18f60146
TS
4935 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4936 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4937
1a06f5e6
TS
4938 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4939 cases.
4940
033ff3d1
TS
4941 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4942 variables.
4943 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4944 (hsa_kmt_lib): Set variables.
4945 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4946 always_ld_library_path.
4947 * Makefile.in: Regenerate.
4948 * configure: Likewise.
4949 * testsuite/Makefile.in: Likewise.
4950
4a88d9b7
TS
4951 * plugin/configfrag.ac (offload_additional_options)
4952 (offload_additional_lib_paths): Don't amend for hsa offloading.
4953 * configure: Regenerate.
4954
41d809d3
TS
4955 * plugin/configfrag.ac: Don't configure for offloading target if
4956 we don't build the corresponding plugin.
4957 * configure: Regenerate.
4958
b6adbb9f
NS
49592016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4960
4961 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4962 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4963
8dfdb419
TV
49642016-01-26 Tom de Vries <tom@codesourcery.com>
4965
4966 PR tree-optimization/69110
4967 * testsuite/libgomp.c/pr69110.c: New test.
4968
02ef53f2
RB
49692016-01-25 Richard Biener <rguenther@suse.de>
4970
4971 PR lto/69393
4972 * testsuite/libgomp.c++/pr69393.C: New testcase.
4973
eb4048f2
IV
49742016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4975
4976 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4977 function wasn't mapped to the device with non-shared memory.
4978
b235cdd5
IV
49792016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4980
4981 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4982
b2b40051
MJ
49832016-01-19 Martin Jambor <mjambor@suse.cz>
4984 Martin Liska <mliska@suse.cz>
4985
4986 * plugin/Makefrag.am: Add HSA plugin requirements.
4987 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4988 (HSA_RUNTIME_LIB): Likewise.
4989 (HSA_RUNTIME_CPPFLAGS): Likewise.
4990 (HSA_RUNTIME_INCLUDE): New substitution.
4991 (HSA_RUNTIME_LIB): Likewise.
4992 (HSA_RUNTIME_LDFLAGS): Likewise.
4993 (hsa-runtime): New configure option.
4994 (hsa-runtime-include): Likewise.
4995 (hsa-runtime-lib): Likewise.
4996 (PLUGIN_HSA): New substitution variable.
4997 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4998 configure options.
4999 (PLUGIN_HSA_CPPFLAGS): Likewise.
5000 (PLUGIN_HSA_LDFLAGS): Likewise.
5001 (PLUGIN_HSA_LIBS): Likewise.
5002 Check that we have access to HSA run-time.
5003 * libgomp-plugin.h (offload_target_type): New element
5004 OFFLOAD_TARGET_TYPE_HSA.
5005 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5006 args.
5007 (bool gomp_create_target_task): Updated.
5008 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5009 new field can_run_func.
5010 * libgomp_g.h (GOMP_target_ext): Update prototype.
5011 * oacc-host.c (host_run): Added a new parameter args.
5012 * target.c (calculate_firstprivate_requirements): New function.
5013 (copy_firstprivate_data): Likewise.
5014 (gomp_target_fallback_firstprivate): Use them.
5015 (gomp_target_unshare_firstprivate): New function.
5016 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5017 devices.
5018 (GOMP_target): Do host fallback for all shared memory devices. Do not
5019 pass any args to plugins.
5020 (GOMP_target_ext): Introduce device-specific argument parameter args.
5021 Allow host fallback if device shares memory. Do not remap data if
5022 device has shared memory.
5023 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5024 like host fallback for mappings.
5025 (GOMP_target_data): Treat shared memory devices like host fallback.
5026 (GOMP_target_data_ext): Likewise.
5027 (GOMP_target_update): Likewise.
5028 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5029 gomp_create_target_task.
5030 (GOMP_target_enter_exit_data): Likewise.
5031 (omp_target_alloc): Treat shared memory devices like host fallback.
5032 (omp_target_free): Likewise.
5033 (omp_target_is_present): Likewise.
5034 (omp_target_memcpy): Likewise.
5035 (omp_target_memcpy_rect): Likewise.
5036 (omp_target_associate_ptr): Likewise.
5037 (gomp_load_plugin_for_device): Also load can_run.
5038 * task.c (GOMP_PLUGIN_target_task_completion): Free
5039 firstprivate_copies.
5040 (gomp_create_target_task): Accept new argument args and store it to
5041 ttask.
5042 * plugin/plugin-hsa.c: New file.
5043
5d7804a9
TV
50442016-01-18 Tom de Vries <tom@codesourcery.com>
5045
5046 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5047 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5055 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5057 Same.
5058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5059 Same.
5060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5061 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5063 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5066 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5067 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5068 Same.
5069 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5070
cb11f3cf
JJ
50712016-01-15 Jakub Jelinek <jakub@redhat.com>
5072
5073 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5074
33a126a6
CP
50752016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5076
5077 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5078
cdf6119d
JN
50792016-01-12 James Norris <jnorris@codesourcery.com>
5080
5081 * libgomp.texi: Updates for OpenACC.
5082
0d58938e
AM
50832016-01-11 Alexander Monakov <amonakov@ispras.ru>
5084
5085 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5086
95918b49
L
50872016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5088
5089 PR fortran/66680
5090 * testsuite/libgomp.fortran/pr66680.f90: New test.
5091
8fc708b7
JJ
50922016-01-07 Jakub Jelinek <jakub@redhat.com>
5093
5094 PR middle-end/68960
5095 * testsuite/libgomp.c/pr68960.c: New test.
5096
e9b596c1
NS
50972016-01-06 Nathan Sidwell <nathan@acm.org>
5098
1a14faf2 5099 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
5100 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5101
21fa2a29
JJ
51022016-01-04 Jakub Jelinek <jakub@redhat.com>
5103
818ab71a
JJ
5104 Update copyright years.
5105
21fa2a29
JJ
5106 * libgomp.texi: Bump @copying's copyright year.
5107
9310efbc
NS
51082015-12-31 Nathan Sidwell <nathan@acm.org>
5109
5110 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5111 dg-additional-options syntax.
5112 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5113 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5114 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5115 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5117 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5118 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5119 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5120 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5121 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5122 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5123 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5124 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5125 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5126 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5127 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5128 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5129 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5130
4a38b02b
IV
51312015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5132
5133 * libgomp.h (REFCOUNT_LINK): Define.
5134 (struct splay_tree_key_s): Add link_key.
5135 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5136 Replace target address of the pointer with target address of newly
5137 mapped object in the splay tree. Set link pointer on target to the
5138 device address of the mapped object.
5139 (gomp_unmap_vars): Restore target address of the pointer in the splay
5140 tree for REFCOUNT_LINK objects after unmapping.
5141 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5142 declare target link" objects.
5143 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5144 "omp declare target link" objects, which were mapped for the image.
5145 (gomp_exit_data): Restore target address of the pointer in the splay
5146 tree for REFCOUNT_LINK objects after unmapping.
5147 * testsuite/libgomp.c/target-link-1.c: New file.
5148
d84ffc0a
IV
51492015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5150
5151 * libgomp.h (gomp_device_state): New enum.
5152 (struct gomp_device_descr): Replace is_initialized with state.
5153 (gomp_fini_device): Remove declaration.
5154 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5155 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5156 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5157 (acc_set_device_type): Use state instead of is_initialized.
5158 (acc_set_device_num): Likewise.
5159 * target.c (resolve_device): Use state instead of is_initialized.
5160 Do not initialize finalized device.
5161 (gomp_map_vars): Do nothing if device is finalized.
5162 (gomp_unmap_vars): Likewise.
5163 (gomp_update): Likewise.
5164 (GOMP_offload_register_ver): Use state instead of is_initialized.
5165 (GOMP_offload_unregister_ver): Likewise.
5166 (gomp_init_device): Likewise.
5167 (gomp_unload_device): Likewise.
5168 (gomp_fini_device): Remove.
5169 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5170 (GOMP_target): Go to host fallback if device is finalized.
5171 (GOMP_target_ext): Likewise.
5172 (gomp_exit_data): Do nothing if device is finalized.
5173 (gomp_target_task_fn): Go to host fallback if device is finalized.
5174 (gomp_target_fini): New static function.
5175 (gomp_target_init): Use state instead of is_initialized.
5176 Call gomp_target_fini at exit.
5177
76680678
TV
51782015-12-09 Tom de Vries <tom@codesourcery.com>
5179
5180 PR tree-optimization/68716
5181 * testsuite/libgomp.c/omp-nested-2.c: New test.
5182
ff7a55bf
TS
51832015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5184
5185 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5186 target openacc_nvidia_accel_selected.
5187 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5188 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5190 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5191
37d5ad46
JB
51922015-12-01 Julian Brown <julian@codesourcery.com>
5193 James Norris <James_Norris@mentor.com>
5194
5195 * oacc-parallel.c (GOACC_host_data): New function.
5196 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5197 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5198 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5199 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5200 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5201 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5202 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5203
db941d7e
CP
52042015-11-30 James Norris <jnorris@codesourcery.com>
5205 Cesar Philippidis <cesar@codesourcery.com>
5206
5207 libgomp/
5208 * libgomp.oacc-fortran/routine-5.f90: New test.
5209 * libgomp.oacc-fortran/routine-7.f90: New test.
5210 * libgomp.oacc-fortran/routine-9.f90: New test.
5211
e0ca27c5
TV
52122015-11-30 Tom de Vries <tom@codesourcery.com>
5213
5214 PR tree-optimization/46032
5215 * testsuite/libgomp.c/pr46032.c: New test.
5216
aec17bfe
JJ
52172015-11-27 Jakub Jelinek <jakub@redhat.com>
5218
8e4e4719
JJ
5219 PR libgomp/68579
5220 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5221 (gomp_create_target_task): Call it before freeing
5222 GOMP_TARGET_TASK_DATA tasks.
5223
aec17bfe
JJ
5224 PR c/63326
5225 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5226 in between case label and OpenMP standalone directives.
5227 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5228
6cfe90e6
DE
52292015-11-26 David Edelsohn <dje.gcc@gmail.com>
5230
5231 * configure: Regenerate.
5232
0e65fd7d
JJ
52332015-11-26 Jakub Jelinek <jakub@redhat.com>
5234
5235 * testsuite/libgomp.c/target-35.c: New test.
5236
dc7a8b4b
JN
52372015-11-22 James Norris <jnorris@codesourcery.com>
5238 Cesar Philippidis <cesar@codesourcery.com>
5239
5240 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5241 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5242 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5243 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5244 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5245
48a78aee
JJ
52462015-11-20 Jakub Jelinek <jakub@redhat.com>
5247
5248 PR middle-end/68221
5249 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5250 * testsuite/libgomp.c/reduction-12.c: Likewise.
5251 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5252 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5253
2d256816
NS
52542015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5255
5256 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5257 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5258 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5259 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5260 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5261 and fix.
5262 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5263 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5264
33f47f42
NS
52652015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5266
5267 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5268 worker & gang cases.
5269 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5270
3d7bfee0
CP
52712015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5272
5273 * config/nvptx/priority_queue.c: New file.
5274
00b9bd52
JJ
52752015-11-14 Jakub Jelinek <jakub@redhat.com>
5276
5277 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5278 sections.
5279
e4606348
JJ
52802015-11-14 Jakub Jelinek <jakub@redhat.com>
5281 Aldy Hernandez <aldyh@redhat.com>
5282 Ilya Verbin <ilya.verbin@intel.com>
5283
5284 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5285 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5286 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5287 iterators or IV by chunk size.
5288 * parallel.c (gomp_resolve_num_threads): Don't assume that
5289 if thr->ts.team is non-NULL, then pool must be non-NULL.
5290 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5291 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5292 GOMP_PLUGIN_target_task_completion.
5293 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5294 * Makefile.in: Regenerate.
5295 * libgomp.h: Shuffle prototypes and forward definitions around so
5296 priority queues can be defined.
5297 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5298 (enum gomp_target_task_state): New enum.
5299 (struct gomp_target_task): Add state, tgt, task and team fields.
5300 (gomp_create_target_task): Change return type to bool, add
5301 state argument.
5302 (gomp_target_task_fn): Change return type to bool.
5303 (struct gomp_device_descr): Add async_run_func.
5304 (struct gomp_task): Remove children, next_child, prev_child,
5305 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5306 Add pnode field.
5307 (struct gomp_taskgroup): Remove children.
5308 Add taskgroup_queue.
5309 (struct gomp_team): Change task_queue type to a priority queue.
5310 (splay_compare): Define inline.
5311 (priority_queue_offset): New.
5312 (priority_node_to_task): New.
5313 (task_to_priority_node): New.
5314 * oacc-mem.c: Do not include splay-tree.h.
5315 * priority_queue.c: New file.
5316 * priority_queue.h: New file.
5317 * splay-tree.c: Do not include splay-tree.h.
5318 (splay_tree_foreach_internal): New.
5319 (splay_tree_foreach): New.
5320 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5321 (splay_tree_callback): Define typedef.
5322 * target.c (splay_compare): Move to libgomp.h.
5323 (GOMP_target): Don't adjust *thr in any way around running offloaded
5324 task.
5325 (GOMP_target_ext): Likewise. Handle target nowait.
5326 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5327 return value from gomp_create_target_task, if false, fallthrough
5328 as if no dependencies exist.
5329 (gomp_target_task_fn): Change return type to bool, return true
5330 if the task should have another part scheduled later. Handle
5331 target nowait.
5332 (gomp_load_plugin_for_device): Initialize async_run.
5333 * task.c (gomp_init_task): Initialize children_queue.
5334 (gomp_clear_parent_in_list): New.
5335 (gomp_clear_parent_in_tree): New.
5336 (gomp_clear_parent): Handle priorities.
5337 (GOMP_task): Likewise.
5338 (priority_queue_move_task_first,
5339 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5340 New functions.
5341 (gomp_create_target_task): Use priority queues. Change return type
5342 to bool, add state argument, return false if for async
5343 {{enter,exit} data,update} constructs no dependencies need to be
5344 waited for, handle target nowait. Set task->fn to NULL instead of
5345 gomp_target_task_fn.
5346 (verify_children_queue): Remove.
5347 (priority_list_upgrade_task): New.
5348 (priority_queue_upgrade_task): New.
5349 (verify_task_queue): Remove.
5350 (priority_list_downgrade_task): New.
5351 (priority_queue_downgrade_task): New.
5352 (gomp_task_run_pre): Use priority queues.
5353 Abstract code out to priority_queue_downgrade_task.
5354 (gomp_task_run_post_handle_dependers): Use priority queues.
5355 (gomp_task_run_post_remove_parent): Likewise.
5356 (gomp_task_run_post_remove_taskgroup): Likewise.
5357 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5358 tasks specially.
5359 (GOMP_taskwait): Likewise.
5360 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5361 priority-queue_upgrade_task.
5362 (GOMP_taskgroup_start): Use priority queues.
5363 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5364 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5365 barrier.
5366 * taskloop.c (GOMP_taskloop): Handle priorities.
5367 * team.c (gomp_new_team): Call priority_queue_init.
5368 (free_team): Call priority_queue_free.
5369 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5370 team created for target nowait in implicit parallel region.
5371 (gomp_team_start): For nested check, test thr->ts.level instead of
5372 thr->ts.team != NULL.
5373 * testsuite/libgomp.c/doacross-3.c: New test.
5374 * testsuite/libgomp.c/ordered-5.c: New test.
5375 * testsuite/libgomp.c/priority.c: New test.
5376 * testsuite/libgomp.c/target-31.c: New test.
5377 * testsuite/libgomp.c/target-32.c: New test.
5378 * testsuite/libgomp.c/target-33.c: New test.
5379 * testsuite/libgomp.c/target-34.c: New test.
5380
1d1ab74f
NS
53812015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5382
c5a64cfe
NS
5383 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5384
1d1ab74f
NS
5385 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5386 loop is sequential.
5387
dd3c1b14
NS
53882015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5389
5390 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5391 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5392
6e232ba4
JN
53932015-11-12 James Norris <jnorris@codesourcery.com>
5394 Joseph Myers <joseph@codesourcery.com>
5395
5396 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5397 * oacc-parallel.c (GOACC_declare): New function.
5398 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5399 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5402 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5403
fffeedeb
NS
54042015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5405
5406 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5407
182190f2
NS
54082015-11-1 Nathan Sidwell <nathan@codesourcery.com>
5409
5410 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
5411 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
5412
36fa0f5f
NS
54132015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5414
d350c40c
NS
5415 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
5416 inadvertent commit.
5417
54182015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5419
36fa0f5f
NS
5420 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
5421 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
5422 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
5423 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
5424 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
5425
66a5f0b4
TS
54262015-11-06 Thomas Schwinge <thomas@codesourcery.com>
5427
5428 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
5429 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5430
e01d41e5
JJ
54312015-11-05 Jakub Jelinek <jakub@redhat.com>
5432 Ilya Verbin <ilya.verbin@intel.com>
5433
5434 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
5435 GOMP_loop_nonmonotonic_dynamic_start,
5436 GOMP_loop_nonmonotonic_guided_next,
5437 GOMP_loop_nonmonotonic_guided_start,
5438 GOMP_loop_ull_nonmonotonic_dynamic_next,
5439 GOMP_loop_ull_nonmonotonic_dynamic_start,
5440 GOMP_loop_ull_nonmonotonic_guided_next,
5441 GOMP_loop_ull_nonmonotonic_guided_start,
5442 GOMP_parallel_loop_nonmonotonic_dynamic,
5443 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
5444 (GOMP_target_41): Renamed to ...
5445 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5446 arguments.
5447 (GOMP_target_data_41): Renamed to ...
5448 (GOMP_target_data_ext): ... this.
5449 (GOMP_target_update_41): Renamed to ...
5450 (GOMP_target_update_ext): ... this.
5451 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
5452 GOMP_target_data_ext and GOMP_target_update_ext instead of
5453 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
5454 Export GOMP_loop_nonmonotonic_dynamic_next,
5455 GOMP_loop_nonmonotonic_dynamic_start,
5456 GOMP_loop_nonmonotonic_guided_next,
5457 GOMP_loop_nonmonotonic_guided_start,
5458 GOMP_loop_ull_nonmonotonic_dynamic_next,
5459 GOMP_loop_ull_nonmonotonic_dynamic_start,
5460 GOMP_loop_ull_nonmonotonic_guided_next,
5461 GOMP_loop_ull_nonmonotonic_guided_start,
5462 GOMP_parallel_loop_nonmonotonic_dynamic and
5463 GOMP_parallel_loop_nonmonotonic_guided.
5464 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
5465 GOMP_parallel_loop_nonmonotonic_guided,
5466 GOMP_loop_nonmonotonic_dynamic_start,
5467 GOMP_loop_nonmonotonic_guided_start,
5468 GOMP_loop_nonmonotonic_dynamic_next,
5469 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
5470 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
5471 GOMP_loop_ull_nonmonotonic_guided_start,
5472 GOMP_loop_ull_nonmonotonic_dynamic_next,
5473 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
5474 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
5475 functions.
5476 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
5477 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
5478 Use gomp_map_val function.
5479 (gomp_target_fallback_firstprivate): New static function.
5480 (GOMP_target_41): Renamed to ...
5481 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5482 arguments. Move firstprivate fallback handling into a new
5483 function.
5484 (GOMP_target_data_41): Renamed to ...
5485 (GOMP_target_data_ext): ... this.
5486 (GOMP_target_update_41): Renamed to ...
5487 (GOMP_target_update_ext): ... this.
5488 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
5489 gomp_map_0len_lookup instead of gomp_map_lookup.
5490 (omp_target_is_present): Use gomp_map_0len_lookup instead of
5491 gomp_map_lookup.
5492 * testsuite/libgomp.c/target-28.c: Likewise.
5493 * testsuite/libgomp.c/monotonic-1.c: New test.
5494 * testsuite/libgomp.c/monotonic-2.c: New test.
5495 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
5496 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
5497 * testsuite/libgomp.c/pr66199-5.c: New test.
5498 * testsuite/libgomp.c/pr66199-6.c: New test.
5499 * testsuite/libgomp.c/pr66199-7.c: New test.
5500 * testsuite/libgomp.c/pr66199-8.c: New test.
5501 * testsuite/libgomp.c/pr66199-9.c: New test.
5502 * testsuite/libgomp.c/reduction-11.c: New test.
5503 * testsuite/libgomp.c/reduction-12.c: New test.
5504 * testsuite/libgomp.c/reduction-13.c: New test.
5505 * testsuite/libgomp.c/reduction-14.c: New test.
5506 * testsuite/libgomp.c/reduction-15.c: New test.
5507 * testsuite/libgomp.c/target-12.c (main): Adjust for
5508 omp_target_is_present change for one-past-last element.
5509 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
5510 the same var is both mapped and privatized.
5511 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
5512 handling of zero-length array sections.
5513 * testsuite/libgomp.c/target-28.c: New test.
5514 * testsuite/libgomp.c/target-29.c: New test.
5515 * testsuite/libgomp.c/target-30.c: New test.
5516 * testsuite/libgomp.c/target-teams-1.c: New test.
5517 * testsuite/libgomp.c++/member-6.C: New test.
5518 * testsuite/libgomp.c++/member-7.C: New test.
5519 * testsuite/libgomp.c++/monotonic-1.C: New test.
5520 * testsuite/libgomp.c++/monotonic-2.C: New test.
5521 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
5522 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
5523 * testsuite/libgomp.c++/pr66199-3.C: New test.
5524 * testsuite/libgomp.c++/pr66199-4.C: New test.
5525 * testsuite/libgomp.c++/pr66199-5.C: New test.
5526 * testsuite/libgomp.c++/pr66199-6.C: New test.
5527 * testsuite/libgomp.c++/pr66199-7.C: New test.
5528 * testsuite/libgomp.c++/pr66199-8.C: New test.
5529 * testsuite/libgomp.c++/pr66199-9.C: New test.
5530 * testsuite/libgomp.c++/reduction-11.C: New test.
5531 * testsuite/libgomp.c++/reduction-12.C: New test.
5532 * testsuite/libgomp.c++/target-13.C: New test.
5533 * testsuite/libgomp.c++/target-14.C: New test.
5534 * testsuite/libgomp.c++/target-15.C: New test.
5535 * testsuite/libgomp.c++/target-16.C: New test.
5536 * testsuite/libgomp.c++/target-17.C: New test.
5537 * testsuite/libgomp.c++/target-18.C: New test.
5538 * testsuite/libgomp.c++/target-19.C: New test.
5539
ccc8282b
NS
55402015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5541
5542 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5543 and reduction copy.
5544 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5545 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5546 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5547 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5558
5d6823a2
NS
55592015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5560
5561 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5562 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
5563 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
5564 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
5565 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
5566 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
5567 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
5568 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
5569
5c06742f
NS
55702015-11-03 Nathan Sidwell <nathan@codesourcery.com>
5571
5572 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
5573 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
5574 (GOMP_OFFLOAD_openacc_parallel): Likewise.
5575 * oacc-host.c (host_openacc_exec): Likewise.
5576 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
5577
4bf9e5a8
TS
55782015-11-03 Julian Brown <julian@codesourcery.com>
5579 Thomas Schwinge <thomas@codesourcery.com>
5580
5581 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
5582 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
5584 Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
5586 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
5587
55882015-11-03 James Norris <jnorris@codesourcery.com>
5589
5590 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
5591 file.
5592 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
5593 Likewise.
5594 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
5595 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
5596 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5597 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
5598 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5599
a0e701d8
NS
56002015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5601
5602 * openacc.h (enum acc_device_t): Reformat. Ensure layout
5603 compatibility.
5604 (enum acc_async_t): Reformat.
5605 (acc_on_device): Declare compatible with builtin and provide C++
5606 wrapper.
5607 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
5608
41e977ac
TS
56092015-10-29 Thomas Schwinge <thomas@codesourcery.com>
5610 Cesar Philippidis <cesar@codesourcery.com>
5611
5612 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
5613 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
5614 ... this. Add a description of the test at the top of the file.
5615 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
5616 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
5617 ... this. Add a description of the test at the top of the file.
5618
e3091406
NS
56192015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5620
5621 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
5622 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
5623 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
5624 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
5625 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
5626 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
5627
a1c1908b
NS
56282015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5629
5630 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
5631 dimensions.
5632
b3962a4a
TS
56332015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5634
5635 PR testsuite/68063
5636 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
5637
88bae6f4
TS
56382015-10-27 James Norris <jnorris@codesourcery.com>
5639
5640 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5641 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5642
8baa7864
TS
56432015-10-26 Thomas Schwinge <thomas@codesourcery.com>
5644
bdeb752c
TS
5645 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5646 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5647
ecd4fd43
TS
5648 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5649 acc_device_nvidia usage.
5650 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5651 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5653
aa8b7d30
TS
5654 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5655 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5656
7c8f138d
TS
5657 PR libgomp/66518
5658 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5659
8baa7864
TS
5660 PR libgomp/65437
5661 PR libgomp/66518
5662 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5663 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5664
88ebcde5
TV
56652015-10-23 Tom de Vries <tom@codesourcery.com>
5666
5667 PR testsuite/68063
5668 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5669
9ef83c04
NS
56702015-10-20 Nathan Sidwell <nathan@codesourcery.com>
5671
5672 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5673 vector_length.
5674 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5675
3837c6d6
IV
56762015-10-14 Ilya Verbin <ilya.verbin@intel.com>
5677 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
5678
5679 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5680 to 0 when mapnum is 0.
5681
ac8a1965
SH
56822015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
5683
5684 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5685 Cast to int from int32_t.
5686
d9a6bd32
JJ
56872015-10-13 Jakub Jelinek <jakub@redhat.com>
5688 Aldy Hernandez <aldyh@redhat.com>
5689 Ilya Verbin <ilya.verbin@intel.com>
5690
5691 * config/linux/affinity.c (omp_get_place_num_procs,
5692 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5693 * config/linux/doacross.h: New file.
5694 * config/posix/affinity.c (omp_get_place_num_procs,
5695 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5696 * config/posix/doacross.h: New file.
5697 * env.c: Include gomp-constants.h.
5698 (struct gomp_task_icv): Rename run_sched_modifier to
5699 run_sched_chunk_size.
5700 (gomp_max_task_priority_var): New variable.
5701 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5702 (handle_omp_display_env): Change _OPENMP value from 201307 to
5703 201511. Print OMP_MAX_TASK_PRIORITY.
5704 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5705 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5706 chunk_size and run_sched_modifier to run_sched_chunk_size.
5707 (omp_get_max_task_priority, omp_get_initial_device,
5708 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5709 omp_get_partition_place_nums): New functions.
5710 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5711 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5712 to chunk_size.
5713 (omp_get_num_places_, omp_get_place_num_procs_,
5714 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5715 omp_get_place_proc_ids_8_, omp_get_place_num_,
5716 omp_get_partition_num_places_, omp_get_partition_place_nums_,
5717 omp_get_partition_place_nums_8_, omp_get_initial_device_,
5718 omp_get_max_task_priority_): New functions.
5719 * libgomp_g.h (GOMP_loop_doacross_static_start,
5720 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5721 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5722 GOMP_loop_ull_doacross_dynamic_start,
5723 GOMP_loop_ull_doacross_guided_start,
5724 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5725 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5726 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5727 GOMP_target_data_41, GOMP_target_update_41,
5728 GOMP_target_enter_exit_data): New prototypes.
5729 (GOMP_task): Add prototype argument.
5730 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5731 (struct gomp_doacross_work_share): New type.
5732 (struct gomp_work_share): Add doacross field.
5733 (struct gomp_task_icv): Rename run_sched_modifier to
5734 run_sched_chunk_size.
5735 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5736 GOMP_TASK_UNDEFERRED. Add comments.
5737 (struct gomp_task_depend_entry): Add comments.
5738 (struct gomp_task): Likewise.
5739 (struct gomp_taskgroup): Likewise.
5740 (struct gomp_target_task): New type.
5741 (struct gomp_team): Add comment.
5742 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5743 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5744 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5745 (struct target_var_desc): New type.
5746 (struct target_mem_desc): Adjust comment. Use struct
5747 target_var_desc instead of splay_tree_key for list.
5748 (REFCOUNT_INFINITY): Define.
5749 (struct splay_tree_key_s): Remove copy_from field.
5750 (struct gomp_device_descr): Add dev2dev_func field.
5751 (enum gomp_map_vars_kind): New enum.
5752 (gomp_map_vars): Add one argument.
5753 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5754 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5755 omp_get_place_num_procs, omp_get_place_num_procs_,
5756 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5757 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5758 omp_get_place_num_, omp_get_partition_num_places,
5759 omp_get_partition_num_places_, omp_get_partition_place_nums,
5760 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5761 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5762 omp_target_free, omp_target_is_present, omp_target_memcpy,
5763 omp_target_memcpy_rect, omp_target_associate_ptr and
5764 omp_target_disassociate_ptr.
5765 (GOMP_4.0.2): Renamed to ...
5766 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5767 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5768 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5769 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5770 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5771 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5772 GOMP_loop_ull_doacross_guided_start,
5773 GOMP_loop_ull_doacross_runtime_start,
5774 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5775 GOMP_doacross_ull_wait.
5776 * libgomp.texi: Document omp_get_max_task_priority.
5777 Rename modifier argument to chunk_size for omp_set_schedule and
5778 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5779 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5780 to run_sched_chunk_size renaming.
5781 (GOMP_loop_ordered_runtime_start): Likewise.
5782 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5783 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5784 GOMP_parallel_loop_runtime_start): New functions.
5785 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5786 to run_sched_chunk_size renaming.
5787 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5788 GOMP_loop_doacross_guided_start): New functions or aliases.
5789 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5790 run_sched_modifier to run_sched_chunk_size renaming.
5791 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5792 (gomp_loop_ull_doacross_static_start,
5793 gomp_loop_ull_doacross_dynamic_start,
5794 gomp_loop_ull_doacross_guided_start,
5795 GOMP_loop_ull_doacross_runtime_start): New functions.
5796 (GOMP_loop_ull_doacross_static_start,
5797 GOMP_loop_ull_doacross_dynamic_start,
5798 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5799 * oacc-mem.c (acc_map_data, present_create_copy,
5800 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5801 to gomp_map_vars.
5802 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5803 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5804 instead of false to gomp_map_vars.
5805 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5806 * omp.h.in (omp_lock_hint_t): New type.
5807 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5808 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5809 omp_get_place_num, omp_get_partition_num_places,
5810 omp_get_partition_place_nums, omp_get_initial_device,
5811 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5812 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5813 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5814 prototypes.
5815 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5816 (omp_lock_hint_none, omp_lock_hint_uncontended,
5817 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5818 omp_lock_hint_speculative): New parameters.
5819 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5820 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5821 omp_get_place_num, omp_get_partition_num_places,
5822 omp_get_partition_place_nums, omp_get_initial_device,
5823 omp_get_max_task_priority): New interfaces.
5824 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5825 to chunk_size.
5826 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5827 (omp_lock_hint_none, omp_lock_hint_uncontended,
5828 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5829 omp_lock_hint_speculative): New parameters.
5830 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5831 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5832 omp_get_place_num, omp_get_partition_num_places,
5833 omp_get_partition_place_nums, omp_get_initial_device,
5834 omp_get_max_task_priority): New functions and subroutines.
5835 * ordered.c: Include stdarg.h and string.h.
5836 (MAX_COLLAPSED_BITS): Define.
5837 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5838 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5839 GOMP_doacross_ull_wait): New functions.
5840 * target.c: Include errno.h.
5841 (resolve_device): If device is not initialized, call
5842 gomp_init_device on it.
5843 (gomp_map_lookup): New function.
5844 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5845 Don't bump refcount if REFCOUNT_INFINITY. Handle
5846 GOMP_MAP_ALWAYS_TO_P.
5847 (get_kind): Rename is_openacc argument to short_mapkind.
5848 (gomp_map_pointer): Use gomp_map_lookup.
5849 (gomp_map_fields_existing): New function.
5850 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5851 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5852 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5853 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5854 Adjust for tgt->list changed type and copy_from living in there.
5855 (gomp_copy_from_async): Adjust for tgt->list changed type and
5856 copy_from living in there.
5857 (gomp_unmap_vars): Likewise.
5858 (gomp_update): Likewise. Rename is_openacc argument to
5859 short_mapkind. Don't fail if object is not mapped.
5860 (gomp_load_image_to_device): Initialize refcount to
5861 REFCOUNT_INFINITY.
5862 (gomp_target_fallback): New function.
5863 (gomp_get_target_fn_addr): Likewise.
5864 (GOMP_target): Adjust gomp_map_vars caller, use
5865 gomp_get_target_fn_addr and gomp_target_fallback.
5866 (GOMP_target_41): New function.
5867 (gomp_target_data_fallback): New function.
5868 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5869 (GOMP_target_data_41): New function.
5870 (GOMP_target_update): Adjust gomp_update caller.
5871 (GOMP_target_update_41): New function.
5872 (gomp_exit_data, GOMP_target_enter_exit_data,
5873 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5874 omp_target_is_present, omp_target_memcpy,
5875 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5876 omp_target_associate_ptr, omp_target_disassociate_ptr,
5877 gomp_load_plugin_for_device): New functions.
5878 * task.c: Include gomp-constants.h. Include taskloop.c
5879 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5880 (gomp_task_handle_depend): New function.
5881 (GOMP_task): Use it. Add priority argument. Use
5882 gomp-constant.h constants instead of hardcoded numbers.
5883 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5884 (gomp_create_target_task): New function.
5885 (verify_children_queue, verify_taskgroup_queue,
5886 verify_task_queue): New functions.
5887 (gomp_task_run_pre): Call verify_*_queue functions.
5888 If an upcoming tied task is about to leave the sibling or
5889 taskgroup queues in an invalid state, adjust appropriately.
5890 Remove taskgroup argument. Add comments.
5891 (gomp_task_run_post_handle_dependers): Add comments.
5892 (gomp_task_run_post_remove_parent): Likewise.
5893 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5894 (GOMP_taskwait): Likewise. Add comments.
5895 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5896 problem such that the first non parent_depends_on task does not
5897 end up at the end of the children queue.
5898 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5899 GOMP_TASK_UNDEFERRED.
5900 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5901 * taskloop.c: New file.
5902 * testsuite/lib/libgomp.exp
5903 (check_effective_target_offload_device_nonshared_as): New proc.
5904 * testsuite/libgomp.c/affinity-2.c: New test.
5905 * testsuite/libgomp.c/doacross-1.c: New test.
5906 * testsuite/libgomp.c/doacross-2.c: New test.
5907 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5908 Add map clause to target.
5909 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5910 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5911 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5912 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5913 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5914 Likewise.
5915 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5916 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5917 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5918 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5919 not defined. Use those where needed.
5920 * testsuite/libgomp.c/for-4.c: New test.
5921 * testsuite/libgomp.c/for-5.c: New test.
5922 * testsuite/libgomp.c/for-6.c: New test.
5923 * testsuite/libgomp.c/linear-1.c: New test.
5924 * testsuite/libgomp.c/ordered-4.c: New test.
5925 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5926 only allowed on the loop iterator.
5927 * testsuite/libgomp.c/pr66199-3.c: New test.
5928 * testsuite/libgomp.c/pr66199-4.c: New test.
5929 * testsuite/libgomp.c/reduction-7.c: New test.
5930 * testsuite/libgomp.c/reduction-8.c: New test.
5931 * testsuite/libgomp.c/reduction-9.c: New test.
5932 * testsuite/libgomp.c/reduction-10.c: New test.
5933 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5934 map(tofrom:s).
5935 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5936 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5937 * testsuite/libgomp.c/target-11.c: New test.
5938 * testsuite/libgomp.c/target-12.c: New test.
5939 * testsuite/libgomp.c/target-13.c: New test.
5940 * testsuite/libgomp.c/target-14.c: New test.
5941 * testsuite/libgomp.c/target-15.c: New test.
5942 * testsuite/libgomp.c/target-16.c: New test.
5943 * testsuite/libgomp.c/target-17.c: New test.
5944 * testsuite/libgomp.c/target-18.c: New test.
5945 * testsuite/libgomp.c/target-19.c: New test.
5946 * testsuite/libgomp.c/target-20.c: New test.
5947 * testsuite/libgomp.c/target-21.c: New test.
5948 * testsuite/libgomp.c/target-22.c: New test.
5949 * testsuite/libgomp.c/target-23.c: New test.
5950 * testsuite/libgomp.c/target-24.c: New test.
5951 * testsuite/libgomp.c/target-25.c: New test.
5952 * testsuite/libgomp.c/target-26.c: New test.
5953 * testsuite/libgomp.c/target-27.c: New test.
5954 * testsuite/libgomp.c/taskloop-1.c: New test.
5955 * testsuite/libgomp.c/taskloop-2.c: New test.
5956 * testsuite/libgomp.c/taskloop-3.c: New test.
5957 * testsuite/libgomp.c/taskloop-4.c: New test.
5958 * testsuite/libgomp.c++/ctor-13.C: New test.
5959 * testsuite/libgomp.c++/doacross-1.C: New test.
5960 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5961 Replace offload_device with offload_device_nonshared_as.
5962 * testsuite/libgomp.c++/for-12.C: New test.
5963 * testsuite/libgomp.c++/for-13.C: New test.
5964 * testsuite/libgomp.c++/for-14.C: New test.
5965 * testsuite/libgomp.c++/linear-1.C: New test.
5966 * testsuite/libgomp.c++/member-1.C: New test.
5967 * testsuite/libgomp.c++/member-2.C: New test.
5968 * testsuite/libgomp.c++/member-3.C: New test.
5969 * testsuite/libgomp.c++/member-4.C: New test.
5970 * testsuite/libgomp.c++/member-5.C: New test.
5971 * testsuite/libgomp.c++/ordered-1.C: New test.
5972 * testsuite/libgomp.c++/reduction-5.C: New test.
5973 * testsuite/libgomp.c++/reduction-6.C: New test.
5974 * testsuite/libgomp.c++/reduction-7.C: New test.
5975 * testsuite/libgomp.c++/reduction-8.C: New test.
5976 * testsuite/libgomp.c++/reduction-9.C: New test.
5977 * testsuite/libgomp.c++/reduction-10.C: New test.
5978 * testsuite/libgomp.c++/reference-1.C: New test.
5979 * testsuite/libgomp.c++/simd14.C: New test.
5980 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5981 * testsuite/libgomp.c++/target-5.C: New test.
5982 * testsuite/libgomp.c++/target-6.C: New test.
5983 * testsuite/libgomp.c++/target-7.C: New test.
5984 * testsuite/libgomp.c++/target-8.C: New test.
5985 * testsuite/libgomp.c++/target-9.C: New test.
5986 * testsuite/libgomp.c++/target-10.C: New test.
5987 * testsuite/libgomp.c++/target-11.C: New test.
5988 * testsuite/libgomp.c++/target-12.C: New test.
5989 * testsuite/libgomp.c++/taskloop-1.C: New test.
5990 * testsuite/libgomp.c++/taskloop-2.C: New test.
5991 * testsuite/libgomp.c++/taskloop-3.C: New test.
5992 * testsuite/libgomp.c++/taskloop-4.C: New test.
5993 * testsuite/libgomp.c++/taskloop-5.C: New test.
5994 * testsuite/libgomp.c++/taskloop-6.C: New test.
5995 * testsuite/libgomp.c++/taskloop-7.C: New test.
5996 * testsuite/libgomp.c++/taskloop-8.C: New test.
5997 * testsuite/libgomp.c++/taskloop-9.C: New test.
5998 * testsuite/libgomp.fortran/affinity1.f90: New test.
5999 * testsuite/libgomp.fortran/affinity2.f90: New test.
6000
1f600fea
TV
60012015-10-13 Tom de Vries <tom@codesourcery.com>
6002
6003 PR tree-optimization/67476
6004 * testsuite/libgomp.c/autopar-3.c: New test.
6005 * testsuite/libgomp.c/autopar-4.c: New test.
6006 * testsuite/libgomp.c/autopar-5.c: New test.
6007 * testsuite/libgomp.c/autopar-6.c: New test.
6008 * testsuite/libgomp.c/autopar-7.c: New test.
6009 * testsuite/libgomp.c/autopar-8.c: New test.
6010
058a654b
JN
60112015-10-12 James Norris <jnorris@codesourcery.com>
6012
6013 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6014 initializer.
6015
9e531d37
DM
60162015-10-09 David Malcolm <dmalcolm@redhat.com>
6017
6018 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6019 using load_gcc_lib.
6020
113020dc
TS
60212015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6022
6023 * oacc-ptx.h: Remove file, moving its content into...
6024 * config/nvptx/fortran.c: ... here...
6025 * config/nvptx/oacc-init.c: ..., here...
6026 * config/nvptx/oacc-parallel.c: ..., and here.
6027 * config/nvptx/openacc.f90: New file.
6028 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6029 (link_ptx): Don't link in predefined bits of PTX code.
6030
cc3cd79b
NS
60312015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6032 Bernd Schmidt <bernds@codesourcery.com>
6033
6034 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6035 (struct targ_ptx_obj): New.
6036 (nvptx_tdata): Move earlier, change data format.
6037 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6038 objects.
6039 (GOMP_OFFLOAD_load_image): Adjust.
6040
4e2a5450
TS
60412015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6042
6043 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6044 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6045 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6046 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6047 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6048 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6065 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6066 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6070 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6072 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6073 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6074 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6076 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6080 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6081 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6082 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6084 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6085 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6086 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6087 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6088 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6089 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6090 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6091 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6092 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6093 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6094 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6095 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6096 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6097 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6098 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6099 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6100 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6101 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6102 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6103 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6104 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6105 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6106
164453bb
NS
61072015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6108
6109 * oacc-init.c (acc_on_device): Force optimization level.
6110
a12a0437
NS
61112015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6112
6113 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6114 (cuda_errlist): Delete.
6115 (cuda_error): Reimplement.
6116
3e32ee19
NS
61172015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6118
6119 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6120 array.
6121 * libgomp.map (GOACC_parallel_keyed): New.
6122 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6123 all callers.
6124 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6125 and take keyed varargs list. Adjust call to exec_func.
6126 (GOACC_parallel): Force host fallback.
6127 * libgomp_g.h (GOACC_parallel): Remove.
6128 (GOACC_parallel_keyed): Declare.
6129 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6130 (stuct targ_gn_descriptor): Replace name field with launch field.
6131 (nvptx_exec): Lose separate geometry args, take array. Process
6132 dynamic dimensions and adjust.
6133 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6134 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6135 data.
6136 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6137 passing.
6138 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6139 passing.
6140
6bb4c3e2
CLT
61412015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6142
6143 PR libgomp/67141
6144 * oacc-int.h (goacc_host_init): Add declaration.
6145 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6146 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6147
74032f47 61482015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 6149 Sebastian Pop <s.pop@samsung.com>
74032f47
AK
6150
6151 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
6152 match o/p.
6153 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6154 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6155 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6156 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6157 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6158
97875f4a
JJ
61592015-09-03 Jakub Jelinek <jakub@redhat.com>
6160
6161 * configure.tgt: Add missing ;; in between nvptx and rtems
6162 snippets.
6163
06441dd5
SH
61642015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6165
6166 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6167 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6168 (gomp_thread_pool_reservoir): Add priority member.
6169 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6170 priority.
6171 (parse_thread_pools): Likewise.
6172 * team.c (gomp_team_start): Call configuration provided
6173 gomp_adjust_thread_attr(). Destroy thread attributes if
6174 necessary.
6175 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6176
66c59f92
SH
61772015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6178
6179 * config/posix/pool.h: New.
6180 * config/rtems/pool.h: Likewise.
6181 * config/rtems/proc.c: Likewise.
6182 * libgomp.h (gomp_thread_destructor): Declare.
6183 * team.c: Include configuration provided "pool.h".
6184 (gomp_get_thread_pool): Define in configuration.
6185 (gomp_team_end): Call configuration defined
6186 gomp_release_thread_pool().
6187
13c41b2e
SH
61882015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6189
6190 * config/rtems/bar.c: New.
6191 * config/rtems/bar.h: Likewise.
6192 * config/rtems/mutex.c: Likewise.
6193 * config/rtems/mutex.h: Likewise.
6194 * config/rtems/sem.c: Likewise.
6195 * config/rtems/sem.h: Likewise.
6196 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6197 <sys/lock.h> header file.
6198 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6199 supported by Newlib.
6200 * configure: Regenerate.
6201
7892ec67
SH
62022015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6203
6204 * team.c (gomp_new_thread_pool): Delete and move content to ...
6205 (gomp_get_thread_pool): ... new function. Allocate and
6206 initialize thread pool on demand.
6207 (get_last_team): Use gomp_get_thread_pool().
6208 (gomp_team_start): Delete thread pool initialization.
6209
1b96e9a4
TV
62102015-09-03 Tom de Vries <tom@codesourcery.com>
6211
6212 PR tree-optimization/65637
6213 * testsuite/libgomp.c/autopar-2.c: New test.
6214
3ff2d74e
TV
62152015-08-29 Tom de Vries <tom@codesourcery.com>
6216
6217 PR tree-optimization/46193
6218 * testsuite/libgomp.c/pr46193.c: New test.
6219
2a21ff19
NS
62202015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6221
6222 libgomp/
6223 * libgomp.map: Add 4.0.2 version.
6224 * target.c (offload_image_descr): Add version field.
6225 (gomp_load_image_to_device): Add version argument. Adjust plugin
6226 call. Improve load mismatch diagnostic.
6227 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6228 call.
6229 (GOMP_offload_regster): Make stub function, move bulk to ...
6230 (GOMP_offload_register_ver): ... here. Process version argument.
6231 (GOMP_offload_unregister): Make stub function, move bulk to ...
6232 (GOMP_offload_unregister_ver): ... here. Process version argument.
6233 (gomp_init_device): Process version field.
6234 (gomp_unload_device): Process version field.
6235 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6236 macros. Check plugin version.
6237 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6238 loader and unloader types.
6239 * oacc-host.c: Include gomp-constants.h.
6240 (host_version): New.
6241 (host_load_image, host_unload_image): Adjust.
6242 (host_dispatch): Add host_version.
6243 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6244 (GOMP_OFFLOAD_version): New.
6245 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6246 (GOMP_OFFLOAD_unload_image): Likewise.
6247 * plugin/plugin-host.c: Include gomp-constants.h.
6248 (GOMP_OFFLOAD_version): New.
6249 (GOMP_OFFLOAD_load_image): Add version arg.
6250 (GOMP_OFFLOAD_unload_image): Likewise.
6251
1358a747
TV
62522015-08-24 Tom de Vries <tom@codesourcery.com>
6253
6254 PR tree-optimization/65468
6255 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6256
6be5c241
TV
62572015-08-24 Tom de Vries <tom@codesourcery.com>
6258
6259 PR tree-optimization/65468
6260 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6261
bfe7ac89
JV
62622015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6263
6264 PR libgomp/66761
6265 PR libgomp/67303
6266 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6267 (gomp_iter_guided_next): Idem.
6268 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6269 (gomp_iter_ull_guided_next): Idem.
6270 * config/linux/wait.h (do_spin): Idem.
6271
b97e78b7
TS
62722015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6273
6274 * libgomp-plugin.h (enum offload_target_type): Remove
6275 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6276 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6277 * openacc.h (enum acc_device_t): Likewise.
6278 * openacc_lib.h: Likewise.
6279 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6280 (acc_on_device): Just use __builtin_acc_on_device.
6281 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6282 of acc_on_device builtin.
6283 * plugin/plugin-host.h: Remove file.
6284 * plugin/plugin-host.c: Likewise, but salvage some content into...
6285 * oacc-host.c: ... this file.
6286 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6287 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6288 * Makefile.in: Regenerate.
6289 * configure: Likewise.
6290 * testsuite/lib/libgomp.exp
6291 (check_effective_target_openacc_host_nonshm_selected): Remove.
6292 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6293 ACC_DEVICE_TYPE=host_nonshm.
6294 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6295 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6296 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6297 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6298 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6299 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6300
44a7d18d
TS
63012015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6302 Jakub Jelinek <jakub@redhat.com>
6303
6304 * config/nvptx/affinity.c: New file.
6305 * config/nvptx/alloc.c: Likewise.
6306 * config/nvptx/bar.c: Likewise.
6307 * config/nvptx/barrier.c: Likewise.
6308 * config/nvptx/critical.c: Likewise.
6309 * config/nvptx/env.c: Likewise.
6310 * config/nvptx/error.c: Likewise.
6311 * config/nvptx/fortran.c: Likewise.
6312 * config/nvptx/iter.c: Likewise.
6313 * config/nvptx/iter_ull.c: Likewise.
6314 * config/nvptx/libgomp-plugin.c: Likewise.
6315 * config/nvptx/lock.c: Likewise.
6316 * config/nvptx/loop.c: Likewise.
6317 * config/nvptx/loop_ull.c: Likewise.
6318 * config/nvptx/mutex.c: Likewise.
6319 * config/nvptx/oacc-async.c: Likewise.
6320 * config/nvptx/oacc-cuda.c: Likewise.
6321 * config/nvptx/oacc-host.c: Likewise.
6322 * config/nvptx/oacc-init.c: Likewise.
6323 * config/nvptx/oacc-mem.c: Likewise.
6324 * config/nvptx/oacc-parallel.c: Likewise.
6325 * config/nvptx/oacc-plugin.c: Likewise.
6326 * config/nvptx/omp-lock.h: Likewise.
6327 * config/nvptx/ordered.c: Likewise.
6328 * config/nvptx/parallel.c: Likewise.
6329 * config/nvptx/proc.c: Likewise.
6330 * config/nvptx/ptrlock.c: Likewise.
6331 * config/nvptx/sections.c: Likewise.
6332 * config/nvptx/sem.c: Likewise.
6333 * config/nvptx/single.c: Likewise.
6334 * config/nvptx/splay-tree.c: Likewise.
6335 * config/nvptx/target.c: Likewise.
6336 * config/nvptx/task.c: Likewise.
6337 * config/nvptx/team.c: Likewise.
6338 * config/nvptx/time.c: Likewise.
6339 * config/nvptx/work.c: Likewise.
6340 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6341 * configure: Regenerate.
6342 * configure.tgt (config_path): Set to "nvptx" for target
6343 nvptx*-*-*.
6344
96a2d174
TS
63452015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6346
6347 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6348
9ebddeb0
NS
63492015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6350
6351 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6352 (cuda_errlist): Constify.
6353 (errmsg): Move into ...
6354 (cuda_error): ... here. Make smaller.
6355 (_XSTR, _STR): Delete.
6356 (cuda_synames): Delete.
6357 (verify_device_library): Delete.
6358 (nvptx_init): Don't call it.
6359
12efb1d7
TV
63602015-07-28 Tom de Vries <tom@codesourcery.com>
6361
6362 * testsuite/libgomp.c/uns-outer-4.c: New test.
6363
710ee218
CP
63642015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6365
6366 * testsuite/libgomp.c/pr66714.c: New test.
6367
27c4ac7d
MB
63682015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6369
6370 PR libgomp/66950
6371 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6372 (fib_ref): New function.
6373 (fib): Correct corner cases in the recursion.
6374 (main): Replace the non-simd loop with fib_ref call.
6375 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6376 subroutine.
6377 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6378 for the last array element value. Replace the non-simd loop with
6379 fib_ref call. Remove redundant b_ref array. Remove the comparison
6380 of the last array element with according Fibonacci sequence element.
6381 (fib): Correct corner cases in the recursion.
6382
22be2349
NS
63832015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6384
6385 * target.c (gomp_offload_image_to_device): Rename to ...
6386 (gomp_load_image_to_device): ... here.
6387 (GOMP_offload_register): Adjust call.
6388 (gomp_init_device): Likewise.
6389 (gomp_unload_image_from_device): New. Broken out of ...
6390 (GOMP_offload_unregister): ... here. Call it.
6391 (gomp_unload_device): New.
6392 * libgomp.h (gomp_unload_device): Declare.
6393 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6394 mem maps.
6395
f3e9a059
NS
63962015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6397
a091118d
NS
6398 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6399 wait=-specific if.
6400 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6401 !=0 condition.
6402 (goacc_waits): Move !num_waits handling to ...
6403 (GOACC_wait): ... here, the only caller that might have zero waits.
6404
f3e9a059
NS
6405 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6406 (struct ptx_image_data): Move earlier, add fns field.
6407 (struct ptx_device): Add images and image_lock fields.
6408 (ptx_images, ptx_image_lock): Delete.
6409 (nvptx_open_device): Initialize images and image_lock fields.
6410 (nvptx_close_device): Destroy image_lock.
6411 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
6412 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
6413 fields.
6414
afb2d80b
NS
64152015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6416
896c28a7
NS
6417 * target.c (GOMP_offload_register): Use int for device type arg.
6418 (GOMP_offload_unregister): Likewise.
6419
ebe4a560
NS
6420 * target.c (struct_offload_image_descr): Constify host_table.
6421 (gomp_offload_image_to_device): Likewise.
6422 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
6423
afb2d80b
NS
6424 * libgomp.h (gomp_device_descr): Constify target data arguments.
6425 * target.c (struct offload_image_descr): Constify target_data.
6426 (gomp_offload_image_to_device): Likewise.
6427 (GOMP_offload_register): Likewise.
6428 (GOMP_offload_unrefister): Likewise.
6429 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
6430 GOMP_OFFLOAD_unload_image): Constify target data.
6431 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
6432 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
6433
a4cb876d
NS
64342015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6435
6436 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
6437 Workaround driver library const error.
6438 (struct nvptx_tdata, nvptx_tdata_t): New.
6439 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
6440 type.
6441
28ef6a27
MB
64422015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
6443
6444 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
6445 of EPS parameter from integer to real.
6446 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6447 type of EPS parameter from integer to real.
6448
6dba0113
SH
64492015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6450
6451 * team.c (get_last_team): New.
6452 (gomp_new_team): Recycle last non-nested team if possible.
6453 (gomp_team_end): Move team work share list free lock destruction
6454 to ...
6455 (free_team): ... here.
6456
4c1cb4da
MB
64572015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
6458
6459 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
6460 and ref from int to double. Replaced their comparison with
6461 an inequality of their difference and EPS.
6462 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
6463 comparison of pri and a reference number with an inequality of their
6464 difference and EPS.
6465 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
6466 the comparison of sum and sum_ref with an inequality of their
6467 difference and EPS.
6468 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
6469 the comparison of pri and a reference number with an inequality of
6470 their difference and EPS.
6471
343587dc
MB
64722015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
6473
6474 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
6475 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
6476 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
6477 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
6478 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
6479 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
6480 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
6481 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
6482 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
6483 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
6484 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
6485 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
6486 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
6487 variables.
6488 (vec_mult): Likewise. Add #pragma omp taskwait.
6489 (main): Adjust caller.
6490 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
6491 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
6492 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
6493 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
6494 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
6495 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
6496 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
6497 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
6498 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
6499 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
6500 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
6501 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
6502 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
6503 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
6504 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
6505 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
6506 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
6507 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
6508 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
6509 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
6510 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
6511 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
6512 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
6513 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
6514 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
6515 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
6516 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
6517 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
6518 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
6519 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
6520 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
6521 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
6522 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
6523 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
6524 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
6525 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
6526 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
6527 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6528 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6529 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6530 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6531 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6532 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6533 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6534 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6535 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6536 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6537 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6538 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6539 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6540 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6541 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6542 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6543 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6544 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6545 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6546 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6547 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6548 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6549 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6550 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6551 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6552 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6553 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6554 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6555 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6556 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6557 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6558 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6559 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6560 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6561 (vec_mult): Add !$omp taskwait.
6562 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
6563 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
6564 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
6565 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
6566 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
6567 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
6568 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
6569 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
6570 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
6571 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
6572 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
6573 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
6574 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
6575 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
6576 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
6577 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
6578 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
6579 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
6580 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
6581 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
6582 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
6583 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
6584 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
6585 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
6586 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
6587 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
6588 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
6589 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
6590 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
6591 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
6592 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
6593 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
6594 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
6595 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
6596 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
6597 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
6598 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
6599 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
6600 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
6601 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
6602 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
6603 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
6604 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
6605 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
6606 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
6607 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
6608 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
6609 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
6610 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
6611 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
6612 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
6613 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
6614 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
6615 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
6616 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
6617 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
6618 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
6619 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
6620 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
6621 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
6622 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
6623 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
6624 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
6625 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
6626 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
6627 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
6628 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
6629
9f620bf1
TV
66302015-07-10 Tom de Vries <tom@codesourcery.com>
6631
6632 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
6633 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
6634
a92defda
TS
66352015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6636
6637 PR libgomp/65099
6638 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6639 in a 64-bit configuration.
6640 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6641 offloading testing if no such device is available.
6642 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6643 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6644
cadb53a5
TV
66452015-07-08 Tom de Vries <tom@codesourcery.com>
6646
6647 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6648 second call to f.
6649 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6650
712cb0bb
TV
66512015-07-07 Tom de Vries <tom@codesourcery.com>
6652
6653 PR tree-optimization/66642
6654 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6655 iteration count case.
6656 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6657 function, factor out of ...
6658 (main): ... here. Test low iteration count case.
6659
e5210c77
SH
66602015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
6661
6662 * libgomp.h (gomp_thread_pool): Comment last_team field.
6663
f70360e7
UB
66642015-07-02 Uros Bizjak <ubizjak@gmail.com>
6665
6666 * testsuite/libgomp.c++/pr66702-1.C: Require
6667 vect_simd_clones effective target.
6668 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6669
b451c271
TV
66702015-06-30 Tom de Vries <tom@codesourcery.com>
6671
6672 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6673 already set. Use DEFAULT_CFLAGS in dg-runtest.
6674 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6675 "-O2".
6676
f8e89d9f
TV
66772015-06-30 Tom de Vries <tom@codesourcery.com>
6678
6679 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6680 already set. Use DEFAULT_CFLAGS in dg-runtest.
6681 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6682 * testsuite/libgomp.c++/pr64824.C: Same.
6683 * testsuite/libgomp.c++/pr64868.C: Same.
6684 * testsuite/libgomp.c++/pr66199-1.C: Same.
6685 * testsuite/libgomp.c++/pr66199-2.C: Same.
6686 * testsuite/libgomp.c++/target-2.C: Same.
6687 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6688 -std=<standard> option.
6689 * testsuite/libgomp.c++/udr-11.C: Same.
6690 * testsuite/libgomp.c++/udr-12.C: Same.
6691 * testsuite/libgomp.c++/udr-13.C: Same.
6692 * testsuite/libgomp.c++/udr-14.C: Same.
6693 * testsuite/libgomp.c++/udr-15.C: Same.
6694 * testsuite/libgomp.c++/udr-16.C: Same.
6695 * testsuite/libgomp.c++/udr-17.C: Same.
6696 * testsuite/libgomp.c++/udr-18.C: Same.
6697 * testsuite/libgomp.c++/udr-19.C: Same.
6698 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6699 * testsuite/libgomp.c++/simd-1.C: Same.
6700 * testsuite/libgomp.c++/simd-2.C: Same.
6701 * testsuite/libgomp.c++/simd-3.C: Same.
6702 * testsuite/libgomp.c++/simd-4.C: Same.
6703 * testsuite/libgomp.c++/simd-5.C: Same.
6704 * testsuite/libgomp.c++/simd-6.C: Same.
6705 * testsuite/libgomp.c++/simd-7.C: Same.
6706 * testsuite/libgomp.c++/simd-8.C: Same.
6707 * testsuite/libgomp.c++/simd-9.C: Same.
6708 * testsuite/libgomp.c++/simd10.C: Same.
6709 * testsuite/libgomp.c++/simd11.C: Same.
6710 * testsuite/libgomp.c++/simd12.C: Same.
6711 * testsuite/libgomp.c++/simd13.C: Same.
6712
3446fe48
JJ
67132015-06-30 Jakub Jelinek <jakub@redhat.com>
6714
6715 PR middle-end/66702
6716 * testsuite/libgomp.c++/pr66702-1.C: New test.
6717 * testsuite/libgomp.c++/pr66702-2.C: New test.
6718
8a36714a
TV
67192015-06-30 Tom de Vries <tom@codesourcery.com>
6720
6721 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6723 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6724 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6725
4f75d608
TV
67262015-06-30 Tom de Vries <tom@codesourcery.com>
6727
6728 PR tree-optimization/66652
6729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6730 using restrict pointers.
6731 (main): Add arguments to calls to f.
6732 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6733
6d9d1eeb
AT
67342015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
6735
6736 * configure.ac: Fix check for header <sys/sysctl.h>.
6737 * configure: Regenerate.
6738 * config.h.in: Likewise.
6739
1222f22b
TV
67402015-06-23 Tom de Vries <tom@codesourcery.com>
6741
6742 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6743 abort.
6744 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6745
d7efbbf6
TS
67462015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6747
bfcd036f
TS
6748 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6749 acc_device_nvidia.
6750
d7efbbf6
TS
6751 PR libgomp/66518
6752 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6753 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6754
d7bfc710
TV
67552015-06-15 Tom de Vries <tom@codesourcery.com>
6756
6757 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6758 dg-additional-options for any remaining options.
6759 * testsuite/libgomp.c/atomic-2.c: Same.
6760 * testsuite/libgomp.c/atomic-4.c: Same.
6761 * testsuite/libgomp.c/atomic-5.c: Same.
6762 * testsuite/libgomp.c/atomic-6.c: Same.
6763 * testsuite/libgomp.c/autopar-1.c: Same.
6764 * testsuite/libgomp.c/copyin-1.c: Same.
6765 * testsuite/libgomp.c/copyin-2.c: Same.
6766 * testsuite/libgomp.c/copyin-3.c: Same.
6767 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6768 * testsuite/libgomp.c/nestedfn-5.c: Same.
6769 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6770 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6771 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6772 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6773 * testsuite/libgomp.c/pr32362-1.c: Same.
6774 * testsuite/libgomp.c/pr32362-2.c: Same.
6775 * testsuite/libgomp.c/pr32362-3.c: Same.
6776 * testsuite/libgomp.c/pr39591-1.c: Same.
6777 * testsuite/libgomp.c/pr39591-2.c: Same.
6778 * testsuite/libgomp.c/pr39591-3.c: Same.
6779 * testsuite/libgomp.c/pr58392.c: Same.
6780 * testsuite/libgomp.c/pr58756.c: Same.
6781 * testsuite/libgomp.c/simd-1.c: Same.
6782 * testsuite/libgomp.c/simd-10.c: Same.
6783 * testsuite/libgomp.c/simd-11.c: Same.
6784 * testsuite/libgomp.c/simd-12.c: Same.
6785 * testsuite/libgomp.c/simd-13.c: Same.
6786 * testsuite/libgomp.c/simd-14.c: Same.
6787 * testsuite/libgomp.c/simd-15.c: Same.
6788 * testsuite/libgomp.c/simd-2.c: Same.
6789 * testsuite/libgomp.c/simd-3.c: Same.
6790 * testsuite/libgomp.c/simd-4.c: Same.
6791 * testsuite/libgomp.c/simd-5.c: Same.
6792 * testsuite/libgomp.c/simd-6.c: Same.
6793 * testsuite/libgomp.c/simd-7.c: Same.
6794 * testsuite/libgomp.c/simd-8.c: Same.
6795 * testsuite/libgomp.c/simd-9.c: Same.
6796
fb5b5352
TV
67972015-06-15 Tom de Vries <tom@codesourcery.com>
6798
6799 * testsuite/libgomp.c/pr35625.c: Fix typo.
6800
ca431bef
TV
68012015-06-15 Tom de Vries <tom@codesourcery.com>
6802
6803 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6804 in dg-options.
6805 * testsuite/libgomp.c/atomic-3.c: Same.
6806 * testsuite/libgomp.c/debug-1.c: Same.
6807 * testsuite/libgomp.c/nqueens-1.c: Same.
6808 * testsuite/libgomp.c/pr26171.c: Same.
6809 * testsuite/libgomp.c/pr48591.c: Same.
6810 * testsuite/libgomp.c/pr64824.c: Same.
6811 * testsuite/libgomp.c/pr64868.c: Same.
6812 * testsuite/libgomp.c/pr66133.c: Same.
6813 * testsuite/libgomp.c/pr66199-1.c: Same.
6814 * testsuite/libgomp.c/pr66199-2.c: Same.
6815 * testsuite/libgomp.c/target-8.c: Same.
6816
0d8a9e20
TV
68172015-06-15 Tom de Vries <tom@codesourcery.com>
6818
6819 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6820 -std={gnu99,c99}.
6821 * testsuite/libgomp.c/for-1.c: Same.
6822 * testsuite/libgomp.c/for-2.c: Same.
6823 * testsuite/libgomp.c/for-3.c: Same.
6824 * testsuite/libgomp.c/pr35625.c: Same.
6825 * testsuite/libgomp.c/pr39154.c: Same.
6826 * testsuite/libgomp.c/simd-16.c: Same.
6827 * testsuite/libgomp.c/simd-17.c: Same.
6828
a6860be9
TV
68292015-06-13 Tom de Vries <tom@codesourcery.com>
6830
6831 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6832
ab3306d2
TV
68332015-06-13 Tom de Vries <tom@codesourcery.com>
6834
6835 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6836 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6837 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6838 (N): Define.
6839 (main): Use N instead of hardcoded constants.
6840
7c82d827
TV
68412015-06-05 Tom de Vries <tom@codesourcery.com>
6842
6843 merge from gomp4 branch:
6844 2015-05-28 Tom de Vries <tom@codesourcery.com>
6845
6846 PR tree-optimization/65443
6847 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6848 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6849 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6850
c469078d
BRF
68512015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6852
6853 * testsuite/libgomp.graphite/bounds.c: Adjust for
6854 cleanup-tree-dump removal.
6855 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6856 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6857 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6858 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6859 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6860 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6861 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6862 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6863 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6864 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6865
bb3caa35
UB
68662015-05-28 Uros Bizjak <ubizjak@gmail.com>
6867
6868 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6869 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6870 (futex_wake) [!__x86_64__]: Ditto.
6871
9fb5fd44
JB
68722015-05-28 Julian Brown <julian@codesourcery.com>
6873
6874 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6875 function comment. Only call gomp_fatal if new argument is true.
6876 (acc_dev_num_out_of_range): New function.
6877 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6878 acc_dev_num_out_of_range as appropriate.
6879 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
6880 (acc_get_device_num, acc_set_device_num): Update calls to
6881 resolve_device.
9fb5fd44
JB
6882 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6883 output.
6884
32eaed93
JB
68852015-05-28 Julian Brown <julian@codesourcery.com>
6886
6887 PR libgomp/65742
32eaed93
JB
6888 * oacc-init.c (plugin/plugin-host.h): Include.
6889 (acc_on_device): Check whether we're in an offloaded region for
6890 host_nonshm
6891 plugin. Don't use __builtin_acc_on_device.
6892 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6893 nonshm_exec flag in thread-local data.
6894 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6895 data for host_nonshm plugin.
6896 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6897 for host_nonshm plugin.
6898 * plugin/plugin-host.h: New.
6899
ea023bcf
UB
69002015-05-27 Uros Bizjak <ubizjak@gmail.com>
6901
8ed501f1
UB
6902 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6903
69042015-05-27 Uros Bizjak <ubizjak@gmail.com>
6905
6906 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6907 Declare as int.
6908 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6909 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6910 Declare as int.
6911
69122015-05-27 Uros Bizjak <ubizjak@gmail.com>
6913
bb3caa35 6914 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 6915
1716efeb
CLT
69162015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6917
6918 * target.c (gomp_map_pointer): New function abstracting out
6919 GOMP_MAP_POINTER handling.
6920 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6921 gomp_map_pointer().
6922
41b37d5e
JJ
69232015-05-19 Jakub Jelinek <jakub@redhat.com>
6924
6925 PR middle-end/66199
6926 * testsuite/libgomp.c/pr66199-1.c: New test.
6927 * testsuite/libgomp.c/pr66199-2.c: New test.
6928 * testsuite/libgomp.c++/pr66199-1.C: New test.
6929 * testsuite/libgomp.c++/pr66199-2.C: New test.
6930 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6931 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6932
c8319826
JB
69332015-05-19 Julian Brown <julian@codesourcery.com>
6934
6935 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6936 on cuInit failure.
6937
b37dddbc
JJ
69382015-05-13 Jakub Jelinek <jakub@redhat.com>
6939
6940 PR middle-end/66133
6941 * testsuite/libgomp.c/pr66133.c: New test.
6942
55fba601
MH
69432015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6944
6945 * Makefile.in: Regenerated with automake-1.11.6.
6946 * aclocal.m4: Likewise.
6947 * config.h.in: Likewise.
6948 * configure: Likewise.
6949 * testsuite/Makefile.in: Likewise.
6950
1be0899d
JM
69512015-05-08 Jason Merrill <jason@redhat.com>
6952
6953 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6954 _Complex.
6955
6956 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6957
d2463960
JB
69582015-05-06 Julian Brown <julian@codesourcery.com>
6959
6960 * oacc-init.c (acc_device_lock): Add explanatory comment.
6961 (resolve_device): Add comment about locking requirement.
6962 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6963 gomp_init_device and gomp_fini_device calls.
6964 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6965 (acc_get_device_num, acc_set_device_num): Add locking around
6966 resolve_device and gomp_init_device calls.
6967
e38fdba4
JB
69682015-05-06 Julian Brown <julian@codesourcery.com>
6969
6970 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6971 goacc_thread_lock on error paths.
6972 * oacc-mem.c (lookup_host): Remove locking from function. Note
6973 locking requirement for caller in function comment.
6974 (lookup_dev): Likewise.
6975 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6976 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6977 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6978 Add locking.
6979
ae8ffbbb
TS
69802015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6981
6982 PR testsuite/65205
6983 PR libgomp/65993
6984 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6985 don't expect "0x" prefix for "%p" format specifier, don't expect
6986 "(nil)" for NULL pointer.
6987 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7016 accurately specify what we're looking for.
7017 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7019 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7020 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7021 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7022
1309f1d2
JN
70232015-04-30 James Norris <jnorris@codesourcery.com>
7024
7025 PR testsuite/65205
7026 * testsuite/lib/libgomp.exp
7027 (check_effective_target_openacc_host_selected)
7028 (check_effective_target_openacc_host_nonshm_selected): New
7029 procedures.
7030 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7031 dg-shouldfail.
7032 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7043 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7044 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7045 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7046 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7049 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7050 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7051 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7052 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7053 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7054 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7055 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7056 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7057 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7058 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7059 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7062 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7063 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7064 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7065 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7066 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7067 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7068 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7071 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7074 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7075
d93bdab5
JB
70762015-04-08 Julian Brown <julian@codesourcery.com>
7077
7078 * libgomp.h (target_mem_desc: Remove mem_map field.
7079 (acc_dispatch_t): Remove open_device_func, close_device_func,
7080 get_device_num_func, set_device_num_func, target_data members.
7081 Change create_thread_data_func argument to device number instead of
7082 generic pointer.
7083 * oacc-async.c (assert.h): Include.
7084 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7085 (acc_wait_all, acc_wait_all_async): Use current host thread's
7086 active device, not base_dev.
7087 * oacc-cuda.c (acc_get_current_cuda_device)
7088 (acc_get_current_cuda_context, acc_get_cuda_stream)
7089 (acc_set_cuda_stream): Likewise.
7090 * oacc-host.c (host_dispatch): Don't set open_device_func,
7091 close_device_func, get_device_num_func or set_device_num_func.
7092 * oacc-init.c (base_dev, init_key): Remove.
7093 (cached_base_dev): New.
7094 (name_of_acc_device_t): New.
7095 (acc_init_1): Initialise default-numbered device, not zeroth.
7096 (acc_shutdown_1): Close all devices of a given type.
7097 (goacc_destroy_thread): Don't use base_dev.
7098 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7099 (goacc_attach_host_thread_to_device): New.
7100 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7101 (acc_get_num_devices): Don't use base_dev.
7102 (acc_set_device_type): Reimplement.
7103 (acc_get_device_type): Don't use base_dev.
7104 (acc_get_device_num): Tweak logic.
7105 (acc_set_device_num): Likewise.
7106 (acc_on_device): Use acc_get_device_type.
7107 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7108 (goacc_lazy_initialize): Reimplement with acc_init and
7109 goacc_attach_host_thread_to_device.
7110 * oacc-int.h (goacc_thread): Add base_dev field.
7111 (base_dev): Remove extern declaration.
7112 (goacc_attach_host_thread_to_device): Add prototype.
7113 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7114 base_dev.
7115 (acc_free): Likewise.
7116 (acc_memcpy_to_device): Likewise.
7117 (acc_memcpy_from_device): Likewise.
7118 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7119 goacc_lazy_initialize (throughout).
7120 (GOACC_parallel): Use tgt_offset to locate target functions.
7121 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7122 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7123 (gomp_load_plugin_for_device): Remove open_device, close_device,
7124 get_device_num, set_device_num openacc hook initialisation. Don't set
7125 openacc.target_data.
7126 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7127 (GOMP_OFFLOAD_openacc_close_device)
7128 (GOMP_OFFLOAD_openacc_get_device_num)
7129 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7130 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7131 to int.
7132 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7133 (instantiated_devices, ptx_dev_lock): New.
7134 (struct ptx_image_data): New.
7135 (ptx_devices, ptx_images, ptx_image_lock): New.
7136 (fini_streams_for_device): Reorder cuStreamDestroy call.
7137 (nvptx_get_num_devices): Remove forward declaration.
7138 (nvptx_init): Change return type to bool.
7139 (nvptx_fini): Remove.
7140 (nvptx_attach_host_thread_to_device): New.
7141 (nvptx_open_device): Return struct ptx_device* instead of void*.
7142 (nvptx_close_device): Change argument type to struct ptx_device*,
7143 return type to void.
7144 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7145 (kernel_target_data, kernel_host_table): Remove static globals.
7146 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7147 (GOMP_OFFLOAD_init_device): Reimplement.
7148 (GOMP_OFFLOAD_fini_device): Likewise.
7149 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7150 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7151 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7152 (GOMP_OFFLOAD_openacc_open_device)
7153 (GOMP_OFFLOAD_openacc_close_device)
7154 (GOMP_OFFLOAD_openacc_set_device_num)
7155 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7156 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7157 (device number).
7158
7159 testsuite/
7160 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7161
a51df54e
IV
71622015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7163
7164 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7165 * libgomp.h (struct gomp_memory_mapping): Remove.
7166 (struct target_mem_desc): Change type of mem_map from
7167 gomp_memory_mapping * to splay_tree_s *.
7168 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7169 Add load_image_func, unload_image_func.
7170 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7171 Remove offload_regions_registered.
7172 (gomp_init_tables): Remove.
7173 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7174 to splay_tree_s *.
7175 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7176 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7177 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7178 offload_regions_registered.
7179 Initialize load_image_func, unload_image_func, mem_map.root.
7180 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7181 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7182 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7183 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7184 gomp_memory_mapping *. Use dev's lock and splay_tree.
7185 (lookup_dev): Use dev's lock.
7186 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7187 (acc_is_present): Likewise.
7188 (acc_map_data): Likewise.
7189 (acc_unmap_data): Likewise. Use dev's lock.
7190 (present_create_copy): Likewise.
7191 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7192 (update_dev_host): Likewise.
7193 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7194 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7195 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7196 (GOMP_OFFLOAD_get_table): Remove
7197 (GOMP_OFFLOAD_load_image): New function.
7198 (GOMP_OFFLOAD_unload_image): New function.
7199 * target.c (register_lock): New mutex for offload image registration.
7200 (num_devices): Do not guard with PLUGIN_SUPPORT.
7201 (gomp_realloc_unlock): New static function.
7202 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7203 before gomp_fatal.
7204 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7205 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7206 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7207 mem_map's.
7208 (gomp_unmap_vars): Likewise.
7209 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7210 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7211 (gomp_offload_image_to_device): New static function.
7212 (GOMP_offload_register): Add mutex lock.
7213 Call gomp_offload_image_to_device for all initialized devices.
7214 Replace gomp_realloc with gomp_realloc_unlock.
7215 (GOMP_offload_unregister): New function.
7216 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7217 get_table_func from the plugin with calls to init_device_func and
7218 gomp_offload_image_to_device.
7219 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7220 to splay_tree_s *.
7221 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7222 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7223 (GOMP_target_data): Do not call gomp_init_tables.
7224 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7225 (gomp_load_plugin_for_device): Replace register_image and get_table
7226 with load_image and unload_image in DLSYM ().
7227 (gomp_register_images_for_device): Remove function.
7228 (gomp_target_init): Do not initialize current_device.mem_map.*,
7229 current_device.offload_regions_registered.
7230 Remove call to gomp_register_images_for_device.
7231 Do not free offload_images and num_offload_images.
7232
6c384511
JJ
72332015-03-30 Jakub Jelinek <jakub@redhat.com>
7234
7235 PR fortran/65597
7236 * testsuite/libgomp.fortran/pr65597.f90: New test.
7237
3e8165a5
TV
72382015-03-27 Tom de Vries <tom@codesourcery.com>
7239
7240 PR testsuite/65594
7241 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7242 (init, check): New function.
7243 (foo): Change return type to void.
7244 (main): Call init and check.
7245
4d688c9a
TV
72462015-03-27 Tom de Vries <tom@codesourcery.com>
7247
7248 PR testsuite/65594
7249 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7250 (foo): Use M for non-inner loops to scale down test-case.
7251
01c0b3b0
KT
72522015-03-25 Kai Tietz <ktietz@redhat.com>
7253
7254 PR libgomp/64972
7255 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7256 (GOACC_data_start): Likewise.
7257 * target.c (gomp_map_vars): Likewise.
7258
844d9a76
JDA
72592015-03-21 John David Anglin <danglin@gcc.gnu.org>
7260
7261 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7262 hppa*-*-hpux*.
7263
9b65e171
JJ
72642015-03-19 Jakub Jelinek <jakub@redhat.com>
7265
7266 * testsuite/libgomp.c/target-10.c: New test.
7267 * testsuite/libgomp.c++/target-4.C: New test.
7268
db397e2e
IV
72692015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7270
7271 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7272 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7273
cd93945d
SH
72742015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7275
7276 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7277 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7278 (pthread.h): Check for this header file.
7279 * configure: Regenerate.
7280
05deba9f
TV
72812015-02-25 Tom de Vries <tom@codesourcery.com>
7282
7283 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7284 (check_reduction_op, check_reduction_macro, max, min):
7285 Declare.
7286 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7287 function.
7288 (main): Use new functions.
7289
196904d8
IT
72902015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7291
7292 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7293 char * for variables holding dlerror return values.
7294 (DLSYM_OPT): Ditto.
7295
a2818955
TS
72962015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7297
7298 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7299
26f93312
TS
73002015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7301 Cesar Philippidis <cesar@codesourcery.com>
7302
7303 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7304 GOACC_ctaid, and GOACC_nctaid routines.
7305
fa01ffcc
JJ
73062015-02-11 Jakub Jelinek <jakub@redhat.com>
7307
7308 PR c/64824
7309 * testsuite/libgomp.c/atomic-18.c: New test.
7310 * testsuite/libgomp.c++/atomic-16.C: New test.
7311
4886ec8e
JJ
73122015-02-04 Jakub Jelinek <jakub@redhat.com>
7313
7314 PR c/64824
7315 PR c/64868
7316 * testsuite/libgomp.c/pr64824.c: New test.
7317 * testsuite/libgomp.c/pr64868.c: New test.
7318 * testsuite/libgomp.c++/pr64824.C: New test.
7319 * testsuite/libgomp.c++/pr64868.C: New test.
7320
02d3e45e
DE
73212015-02-01 David Edelsohn <dje.gcc@gmail.com>
7322
7323 PR libgomp/64635
7324 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7325 Link with -lpthread.
7326 * config/aix/plugin-suffix.h: Delete.
7327
b5f7a6ca
JH
73282015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7329
7330 PR libgomp/64635
7331 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7332 (*-*-darwin*): Use config_path "bsd darwin posix".
7333 (*-*-hpux*): Use config_path "hpux posix".
7334 * target.c: Add include of plugin-suffix.h and use
7335 SONAME_SUFFIX macro.
7336 * config/aix/plugin-suffix.h: New file.
7337 * config/darwin/plugin-suffix.h: New file.
7338 * config/hpux/plugin-suffix.h: New file.
7339 * config/posix/plugin-suffix.h: New file.
7340
b8910447
JJ
73412015-01-23 Jakub Jelinek <jakub@redhat.com>
7342
7343 PR middle-end/64734
7344 * libgomp.c/pr64734.c: New test.
7345
a0c88d06
TV
73462015-01-23 Tom de Vries <tom@codesourcery.com>
7347
7348 PR libgomp/64672
7349 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7350
1506ae0e
TV
73512015-01-23 Tom de Vries <tom@codesourcery.com>
7352
7353 PR libgomp/64707
7354 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7355 dg-options.
7356
128b26dc
TS
73572015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7358
bed62c21 7359 PR libgomp/64625
128b26dc
TS
7360 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7361 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7362 formal parameter. Update all users.
7363 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7364 Document unused formal parameter.
7365
6e36114c
TS
73662015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7367
7368 * oacc-parallel.c: Don't include <alloca.h>.
7369 (GOACC_parallel): Use gomp_alloca instead of alloca.
7370
973e9808
GP
73712015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7372
7373 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7374
41dbbb37
TS
73752015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7376 James Norris <jnorris@codesourcery.com>
7377 Tom de Vries <tom@codesourcery.com>
7378 Julian Brown <julian@codesourcery.com>
7379 Cesar Philippidis <cesar@codesourcery.com>
7380 Nathan Sidwell <nathan@codesourcery.com>
7381 Tobias Burnus <burnus@net-b.de>
7382
7383 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7384 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7385 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7386 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7387 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7388 Include $(top_srcdir)/plugin/Makefrag.am.
7389 (nodist_libsubinclude_HEADERS): Add openacc.h.
7390 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7391 openacc.f90, openacc.mod, openacc_kinds.mod.
7392 (omp_lib.mod): Generalize into...
7393 (%.mod): ... this new rule.
7394 (openacc_kinds.mod, openacc.mod): New rules.
7395 * plugin/configfrag.ac: New file.
7396 * configure.ac: Move plugin/offloading support into it. Include
7397 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7398 * plugin/Makefrag.am: New file.
7399 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7400 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7401 export.
7402 (libgomp-test-support.exp): New rule.
7403 (all-local): Depend on it.
7404 * Makefile.in: Regenerate.
7405 * testsuite/Makefile.in: Regenerate.
7406 * config.h.in: Likewise.
7407 * configure: Likewise.
7408 * configure.tgt: Harden shell syntax.
7409 * env.c: Include "oacc-int.h".
7410 (parse_acc_device_type): New function.
7411 (gomp_debug_var, goacc_device_type, goacc_device_num): New
7412 variables.
7413 (initialize_env): Initialize those. Call
7414 goacc_runtime_initialize.
7415 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
7416 (gomp_fatal): Call gomp_vfatal.
7417 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
7418 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
7419 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
7420 (splay_tree_node, splay_tree, splay_tree_key)
7421 (struct target_mem_desc, struct splay_tree_key_s)
7422 (struct gomp_memory_mapping, struct acc_dispatch_t)
7423 (struct gomp_device_descr, gomp_acc_insert_pointer)
7424 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
7425 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
7426 (gomp_free_memmap, gomp_fini_device): New declarations.
7427 (gomp_vdebug, gomp_debug): New macros.
7428 Include "splay-tree.h".
7429 * libgomp.map (OACC_2.0): New symbol version. Use for
7430 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
7431 acc_set_device_type_h_, acc_get_device_type,
7432 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
7433 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
7434 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
7435 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
7436 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
7437 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
7438 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
7439 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
7440 acc_copyin_array_h_, acc_present_or_copyin,
7441 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
7442 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
7443 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
7444 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
7445 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
7446 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
7447 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
7448 acc_update_device, acc_update_device_32_h_,
7449 acc_update_device_64_h_, acc_update_device_array_h_,
7450 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
7451 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
7452 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
7453 acc_is_present_64_h_, acc_is_present_array_h_,
7454 acc_memcpy_to_device, acc_memcpy_from_device,
7455 acc_get_current_cuda_device, acc_get_current_cuda_context,
7456 acc_get_cuda_stream, acc_set_cuda_stream.
7457 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
7458 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
7459 GOACC_update, GOACC_wait, GOACC_get_thread_num,
7460 GOACC_get_num_threads.
7461 (GOMP_PLUGIN_1.0): New symbol version. Use for
7462 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
7463 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
7464 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
7465 GOMP_PLUGIN_acc_thread.
7466 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
7467 environment variable.
7468 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
7469 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
7470 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
7471 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
7472 (splay_tree_remove): New declarations.
7473 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
7474 (splay_tree_remove, splay_tree_lookup): Move into...
7475 * splay-tree.c: ... this new file.
7476 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
7477 (splay_tree_node, splay_tree, splay_tree_key)
7478 (struct target_mem_desc, struct splay_tree_key_s)
7479 (struct gomp_device_descr): Don't declare.
7480 (num_devices_openmp): New variable.
7481 (gomp_get_num_devices ): Use it.
7482 (gomp_init_targets_once): New function.
7483 (gomp_get_num_devices ): Use it.
7484 (get_kind, gomp_copy_from_async, gomp_free_memmap)
7485 (gomp_fini_device, gomp_register_image_for_device): New functions.
7486 (gomp_map_vars): Add devaddrs parameter.
7487 (gomp_update): Add mm parameter.
7488 (gomp_init_device): Move most of it into...
7489 (gomp_init_tables): ... this new function.
7490 (gomp_register_images_for_device): Remove function.
7491 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
7492 Make them hidden instead of static.
7493 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
7494 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
7495 (GOMP_target_end_data, GOMP_target_update)
7496 (gomp_load_plugin_for_device, gomp_target_init): Update for
7497 OpenACC changes.
7498 * oacc-async.c: New file.
7499 * oacc-cuda.c: Likewise.
7500 * oacc-host.c: Likewise.
7501 * oacc-init.c: Likewise.
7502 * oacc-int.h: Likewise.
7503 * oacc-mem.c: Likewise.
7504 * oacc-parallel.c: Likewise.
7505 * oacc-plugin.c: Likewise.
7506 * oacc-plugin.h: Likewise.
7507 * oacc-ptx.h: Likewise.
7508 * openacc.f90: Likewise.
7509 * openacc.h: Likewise.
7510 * openacc_lib.h: Likewise.
7511 * plugin/plugin-host.c: Likewise.
7512 * plugin/plugin-nvptx.c: Likewise.
7513 * libgomp-plugin.c: Likewise.
7514 * libgomp-plugin.h: Likewise.
7515 * libgomp_target.h: Remove file after merging content into the
7516 former file. Update all users.
7517 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
7518 (offload_targets_s, offload_targets_s_openacc): New variables.
7519 (check_effective_target_openacc_nvidia_accel_present)
7520 (check_effective_target_openacc_nvidia_accel_selected): New
7521 procedures.
7522 (libgomp_init): Update for OpenACC changes.
7523 * testsuite/libgomp-test-support.exp.in: New file.
7524 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7525 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7526 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7527 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7528 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7529 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7530 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7531 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7532 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7533 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7534 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7535 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7536 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7537 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7538 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7539 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7540 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7541 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7542 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7543 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7544 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7545 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7546 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7547 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7548 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7549 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7550 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7551 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7552 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7553 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7554 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7555 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7556 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7557 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7558 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7559 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7560 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7561 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7562 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
7563 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7564 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7565 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7566 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7567 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7568 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7569 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
7570 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7571 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7572 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7573 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7574 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7575 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7576 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7577 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7578 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7579 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7580 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7581 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7582 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7583 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
7584 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
7585 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
7586 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7607 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7608 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
7610 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7612 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7613 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
7614 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7615 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
7616 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
7617 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7618 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7619 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7620 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7621 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
7622 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7623 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7624 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7625 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
7626 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7627 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7628 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7629 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7630 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7632 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7633 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7634 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7636 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7637 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7638 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7639 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7640 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7641 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7642 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7643 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7644 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7645 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7646 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7647 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7648 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7649 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7650 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7651 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7652 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7653 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7654 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7655 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7656 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7657 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7658 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7659 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7660 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7661 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7662 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7663 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7664 Likewise.
7665 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7666 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7667 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7668 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7669 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7670 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7671 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7672 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7673 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7674 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7675 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7676 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7677 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7678 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7679 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7680 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7681 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7682 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7683 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7684 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7685 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7686 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7687 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7688 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7689 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7690 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7691 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7692 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7693 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7694 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7695 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7696 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7697 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7698 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7699 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7700 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7701 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7702 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7703 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7704 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7705 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7706 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7707 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7708 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7709 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7710 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7711 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7712 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7713 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7714 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7715 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7716 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7717 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7718 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7719 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7720 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7721 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7722 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7723 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7724 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7725
f1f3453e
TS
77262015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7727 Julian Brown <julian@codesourcery.com>
7728 David Malcolm <dmalcolm@redhat.com>
7729
7730 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7731 to "GNU Offloading and Multi Processing Runtime Library". Change
7732 all users.
7733 * configure: Regenerate.
7734 * libgomp.texi: Update.
7735
f9a0eca4
TS
77362015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7737
b335ef4e
TS
7738 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7739 "$tgt_dir/lib32".
7740 * configure: Regenerate.
7741
f9a0eca4
TS
7742 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7743 "intelmic" in $offload_targets.
7744
b67cd4e3
JJ
77452015-01-05 Jakub Jelinek <jakub@redhat.com>
7746
5624e564
JJ
7747 Update copyright years.
7748
b67cd4e3
JJ
7749 * libgomp.texi: Bump @copying's copyright year.
7750
3b41b583
KT
77512014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7752
7753 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7754 Move load of target-supportes.exp earlier.
7755
2354caec
IV
77562014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7757
7758 * testsuite/libgomp.c/target-9.c: New test.
7759
f50eecba
VR
77602014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7761
7762 * config.h.in: Regenerate.
7763 * configure: Regenerate.
7764 * configure.ac: Add GCC_CHECK_EMUTLS.
7765 * libgomp.h: Add check for USE_EMUTLS: this case
7766 is equal to HAVE_TLS.
7767 * team.c: Likewise.
7768
68bc9270
UB
77692014-12-03 Uros Bizjak <ubizjak@gmail.com>
7770
7771 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7772
476ff787
AT
77732014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7774 Ilya Verbin <ilya.verbin@intel.com>
7775
7776 * testsuite/libgomp.c/target-critical-1.c: New test.
7777
31a30e62
JJ
77782014-11-26 Jakub Jelinek <jakub@redhat.com>
7779
7780 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 7781 to dg-options unless expensive testing is on.
31a30e62
JJ
7782 (TESTITERS): Define to N if not defined.
7783 (main): Use TESTITERS instead of N.
7784 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7785 dg-additional-options depending on whether expensive testing is on.
7786 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7787 Decrease N to 100000 and CHUNKSZ to 10000.
7788
3f9e8f13
JJ
77892014-11-24 Jakub Jelinek <jakub@redhat.com>
7790
7791 PR fortran/63938
31a30e62
JJ
7792 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7793 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 7794
c8451a46
SE
77952014-11-21 Steve Ellcey <sellcey@imgtec.com>
7796
7797 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7798
a699d672
L
77992014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7800
7801 PR bootstrap/63784
7802 * configure: Regenerated.
7803
4a19f719
UB
78042014-11-19 Uros Bizjak <ubizjak@gmail.com>
7805
7806 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7807 vect_simd_clones effective target.
7808 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7809
b1bf6c52
JJ
78102014-11-14 Jakub Jelinek <jakub@redhat.com>
7811
7812 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7813 of 32 as block_size.
7814 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7815 instead of 32 as block_size.
7816
d64ae614
AT
78172014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7818 Ilya Verbin <ilya.verbin@intel.com>
7819
7820 * Makefile.in: Regenerate.
7821 * configure: Regenerate.
7822 * configure.ac: Set up offload_additional_options,
7823 offload_additional_lib_paths and offload_targets.
7824 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7825 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7826 * testsuite/Makefile.in: Regenerate.
7827 * testsuite/lib/libgomp.exp (libgomp_init): Append
7828 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7829 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7830 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7831
122d7303
AT
78322014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7833 Ilya Verbin <ilya.verbin@intel.com>
7834 Kirill Yukhin <kirill.yukhin@intel.com>
7835 Ilya Tocar <ilya.tocar@intel.com>
7836
7837 * testsuite/lib/libgomp.exp
7838 (check_effective_target_offload_device): New.
7839 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7840 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7841 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7842 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7843 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7844 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7845 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7846 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7847 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7848 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7849 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7850 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7851 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7852 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7853 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7854 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7855 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7856 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7857 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7858 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7859 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7860 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7861 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7862 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7863 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7864 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7865 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7866 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7867 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7868 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7869 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7870 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7871 * testsuite/libgomp.c/target-7.c: Fix test.
7872 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7873 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7874 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7875 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7876 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7877 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7878 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7879 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7880 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7881 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7882 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7883 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7884 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7885 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7886 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7887 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7888 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7889 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7890 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7891 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7892 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7893 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7894 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7895 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7896 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7897 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7898 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7899 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7900 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7901 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7902 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7903
1df3f842
JJ
79042014-11-13 Jakub Jelinek <jakub@redhat.com>
7905 Ilya Verbin <ilya.verbin@intel.com>
7906 Thomas Schwinge <thomas@codesourcery.com>
7907 Andrey Turetskiy <andrey.turetskiy@intel.com>
7908
7909 * libgomp.map (GOMP_4.0.1): New symbol version.
7910 Add GOMP_offload_register.
7911 * libgomp_target.h: New file.
7912 * splay-tree.h: New file.
7913 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7914 (gomp_target_init): New forward declaration.
7915 (gomp_is_initialized): New static variable.
7916 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7917 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7918 New structures.
7919 (offload_images, num_offload_images, devices, num_devices): New static
7920 variables.
7921 (splay_compare): New static function.
7922 (struct gomp_device_descr): New structure.
7923 (gomp_get_num_devices): Call gomp_target_init.
7924 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7925 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7926 (GOMP_offload_register): New function.
7927 (GOMP_target): Arrange for host callback to be performed in a separate
7928 initial thread and contention group, inheriting ICVs from
7929 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7930 Add device initialization and lookup for target function in splay tree.
7931 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7932 (GOMP_target_end_data): Call gomp_unmap_vars.
7933 (GOMP_target_update): Add device initialization and call gomp_update.
7934 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7935 (gomp_target_init): New static functions.
7936
85c64bbe
BS
79372014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7938 Thomas Schwinge <thomas@codesourcery.com>
7939 Ilya Verbin <ilya.verbin@intel.com>
7940 Andrey Turetskiy <andrey.turetskiy@intel.com>
7941
7942 * config.h.in: Regenerate.
7943 * configure: Regenerate.
7944 * configure.ac: Check for libdl, required for plugin support.
7945 (PLUGIN_SUPPORT): Define if plugins are supported.
7946 (enable_offload_targets): Support Intel MIC targets.
7947 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7948
ebf6d33b
FXC
79492014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7950
7951 PR target/63610
7952 * configure: Regenerate.
7953
8c768629
RO
79542014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7955
7956 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7957
c1d62412
MP
79582014-10-06 Marek Polacek <polacek@redhat.com>
7959
7960 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7961 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7962 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7963 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7964
44a0c6cb
MP
79652014-10-06 Marek Polacek <polacek@redhat.com>
7966
7967 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7968 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7969 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7970 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7971 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7972 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7973 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7974 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7975 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7976 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7977 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7978 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7979 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7980 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7981 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7982 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7983 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7984 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7985 declarations.
7986
5771c391
JJ
79872014-10-03 Jakub Jelinek <jakub@redhat.com>
7988
7989 PR libgomp/61200
7990 * testsuite/libgomp.c/pr61200.c: New test.
7991
bce16b88
JJ
79922014-09-18 Jakub Jelinek <jakub@redhat.com>
7993
7994 PR c++/63248
7995 * testsuite/libgomp.c++/pr63248.C: New test.
7996
3696163c
JJ
79972014-08-04 Jakub Jelinek <jakub@redhat.com>
7998
7999 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8000 is not zero, but taskgroup->children is NULL and there are
8001 any task->children, schedule those instead of waiting.
8002 * testsuite/libgomp.c/depend-6.c: New test.
8003 * testsuite/libgomp.c/depend-7.c: New test.
8004 * testsuite/libgomp.c/depend-8.c: New test.
8005 * testsuite/libgomp.c/depend-9.c: New test.
8006 * testsuite/libgomp.c/depend-10.c: New test.
8007
0494285a
JJ
80082014-08-01 Jakub Jelinek <jakub@redhat.com>
8009
8010 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8011 (struct gomp_taskwait): New type.
8012 (struct gomp_task): Add taskwait and parent_depends_on, remove
8013 in_taskwait and taskwait_sem fields.
8014 (gomp_finish_task): Don't destroy taskwait_sem.
8015 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8016 taskwait and parent_depends_on.
8017 (GOMP_task): For if (0) tasks with depend clause that depend on
8018 earlier tasks don't defer them, instead call
8019 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8020 Initialize redundant_out field, for redundant out entries just
8021 move them at the end of linked list instead of removing them
8022 completely, and set redundant_out flag instead of redundant.
8023 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8024 that task.
8025 (gomp_task_run_post_handle_dependers): If parent is in
8026 gomp_task_maybe_wait_for_dependencies and newly runnable task
8027 is not parent_depends_on, queue it in parent->children linked
8028 list after all runnable tasks with parent_depends_on set.
8029 Adjust for addition of taskwait indirection.
8030 (gomp_task_run_post_remove_parent): If parent is in
8031 gomp_task_maybe_wait_for_dependencies and task to be removed
8032 is parent_depends_on, decrement n_depend and if needed awake
8033 parent. Adjust for addition of taskwait indirection.
8034 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8035 (gomp_task_maybe_wait_for_dependencies): New function.
8036 * testsuite/libgomp.c/depend-5.c: New test.
8037
60ab4b44
TB
80382014-07-13 Tobias Burnus <burnus@net-b.de>
8039
8040 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 8041 with TS 18508/Fortran 2015.
60ab4b44 8042
773ec47f
MP
80432014-07-06 Marek Polacek <polacek@redhat.com>
8044
8045 PR c/6940
8046 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8047
f707da16
JJ
80482014-07-03 Jakub Jelinek <jakub@redhat.com>
8049
8050 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8051 matches regex $lang_source_re, add $lang_include_flags to options.
8052 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8053 * testsuite/libgomp.c++/c++.exp: Likewise.
8054 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8055 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8056 ALWAYS_CFLAGS.
8057 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8058
07b6c044
TS
80592014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8060
8061 * testsuite/libgomp.fortran/fortran.exp: Explain
8062 gfortran-dg-runtest usage.
8063
da6f124d
JJ
80642014-06-25 Jakub Jelinek <jakub@redhat.com>
8065
8066 * testsuite/libgomp.fortran/simd5.f90: New test.
8067 * testsuite/libgomp.fortran/simd6.f90: New test.
8068 * testsuite/libgomp.fortran/simd7.f90: New test.
8069
b46ebd6c
JJ
80702014-06-24 Jakub Jelinek <jakub@redhat.com>
8071
56ad0e38
JJ
8072 * testsuite/libgomp.c/for-2.c: Define SC to static for
8073 #pragma omp for simd testing.
8074 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8075 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8076 SC macro.
8077 * testsuite/libgomp.c/simd-14.c: New test.
8078 * testsuite/libgomp.c/simd-15.c: New test.
8079 * testsuite/libgomp.c/simd-16.c: New test.
8080 * testsuite/libgomp.c/simd-17.c: New test.
8081 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8082 #pragma omp for simd testing.
8083 * testsuite/libgomp.c++/simd10.C: New test.
8084 * testsuite/libgomp.c++/simd11.C: New test.
8085 * testsuite/libgomp.c++/simd12.C: New test.
8086 * testsuite/libgomp.c++/simd13.C: New test.
8087
b46ebd6c
JJ
8088 * testsuite/libgomp.fortran/aligned1.f03: New test.
8089 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8090 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8091 tasks with !$omp parallel !$omp single.
8092 * testsuite/libgomp.fortran/target8.f90: New test.
8093 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8094 not to use trim in the combiner, instead call elemental function.
8095 (fn): New elemental function.
8096 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8097 Make elemental.
8098 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8099 omp_in): Likewise.
8100 * testsuite/libgomp.fortran/udr12.f90: New test.
8101 * testsuite/libgomp.fortran/udr13.f90: New test.
8102 * testsuite/libgomp.fortran/udr14.f90: New test.
8103 * testsuite/libgomp.fortran/udr15.f90: New test.
8104
f014c653
JJ
81052014-06-18 Jakub Jelinek <jakub@redhat.com>
8106
8107 * omp_lib.f90.in (openmp_version): Set to 201307.
8108 * omp_lib.h.in (openmp_version): Likewise.
8109 * testsuite/libgomp.c/target-8.c: New test.
8110 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8111 and inbranch clauses.
8112 * testsuite/libgomp.fortran/depend-3.f90: New test.
8113 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8114 openmp_version.
8115 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8116 * testsuite/libgomp.fortran/target1.f90: New test.
8117 * testsuite/libgomp.fortran/target2.f90: New test.
8118 * testsuite/libgomp.fortran/target3.f90: New test.
8119 * testsuite/libgomp.fortran/target4.f90: New test.
8120 * testsuite/libgomp.fortran/target5.f90: New test.
8121 * testsuite/libgomp.fortran/target6.f90: New test.
8122 * testsuite/libgomp.fortran/target7.f90: New test.
8123
92d28cbb
JJ
81242014-06-10 Jakub Jelinek <jakub@redhat.com>
8125
8126 PR fortran/60928
8127 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8128 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8129 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8130 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8131 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8132 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8133 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8134 * testsuite/libgomp.fortran/associate1.f90: New test.
8135 * testsuite/libgomp.fortran/associate2.f90: New test.
8136 * testsuite/libgomp.fortran/procptr1.f90: New test.
8137
5f23671d
JJ
81382014-06-06 Jakub Jelinek <jakub@redhat.com>
8139
8140 * testsuite/libgomp.fortran/simd1.f90: New test.
8141 * testsuite/libgomp.fortran/udr1.f90: New test.
8142 * testsuite/libgomp.fortran/udr2.f90: New test.
8143 * testsuite/libgomp.fortran/udr3.f90: New test.
8144 * testsuite/libgomp.fortran/udr4.f90: New test.
8145 * testsuite/libgomp.fortran/udr5.f90: New test.
8146 * testsuite/libgomp.fortran/udr6.f90: New test.
8147 * testsuite/libgomp.fortran/udr7.f90: New test.
8148 * testsuite/libgomp.fortran/udr8.f90: New test.
8149 * testsuite/libgomp.fortran/udr9.f90: New test.
8150 * testsuite/libgomp.fortran/udr10.f90: New test.
8151 * testsuite/libgomp.fortran/udr11.f90: New test.
8152
0389fbb5
UB
81532014-05-27 Uros Bizjak <ubizjak@gmail.com>
8154
8155 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8156 vect_simd_clones effective target.
8157 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8158
decaaec8
JJ
81592014-05-21 Jakub Jelinek <jakub@redhat.com>
8160
8161 PR middle-end/61252
8162 * testsuite/libgomp.c++/simd-9.C: New test.
8163
72832460
UB
81642014-05-18 Uros Bizjak <ubizjak@gmail.com>
8165
8166 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8167 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8168 texts according to their @menu entry positions.
8169
dd2fc525
JJ
81702014-05-11 Jakub Jelinek <jakub@redhat.com>
8171
8172 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8173 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8174 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8175 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8176 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8177 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8178 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8179 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8180 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8181 * testsuite/libgomp.fortran/depend-1.f90: New test.
8182 * testsuite/libgomp.fortran/depend-2.f90: New test.
8183 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8184 * testsuite/libgomp.fortran/simd1.f90: New test.
8185 * testsuite/libgomp.fortran/simd2.f90: New test.
8186 * testsuite/libgomp.fortran/simd3.f90: New test.
8187 * testsuite/libgomp.fortran/simd4.f90: New test.
8188 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8189
95782571
JJ
81902014-05-02 Jakub Jelinek <jakub@redhat.com>
8191
8192 * testsuite/libgomp.c/simd-10.c: New test.
8193 * testsuite/libgomp.c/simd-11.c: New test.
8194 * testsuite/libgomp.c/simd-12.c: New test.
8195 * testsuite/libgomp.c/simd-13.c: New test.
8196
f7468577
JJ
81972014-04-24 Jakub Jelinek <jakub@redhat.com>
8198
42056eac
JJ
8199 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8200 atomic type clauses in any order and optional comma in between.
8201 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8202 * testsuite/libgomp.c/atomic-17.c: Likewise.
8203
f7468577
JJ
8204 * testsuite/libgomp.c/simd-7.c: New test.
8205 * testsuite/libgomp.c/simd-8.c: New test.
8206 * testsuite/libgomp.c/simd-9.c: New test.
8207 * testsuite/libgomp.c/loop-16.c: New test.
8208
ab18f2f5
RH
82092014-04-02 Richard Henderson <rth@redhat.com>
8210
8211 * config/linux/futex.h (futex_wait): Get error value from errno.
8212 (futex_wake): Likewise.
8213
8bcc90b0
JJ
82142014-03-25 Jakub Jelinek <jakub@redhat.com>
8215
8216 PR c++/60331
8217 * testsuite/libgomp.c++/udr-11.C: New test.
8218 * testsuite/libgomp.c++/udr-12.C: New test.
8219 * testsuite/libgomp.c++/udr-13.C: New test.
8220 * testsuite/libgomp.c++/udr-14.C: New test.
8221 * testsuite/libgomp.c++/udr-15.C: New test.
8222 * testsuite/libgomp.c++/udr-16.C: New test.
8223 * testsuite/libgomp.c++/udr-17.C: New test.
8224 * testsuite/libgomp.c++/udr-18.C: New test.
8225 * testsuite/libgomp.c++/udr-19.C: New test.
8226
18d73c7f
RS
82272014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8228
8229 Update copyright years
8230
f9030485
RS
82312014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8232
8233 * hashtab.h: Use the standard form for the copyright notice.
8234
98db73df
TB
82352014-01-02 Tobias Burnus <burnus@net-b.de>
8236
8237 * libgomp.texi: Bump @copying's copyright year.
8238
ae246f7f
AT
82392013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8240
8241 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
8242 alloca () with __builtin_alloca ().
8243 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8244 * testsuite/libgomp.c/lock-3.c: Likewise.
8245 * testsuite/libgomp.c/pr48591.c: Likewise.
8246
fa00a5fe
JJ
82472013-12-17 Jakub Jelinek <jakub@redhat.com>
8248
8249 PR testsuite/59534
8250 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8251 comparisons.
8252
e9792e1d
JJ
82532013-12-16 Jakub Jelinek <jakub@redhat.com>
8254
8255 PR libgomp/58756
8256 * testsuite/libgomp.c/pr58756.c: New test.
8257
cab37c89
JJ
82582013-12-12 Jakub Jelinek <jakub@redhat.com>
8259
8260 PR libgomp/59467
8261 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8262 !$omp parallel.
8263
de14871c
TS
82642013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8265
1707a5de
TS
8266 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8267 ALWAYS_CFLAGS.
8268 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8269 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8270 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8271 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8272 Likewise.
8273
70f05c43
TS
8274 * libgomp_g.h: Include <stddef.h> for size_t.
8275
de14871c
TS
8276 * libgomp.spec.in: Update comment about libgomp's dependencies.
8277 * configure.ac: Likewise.
8278 * configure: Regenerate.
8279
83fd6c5b
TB
82802013-10-16 Tobias Burnus <burnus@net-b.de>
8281
8282 * libgomp.texi: (Runtime Library Routines): Update references for
8283 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8284 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8285 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8286 (Environment Variables): Update references for OpenMP 4.0. Add
8287 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8288 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8289 order.
8290
c8673881
JJ
82912013-10-14 Jakub Jelinek <jakub@redhat.com>
8292
8293 * env.c (parse_bind_var): Initialize value to avoid
8294 (false positive) warning.
8295
f89163fd
JJ
82962013-10-12 Jakub Jelinek <jakub@redhat.com>
8297
8298 PR libgomp/58691
8299 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8300 to check variable.
8301 (gomp_init_num_threads): Move i variable declaration into
8302 #ifdef CPU_ALLOC_SIZE block.
8303 * config/linux/affinity.c (gomp_affinity_init_level): Test
8304 gomp_places_list_len == 0 rather than gomp_places_list == 0
8305 when checking for topology reading error.
8306 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8307 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8308 gomp_places_list, only parse env var and always return false.
8309 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8310 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8311 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8312 and either of these variables were parsed correctly into a places
8313 list.
8314
1d340638
TS
83152013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8316 Jakub Jelinek <jakub@redhat.com>
8317
8318 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8319 of 5 loopfn matches.
8320 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8321 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8322 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8323 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8324 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8325 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8326 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8327 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8328
71a81c21
TS
83292013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8330
bd87f731
TS
8331 * Makefile.am (omp_lib.mod): Streamline rule.
8332 * Makefile.in: Regenerate.
8333
f5745bed
TS
8334 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8335 exceptions.
8336
b5512c66
TS
8337 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8338 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8339 * testsuite/libgomp.fortran/lib2.f: Likewise.
8340 * testsuite/libgomp.fortran/lib3.f: Likewise.
8341
451c19c4
TS
8342 * configure.ac: Typo fix.
8343 * configure: Regenerate.
8344
86a6016d
TS
8345 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8346 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8347
71a81c21
TS
8348 * omp.h.in: Don't touch the user's namespace.
8349
acf0174b
JJ
83502013-10-11 Jakub Jelinek <jakub@redhat.com>
8351 Tobias Burnus <burnus@net-b.de>
8352 Richard Henderson <rth@redhat.com>
8353
8354 * target.c: New file.
8355 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8356 * Makefile.in: Regenerated.
8357 * libgomp_g.h (GOMP_task): Add depend argument.
8358 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8359 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8360 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8361 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8362 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8363 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8364 GOMP_taskgroup_start, GOMP_taskgroup_end,
8365 GOMP_parallel_sections): New prototypes.
8366 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8367 (omp_is_initial_device_): New function.
8368 (ULP, STR1, STR2, ialias_redirect): Removed.
8369 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8370 omp_set_default_device_8_, omp_get_default_device_,
8371 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8372 functions.
8373 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8374 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8375 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8376 @@GOMP_4.0.
8377 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8378 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8379 omp_set_default_device, omp_set_default_device_,
8380 omp_set_default_device_8_, omp_get_default_device,
8381 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8382 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8383 omp_get_team_num_): Export @@OMP_4.0.
8384 * team.c (struct gomp_thread_start_data): Add place field.
8385 (gomp_thread_start): Clear thr->thread_pool and
8386 thr->task before returning. Use gomp_team_barrier_wait_final
8387 instead of gomp_team_barrier_wait. Initialize thr->place.
8388 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8389 team_cancelled and task_queued_count fields.
8390 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8391 before calling pthread_exit.
8392 (gomp_free_thread): No longer static. Use
8393 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8394 (gomp_team_start): Add flags argument. Set
8395 thr->thread_pool->threads_busy to nthreads immediately after creating
8396 new pool. Use gomp_managed_threads_lock instead of
8397 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8398 (gomp_team_end): Use gomp_managed_threads_lock instead of
8399 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8400 of gomp_team_barrier_wait. If team->team_cancelled, call
8401 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
8402 rather than thr->ts.work_share.
8403 (initialize_team): Don't call gomp_sem_init here.
8404 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8405 caller.
8406 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8407 * env.c (gomp_global_icv): Add default_device_var, target_data and
8408 bind_var initializers.
8409 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8410 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8411 gomp_places_list_len): New variables.
8412 (parse_bind_var, parse_one_place, parse_places_var): New functions.
8413 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
8414 sized places.
8415 (gomp_cancel_var): New global variable.
8416 (parse_int): New function.
8417 (handle_omp_display_env): New function.
8418 (initialize_env): Use it. Initialize default_device_var.
8419 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
8420 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
8421 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
8422 been successfully parsed (and call gomp_init_affinity in that case).
8423 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8424 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8425 omp_get_team_num, omp_is_initial_device): New functions.
8426 * libgomp.h: Include stdlib.h.
8427 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
8428 Define.
8429 (struct target_mem_desc): Forward declare.
8430 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
8431 and thread_limit_var fields.
8432 (gomp_get_num_devices): New prototype.
8433 (gomp_cancel_var): New extern decl.
8434 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
8435 team_cancelled and task_queued_count fields. Add comments about
8436 task_{,queued_,running_}count.
8437 (gomp_cancel_kind): New enum.
8438 (gomp_work_share_end_cancel): New prototype.
8439 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
8440 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
8441 and depend fields.
8442 (struct gomp_taskgroup): New type.
8443 (struct gomp_task_depend_entry,
8444 struct gomp_dependers_vec): New types.
8445 (gomp_finish_task): Free depend_hash if non-NULL.
8446 (struct gomp_team_state): Add place_partition_off
8447 and place_partition_len fields.
8448 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8449 gomp_places_list_len): New extern decls.
8450 (struct gomp_thread): Add place field.
8451 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8452 (gomp_init_thread_affinity): Add place argument.
8453 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8454 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8455 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8456 gomp_affinity_init_level, gomp_affinity_print_place): New
8457 prototypes.
8458 (gomp_team_start): Add flags argument.
8459 (gomp_thread_limit_var, gomp_remaining_threads_count,
8460 gomp_remaining_threads_lock): Remove.
8461 (gomp_managed_threads_lock): New variable.
8462 (struct gomp_thread_pool): Add threads_busy field.
8463 (gomp_free_thread): New prototype.
8464 * task.c: Include hashtab.h.
8465 (hash_entry_type): New typedef.
8466 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
8467 (gomp_init_task): Clear dependers, depend_hash, depend_count,
8468 copy_ctors_done and taskgroup fields.
8469 (GOMP_task): Add depend argument, handle depend clauses. If
8470 gomp_team_barrier_cancelled or if it's taskgroup has been
8471 cancelled, don't queue or start new tasks. Set copy_ctors_done
8472 field if needed. Initialize taskgroup field. If copy_ctors_done
8473 and already cancelled, don't discard the task. If taskgroup is
8474 non-NULL, enqueue the task into taskgroup queue. Increment
8475 num_children field in taskgroup. Increment task_queued_count.
8476 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
8477 gomp_task_run_post_remove_taskgroup): New inline functions.
8478 (gomp_task_run_post_handle_depend_hash,
8479 gomp_task_run_post_handle_dependers,
8480 gomp_task_run_post_handle_depend): New functions.
8481 (GOMP_taskwait): Use them. If more than one new tasks
8482 have been queued, wake other threads if needed.
8483 (gomp_barrier_handle_tasks): Likewise. If
8484 gomp_team_barrier_cancelled, don't start any new tasks, just free
8485 all tasks.
8486 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
8487 * omp_lib.f90.in
8488 (omp_proc_bind_kind, omp_proc_bind_false,
8489 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8490 omp_proc_bind_spread): New params.
8491 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8492 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8493 omp_get_team_num, omp_is_initial_device): New interfaces.
8494 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
8495 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
8496 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
8497 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
8498 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
8499 useless use omp_lib_kinds.
8500 * omp.h.in (omp_proc_bind_t): New typedef.
8501 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8502 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8503 omp_get_team_num, omp_is_initial_device): New prototypes.
8504 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
8505 through to gomp_team_start.
8506 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
8507 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
8508 Adjust gomp_parallel_loop_start callers.
8509 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8510 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8511 GOMP_loop_end_cancel): New functions.
8512 (GOMP_parallel_end): Add ialias_redirect.
8513 * hashtab.h: New file.
8514 * libgomp.texi (Environment Variables): Minor cleanup,
8515 update section refs to OpenMP 4.0rc2.
8516 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
8517 environment variables.
8518 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
8519 team->work_shares_to_free to thr->ts.work_share before calling
8520 free_work_share.
8521 (gomp_work_share_end_cancel): New function.
8522 * config/linux/proc.c: Include errno.h.
8523 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
8524 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
8525 sizeof (cpu_set_t) to determine number of iterations. Fix up check
8526 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
8527 gomp_cpuset_size is sizeof (cpu_set_t).
8528 (gomp_init_num_threads): Initialize gomp_cpuset_size,
8529 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8530 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8531 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
8532 contain any logical CPUs.
8533 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8534 is NULL. Use gomp_cpusetp instead of &cpuset and pass
8535 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8536 pthread_getaffinity_np. Check gomp_places_list instead of
8537 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
8538 * config/linux/bar.c (gomp_barrier_wait_end,
8539 gomp_barrier_wait_last): Use BAR_* defines.
8540 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
8541 from state where needed. Set work_share_cancelled to 0 on last
8542 thread.
8543 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8544 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8545 functions.
8546 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8547 Add cpusetsize argument.
8548 (gomp_cpuset_size, gomp_cpusetp): Declare.
8549 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8550 (affinity_counter): Remove.
8551 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8552 if CPU_ALLOC_SIZE isn't defined.
8553 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8554 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8555 bind current thread to the first place.
8556 (gomp_init_thread_affinity): Rewritten. Add place argument, just
8557 pthread_setaffinity_np to gomp_places_list[place].
8558 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8559 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8560 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8561 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8562 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8563 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8564 (gomp_barrier_t): Add awaited_final field.
8565 (gomp_barrier_init): Initialize awaited_final field.
8566 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
8567 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
8568 prototypes.
8569 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
8570 defines.
8571 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
8572 gomp_team_barrier_cancelled): New inline functions.
8573 (gomp_barrier_last_thread,
8574 gomp_team_barrier_set_task_pending,
8575 gomp_team_barrier_clear_task_pending,
8576 gomp_team_barrier_set_waiting_for_tasks,
8577 gomp_team_barrier_waiting_for_tasks,
8578 gomp_team_barrier_done): Use BAR_* defines.
8579 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
8580 (gomp_barrier_wait_end): Use BAR_* defines.
8581 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
8582 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
8583 Use BAR_* defines.
8584 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
8585 gomp_team_barrier_cancel): New functions.
8586 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
8587 argument.
8588 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8589 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8590 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8591 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
8592 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8593 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8594 (gomp_barrier_t): Add cancellable field.
8595 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
8596 gomp_team_barrier_cancel): New prototypes.
8597 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
8598 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
8599 gomp_team_barrier_cancelled): New inline functions.
8600 (gomp_barrier_wait_start, gomp_barrier_last_thread,
8601 gomp_team_barrier_set_task_pending,
8602 gomp_team_barrier_clear_task_pending,
8603 gomp_team_barrier_set_waiting_for_tasks,
8604 gomp_team_barrier_waiting_for_tasks,
8605 gomp_team_barrier_done): Use BAR_* defines.
8606 * barrier.c (GOMP_barrier_cancel): New function.
8607 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
8608 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8609 omp_proc_bind_spread): New params.
8610 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8611 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8612 omp_get_team_num, omp_is_initial_device): New externals.
8613 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
8614 New functions.
8615 (gomp_resolve_num_threads): Adjust for thread_limit now being in
8616 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8617 infinity. If not nested, just return minimum of max_num_threads
8618 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
8619 to the returned value. Otherwise, don't update atomically
8620 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
8621 (GOMP_parallel_end): Adjust for thread_limit now being in
8622 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8623 infinity. Adjust threads_busy in the pool rather than
8624 gomp_remaining_threads_count. Remember team->nthreads and call
8625 gomp_team_end before adjusting threads_busy, if not nested
8626 afterwards, just set it to 1 non-atomically. Add ialias.
8627 (GOMP_parallel_start): Adjust gomp_team_start caller.
8628 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
8629 * testsuite/libgomp.c/affinity-1.c: New test.
8630 * testsuite/libgomp.c/atomic-15.c: New test.
8631 * testsuite/libgomp.c/atomic-16.c: New test.
8632 * testsuite/libgomp.c/atomic-17.c: New test.
8633 * testsuite/libgomp.c/cancel-for-1.c: New test.
8634 * testsuite/libgomp.c/cancel-for-2.c: New test.
8635 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
8636 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
8637 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
8638 * testsuite/libgomp.c/cancel-sections-1.c: New test.
8639 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8640 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8641 * testsuite/libgomp.c/depend-1.c: New test.
8642 * testsuite/libgomp.c/depend-2.c: New test.
8643 * testsuite/libgomp.c/depend-3.c: New test.
8644 * testsuite/libgomp.c/depend-4.c: New test.
8645 * testsuite/libgomp.c/for-1.c: New test.
8646 * testsuite/libgomp.c/for-1.h: New file.
8647 * testsuite/libgomp.c/for-2.c: New test.
8648 * testsuite/libgomp.c/for-2.h: New file.
8649 * testsuite/libgomp.c/for-3.c: New test.
8650 * testsuite/libgomp.c/pr58392.c: New test.
8651 * testsuite/libgomp.c/simd-1.c: New test.
8652 * testsuite/libgomp.c/simd-2.c: New test.
8653 * testsuite/libgomp.c/simd-3.c: New test.
8654 * testsuite/libgomp.c/simd-4.c: New test.
8655 * testsuite/libgomp.c/simd-5.c: New test.
8656 * testsuite/libgomp.c/simd-6.c: New test.
8657 * testsuite/libgomp.c/target-1.c: New test.
8658 * testsuite/libgomp.c/target-2.c: New test.
8659 * testsuite/libgomp.c/target-3.c: New test.
8660 * testsuite/libgomp.c/target-4.c: New test.
8661 * testsuite/libgomp.c/target-5.c: New test.
8662 * testsuite/libgomp.c/target-6.c: New test.
8663 * testsuite/libgomp.c/target-7.c: New test.
8664 * testsuite/libgomp.c/taskgroup-1.c: New test.
8665 * testsuite/libgomp.c/thread-limit-1.c: New test.
8666 * testsuite/libgomp.c/thread-limit-2.c: New test.
8667 * testsuite/libgomp.c/thread-limit-3.c: New test.
8668 * testsuite/libgomp.c/udr-1.c: New test.
8669 * testsuite/libgomp.c/udr-2.c: New test.
8670 * testsuite/libgomp.c/udr-3.c: New test.
8671 * testsuite/libgomp.c++/affinity-1.C: New test.
8672 * testsuite/libgomp.c++/atomic-10.C: New test.
8673 * testsuite/libgomp.c++/atomic-11.C: New test.
8674 * testsuite/libgomp.c++/atomic-12.C: New test.
8675 * testsuite/libgomp.c++/atomic-13.C: New test.
8676 * testsuite/libgomp.c++/atomic-14.C: New test.
8677 * testsuite/libgomp.c++/atomic-15.C: New test.
8678 * testsuite/libgomp.c++/cancel-for-1.C: New test.
8679 * testsuite/libgomp.c++/cancel-for-2.C: New test.
8680 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8681 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8682 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8683 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8684 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8685 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8686 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8687 * testsuite/libgomp.c++/cancel-test.h: New file.
8688 * testsuite/libgomp.c++/for-9.C: New test.
8689 * testsuite/libgomp.c++/for-10.C: New test.
8690 * testsuite/libgomp.c++/for-11.C: New test.
8691 * testsuite/libgomp.c++/simd-1.C: New test.
8692 * testsuite/libgomp.c++/simd-2.C: New test.
8693 * testsuite/libgomp.c++/simd-3.C: New test.
8694 * testsuite/libgomp.c++/simd-4.C: New test.
8695 * testsuite/libgomp.c++/simd-5.C: New test.
8696 * testsuite/libgomp.c++/simd-6.C: New test.
8697 * testsuite/libgomp.c++/simd-7.C: New test.
8698 * testsuite/libgomp.c++/simd-8.C: New test.
8699 * testsuite/libgomp.c++/target-1.C: New test.
8700 * testsuite/libgomp.c++/target-2.C: New test.
8701 * testsuite/libgomp.c++/target-2-aux.cc: New file.
8702 * testsuite/libgomp.c++/target-3.C: New test.
8703 * testsuite/libgomp.c++/taskgroup-1.C: New test.
8704 * testsuite/libgomp.c++/udr-1.C: New test.
8705 * testsuite/libgomp.c++/udr-2.C: New test.
8706 * testsuite/libgomp.c++/udr-3.C: New test.
8707 * testsuite/libgomp.c++/udr-4.C: New test.
8708 * testsuite/libgomp.c++/udr-5.C: New test.
8709 * testsuite/libgomp.c++/udr-6.C: New test.
8710 * testsuite/libgomp.c++/udr-7.C: New test.
8711 * testsuite/libgomp.c++/udr-8.C: New test.
8712 * testsuite/libgomp.c++/udr-9.C: New test.
8713
bd599dea
JJ
87142013-09-20 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR testsuite/57605
8717 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8718 ALWAYS_CFLAGS.
8719
3cbe17f7
AM
87202013-09-20 Alan Modra <amodra@gmail.com>
8721
8722 * configure: Regenerate.
8723
4befd127
JJ
87242013-09-19 Jakub Jelinek <jakub@redhat.com>
8725
8726 * testsuite/libgomp.c/sections-2.c: New test.
8727
946c8f7b
MS
87282013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
8729
8730 * testsuite/libgomp.fortran/strassen.f90:
8731 Add dg-skip-if aarch64_tiny.
8732
1ef3b58e
IS
87332013-06-20 Iain Sandoe <iain@codesourcery.com>
8734 Cesar Philippidis <cesar@codesourcery.com>
8735
8736 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8737 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8738 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8739 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8740 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8741 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8742 Use dg-runtest rather than gfortran-dg-runtest.
8743
9275f73a
TS
87442013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8745
8746 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8747 Linux-based x86 systems to cover all GNU systems.
8748 * testsuite/libgomp.c/lock-3.c: Likewise.
8749 * testsuite/libgomp.c/pr48591.c: Likewise.
8750
492992e2
TS
87512013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8752
48df3acb
TS
8753 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8754 GNU/Hurd, as done for Linux-based systems.
8755
492992e2
TS
8756 * config/posix/ptrlock.h: Fix comment.
8757
4fed6b25
TB
87582013-05-27 Tobias Burnus <burnus@net-b.de>
8759
8760 PR fortran/57423
8761 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8762 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8763 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8764 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8765 omp_destroy_nest_lock): Correct arguments to match the one in
8766 the OpenMP spec.
8767 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8768 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8769 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8770 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8771
5a0f4dd3
JJ
87722013-05-16 Jakub Jelinek <jakub@redhat.com>
8773
8774 * testsuite/libgomp.c/loop-13.c: New test.
8775 * testsuite/libgomp.c/loop-14.c: New test.
8776 * testsuite/libgomp.c/loop-15.c: New test.
8777 * testsuite/libgomp.c++/loop-13.C: New test.
8778 * testsuite/libgomp.c++/loop-14.C: New test.
8779 * testsuite/libgomp.c++/loop-15.C: New test.
8780
6d840d99
JJ
87812013-02-06 Jakub Jelinek <jakub@redhat.com>
8782
8783 PR middle-end/56217
8784 * testsuite/libgomp.c++/pr56217.C: New test.
8785
bed8d8a6
AM
87862013-02-01 Alan Modra <amodra@gmail.com>
8787
8788 * task.c (GOMP_task, GOMP_taskwait): Comment.
8789
3b35cd04
DV
87902013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8791 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8792
8793 PR libgomp/55561
8794 * config/linux/wait.h (do_spin): Use atomic load for addr.
8795 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8796 for intptr and ptrlock.
8797 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8798 for ptrlock.
8799
9a647288
AM
88002013-01-22 Alan Modra <amodra@gmail.com>
8801
8802 PR libgomp/51376
8803 PR libgomp/56073
8804 * task.c (GOMP_task): Revert 2011-12-09 change.
8805 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8806 barrier to read task->children..
8807 (gomp_barrier_handle_tasks): ..and matching atomic store with
8808 release barrier here when setting parent->children to NULL.
8809
f34dea03
JJ
88102013-01-16 Jakub Jelinek <jakub@redhat.com>
8811 Tobias Burnus <burnus@net-b.de>
8812
8813 PR driver/55884
8814 * testsuite/libgomp.fortran/fortran.exp: Use
8815 -fintrinsic-modules-path= instead of
8816 -fintrinsic-modules-path.
8817
8129609c
RS
88182013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8819
8820 Update copyright years.
8821
aa86bf1e
TB
88222012-12-19 Tobias Burnus <burnus@net-b.de>
8823
8824 * testsuite/libgomp.fortran/fortran.exp: Set
8825 -fintrinsic-modules-path.
8826
2865ea66
TB
88272012-12-19 Tobias Burnus <burnus@net-b.de>
8828
8829 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8830 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8831
4c5ba8d0
JJ
88322012-11-21 Jakub Jelinek <jakub@redhat.com>
8833
8834 PR libgomp/55411
8835 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8836 if pool had any threads_used.
8837
e9f958c2
JH
88382012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8839
8840 * testsuite/libgomp.c++/pr24455.C: Use
8841 -Wl,-undefined,dynamic_lookup on darwin.
8842
a57d75dc
DE
88432012-11-07 David Edelsohn <dje.gcc@gmail.com>
8844
8845 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8846
c6c08485
DH
88472012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8848
8849 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8850
c1f37c00
IB
88512012-10-23 Ian Bolton <ian.bolton@arm.com>
8852 Jim MacArthur <jim.macarthur@arm.com>
8853 Marcus Shawcroft <marcus.shawcroft@arm.com>
8854 Nigel Stephens <nigel.stephens@arm.com>
8855 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8856 Richard Earnshaw <rearnsha@arm.com>
8857 Sofiane Naci <sofiane.naci@arm.com>
8858 Stephen Thomas <stephen.thomas@arm.com>
8859 Tejas Belagod <tejas.belagod@arm.com>
8860 Yufeng Zhang <yufeng.zhang@arm.com>
8861
8862 * configure.tgt: Add AArch64.
8863
7c424acd
JM
88642012-10-04 Jason Merrill <jason@redhat.com>
8865
8866 * testsuite/libgomp.c++/tls-init1.C: New.
8867
6608378b
DE
88682012-09-14 David Edelsohn <dje.gcc@gmail.com>
8869
8870 * configure: Regenerated.
8871
c24dbebb
CLT
88722012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8873
8874 * config/linux/mips/futex.h (sys_futex0): Change to static
8875 function with noinline, nomips16 attributes under MIPS16. Adjust
8876 asm statement to place 'li v0,SYS_futex' immediately before
8877 syscall insn.
8878
3d3949df
SL
88792012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8880
8881 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8882 conflict with index.html on case-insensitive file systems.
8883
68a12ef3
UB
88842012-07-03 Uros Bizjak <ubizjak@gmail.com>
8885
8886 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8887 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8888
33ad93b9 88892012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
8890 Michael Matz <matz@suse.de>
8891 Tobias Grosser <tobias@grosser.es>
8892 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
8893
8894 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8895 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8896 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8897 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8898
e6fdc918
AS
88992012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8900
8901 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8902
62e0a1ed
RG
89032012-06-22 Richard Guenther <rguenther@suse.de>
8904
8905 Merge from graphite branch
8906 2012-01-13 Tobias Grosser <tobias@grosser.es>
8907
8908 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8909 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8910
26127932
JJ
89112012-06-07 Jakub Jelinek <jakub@redhat.com>
8912
8913 PR middle-end/53580
8914 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8915 use GOMP_barrier () call instead.
8916 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8917 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8918 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8919 call GOMP_barrier instead.
8920 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8921
43fa5db5
JJ
89222012-06-06 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR libgomp/52993
8925 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8926 argument to memset call.
8927
e6d5f8c9
L
89282012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 * configure: Regenerated.
8931
559d990c
MLI
89322012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8933
8934 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8935
b9c23a61
L
89362012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8937
8938 PR bootstrap/52812
8939 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8940
c140ddf3
JJ
89412012-03-22 Jakub Jelinek <jakub@redhat.com>
8942
8943 PR middle-end/52547
8944 * testsuite/libgomp.c/pr52547.c: New test.
8945
6a26a74d
BRF
89462012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8947
8948 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8949
b24513a1
RO
89502012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8951
8952 * configure.tgt (mips-sgi-irix6*): Remove.
8953
5c30094f
RO
89542012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8955
8956 * configure.tgt (alpha*-dec-osf*): Remove.
8957
8958 * config/osf/sem.h: Remove.
8959 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8960
a339c9d6
EB
89612012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8962
8963 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8964
cc2de92d
RO
89652012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8966
8967 PR libstdc++/52188
8968 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8969 Remove ENABLE_SYMVERS_SOL2.
8970 * configure: Regenerate.
8971 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8972 (PREPROCESS): New variable.
8973 (libgomp.ver): New target.
8974 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8975 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8976 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8977 Use libgomp.ver.
8978 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8979 * Makefile.in: Regenerate.
8980
dd552284
WL
89812012-02-14 Walter Lee <walt@tilera.com>
8982
8983 * configure.tgt: Handle tilegx and tilepro.
8984 * config/linux/tile/futex.h: New file.
8985
31432e21
RG
89862012-02-08 Richard Guenther <rguenther@suse.de>
8987
8988 PR tree-optimization/46886
8989 * testsuite/libgomp.c/pr46886.c: New testcase.
8990
b9264b5f
MK
89912012-01-25 Matthias Klose <doko@ubuntu.com>
8992
8993 * config/linux/arm: Remove empty directory.
8994 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8995
fbf7be80
AM
89962011-12-09 Alan Modra <amodra@gmail.com>
8997
8998 PR libgomp/51376
8999 * task.c (GOMP_taskwait): Don't access task->children outside of
9000 task_lock mutex region.
9001 (GOMP_task): Likewise.
9002
5de62d00
JJ
90032011-12-06 Jakub Jelinek <jakub@redhat.com>
9004
9005 PR libgomp/51132
9006 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9007 to file scope.
9008 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9009 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9010 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9011 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9012 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9013
45608a43
AM
90142011-12-02 Alan Modra <amodra@gmail.com>
9015
9016 * config/linux/affinity.c: Use atomic rather than sync builtin.
9017 * config/linux/lock.c: Likewise.
9018 * config/linux/ptrlock.h: Likewise.
9019 * config/linux/ptrlock.c: Likewise.
9020 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9021 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9022 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9023 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9024 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9025 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9026 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9027 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9028 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9029 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9030
ab6dd406
AM
90312011-11-30 Alan Modra <amodra@gmail.com>
9032
9033 PR libgomp/51298
9034 * config/linux/bar.h: Use atomic rather than sync builtins.
9035 * config/linux/bar.c: Likewise. Add missing acquire
9036 synchronisation on generation field.
9037 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9038 double unlock.
9039
b40c885f
AM
90402011-11-30 Alan Modra <amodra@gmail.com>
9041
9042 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9043 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9044 * config/linux/mutex.h: Use atomic rather than sync builtins.
9045 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9046 * config/linux/omp-lock.h: Comment fix.
9047 * config/linux/arm/mutex.h: Delete.
9048 * config/linux/powerpc/mutex.h: Delete.
9049 * config/linux/ia64/mutex.h: Delete.
9050 * config/linux/mips/mutex.h: Delete.
9051
3e348fcc
AM
90522011-11-30 Alan Modra <amodra@gmail.com>
9053
9054 PR libgomp/51249
9055 * config/linux/sem.h: Rewrite.
9056 * config/linux/sem.c: Rewrite.
9057
cef86eb2
RH
90582011-11-28 Richard Henderson <rth@redhat.com>
9059
9060 * libgomp.h (enum memmodel): New.
9061
c6084f68
AT
90622011-11-21 Andreas Tobler <andreast@fgznet.ch>
9063
9064 * configure: Regenerate.
9065
06fe026c
MK
90662011-10-10 Matthias Klose <doko@ubuntu.com>
9067
9068 * config/posix95: Remove empty directory.
9069
a6c975bd
JJ
90702011-08-26 Jakub Jelinek <jakub@redhat.com>
9071
9072 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9073
c26dffff
JJ
90742011-08-19 Jakub Jelinek <jakub@redhat.com>
9075
9076 PR fortran/49792
9077 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9078 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9079
ddaad3c8
RO
90802011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9081
9082 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9083
98d03683
RO
90842011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9085
9086 PR libgomp/49965
9087 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9088
e0b23d9f
UB
90892011-08-03 Uros Bizjak <ubizjak@gmail.com>
9090
9091 * config/linux/proc.h: New.
9092 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9093 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9094 (gomp_init_num_threads): Update call to cpuset_popcount.
9095 (get_num_procs): Ditto.
9096 * config/linux/affinity.c (gomp_init_affinity): Call
9097 gomp_cpuset_popcount.
9098
20906c66
JJ
90992011-08-02 Jakub Jelinek <jakub@redhat.com>
9100
9101 PR fortran/42041
9102 PR fortran/46752
9103 * omp.h.in (omp_in_final): New prototype.
9104 * omp_lib.f90.in (omp_in_final): New interface.
9105 (omp_integer_kind, omp_logical_kind): Remove
9106 and replace all its uses in the module with 4.
9107 (openmp_version): Change to 201107.
9108 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9109 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9110 kind for the parameters.
9111 (omp_in_final): New external.
9112 (openmp_version): Change to 201107.
9113 * task.c (omp_in_final): New function.
9114 (gomp_init_task): Initialize final_task.
9115 (GOMP_task): Remove unused attribute from flags. Handle final
9116 tasks.
9117 (GOMP_taskyield): New function.
9118 (omp_in_final): Return true if if (false) or final (true) task
9119 or descendant of final (true).
9120 * fortran.c (omp_in_final_): New function.
9121 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9122 (GOMP_3.0): Export GOMP_taskyield.
9123 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9124 variables.
9125 (parse_unsigned_long_list): New function.
9126 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9127 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9128 even if parse_affinity returned false.
9129 * config/linux/affinity.c (gomp_init_affinity): Handle
9130 gomp_cpu_affinity_len == 0.
9131 * libgomp_g.h (GOMP_taskyield): New prototype.
9132 * libgomp.h (struct gomp_task): Add final_task field.
9133 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9134 * team.c (gomp_team_start): Override new task's nthreads_var icv
9135 if list form OMP_NUM_THREADS has been used and it has value for
9136 the new nesting level.
9137
9138 * testsuite/libgomp.c/atomic-11.c: New test.
9139 * testsuite/libgomp.c/atomic-12.c: New test.
9140 * testsuite/libgomp.c/atomic-13.c: New test.
9141 * testsuite/libgomp.c/atomic-14.c: New test.
9142 * testsuite/libgomp.c/reduction-6.c: New test.
9143 * testsuite/libgomp.c/task-5.c: New test.
9144 * testsuite/libgomp.c++/atomic-2.C: New test.
9145 * testsuite/libgomp.c++/atomic-3.C: New test.
9146 * testsuite/libgomp.c++/atomic-4.C: New test.
9147 * testsuite/libgomp.c++/atomic-5.C: New test.
9148 * testsuite/libgomp.c++/atomic-6.C: New test.
9149 * testsuite/libgomp.c++/atomic-7.C: New test.
9150 * testsuite/libgomp.c++/atomic-8.C: New test.
9151 * testsuite/libgomp.c++/atomic-9.C: New test.
9152 * testsuite/libgomp.c++/task-8.C: New test.
9153 * testsuite/libgomp.c++/reduction-4.C: New test.
9154 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9155 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9156 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9157 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9158 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9159 * testsuite/libgomp.fortran/pointer1.f90: New test.
9160 * testsuite/libgomp.fortran/pointer2.f90: New test.
9161 * testsuite/libgomp.fortran/task4.f90: New test.
9162
91632011-08-02 Tobias Burnus <burnus@net-b.de>
9164
9165 * libgomp.texi: Update OpenMP spec references to 3.1.
9166 (omp_in_final,OMP_PROC_BIND): New sections.
9167 (OMP_NUM_THREADS): Document that the value can be now a list.
9168 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9169
c01ecafc
L
91702011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9171
9172 * config/linux/x86/futex.h: Check __x86_64__ instead of
9173 __LP64__.
9174
25142650
JJ
91752011-07-29 Jakub Jelinek <jakub@redhat.com>
9176
9177 PR middle-end/49897
9178 PR middle-end/49898
9179 * testsuite/libgomp.c/pr49897-1.c: New test.
9180 * testsuite/libgomp.c/pr49897-2.c: New test.
9181 * testsuite/libgomp.c/pr49898-1.c: New test.
9182 * testsuite/libgomp.c/pr49898-2.c: New test.
9183
f53d712f
L
91842011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9185
9186 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9187 for ia32 instead of ilp32.
9188
9189 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9190 * testsuite/libgomp.c/atomic-6.c: Likewise.
9191
3689198d
SP
91922011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9193
9194 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9195 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9196
1a79cb73
RO
91972011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9198
9199 PR libgomp/45351
9200 * config/osf/sem.h: New file.
9201 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9202
c1f51484
RO
92032011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9204
9205 PR target/49541
9206 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9207 ldflags.
9208
bfee0724
JJ
92092011-07-15 Jakub Jelinek <jakub@redhat.com>
9210
9211 * config/linux/wait.h (do_spin): New inline, largely copied
9212 from do_wait, just don't do futex_wait here, instead return true if
9213 it should be done.
9214 (do_wait): Implement using do_spin.
9215 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9216 to prototype.
9217 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9218 __sync_bool_compare_and_swap, pass the oldval to
9219 gomp_mutex_lock_slow.
9220 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9221 If all mutex contenders are just spinning and not sleeping, don't
9222 change state to 2 unnecessarily. Optimize the loop when state has
9223 already become 2 to use just one atomic operation per loop instead
9224 of two.
9225 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9226 to prototype.
9227 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9228 __sync_bool_compare_and_swap, pass the oldval to
9229 gomp_mutex_lock_slow.
9230
fb79f500
JJ
92312011-06-22 Jakub Jelinek <jakub@redhat.com>
9232
9233 PR libgomp/49490
9234 * iter.c (gomp_iter_static_next): For chunk size 0
9235 only use n ceil/ nthreads size for the first
9236 n % nthreads threads in the team instead of
9237 all threads except for the last few ones which
9238 get less work or none at all.
9239 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9240 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9241 chunk argument, set run_sched_modifier to 0 for static
9242 resp. 1 for other kinds. If chunk argument is 0
9243 and not static, set value to 1.
9244
4577f730
JJ
92452011-05-19 Jakub Jelinek <jakub@redhat.com>
9246
ea93a47b
JJ
9247 PR c++/49043
9248 * testsuite/libgomp.c++/pr49043.C: New test.
9249
4577f730
JJ
9250 PR c++/48869
9251 * testsuite/libgomp.c++/pr48869.C: New test.
9252
e7385332
JJ
92532011-05-06 Jakub Jelinek <jakub@redhat.com>
9254
9255 PR fortran/48894
9256 * fortran.c: Include limits.h.
9257 (TO_INT): Define.
9258 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9259 *set.
9260 (omp_set_num_threads_8_, omp_set_schedule_8_,
9261 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9262 omp_get_team_size_8_): Use TO_INT macro.
9263 * testsuite/libgomp.fortran/pr48894.f90: New test.
9264
20790697
JJ
92652011-04-13 Jakub Jelinek <jakub@redhat.com>
9266
9267 PR middle-end/48591
9268 * testsuite/libgomp.c/pr48591.c: New test.
9269
bf382f5f
RO
92702011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9271
9272 PR bootstrap/48135
9273 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9274 * configure: Regenerate.
9275
113a53c1
JJ
92762011-02-27 Jakub Jelinek <jakub@redhat.com>
9277
9278 PR fortran/47886
9279 * testsuite/libgomp.fortran/task3.f90: New test.
9280
0024f1af
TB
92812011-02-24 Tobias Burnus <burnus@net-b.de>
9282
9283 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9284
21e1e594
JJ
92852011-02-23 Jakub Jelinek <jakub@redhat.com>
9286
9287 PR libgomp/47854
9288 * libgomp.texi (omp_get_wtime): Don't say time in the past
9289 must be Unix Epoch.
9290
67962076
JJ
92912011-02-18 Jakub Jelinek <jakub@redhat.com>
9292
9293 PR libgomp/47804
9294 * testsuite/libgomp.fortran/fortran.exp: Check for both
9295 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9296 but $blddir != "", still append ${blddir}/${lang_library_path}
9297 to ld_library_path.
9298
3808007c
TB
92992011-02-16 Tobias Burnus <burnus@net-b.de>
9300
9301 PR libgomp/47758
9302 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9303 of libquadmath.a before adding its libpath to ldflags.
9304
53b4d41d
JJ
93052011-02-14 Jakub Jelinek <jakub@redhat.com>
9306
9307 PR libgomp/47731
9308 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9309 to FUTEX_WAIT futex syscall.
9310 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9311
029c8f3e
RW
93122011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9313
9314 * configure: Regenerate.
9315
bddd6626
BK
93162011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9317
9318 PR libstdc++/36104
9319 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9320
f1d4ab26
GP
93212011-01-16 Gerald Pfeifer
9322
9323 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9324
2b503136
JJ
93252010-12-14 Jakub Jelinek <jakub@redhat.com>
9326
9327 PR fortran/46874
9328 * libgomp.fortran/allocatable6.f90: New test.
9329
c0f9d583
RO
93302010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9331
9332 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9333 * configure: Regenerate.
9334
7de6ba7a
DK
93352010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9336
9337 PR target/40125
9338 PR lto/46695
9339 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9340 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9341 * aclocal.m4: Regenerate.
9342 * configure: Regenerate.
9343 * Makefile.in: Regenerate.
9344 * testsuite/Makefile.in: Regenerate.
9345
b7516041
JJ
93462010-12-02 Jakub Jelinek <jakub@redhat.com>
9347
edaadf74
JJ
9348 PR fortran/46753
9349 * libgomp.fortran/pr46753.f90: New test.
9350
4c698cf8
JJ
9351 PR libgomp/43706
9352 * env.c (initialize_env): Default to spin count 300000
9353 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9354 is specified.
9355
b7516041
JJ
9356 PR libgomp/45240
9357 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9358 at the end if sync builtins aren't supported.
9359
6b43a34c
RO
93602010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9361
9362 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9363
950691fa
RO
93642010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9365
9366 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9367
fb9041ea
IS
93682010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9369
9370 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9371
1ec601bf
FXC
93722010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9373 Tobias Burnus <burnus@net-b.de>
9374
9375 PR fortran/32049
3e348fcc 9376 * configure.ac:
1ec601bf
FXC
9377 * configure: Regenerate.
9378
d213e92e
MS
93792010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9380
9381 * config/linux/futex.h: New.
9382 * config/linux/arm/mutex.h: New.
9383 * configure.tgt (arm*-*-linux*): Add config path.
9384
89d5c66f
SP
93852010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9386
9387 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9388
87350d4a
TB
93892010-09-23 Tobias Burnus <burnus@net-b.de>
9390
9391 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9392 Change Fortran datatype to LOGICAL.
9393 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9394 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9395
75bc9e5e
RW
93962010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9397
9398 * configure: Regenerate.
9399
acb5c916
JJ
94002010-07-26 Jakub Jelinek <jakub@redhat.com>
9401
9402 * libgomp.texi: Add function keyword to a couple of Fortran
9403 interfaces, use integer instead of int for Fortran.
9404
6a2ba183
AH
94052010-07-26 Aldy Hernandez <aldyh@redhat.com>
9406
9407 * libgomp.texi: Fix spelling and pasto problems throughout.
9408 Adjust prototypes to match code.
9409
df161b69
TB
94102010-07-24 Tobias Burnus <burnus@net-b.de>
9411
9412 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
9413 silence -fwhole-file warning.
9414
16c9d3b1
RO
94152010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9416
9417 * configure.tgt (*-*-solaris2.[56]*): Removed.
9418
6d28b933
RO
94192010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9420
9421 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
9422 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
9423 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
9424 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
9425 targetting solaris2*.
9426 * configure: Regenerate.
9427 * config.h.in: Regenerate.
9428
9429 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
9430 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
9431 Add libgomp_version_dep.
9432 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
9433 versioning.
9434 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
9435 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
9436 * Makefile.in: Regenerate.
9437
9438 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
9439 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9440 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
9441 to common block, protected by
9442 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9443
07a67d6a
GP
94442010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9445
9446 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
9447
dbd34b89
IS
94482010-06-09 Iain Sandoe <iains@gcc.gnu.org>
9449
9450 PR bootstrap/43170
9451 * configure: Regenerate.
9452
13917ae3
RW
94532010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9454
9455 PR other/43620
9456 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
9457 * configure: Regenerate.
9458 * Makefile.in: Regenerate.
9459 * testsuite/Makefile.in: Regenerate.
9460
b83a701b
JJ
94612010-04-26 Jakub Jelinek <jakub@redhat.com>
9462
9463 PR c/43893
9464 * testsuite/libgomp.c/pr43893.c: New test.
9465 * testsuite/libgomp.c++/pr43893.C: New test.
9466
78db7d92
JJ
94672010-04-21 Jakub Jelinek <jakub@redhat.com>
9468
9469 PR middle-end/43570
9470 * testsuite/libgomp.fortran/vla8.f90: New test.
9471
5221d7a9
JJ
94722010-04-20 Jakub Jelinek <jakub@redhat.com>
9473
e4ba7a60
JJ
9474 PR libgomp/43706
9475 * config/linux/affinity.c (gomp_init_affinity): Decrease
9476 gomp_available_cpus if affinity mask confines the process to fewer
9477 CPUs.
9478 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
9479 non-NULL, just return gomp_available_cpus.
9480
5221d7a9
JJ
9481 PR libgomp/43569
9482 * sections.c (gomp_sections_init): Initialize ws->mode.
9483
289a9f86
UB
94842010-04-14 Uros Bizjak <ubizjak@gmail.com>
9485
9486 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9487 not unused bar variable.
9488 * configure: Regenerate.
9489
4d9e8446
RW
94902010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9491
9492 * Makefile.in: Regenerate.
9493 * aclocal.m4: Regenerate.
9494 * testsuite/Makefile.in: Regenerate.
9495
80f046cc
JJ
94962010-03-22 Jakub Jelinek <jakub@redhat.com>
9497
9498 PR libgomp/42942
9499 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
9500 (initialize_env): Adjust callers.
9501 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
9502 when the argument is 0.
9503
9504 * testsuite/libgomp.c/pr42942.c: New test.
9505
b58543c3
SP
95062010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9507
9508 PR middle-end/42644
9509 PR middle-end/42130
9510 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9511 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
9512
41d1138f
RO
95132010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9514
9515 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
9516 * testsuite/libgomp.c++/task-6.C: Likewise.
9517
6684eb28
SE
95182010-01-28 Steve Ellcey <sje@cup.hp.com>
9519
9520 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
9521
2122aa97
PB
95222010-01-26 Paolo Bonzini <bonzini@gnu.org>
9523
9524 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
9525 * configure: Regenerate.
9526
057dd91d
JJ
95272010-01-26 Jakub Jelinek <jakub@redhat.com>
9528
9529 PR fortran/42866
9530 * testsuite/libgomp.fortran/allocatable5.f90: New test.
9531
d0709b6a
PB
95322010-01-20 Paolo Bonzini <bonzini@gnu.org>
9533
9534 * configure.ac: Test for executability of GFORTRAN.
9535 * configure: Regenerate.
9536
b9497ab5
RO
95372010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9538
9539 * configure: Regenerate.
9540
45de5648
L
95412010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9542
9543 PR libgomp/42602
9544 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9545
e74003a1
RG
95462010-01-03 Richard Guenther <rguenther@suse.de>
9547
9548 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9549
1b3abda8
SP
95502009-12-23 Sebastian Pop <sebpop@gmail.com>
9551
9552 * testsuite/libgomp.graphite/pr4118.c: New.
9553
e19977d3
IS
95542009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9555
9556 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9557 for darwin, protect the test with require-effective-target tls_runtime.
9558 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9559
1d32a772
IS
95602009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9561
9562 PR target/41605
9563 * testsuite/lib/libgomp.exp: Provide -B options to allow for
9564 link spec %s substitutions for static libraries.
9565
deb109b2
JH
95662009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
9567
9568 PR testsuite/42135
9569 * libgomp.graphite/force-parallel-2.c: Reduce array size.
9570
43e02a8a
RW
95712009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9572
9573 * Makefile.in: Regenerate.
9574 * configure: Regenerate.
9575 * testsuite/Makefile.in: Regenerate.
9576
17f35e23
DK
95772009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
9578
9579 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
9580 settings for LC_ALL and LANG.
9581
281e33e1
JJ
95822009-11-25 Jakub Jelinek <jakub@redhat.com>
9583
9584 PR fortran/42162
9585 * testsuite/libgomp.fortran/pr42162.f90: New test.
9586
2b32c27d
JJ
95872009-11-13 Jakub Jelinek <jakub@redhat.com>
9588
9589 PR middle-end/42029
281e33e1 9590 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 9591
89c74f4a
JJ
95922009-10-26 Jakub Jelinek <jakub@redhat.com>
9593
9594 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9595 *s. Accept ld version without text in ()s.
9596 * configure: Regenerated.
9597
7e06c3d6
EB
95982009-10-22 Razya Ladelsky <razya@il.ibm.com>
9599
9600 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
9601
0046b1a7
RW
96022009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9603
9604 PR libgomp/41418
9605 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
9606 or a hyphen (happens with fortran language disabled).
9607 * configure: Regenerate.
9608
c82852f7
RW
96092009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9610
9611 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
9612 use sed script portable to Solaris /bin/sed for extracting ld
9613 version.
9614 * configure: Regenerate.
9615
98f3eb1f
AM
96162009-09-17 Alexander Monakov <amonakov@ispras.ru>
9617
9618 * testsuite/libgomp.graphite/bounds.c: New test.
9619
878f62e5
RW
96202009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9621
9622 * Makefile.am (libgomp_la_LINK): New.
9623 * Makefile.in: Regenerate.
9624
df58e648
RW
96252009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9626
9627 * configure.ac (AC_PREREQ): Bump to 2.64.
9628
5213506e
RW
96292009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9630
70fa0efa
RW
9631 * Makefile.am (install-html, install-pdf): Remove.
9632 * Makefile.in: Regenerate.
9633
5213506e
RW
9634 * Makefile.in: Regenerate.
9635 * aclocal.m4: Regenerate.
9636 * config.h.in: Regenerate.
9637 * configure: Regenerate.
9638 * testsuite/Makefile.in: Regenerate.
9639
84fec8a5
RW
96402009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9641
9642 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9643 * Makefile.in: Regenerate.
9644
197c68cc
DK
96452009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
9646
9647 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9648 * Makefile.in: Regenerate.
9649
693d54f2
TB
96502009-08-19 Tobias Burnus <burnus@net-b.de>
9651
9652 PR fortran/41102
9653 omp_lib.h.in: Fix -std=f95 errors.
9654
8cac884c
DE
96552009-08-14 David Edelsohn <edelsohn@gnu.org>
9656
9657 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9658 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9659 * testsuite/libgomp.graphite/graphite.exp: New.
9660
78729ee2
AT
96612009-08-05 Andreas Tobler <a.tobler@schweiz.org>
9662
9663 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9664 only build.
9665
b13b7f39
DD
96662009-08-04 David Daney <ddaney@caviumnetworks.com>
9667
9668 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9669 needed memory barrier semantics.
9670 * config/linux/mips/mutex.h: New file.
9671
1b3b24c2
RW
96722009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9673
9674 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9675
396b7fa4
JM
96762009-07-16 Joseph Myers <joseph@codesourcery.com>
9677
9678 * configure: Regenerate.
9679
33cde516
RS
96802009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
9681
9682 PR testsuite/40699
9683 PR testsuite/40707
9684 PR testsuite/40709
9685 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9686 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9687 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9688
bc21bfa5
RS
96892009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9690
9691 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9692 options when choosing a multilib.
9693
b30bfd40
RS
96942009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
9695
9696 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9697 ld_library_path. Use add_path. Add just find_libgcc_s to
9698 ld_library_path, not every libgcc multilib directory.
9699 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9700 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9701 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9702 Use add_path.
9703 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9704
479c15c2
NF
97052009-06-09 Nathan Froyd <froydnj@codesourcery.com>
9706
9707 * Makefile.am (LTLDFLAGS): Define.
9708 (LINK): Define.
9709 * Makefile.in: Regenerate.
9710
667e6f89
JB
97112009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
9712
9713 PR fortran/39718
9714 * testsuite/libgomp.fortran/fortran.exp: Don't link with
9715 libgfortranbegin, check existence of libgfortran.a instead of
9716 libgfortranbegin.a.
9717
6dea8e99
JJ
97182009-05-20 Jakub Jelinek <jakub@redhat.com>
9719
9720 PR libgomp/40174
9721 * team.c (gomp_thread_start): Destroy thr->release semaphore.
9722 (gomp_free_pool_helper): Likewise.
9723
34d01e1d
VL
97242009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
9725 Jakub Jelinek <jakub@redhat.com>
9726
9727 PR fortran/35423
9728 * testsuite/libgomp.fortran/workshare2.f90: New test.
9729
748086b7
JJ
97302009-04-09 Nick Clifton <nickc@redhat.com>
9731
9732 * iter.c: Change copyright header to refer to version 3 of the
9733 GNU General Public License with version 3.1 of the GCC Runtime
9734 Library Exception and to point readers at the COPYING3 and
9735 COPYING3.RUNTIME files and the FSF's license web page.
9736 * alloc.c: Likewise.
9737 * barrier.c: Likewise.
9738 * config/bsd/proc.c: Likewise.
9739 * config/linux/affinity.c: Likewise.
9740 * config/linux/alpha/futex.h: Likewise.
9741 * config/linux/bar.c: Likewise.
9742 * config/linux/bar.h: Likewise.
9743 * config/linux/ia64/futex.h: Likewise.
9744 * config/linux/ia64/mutex.h: Likewise.
9745 * config/linux/lock.c: Likewise.
9746 * config/linux/mips/futex.h: Likewise.
9747 * config/linux/mutex.c: Likewise.
9748 * config/linux/mutex.h: Likewise.
9749 * config/linux/powerpc/futex.h: Likewise.
9750 * config/linux/proc.c: Likewise.
9751 * config/linux/ptrlock.c: Likewise.
9752 * config/linux/ptrlock.h: Likewise.
9753 * config/linux/s390/futex.h: Likewise.
9754 * config/linux/sem.c: Likewise.
9755 * config/linux/sem.h: Likewise.
9756 * config/linux/sparc/futex.h: Likewise.
9757 * config/linux/wait.h: Likewise.
9758 * config/linux/x86/futex.h: Likewise.
9759 * config/mingw32/proc.c: Likewise.
9760 * config/mingw32/time.c: Likewise.
9761 * config/posix/affinity.c: Likewise.
9762 * config/posix/bar.c: Likewise.
9763 * config/posix/bar.h: Likewise.
9764 * config/posix/lock.c: Likewise.
9765 * config/posix/mutex.h: Likewise.
9766 * config/posix/proc.c: Likewise.
9767 * config/posix/ptrlock.h: Likewise.
9768 * config/posix/sem.c: Likewise.
9769 * config/posix/sem.h: Likewise.
9770 * config/posix/time.c: Likewise.
9771 * config/posix95/lock.c: Likewise.
9772 * critical.c: Likewise.
9773 * env.c: Likewise.
9774 * error.c: Likewise.
9775 * fortran.c: Likewise.
9776 * iter_ull.c: Likewise.
9777 * libgomp.h: Likewise.
9778 * libgomp_f.h.in: Likewise.
9779 * libgomp_g.h: Likewise.
9780 * loop.c: Likewise.
9781 * loop_ull.c: Likewise.
9782 * omp.h.in: Likewise.
9783 * omp_lib.f90.in: Likewise.
9784 * omp_lib.h.in: Likewise.
9785 * ordered.c: Likewise.
9786 * parallel.c: Likewise.
9787 * sections.c: Likewise.
9788 * single.c: Likewise.
9789 * task.c: Likewise.
9790 * team.c: Likewise.
9791 * work.c: Likewise.
9792
97932009-04-09 Jakub Jelinek <jakub@redhat.com>
9794
9795 * testsuite/config/default.exp: Change copyright header to refer to
9796 version 3 of the GNU General Public License and to point readers
9797 at the COPYING3 file and the FSF's license web page.
9798
4f0ae266
JJ
97992009-04-08 Jakub Jelinek <jakub@redhat.com>
9800
9801 PR middle-end/39573
9802 * libgomp.c++/pr39573.C: New test.
9803
03742a9b
JJ
98042009-04-01 Jakub Jelinek <jakub@redhat.com>
9805
9806 PR other/39591
9807 * testsuite/libgomp.c/pr39591-1.c: New test.
9808 * testsuite/libgomp.c/pr39591-2.c: New test.
9809 * testsuite/libgomp.c/pr39591-3.c: New test.
9810
e50ea10b
UB
98112009-03-25 Uros Bizjak <ubizjak@gmail.com>
9812
9813 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9814 * testsuite/libgomp.c/atomic-6.c: Ditto.
9815
c5cdb03f
JJ
98162009-03-23 Jakub Jelinek <jakub@redhat.com>
9817
9818 PR c/39495
9819 * testsuite/libgomp.c/loop-12.c: New test.
9820 * testsuite/libgomp.c/loop-11.c: New test.
9821 * testsuite/libgomp.c++/loop-11.C: New test.
9822 * testsuite/libgomp.c++/loop-12.C: New test.
9823 * testsuite/libgomp.c++/for-8.C: New test.
9824
7a9d3fe8
RW
98252009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9826
9827 * configure: Regenerate.
9828
3ad6b266
JJ
98292009-02-11 Jakub Jelinek <jakub@redhat.com>
9830
9831 PR middle-end/39154
9832 * testsuite/libgomp.c/pr39154.c: New test.
9833
b39dea08
ILT
98342009-01-30 Ian Lance Taylor <iant@google.com>
9835
9836 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9837 libgomp_ld_is_gold. Get gold version number.
9838 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9839 * configure: Rebuild.
9840
72c66596
IS
98412009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9842
e50ea10b 9843 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
9844 use libgfortran.a%s in their specs.
9845
876080ff
JJ
98462009-01-07 Jakub Jelinek <jakub@redhat.com>
9847
9848 PR libgomp/38086
9849 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9850 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9851 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9852 * configure: Regenerated.
9853 * config.h.in: Likewise.
9854
e4ebaef3
JJ
98552008-12-28 Jakub Jelinek <jakub@redhat.com>
9856
9857 PR c++/38650
9858 * testsuite/libgomp.c/pr38650.c: New test.
9859 * testsuite/libgomp.c++/pr38650.C: New test.
9860
382017a6
JJ
98612008-12-27 Jakub Jelinek <jakub@redhat.com>
9862
9863 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9864
79644b27
UB
98652008-12-26 Uros Bizjak <ubizjak@gmail.com>
9866
9867 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9868
baafc534
RW
98692008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9870
9871 * configure: Regenerate.
9872
d9c194cb
JJ
98732008-12-08 Jakub Jelinek <jakub@redhat.com>
9874
9875 PR middle-end/36802
9876 * testsuite/libgomp.c/pr36802-1.c: New test.
9877 * testsuite/libgomp.c/pr36802-2.c: New test.
9878 * testsuite/libgomp.c/pr36802-3.c: New test.
9879
86a182bf
JJ
98802008-12-01 Janis Johnson <janis187@us.ibm.com>
9881
9882 PR libgomp/38270
9883 * config/linux/powerpc/mutex.h: New.
9884
956adfaf
JJ
98852008-12-01 Jakub Jelinek <jakub@redhat.com>
9886
a2d4cdc9
JJ
9887 PR c++/38257
9888 * testsuite/libgomp.c++/for-7.C: New test.
9889
956adfaf
JJ
9890 PR c++/38348
9891 * testsuite/libgomp.c++/for-6.C: New test.
9892
d4038ca2
JJ
98932008-11-26 Janis Johnson <janis187@us.ibm.com>
9894
9895 PR testsuite/28870
9896 * testsuite/lib/libgomp.exp: Include new timeout library files.
9897 (libgomp_target_compile): Set timeout value from new proc.
9898
8b159eea
SE
98992008-11-13 Steve Ellcey <sje@cup.hp.com>
9900
9901 PR libgomp/37938
9902 * config/linux/ia64/mutex.h: New.
9903
5c6ed53a
TB
99042008-11-04 Tobias Burnus <burnus@net-b.de>
9905
9906 PR libgomp/37935
9907 * libgomp.texi (Runtime library routines, environment variables):
9908 Update for OpenMP version 3.0.
9909
6b4a97ed
PG
99102008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9911 Steve Ellcey <sje@cup.hp.com>
9912
9913 * configure: Regenerate for new libtool.
9914 * Makefile.in: Ditto.
9915 * testsuite/Makefile.in: Ditto.
9916
e2b34106
JJ
99172008-09-19 Jakub Jelinek <jakub@redhat.com>
9918 Andreas Tobler <a.tobler@schweiz.org>
9919
9920 * config/bsd/proc.c: New file.
8c3b3600 9921 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
9922 * configure.ac: Check for header <sys/sysctl.h>
9923 * configure: Regenerate.
9924 * config.h.in: Likewise.
9925
3606b8bf
JJ
99262008-09-05 Janis Johnson <janis187@us.ibm.com>
9927
9928 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9929
6528b88d
AL
99302008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9931
9932 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9933 * Makefile.in: Regenerated.
9934 * testsuite/Makefile.in: Regenerated.
9935
d9b14b12 99362008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 9937
a16b68bb 9938 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
9939 depend on blddir if blddir exists.
9940 (libgomp_target_compile): Likewise.
9941 * testsuite/libgomp.c++/c++.exp: Likewise.
9942 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9943
70b1e376
RW
99442008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9945
9946 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9947 Do not list GPL as Invariant Section.
9948
318e8c3f
IG
99492008-07-28 Ilie Garbacea <ilie@mips.com>
9950 Chao-ying Fu <fu@mips.com>
9951
9952 * configure.tgt: Enable futex for MIPS.
9953 * config/linux/mips/futex.h: New file.
9954
4db72361
JJ
99552008-07-16 Jakub Jelinek <jakub@redhat.com>
9956
9957 * team.c (gomp_team_end): Free team immediately if it has
9958 just one thread.
9959
87bd23b8
DE
99602008-07-08 David Edelsohn <edelsohn@gnu.org>
9961
9962 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9963 * testsuite/libgomp.fortran/fortran.exp: Same.
9964 * testsuite/libgomp.c/c.exp: Same.
9965 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9966 directory to library path first.
9967
323ff903
KW
99682008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9969
9970 * env.c (parse_stacksize): Add cast to avoid warning.
9971 (parse_spincount): Likewise.
9972
b357f682
JJ
99732008-06-27 Jakub Jelinek <jakub@redhat.com>
9974
ca2b1311
JJ
9975 * testsuite/libgomp.c/loop-10.c: New test.
9976 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9977 * libgomp.c++/loop-6.C (main): Likewise.
9978
b357f682
JJ
9979 PR debug/36617
9980 * testsuite/libgomp.c/debug-1.c: New test.
9981
09a46078
JJ
99822008-06-19 Jakub Jelinek <jakub@redhat.com>
9983
9984 * testsuite/libgomp.c/nqueens-1.c: New test.
9985
2368a460
JJ
9986 PR c++/36523
9987 * testsuite/libgomp.c++/task-7.C: New function.
9988
18c04407
RW
99892008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9990
9991 * configure: Regenerate.
9992
9c4e59e0
JDA
99932008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9994
9995 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9996 mutex when HAVE_SYNC_BUILTINS isn't defined.
9997
6ccde948
RW
99982008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9999
10000 * libgomp.texi (omp_test_lock): Fix typo.
10001
b896f9fd
TB
100022008-06-12 Tobias Burnus <burnus@net-b.de>
10003
10004 * omp_lib.f90.in: Add "implicit none".
10005
c34938a8
JJ
100062008-06-12 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR middle-end/36506
10009 * testsuite/libgomp.c/reduction-5.c: New test.
10010
976e44e3
JJ
100112008-06-11 Jakub Jelinek <jakub@redhat.com>
10012
5f836cbb
JJ
10013 * libgomp.h (struct gomp_task): Add in_tied_task field.
10014 * task.c (gomp_init_task): Initialize it.
10015 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10016 unconditionally. Don't call gomp_team_barrier_wake if
10017 current task is implicit or if(0) from implicit and number of
10018 running tasks is equal to nthreads - 1.
10019
01501fc8
JJ
10020 PR libgomp/36471
10021 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10022 omp_get_team_size_8): Fix pastos.
10023
976e44e3
JJ
10024 PR libgomp/36469
10025 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10026 * configure: Regenerated.
10027 * config.h.in: Regenerated.
10028 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10029 defined.
10030
e919209b
AT
100312008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10032
10033 PR bootstrap/36452
10034 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10035 (GOMP_loop_ull_dynamic_start): Likewise.
10036 (GOMP_loop_ull_guided_start): Likewise.
10037 (GOMP_loop_ull_ordered_static_start): Likewise.
10038 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10039 (GOMP_loop_ull_ordered_guided_start): Likewise.
10040
a68ab351
JJ
100412008-06-06 Jakub Jelinek <jakub@redhat.com>
10042 Richard Henderson <rth@redhat.com>
10043 Ulrich Drepper <drepper@redhat.com>
10044 Jakob Blomer <jakob.blomer@ira.uka.de>
10045
10046 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10047 Substitute also OMP_*LOCK_25*.
10048 * configure: Regenerated.
10049 * config.h.in: Regenerated.
10050 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10051 ptrlock.c and task.c.
10052 * Makefile.in: Regenerated.
10053 * testsuite/Makefile.in: Regenerated.
10054 * task.c: New file.
10055 * loop_ull.c: New file.
10056 * iter_ull.c: New file.
10057 * libgomp.h: Include ptrlock.h.
10058 (enum gomp_task_kind): New type.
10059 (struct gomp_team): Add task_lock, task_queue, task_count,
10060 task_running_count, single_count fields. Add
10061 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10062 Remove work_share_lock, generation_mask,
10063 oldest_live_gen, num_live_gen and init_work_shares fields, add
10064 work work_share_list_alloc, work_share_list_free and work_share_chunk
10065 fields. Change work_shares from pointer to pointers into an array.
10066 Change ordered_release field into gomp_sem_t ** from flexible array
10067 member. Add implicit_task and initial_work_shares fields.
10068 Move close to the end of the struct.
10069 (struct gomp_team_state): Add single_count, last_work_share,
10070 active_level and level fields, remove work_share_generation.
10071 (gomp_barrier_handle_tasks): New prototype.
10072 (gomp_finish_task): New inline function.
10073 (struct gomp_work_share): Move chunk_size, end, incr into
10074 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10075 next_ll fields. Reshuffle fields. Add next_alloc,
10076 next_ws, next_free and inline_ordered_team_ids fields, change
10077 ordered_team_ids into pointer from flexible array member.
10078 Add mode field. Put lock and next into a different cache line
10079 from most of the write-once fields.
10080 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10081 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10082 gomp_iter_ull_guided_next): New prototypes.
10083 (gomp_new_icv): New prototype.
10084 (struct gomp_thread): Add thread_pool and task fields.
10085 (struct gomp_thread_pool): New type.
10086 (gomp_new_team): New prototype.
10087 (gomp_team_start): Change type of last argument.
10088 (gomp_new_work_share): Removed.
10089 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10090 (gomp_work_share_init_done): New static inline.
10091 (gomp_throttled_spin_count_var, gomp_available_cpus,
10092 gomp_managed_threads): New extern decls.
10093 (gomp_init_task): New prototype.
10094 (gomp_spin_count_var): New extern var decl.
10095 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10096 or no alias support, or if not PIC.
10097 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10098 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10099 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10100 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10101 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10102 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10103 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10104 gomp_test_nest_lock_25): New prototypes.
10105 (omp_lock_symver, strong_alias): Define.
10106 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10107 decls.
10108 (gomp_end_task): New.
10109 (struct gomp_task_icv, gomp_global_icv): New.
10110 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10111 (struct gomp_task): New.
10112 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10113 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10114 (gomp_icv): New.
10115 (gomp_schedule_type): Reorder enum to match
10116 omp_sched_t.
10117 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10118 fields.
10119 (gomp_thread_start): Add gomp_team_barrier_wait call.
10120 For non-nested case remove clearing of docked thread thr fields.
10121 Use pool fields instead of global gomp_* variables. Use
10122 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10123 Create tasks for each member thread.
10124 (free_team): Only destroy team barrier, task_lock here and free it.
10125 (gomp_free_thread): Free last_team if non-NULL.
10126 (gomp_team_end): Call gomp_team_barrier_wait instead of
10127 gomp_barrier_wait. For nested case call one extra
10128 gomp_barrier_wait. Move here some destruction from free_team.
10129 Call free_team on pool->last_team if any, rather than freeing
10130 current team. Destroy work_share_list_free_lock ifndef
10131 HAVE_SYNC_BUILTINS.
10132 (gomp_new_icv): New function.
10133 (gomp_threads, gomp_threads_size, gomp_threads_used,
10134 gomp_threads_dock): Removed.
10135 (gomp_thread_destructor): New variable.
10136 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10137 functions.
10138 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 10139 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
10140 Initialize thread_pool field for new threads. Clear single_count.
10141 Change last argument from ws to team, don't create
10142 new team, set ts.work_share to &team->work_shares[0] and clear
10143 ts.last_work_share. Don't clear ts.work_share_generation.
10144 If number of threads changed, adjust atomically gomp_managed_threads.
10145 Use gomp_init_task instead of gomp_new_task,
10146 set thr->task to the corresponding implicit_task array entry.
10147 Create tasks for each member thread. Initialize ts.level.
10148 (initialize_team): Call pthread_key_create on
10149 gomp_thread_destructor.
10150 (team_destructor): New function.
10151 (new_team): Removed.
10152 (gomp_new_team): New function.
10153 (free_team): Free gomp_work_share blocks chained through next_alloc,
10154 instead of freeing work_shares and destroying work_share_lock.
10155 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10156 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10157 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10158 of gomp_barrier_wait.
10159 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10160 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10161 if gomp_work_share_start returned true. Don't unlock ws->lock.
10162 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10163 of gomp_barrier_wait.
10164 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10165 gomp_work_share_init_done if gomp_work_share_start returned true.
10166 Don't unlock ws->lock.
10167 * work.c: Include stddef.h.
10168 (free_work_share): Use work_share_list_free_lock instead
10169 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10170 Call gomp_fini_work_share and then either free ws if orphaned, or
10171 put it into work_share_list_free list of the current team.
10172 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10173 functions.
10174 (gomp_work_share_start, gomp_work_share_end,
10175 gomp_work_share_end_nowait): Rewritten.
10176 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10177 (openmp_version): Set to 200805.
10178 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10179 omp_sched_guided, omp_sched_auto): New parameters.
10180 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10181 omp_set_max_active_levels, omp_get_max_active_levels,
10182 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10183 omp_get_active_level): New interfaces.
10184 * omp_lib.h.in (openmp_version): Set to 200805.
10185 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10186 omp_sched_guided, omp_sched_auto): New parameters.
10187 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10188 omp_set_max_active_levels, omp_get_max_active_levels,
10189 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10190 omp_get_active_level): New externals.
10191 * loop.c: Include limits.h.
10192 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10193 GFS_AUTO.
10194 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10195 Likewise. Use gomp_icv.
10196 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10197 ts.static_trip here.
10198 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10199 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10200 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10201 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10202 don't unlock ws->lock, otherwise lock it.
10203 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10204 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10205 (gomp_parallel_loop_start): Call gomp_new_team instead of
10206 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10207 Adjust gomp_team_start caller. Pass 0 as second argument to
10208 gomp_resolve_num_threads.
10209 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10210 If adding ws->chunk_size nthreads + 1 times after end won't
10211 overflow, set ws->mode to 1.
10212 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10213 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10214 GOMP_loop_ull_ordered_static_start,
10215 GOMP_loop_ull_ordered_dynamic_start,
10216 GOMP_loop_ull_ordered_guided_start,
10217 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10218 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10219 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10220 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10221 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10222 prototypes.
10223 * libgomp.map: Export lock routines also @@OMP_2.0.
10224 (GOMP_loop_ordered_dynamic_first,
10225 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10226 GOMP_loop_ordered_static_first): Remove.
10227 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10228 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10229 GOMP_loop_ull_ordered_dynamic_next,
10230 GOMP_loop_ull_ordered_dynamic_start,
10231 GOMP_loop_ull_ordered_guided_next,
10232 GOMP_loop_ull_ordered_guided_start,
10233 GOMP_loop_ull_ordered_runtime_next,
10234 GOMP_loop_ull_ordered_runtime_start,
10235 GOMP_loop_ull_ordered_static_next,
10236 GOMP_loop_ull_ordered_static_start,
10237 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10238 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10239 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10240 (omp_set_schedule, omp_get_schedule,
10241 omp_get_thread_limit, omp_set_max_active_levels,
10242 omp_get_max_active_levels, omp_get_level,
10243 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10244 omp_set_schedule_, omp_set_schedule_8_,
10245 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10246 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10247 omp_get_max_active_levels_, omp_get_level_,
10248 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10249 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10250 New exports @@OMP_3.0.
10251 * omp.h.in (omp_sched_t): New type.
10252 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10253 omp_set_max_active_levels, omp_get_max_active_levels,
10254 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10255 omp_get_active_level): New prototypes.
10256 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10257 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10258 gomp_thread_limit_var, gomp_remaining_threads_count,
10259 gomp_remaining_threads_lock): New variables.
10260 (parse_spincount): New function.
10261 (initialize_env): Call gomp_init_num_threads unconditionally.
10262 Initialize gomp_available_cpus. Call parse_spincount,
10263 initialize gomp_{,throttled_}spin_count_var
10264 depending on presence and value of OMP_WAIT_POLICY and
10265 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10266 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10267 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10268 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10269 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10270 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10271 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10272 (gomp_global_icv): New.
10273 (parse_schedule): Use it. Parse "auto".
10274 (omp_set_num_threads): Use gomp_icv.
10275 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10276 Likewise.
10277 (omp_get_max_threads): Move from parallel.c.
10278 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10279 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10280 add ialias.
10281 (parse_stacksize, parse_wait_policy): New functions.
10282 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10283 both wrappers for compatibility and new locks.
10284 (omp_set_schedule, omp_get_schedule,
10285 omp_get_thread_limit, omp_set_max_active_levels,
10286 omp_get_max_active_levels, omp_get_level,
10287 omp_get_ancestor_thread_num, omp_get_team_size,
10288 omp_get_active_level): New ialias_redirect.
10289 (omp_set_schedule_, omp_set_schedule_8_,
10290 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10291 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10292 omp_get_max_active_levels_, omp_get_level_,
10293 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10294 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10295 New functions.
10296 * parallel.c: Include limits.h.
10297 (gomp_resolve_num_threads): Add count argument. Rewritten.
10298 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10299 argument to gomp_team_start. Pass 0 as second argument to
10300 gomp_resolve_num_threads.
10301 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10302 if gomp_thread_limit_var != ULONG_MAX.
10303 (omp_in_parallel): Implement using ts.active_level.
10304 (omp_get_max_threads): Move to env.c.
10305 (omp_get_level, omp_get_ancestor_thread_num,
10306 omp_get_team_size, omp_get_active_level): New functions,
10307 add ialias.
10308 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10309 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10310 gomp_iter_dynamic_next instead of the _locked variant and don't take
10311 lock around it, otherwise acquire it before calling
10312 gomp_iter_dynamic_next_locked.
10313 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10314 gomp_iter_dynamic_next instead of the _locked variant and don't take
10315 lock around it.
10316 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10317 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10318 Adjust gomp_team_start caller. Pass count as second argument to
10319 gomp_resolve_num_threads, don't adjust num_threads after the call.
10320 Use gomp_icv.
10321 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10322 ws->chunk_size by incr.
10323 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10324 code.
10325 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10326 types.
10327 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10328 (omp_check_defines): Check even the compat defines.
10329 * config/linux/ptrlock.c: New file.
10330 * config/linux/ptrlock.h: New file.
10331 * config/linux/wait.h: New file.
10332 * config/posix/ptrlock.c: New file.
10333 * config/posix/ptrlock.h: New file.
10334 * config/linux/bar.h (gomp_team_barrier_wait,
10335 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10336 (gomp_team_barrier_set_task_pending,
10337 gomp_team_barrier_clear_task_pending,
10338 gomp_team_barrier_set_waiting_for_tasks,
10339 gomp_team_barrier_waiting_for_tasks,
10340 gomp_team_barrier_done): New inlines.
10341 (gomp_barrier_t): Rewritten.
10342 (gomp_barrier_state_t): New typedef.
10343 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10344 gomp_barrier_wait_start): Rewritten.
10345 (gomp_barrier_wait_end): Change second argument to
10346 gomp_barrier_state_t.
10347 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10348 inlines.
10349 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10350 futex.h.
10351 (gomp_barrier_wait_end): Rewritten.
10352 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10353 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10354 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10355 (gomp_barrier_state_t): New typedef.
10356 (gomp_team_barrier_wait,
10357 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10358 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10359 into the return value. Return gomp_barrier_state_t.
10360 (gomp_team_barrier_set_task_pending,
10361 gomp_team_barrier_clear_task_pending,
10362 gomp_team_barrier_set_waiting_for_tasks,
10363 gomp_team_barrier_waiting_for_tasks,
10364 gomp_team_barrier_done): New inlines.
10365 (gomp_barrier_wait_end): Change second argument to
10366 gomp_barrier_state_t.
10367 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10368 inlines.
10369 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10370 (gomp_barrier_wait_end): Change second argument to
3e348fcc 10371 gomp_barrier_state_t.
a68ab351
JJ
10372 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10373 gomp_team_barrier_wake): New functions.
10374 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10375 futex.h.
10376 (gomp_futex_wake, gomp_futex_wait): New variables.
10377 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10378 * config/linux/lock.c: Rewrite to make locks task owned,
10379 for backwards compatibility provide the old entrypoints
10380 if symbol versioning. Include wait.h instead of libgomp.h and
10381 futex.h.
10382 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10383 * config/posix95/lock.c: Rewrite to make locks task owned,
10384 for backwards compatibility provide the old entrypoints
10385 if symbol versioning.
10386 * config/posix/lock.c: Rewrite to make locks task owned,
10387 for backwards compatibility provide the old entrypoints
10388 if symbol versioning.
10389 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10390 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10391 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10392 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10393 (sys_futex0): Return error code.
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/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10398 (futex_wake, futex_wait): If ENOSYS was returned, clear
10399 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10400 (cpu_relax, atomic_write_barrier): New static inlines.
10401 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10402 (sys_futex0): Return error code.
10403 (futex_wake, futex_wait): If ENOSYS was returned, clear
10404 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10405 (cpu_relax, atomic_write_barrier): New static inlines.
10406 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10407 (sys_futex0): Return error code.
10408 (futex_wake, futex_wait): If ENOSYS was returned, clear
10409 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10410 (cpu_relax, atomic_write_barrier): New static inlines.
10411 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10412 (sys_futex0): Return error code.
10413 (futex_wake, futex_wait): If ENOSYS was returned, clear
10414 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10415 (cpu_relax, atomic_write_barrier): New static inlines.
10416 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10417 (sys_futex0): Return error code.
10418 (futex_wake, futex_wait): If ENOSYS was returned, clear
10419 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10420 (cpu_relax, atomic_write_barrier): New static inlines.
10421 * config/linux/sem.c: Include wait.h instead of libgomp.h and
10422 futex.h.
10423 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
10424 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
10425 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
10426 types.
10427 (omp_nest_lock_t): Change owner into void *, add lock field.
10428 * config/posix95/omp-lock.h: Include semaphore.h.
10429 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10430 (omp_lock_t): Use sem_t instead of mutex if semaphores
10431 aren't broken.
10432 (omp_nest_lock_t): Likewise. Change owner to void *.
10433 * config/posix/omp-lock.h: Include semaphore.h.
10434 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10435 (omp_lock_t): Use sem_t instead of mutex if semaphores
10436 aren't broken.
10437 (omp_nest_lock_t): Likewise. Add owner field.
10438
104392008-06-06 Jakub Jelinek <jakub@redhat.com>
10440
10441 * testsuite/libgomp.c/collapse-1.c: New test.
10442 * testsuite/libgomp.c/collapse-2.c: New test.
10443 * testsuite/libgomp.c/collapse-3.c: New test.
10444 * testsuite/libgomp.c/icv-1.c: New test.
10445 * testsuite/libgomp.c/icv-2.c: New test.
10446 * testsuite/libgomp.c/lib-2.c: New test.
10447 * testsuite/libgomp.c/lock-1.c: New test.
10448 * testsuite/libgomp.c/lock-2.c: New test.
10449 * testsuite/libgomp.c/lock-3.c: New test.
10450 * testsuite/libgomp.c/loop-4.c: New test.
10451 * testsuite/libgomp.c/loop-5.c: New test.
10452 * testsuite/libgomp.c/loop-6.c: New test.
10453 * testsuite/libgomp.c/loop-7.c: New test.
10454 * testsuite/libgomp.c/loop-8.c: New test.
10455 * testsuite/libgomp.c/loop-9.c: New test.
10456 * testsuite/libgomp.c/nested-3.c: New test.
10457 * testsuite/libgomp.c/nestedfn-6.c: New test.
10458 * testsuite/libgomp.c/sort-1.c: New test.
10459 * testsuite/libgomp.c/task-1.c: New test.
10460 * testsuite/libgomp.c/task-2.c: New test.
10461 * testsuite/libgomp.c/task-3.c: New test.
10462 * testsuite/libgomp.c/task-4.c: New test.
10463 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
10464 to C++ testsuite default compiler options.
10465 * testsuite/libgomp.c++/collapse-1.C: New test.
10466 * testsuite/libgomp.c++/collapse-2.C: New test.
10467 * testsuite/libgomp.c++/ctor-10.C: New test.
10468 * testsuite/libgomp.c++/for-1.C: New test.
10469 * testsuite/libgomp.c++/for-2.C: New test.
10470 * testsuite/libgomp.c++/for-3.C: New test.
10471 * testsuite/libgomp.c++/for-4.C: New test.
10472 * testsuite/libgomp.c++/for-5.C: New test.
10473 * testsuite/libgomp.c++/loop-8.C: New test.
10474 * testsuite/libgomp.c++/loop-9.C: New test.
10475 * testsuite/libgomp.c++/loop-10.C: New test.
10476 * testsuite/libgomp.c++/task-1.C: New test.
10477 * testsuite/libgomp.c++/task-2.C: New test.
10478 * testsuite/libgomp.c++/task-3.C: New test.
10479 * testsuite/libgomp.c++/task-4.C: New test.
10480 * testsuite/libgomp.c++/task-5.C: New test.
10481 * testsuite/libgomp.c++/task-6.C: New test.
10482 * testsuite/libgomp.fortran/allocatable1.f90: New test.
10483 * testsuite/libgomp.fortran/allocatable2.f90: New test.
10484 * testsuite/libgomp.fortran/allocatable3.f90: New test.
10485 * testsuite/libgomp.fortran/allocatable4.f90: New test.
10486 * testsuite/libgomp.fortran/collapse1.f90: New test.
10487 * testsuite/libgomp.fortran/collapse2.f90: New test.
10488 * testsuite/libgomp.fortran/collapse3.f90: New test.
10489 * testsuite/libgomp.fortran/collapse4.f90: New test.
10490 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
10491 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
10492 * testsuite/libgomp.fortran/lib4.f90: New test.
10493 * testsuite/libgomp.fortran/lock-1.f90: New test.
10494 * testsuite/libgomp.fortran/lock-2.f90: New test.
10495 * testsuite/libgomp.fortran/nested1.f90: New test.
10496 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
10497 * testsuite/libgomp.fortran/strassen.f90: New test.
10498 * testsuite/libgomp.fortran/tabs1.f90: New test.
10499 * testsuite/libgomp.fortran/tabs2.f: New test.
10500 * testsuite/libgomp.fortran/task1.f90: New test.
10501 * testsuite/libgomp.fortran/task2.f90: New test.
10502 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
10503 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10504 * testsuite/libgomp.c/pr26943-2.c: Likewise.
10505 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10506 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10507
7a0112e7
JJ
105082008-05-23 Jakub Jelinek <jakub@redhat.com>
10509
10510 PR c++/36308
10511 * testsuite/libgomp.c++/ctor-11.C: New test.
10512 * testsuite/libgomp.c++/ctor-12.C: New test.
10513
91a5b394
JJ
105142008-05-15 Janis Johnson <janis187@us.ibm.com>
10515
10516 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
10517
c18c98c0
JJ
105182008-05-07 Jakub Jelinek <jakub@redhat.com>
10519
10520 PR middle-end/36106
10521 * testsuite/libgomp.c/atomic-5.c: New test.
10522 * testsuite/libgomp.c/atomic-6.c: New test.
10523 * testsuite/libgomp.c/autopar-1.c: New test.
10524
6d26724a
RW
105252008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10526
10527 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10528 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10529 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10530 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10531 * configure: Regenerate.
10532 * Makefile.in, testsuite/Makefile.in: Likewise.
10533
deb984e6
PB
105342008-04-18 Paolo Bonzini <bonzini@gnu.org>
10535
10536 PR bootstrap/35457
10537 * aclocal.m4: Regenerate.
10538 * configure: Regenerate.
10539
9e775963
JJ
105402008-03-18 Jakub Jelinek <jakub@redhat.com>
10541
8119fc93
JJ
10542 PR middle-end/35611
10543 * testsuite/libgomp.c/atomic-4.c: New test.
10544
9e775963
JJ
10545 PR libgomp/35625
10546 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10547 (gomp_iter_guided_next): Likewise.
10548 * testsuite/libgomp.c/pr35625.c: New test.
10549
38d24731
RW
105502008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10551
10552 * aclocal.m4: Regenerate.
10553 * configure: Likewise.
10554 * Makefile.in: Likewise.
10555 * testsuite/Makefile.in: Likewise.
10556
d0fb20be
JJ
105572008-03-13 Jakub Jelinek <jakub@redhat.com>
10558
10559 PR middle-end/35185
10560 * testsuite/libgomp.c++/pr35185.C: New test.
10561
7c8f7639
JJ
105622008-03-12 Jakub Jelinek <jakub@redhat.com>
10563
10564 PR middle-end/35549
10565 * testsuite/libgomp.c/pr35549.c: New test.
10566
251923f5
JJ
105672008-03-06 Jakub Jelinek <jakub@redhat.com>
10568
10569 * testsuite/libgomp.c/atomic-3.c: New test.
10570
f489fba1
FXC
105712008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10572
10573 PR fortran/33197
251923f5 10574 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
10575 .F08 file suffixes.
10576
a1b25e49
PG
105772008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
10578
10579 PR libgomp/33131
10580 * configure.ac: Add ACX_HEADER_STRING.
10581 * env.c: Include strings.h.
10582 * aclocal.m4: Regenerate.
10583 * config.h.in: Regenerate.
10584 * configure: Regenerate.
10585 * Makefile.in: Regenerate.
10586 * testsuite/Makefile.in: Regenerate.
10587
6837b3b8
JJ
105882008-02-15 Jakub Jelinek <jakub@redhat.com>
10589
ac84c062
JJ
10590 PR middle-end/35196
10591 * testsuite/libgomp.c/pr35196.c: New test.
10592
6837b3b8
JJ
10593 PR middle-end/35130
10594 * testsuite/libgomp.fortran/pr35130.f90: New test.
10595 * testsuite/libgomp.c/pr35130.c: New test.
10596
c256730c
JJ
105972008-01-25 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR middle-end/33880
10600 * testsuite/libgomp.c/pr33880.c: New test.
10601 * testsuite/libgomp.fortran/pr33880.f90: New test.
10602
c8e95542 106032008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
10604
10605 * configure: Regenerate.
10606
0f3e711e
JJ
106072008-01-08 Jakub Jelinek <jakub@redhat.com>
10608
10609 * configure.ac: Move futex checking into ../config/futex.m4.
10610 * configure: Rebuilt.
10611 * aclocal.m4: Rebuilt.
10612 * Makefile.in: Rebuilt.
10613
10614 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
10615 2007-10-15 ../config/tls.m4 change.
10616
5259c813
JJ
106172007-12-19 Jakub Jelinek <jakub@redhat.com>
10618
10619 PR c++/34513
10620 * testsuite/libgomp.c/pr34513.c: New test.
10621 * testsuite/libgomp.c++/pr34513.C: New test.
10622
ae8d8879
JH
106232007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
10624
10625 PR target/32765
10626 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
10627
2b4cf991
JJ
106282007-12-04 Jakub Jelinek <jakub@redhat.com>
10629
10630 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
10631
d2dda7fe
JJ
106322007-12-03 Jakub Jelinek <jakub@redhat.com>
10633
10634 * testsuite/libgomp.c/private-1.c: New test.
10635
d683ec81
PB
106362007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
10637 Paolo Bonzini <bonzini@gnu.org>
10638
10639 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10640 instead of 'VPATH ='.
10641 * Makefile.in: Regenerate.
10642
a7415017
MK
106432007-11-23 Matthias Klose <doko@ubuntu.com>
10644
10645 * configure.ac: Adjust makeinfo version check.
10646 * configure: Regenerate.
10647
78e47463
JJ
106482007-11-10 Jakub Jelinek <jakub@redhat.com>
10649
10650 PR fortran/34020
10651 * testsuite/libgomp.fortran/pr34020.f90: New test.
10652
239371f9
JJ
106532007-11-06 Jakub Jelinek <jakub@redhat.com>
10654
10655 PR c++/33894
10656 * testsuite/libgomp.c++/atomic-1.C: New test.
10657
98a5fa94
JJ
106582007-10-25 Jakub Jelinek <jakub@redhat.com>
10659
10660 PR libgomp/33275
10661 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10662 Make x and y integers rather than (implicit) reals. Add private (j)
10663 clause to the last omp parallel.
10664
3afcaaf4
MR
106652007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
10666
10667 * configure: Regenerate following changes to ../config/tls.m4.
10668
bd69daef
JJ
106692007-09-28 Jakub Jelinek <jakub@redhat.com>
10670
10671 * testsuite/libgomp.fortran/stack.f90: New test.
10672
1d0bd356
DS
106732007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
10674
10675 * config/mingw32/proc.c: New file.
10676
b3172cab
UB
106772007-09-05 Uros Bizjak <ubizjak@gmail.com>
10678
10679 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10680 (main): Use __get_cpuid to get i386 target fetaures.
10681 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10682 (main): Use __get_cpuid to get x86_64 target fetaures.
10683
6da17392
JH
106842007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
10685
10686 PR target/32765
10687 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10688 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10689
e1c82219
JJ
106902007-07-12 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR fortran/32550
10693 * testsuite/libgomp.fortran/pr32550.f90: New test.
10694 * testsuite/libgomp.fortran/crayptr2.f90: New test.
10695
12a27363
L
106962007-07-05 H.J. Lu <hongjiu.lu@intel.com>
10697
10698 * aclocal.m4: Regenerated.
10699
5349080d
TB
107002007-07-05 Tobias Burnus <burnus@net-b.de>
10701
10702 PR fortran/32359
10703 * testsuite/libgomp.fortran/pr32359.f90: New.
10704
4f9c450c
JJ
107052007-07-02 Jakub Jelinek <jakub@redhat.com>
10706
10707 PR libgomp/32468
10708 * sections.c (GOMP_parallel_sections_start): Only decrease
10709 number of threads to COUNT if dyn_var is true.
10710 * testsuite/libgomp.c/pr32468.c: New test.
10711
28c67ed7
RO
107122007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10713
10714 PR libgomp/26308
10715 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10716
64964499
JJ
107172007-06-21 Jakub Jelinek <jakub@redhat.com>
10718
10719 PR middle-end/32362
10720 * testsuite/libgomp.c/pr32362-1.c: New test.
10721 * testsuite/libgomp.c/pr32362-2.c: New test.
10722 * testsuite/libgomp.c/pr32362-3.c: New test.
10723
46d8fbd1
JJ
107242007-06-07 Jakub Jelinek <jakub@redhat.com>
10725
10726 * team.c (gomp_team_start): Fix setting up thread_attr
10727 stack size.
10728
82a6cadf
PB
107292007-06-02 Paolo Bonzini <bonzini@gnu.org>
10730
10731 * configure: Regenerate.
10732
1cf3d07d
SE
107332007-05-23 Steve Ellcey <sje@cup.hp.com>
10734
10735 * Makefile.in: Regenerate.
10736 * configure: Regenerate.
10737 * aclocal.m4: Regenerate.
10738 * testsuite/Makefile.in: Regenerate.
10739
12aac30b
JJ
107402007-05-04 Jakub Jelinek <jakub@redhat.com>
10741
10742 * config/linux/proc.c: New file.
10743
f1028b02
JJ
10744 PR libgomp/28482
10745 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10746
06785a48
DF
107472007-04-19 Daniel Franke <franke.daniel@gmail.com>
10748
10749 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10750
b3b08ba0
MK
107512007-04-16 Matthias Klose <doko@debian.org>
10752
10753 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10754 flags if not building with -m64.
10755 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10756 flag for i?86-*-* targets, if current target matches -m64.
10757
6b2c5ce0
SE
107582007-04-14 Steve Ellcey <sje@cup.hp.com>
10759
10760 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10761 * Makefile.in: Regenerate.
10762
dd56fe7c
JDA
107632007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10764
10765 PR testsuite/31369
10766 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10767 ld_library_path.
10768 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10769
a0884cf0
JJ
107702007-04-04 Jakub Jelinek <jakub@redhat.com>
10771
10772 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10773 decls.
10774 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10775 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10776 (parse_affinity): New function.
10777 (initialize_env): Call it and gomp_init_affinity.
10778 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10779 create new pthread_attr_t and call gomp_init_thread_affinity
10780 on it for each thread before passing the attribute to pthread_create.
10781 * config/linux/affinity.c: New file.
10782 * config/posix/affinity.c: New file.
10783 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10784 * configure: Rebuilt.
10785 * config.h.in: Rebuilt.
10786 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10787 * Makefile.in: Rebuilt.
10788
1850744b
AT
107892007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10790
10791 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10792 *-*-darwin*.
10793 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10794 and use it if found.
10795
516f1ed8
UB
107962007-03-18 Uros Bizjak <ubizjak@gmail.com>
10797
10798 * testsuite/config/default.exp: New file.
10799 * testsuite/lib/libgomp.exp: New file.
10800 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10801 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10802 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10803 (libgomp_load): Remove.
10804 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10805 always_ld_library_path, not ld_library_path. Set additional_flags
10806 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10807 (target_compile): Do not call libgomp_init. Append lang_library_path
10808 and lang_link_flags to options.
10809 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10810 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10811 here.
10812 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10813 always_ld_library_path. Set LD_LIBRARY_PATH here.
10814 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10815 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10816 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10817 CX8 flag.
10818 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10819 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10820 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10821 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10822 * testsuite/libgomp.c/atomic-10.c: Ditto.
10823
2ada56f5
JJ
108242007-03-21 Jakub Jelinek <jakub@redhat.com>
10825
10826 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10827 dg-final cleanup-modules line.
10828 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10829 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10830 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10831 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10832 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10833 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10834 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10835
f210f1cd
AS
108362007-03-18 Andreas Schwab <schwab@suse.de>
10837
10838 * acinclude.m4: Adjust regular expression for ld version
10839 extraction.
10840 * configure: Regenerate.
10841
c4dc950d
BM
108422007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10843
10844 * Makefile.am: Add install-pdf target as copied from
10845 automake v1.10 rules.
10846 * Makefile.in: Regenerate
10847
e02a048f
JJ
108482007-02-07 Jakub Jelinek <jakub@redhat.com>
10849
78e075d4
JJ
10850 PR libgomp/28486
10851 * configure: Regenerate.
10852
e02a048f
JJ
10853 PR c++/30703
10854 * testsuite/libgomp.c++/pr30703.C: New test.
10855
60def7ed
JJ
108562007-02-02 Jakub Jelinek <jakub@redhat.com>
10857
10858 Revert:
10859 2006-07-05 Eric Christopher <echristo@apple.com>
10860 * configure.ac: Depend addition of -pthread on host OS.
10861 * configure: Regenerate.
10862
f1b0882e
RW
108632007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10864
10865 * libgomp.texi: Fix spacing after abbreviations.
10866
748b9d7c
DF
108672007-01-31 Daniel Franke <franke.daniel@gmail.com>
10868
10869 PR libgomp/30546
10870 * configure.ac: Add check for makeinfo
10871 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10872 if an appropiate version of makeinfo is found.
10873 * aclocal.m4: Regenerated.
10874 * configure: Regenerated.
10875 * Makefile.in: Regenerated.
10876 * testsuite/Makefile.in: Regenerated.
10877
14734fc7
DF
108782007-01-29 Daniel Franke <franke.daniel@gmail.com>
10879
10880 PR libgomp/30540
10881 * libgomp.texi: More about implementation-dependent settings.
10882
7befd5d2
TB
108832007-01-26 Tobias Burnus <burnus@net-b.de>
10884
10885 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10886
4288fea2
JJ
108872007-01-24 Jakub Jelinek <jakub@redhat.com>
10888
10889 PR middle-end/30494
10890 * testsuite/libgomp.c/pr30494.c: New test.
10891
627ab4b8
TT
108922007-01-15 Tom Tromey <tromey@redhat.com>
10893
10894 * configure: Rebuilt.
10895 * configure.ac: Fixed comment.
10896
7c2b7f45
DF
108972007-01-14 Daniel Franke <franke.daniel@gmail.com>
10898
10899 * libgomp.texi: Document implementation specific default values of
10900 environment variables.
10901
3721b9e1
DF
109022006-12-21 Daniel Franke <franke.daniel@gmail.com>
10903
10904 PR libgomp/28209
10905 * libgomp.texi: New file.
10906 * configure.ac: Add --enable-generated-files-in-srcdir option.
10907 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10908 files to srcdir.
10909 * Makefile.in: Regenerated.
10910 * config.h.in: Regenerated.
10911 * testsuite/Makefile.in: Regenerated.
10912 * NOTES: Removed.
10913
62bd6216
DF
109142006-12-04 Daniel Franke <franke.daniel@gmail.com>
10915
10916 PR libgomp/29949
10917 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10918
aad741f4
EB
109192006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10920
10921 * configure: Regenerate.
10922
22568cc6
JJ
109232006-12-04 Jakub Jelinek <jakub@redhat.com>
10924
10925 PR libgomp/29947
10926 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10927 start if there shouldn't be any loop iterations.
10928 (gomp_loop_ordered_static_start): Remove start == end test.
10929 * testsuite/libgomp.c/pr29947-1.c: New test.
10930 * testsuite/libgomp.c/pr29947-2.c: New test.
10931
a9690009
EB
109322006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10933
10934 * configure.tgt: Force initial-exec TLS model on Linux only.
10935
597c25e6
DJ
109362006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10937
10938 * configure: Regenerated.
10939
6acf0b38
UB
109402006-11-09 Uros Bizjak <ubizjak@gmail.com>
10941
10942 * env.c (parse_schedule): Reject out of range values.
10943 (parse_unsigned_long): Reject out of range, negative or zero values.
10944
a7a53ca5
JJ
109452006-10-29 Jakub Jelinek <jakub@redhat.com>
10946
10947 PR fortran/29629
10948 * testsuite/libgomp.fortran/pr29629.f90: New test.
10949
6d4d216a
EB
109502006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10951
10952 PR libgomp/29494
10953 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10954 * config/posix95: New directory.
10955 * config/posix95/omp-lock.h: New file.
10956 * config/posix95/lock.c: Likewise.
10957
5b043f08
GK
109582006-10-14 Geoffrey Keating <geoffk@apple.com>
10959
10960 * aclocal.m4: Regenerate.
10961 * configure: Regenerate.
10962
b50019f0
DS
109632006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10964
10965 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10966 '<' to '<='.
10967
8887708e
DS
109682006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10969
10970 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10971 test.
10972 * configure: Regenerate.
10973 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10974
9b9e4cd6
JJ
109752006-09-26 Jakub Jelinek <jakub@redhat.com>
10976
a70ad3bb
JJ
10977 PR middle-end/25261
10978 PR middle-end/28790
10979 * testsuite/libgomp.c/nestedfn-4.c: New test.
10980 * testsuite/libgomp.c/nestedfn-5.c: New test.
10981 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10982
9b9e4cd6
JJ
10983 PR fortran/29097
10984 * testsuite/libgomp.fortran/condinc1.f: New test.
10985 * testsuite/libgomp.fortran/condinc2.f: New test.
10986 * testsuite/libgomp.fortran/condinc3.f90: New test.
10987 * testsuite/libgomp.fortran/condinc4.f90: New test.
10988 * testsuite/libgomp.fortran/condinc1.inc: New file.
10989
2fb31455
TT
109902006-09-18 Tom Tromey <tromey@redhat.com>
10991
10992 * configure: Rebuilt.
10993
c663e301
JM
109942006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10995
10996 PR c/28768
10997 PR preprocessor/14634
10998 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10999 to AC_DEFINE.
11000 * configure: Regenerate.
11001
38371be9
SK
110022006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11003
11004 * testsuite/libgomp.fortran/reduction3.f90: Change
11005 -2147483648 to -huge(i)-1 to avoid overflow.
11006 * testsuite/libgomp.fortran/reduction4.f90: Change
11007 Z'ffffffff' to not(0) to avoid overflow.
11008
571d5ac5
JM
110092006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11010
11011 PR libgomp/25938
11012 * Makefile.am (libsubincludedir): New.
11013 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11014 * Makefile.in: Regenerate.
11015
89b3e3cd
JJ
110162006-08-17 Jakub Jelinek <jakub@redhat.com>
11017
11018 PR libgomp/28725
11019 * env.c: Include ctype.h.
11020 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11021 leading and/or trailing whitespace and compare strings case
11022 insensitively.
11023
742fae05
JJ
110242006-07-16 Jakub Jelinek <jakub@redhat.com>
11025
11026 PR fortran/28390
11027 * testsuite/libgomp.fortran/pr28390.f: New test.
11028
a1daed2d
EC
110292006-07-05 Eric Christopher <echristo@apple.com>
11030
11031 * configure.ac: Depend addition of -pthread on host OS.
11032 * configure: Regenerate.
11033
5d7b5199
JJ
110342006-06-21 Jakub Jelinek <jakub@redhat.com>
11035
11036 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11037 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11038 defined.
11039
fe5568e9
JJ
110402006-06-20 Jakub Jelinek <jakub@redhat.com>
11041
11042 PR libgomp/26175
11043 PR libgomp/26477
11044 * configure.ac: If neither --enable-linux-futex nor
11045 --disable-linux-futex is passed, determine the default by checking
11046 for compiling and/or running against NPTL. With --enable-linux-futex,
11047 check if SYS_gettid and SYS_futex are defined.
11048 * configure: Rebuilt.
11049
c3b11a40
RH
110502006-06-14 Richard Henderson <rth@redhat.com>
11051
11052 PR libgomp/28008
11053 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11054 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11055
d0d1b24d
RH
110562006-06-09 Richard Henderson <rth@redhat.com>
11057
11058 * env.c (gomp_nthreads_var): Change to unsigned long.
11059 (gomp_run_sched_chunk): Likewise.
11060 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11061 (initialize_env): Initialize gomp_thread_attr.
11062 * libgomp.h (gomp_nthreads_var): Update decl.
11063 (gomp_run_sched_chunk): Likewise.
11064 (gomp_thread_attr): Declare.
11065 * team.c (gomp_thread_attr): Export.
11066 (initialize_team): Don't initialize it.
11067
cd75853e
JJ
110682006-06-09 Jakub Jelinek <jakub@redhat.com>
11069
11070 PR fortran/27916
11071 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11072 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11073
33815e0c
FXC
110742006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11075
11076 * config/mingw32/time.c: New file.
11077 * configure.tgt: Use it.
11078
6667de0d
CD
110792006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11080
11081 * Makefile.am: Add install-html target. Add install-html to .PHONY
11082 * Makefile.in: Regenerate.
11083
e962c46b
JDA
110842006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11085
11086 PR libgomp/27612
11087 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11088 * testsuite/libgomp.c/critical-1.c: Likewise.
11089 * testsuite/libgomp.c/loop-1.c: Likewise.
11090 * testsuite/libgomp.c/loop-2.c: Likewise.
11091 * testsuite/libgomp.c/single-1.c: Likewise.
11092 * testsuite/libgomp.c/ordered-1.c: Likewise.
11093 * testsuite/libgomp.c/ordered-2.c: Likewise.
11094
eeb1d9e0
JJ
110952006-05-15 Jakub Jelinek <jakub@redhat.com>
11096
11097 PR middle-end/27416
11098 * libgomp.fortran/pr27416-1.f90: New test.
11099
693d710f
JJ
111002006-05-03 Jakub Jelinek <jakub@redhat.com>
11101
11102 PR fortran/27395
11103 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11104 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11105
8ca5b2a2
JJ
111062006-05-02 Jakub Jelinek <jakub@redhat.com>
11107
11108 PR c++/26943
11109 * testsuite/libgomp.c/pr26943-1.c: New test.
11110 * testsuite/libgomp.c/pr26943-2.c: New test.
11111 * testsuite/libgomp.c/pr26943-3.c: New test.
11112 * testsuite/libgomp.c/pr26943-4.c: New test.
11113 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11114 * testsuite/libgomp.c++/pr26943.C: New test.
11115
077b0dfb
JJ
111162006-05-02 Jakub Jelinek <jakub@redhat.com>
11117
11118 PR middle-end/27337
11119 * testsuite/libgomp.c++/pr27337.C: New test.
11120
91b6c26d
JJ
111212006-04-26 Jakub Jelinek <jakub@redhat.com>
11122
11123 PR c/26171
11124 * testsuite/libgomp.c/pr26171.c: New test.
11125
60e1758f
RH
111262006-04-25 Richard Henderson <rth@redhat.com>
11127
11128 PR libgomp/25865
11129 * configure.ac: Use GCC_CHECK_TLS.
11130 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11131 * Makefile.in, aclocal.m4, configure: Regenerate.
11132
615baed7
MK
111332006-04-10 Matthias Klose <doko@debian.org>
11134
11135 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11136 directory names containing underscores.
11137
fae2b46b
JJ
111382006-03-21 Jakub Jelinek <jakub@redhat.com>
11139
11140 PR c++/26691
11141 * testsuite/libgomp.c++/pr26691.C: New test.
11142
11a5f608
JJ
111432006-03-13 Jakub Jelinek <jakub@redhat.com>
11144
11145 * testsuite/libgomp.fortran/retval2.f90: New test.
11146
1799e5d5
RH
111472006-03-09 Diego Novillo <dnovillo@redhat.com>
11148
11149 * testsuite/libgomp.c++: New directory.
11150
d349482e
AT
111512006-02-25 Shantonu Sen <ssen@opendarwin.org>
11152
11153 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11154 * config/posix/sem.c: Implement the above.
11155
111562006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11157
11158 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11159 define HAVE_BROKEN_POSIX_SEMAPHORES.
11160 * configure: Rebuilt.
11161 * config.h.in: Rebuilt.
11162
124452c9
FXC
111632006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11164
11165 PR bootstrap/26161
11166 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11167 for the other pthread check.
11168 * configure: Regenerate.
11169 * config.h.in: Regenerate.
11170
dd8d6dfe
JJ
111712006-02-15 Jakub Jelinek <jakub@redhat.com>
11172
11173 PR libgomp/25938
11174 PR libgomp/25984
11175 * Makefile.am (fincludedir): New variable.
11176 (nodist_include_HEADERS): Remove Fortran files.
11177 (nodist_finclude_HEADERS): New variable.
11178 * Makefile.in: Regenerated.
11179
6c7a4dfd
JJ
111802006-02-13 Jakub Jelinek <jakub@redhat.com>
11181
11182 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11183 Remove tests for returning assumed character length arrays.
11184
5142e08b
RS
111852006-02-12 Roger Sayle <roger@eyesopen.com>
11186 John David Anglin <dave@hiauly1.hia.nrc.ca>
11187
11188 PR libgomp/25936
11189 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 11190
5821fba8
UW
111912006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11192
11193 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11194
cb2bbc67
EB
111952006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11196
11197 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11198 part of LD_LIBRARY_PATH manually.
11199
f05ee80c
L
112002006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11201
11202 PR libgomp/25852
11203 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11204 libgomp_init.
11205
03b8fe49
PB
112062005-01-25 Paolo Bonzini <bonzini@gnu.org>
11207
11208 PR libgomp/25884
f05ee80c
L
11209 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11210 * configure.ac (PERL): Don't set.
11211 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11212 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11213 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11214 * omp.h.in: Wrap the new configure substitutions with @ characters.
11215 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11216 * aclocal.m4, configure, Makefile.in: Regenerate.
11217 * mkomp_h.pl: Delete.
03b8fe49 11218
18cbfd85
PB
112192005-01-24 Paolo Bonzini <bonzini@gnu.org>
11220
11221 PR libgomp/25259
11222 * configure.ac: Use GCC_HEADER_STDINT.
11223 * libgomp.h: Include gstdint.h.
11224 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11225 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11226
c41303c6
RH
112272006-01-24 Richard Henderson <rth@redhat.com>
11228
11229 PR libgomp/25942
11230 * configure.ac: Add AM_MAINTAINER_MODE.
11231 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11232
149b9553
DN
112332006-01-24 Diego Novillo <dnovillo@redhat.com>
11234
11235 * Makefile.in: Regenerate.
11236 * testsuite/Makefile.in: Regenerate.
11237 * aclocal.m4: Regenerate.
11238
192a50ad
AT
112392006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11240
11241 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11242 Solaris.
11243 * configure.ac: Add check for loadavg.h.
11244 (link_gomp): Adjust comment.
11245 * configure: Regenerate.
11246 * config.h.in: Regenerate.
11247
a55b8e18
SE
112482006-01-21 Steve Ellcey <sje@cup.hp.com>
11249
11250 PR libgomp/25877
11251 * configure.ac: Remove check for alloca.h.
11252 * configure: Regenerate.
11253 * config.h.in: Regenerate.
11254 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11255 * team.c: Remove use of alloca.h.
11256 Call gomp_alloca instead of alloca.
11257
692eeb34
SE
112582006-01-20 Steve Ellcey <sje@cup.hp.com>
11259
11260 PR libgomp/25877
11261 * team.c: Add include of alloca.h.
11262 * configure.ac: Add check for alloca.h.
11263 * configure: Regenerate.
11264 * config.h.in: Regenerate.
11265
953ff289
DN
112662006-01-17 Jakub Jelinek <jakub@redhat.com>
11267
11268 PR fortran/25219
11269 * testsuite/libgomp.fortran/pr25219.f90: New test.
11270
112712005-12-05 Uros Bizjak <uros@kss-loka.si>
11272
11273 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11274 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11275 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11276 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11277 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11278 testsuite/libgomp.fortran/threadprivate1.f90,
11279 testsuite/libgomp.fortran/threadprivate2.f90,
11280 testsuite/libgomp.fortran/threadprivate3.f90,
11281 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11282 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11283 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11284 effective-target to TLS runtime.
11285
11286 * testsuite/libgomp.fortran/pr25162.f: Require
11287 effective-target TLS runtime.
11288
112892005-12-01 Jakub Jelinek <jakub@redhat.com>
11290
11291 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11292 * testsuite/libgomp.c/nestedfn-3.c: New test.
11293
112942005-11-30 Jakub Jelinek <jakub@redhat.com>
11295
11296 PR fortran/25162
11297 * testsuite/libgomp.fortran/pr25162.f: New test.
11298
112992005-11-28 Jakub Jelinek <jakub@redhat.com>
11300
11301 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11302 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11303
113042005-11-25 Jakub Jelinek <jakub@redhat.com>
11305
11306 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11307 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11308 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11309 single.c, team.c, work.c, config/linux/alpha/futex.h,
11310 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11311 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11312 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11313 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11314 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11315 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11316 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11317 FSF address.
11318
113192005-11-18 Jakub Jelinek <jakub@redhat.com>
11320
11321 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11322 to nodist_noinst_HEADERS.
11323 * Makefile.in: Rebuilt.
11324
11325 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11326 add integer count field.
11327 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11328 omp_nest_lock_t type change.
11329 (omp_init_nest_lock): Likewise. Initialize count to 0.
11330 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11331 Increment count.
11332 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11333 Decrement count.
11334 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11335 Increment count if successful and return the new nesting level.
11336 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11337 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11338 * testsuite/libgomp.c/lib-1.c: New test.
11339 * testsuite/libgomp.fortran/lib1.f90: New test.
11340 * testsuite/libgomp.fortran/lib2.f: New test.
11341 * testsuite/libgomp.fortran/lib3.f: New test.
11342
113432005-11-17 Richard Henderson <rth@redhat.com>
11344
11345 PR 24845
11346 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11347 * configure.ac (link_gomp): New. Substitute it.
11348 (AC_CONFIG_FILES): Add libgomp.spec.
11349 * libgomp.spec.in: New file.
11350 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11351 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11352
113532005-11-18 Jakub Jelinek <jakub@redhat.com>
11354
11355 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11356 reduction(-:var) behaving the same as reduction(+:var).
11357 * testsuite/libgomp.c/reduction-4.c: New test.
11358
113592005-11-15 Uros Bizjak <uros@kss-loka.si>
11360
11361 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11362 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11363 testsuite/libgomp.c/copyin-3.c,
11364 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11365 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11366 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11367 testsuite/libgomp.c++/pr24455.C,
11368 testsuite/libgomp.fortran/threadprivate1.f90,
11369 testsuite/libgomp.fortran/threadprivate2.f90,
11370 testsuite/libgomp.fortran/threadprivate3.f90,
11371 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11372 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11373 testsuite/libgomp.fortran/omp_parse3.f90: Require
11374 effective-target TLS.
11375
113762005-11-14 Diego Novillo <dnovillo@redhat.com>
11377
11378 * HEADER: Remove.
11379
113802005-11-13 Jakub Jelinek <jakub@redhat.com>
11381
11382 PR libgomp/24797
11383 * team.c (initialize_team): Pass NULL rather than free as
11384 pthread_key_create destructor. Initialize thread specific data
11385 pointer in initial thread to a static local variable rather than
11386 malloced memory.
11387
113882005-11-11 Uros Bizjak <uros@kss-loka.si>
11389
11390 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11391 its location to ld_library_path.
11392
113932005-11-10 Diego Novillo <dnovillo@redhat.com>
11394
11395 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11396
113972005-11-10 Diego Novillo <dnovillo@redhat.com>
11398
11399 * testsuite/libgomp.c: Rename from libgomp.dg.
11400
114012005-11-09 Diego Novillo <dnovillo@redhat.com>
11402
11403 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11404 threadprivate variable 'i'.
11405
114062005-11-09 Jakub Jelinek <jakub@redhat.com>
11407
11408 * config/linux/s390/futex.h: New file.
11409 * configure.tgt: Use it.
11410
11411 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
11412 before the parallel.
11413
114142005-11-08 Jakub Jelinek <jakub@redhat.com>
11415
11416 PR c++/24734
11417 * testsuite/libgomp.c++/master-1.C: New test.
11418
114192005-11-07 Jakub Jelinek <jakub@redhat.com>
11420
11421 * testsuite/libgomp.dg/copyin-3.c: New test.
11422
114232005-11-07 Jakub Jelinek <jakub@redhat.com>
11424
11425 * testsuite/libgomp.fortran/retval1.f90: New test.
11426 * testsuite/libgomp.fortran/vla7.f90: New test.
11427
114282005-11-06 Jakub Jelinek <jakub@redhat.com>
11429
11430 * testsuite/libgomp.fortran/vla2.f90: New test.
11431 * testsuite/libgomp.fortran/vla3.f90: New test.
11432 * testsuite/libgomp.fortran/vla4.f90: New test.
11433 * testsuite/libgomp.fortran/vla5.f90: New test.
11434 * testsuite/libgomp.fortran/vla6.f90: New test.
11435
114362005-11-01 Jakub Jelinek <jakub@redhat.com>
11437
11438 * config/linux/sparc/futex.h: New file.
11439 * configure.tgt: Use it.
11440 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
11441
11442 * critical.c: Include stdlib.h.
11443 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
11444 ignoring return value.
11445 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
11446 LIBGOMP_CHECK_SYNC_BUILTINS check.
11447 * configure: Rebuilt.
11448
114492005-10-31 Jakub Jelinek <jakub@redhat.com>
11450
11451 * testsuite/libgomp.fortran/vla1.f90: New test.
11452
114532005-10-31 Richard Henderson <rth@redhat.com>
11454
11455 * testsuite/libgomp.fortran/character2.f90: Fix race condition
11456 setting 's' in different threads.
11457
114582005-10-31 Jakub Jelinek <jakub@redhat.com>
11459
11460 * libgomp.h (attribute_hidden, ialias): Define.
11461 * config/posix/proc.c (omp_get_num_procs): Add ialias.
11462 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
11463 * config/posix/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 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
11468 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11469 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11470 omp_test_lock, omp_test_nest_lock): Likewise.
11471 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
11472 omp_get_dynamic, omp_get_nested): Likewise.
11473 * parallel.c (omp_get_num_threads, omp_get_max_threads,
11474 omp_get_thread_num, omp_in_parallel): Likewise.
11475 * fortran.c (ialias_redirect): Define.
11476 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
11477 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
11478 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
11479 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
11480 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
11481 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
11482 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
11483 omp_get_wtime): Add ialias_redirect.
11484
114852005-10-30 Jakub Jelinek <jakub@redhat.com>
11486
11487 * fortran.c: Include stdlib.h.
11488
114892005-10-29 Jakub Jelinek <jakub@redhat.com>
11490
11491 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
11492 * Makefile.in: Regenerated.
11493
114942005-10-28 Jakub Jelinek <jakub@redhat.com>
11495
11496 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
11497 * libgomp_f.h.in (omp_check_defines): New function.
11498 * env.c: Include libgomp_f.h.
11499 (initialize_env): Call omp_check_defines.
11500
11501 * testsuite/libgomp.dg/copyin-2.c: New test.
11502 * testsuite/libgomp.c++/copyin-2.C: New test.
11503 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
11504
11505 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
11506 * testsuite/libgomp.fortran/sharing2.f90: New test.
11507
11508 * testsuite/libgomp.dg/copyin-1.c: New test.
11509 * testsuite/libgomp.c++/copyin-1.C: New test.
11510
115112005-10-26 Jakub Jelinek <jakub@redhat.com>
11512
11513 * testsuite/libgomp.fortran/crayptr1.f90: New test.
11514
11515 * testsuite/libgomp.fortran/workshare1.f90: New test.
11516
11517 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
11518 only test.
11519 * libgomp.fortran/sharing1.f90: New test.
11520
115212005-10-24 Jakub Jelinek <jakub@redhat.com>
11522
11523 PR c++/24502
11524 * testsuite/libgomp.c++/loop-7.C: New test.
11525
11526 * testsuite/libgomp.dg/nestedfn-2.c: New test.
11527
11528 * testsuite/libgomp.dg/nestedfn-1.c: New test.
11529 * testsuite/libgomp.fortran/reduction6.f90: New test.
11530 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11531
115322005-10-23 Richard Henderson <rth@redhat.com>
11533
11534 * testsuite/libgomp.c++/ctor-1.C: New.
11535 * testsuite/libgomp.c++/ctor-2.C: New.
11536 * testsuite/libgomp.c++/ctor-3.C: New.
11537 * testsuite/libgomp.c++/ctor-4.C: New.
11538 * testsuite/libgomp.c++/ctor-5.C: New.
11539 * testsuite/libgomp.c++/ctor-6.C: New.
11540 * testsuite/libgomp.c++/ctor-7.C: New.
11541 * testsuite/libgomp.c++/ctor-8.C: New.
11542 * testsuite/libgomp.c++/ctor-9.C: New.
11543
115442005-10-21 Diego Novillo <dnovillo@redhat.com>
11545
11546 PR 24455
11547 * testsuite/libgomp.c++/pr24455-1.C: New test.
11548 * testsuite/libgomp.c++/pr24455.C: New test.
11549 * testsuite/libgomp.dg/pr24455-1.c: New test.
11550 * testsuite/libgomp.dg/pr24455.c: New test.
11551
115522005-10-20 Richard Henderson <rth@redhat.com>
11553
11554 * testsuite/libgomp.c++/loop-6.C: New.
11555 * testsuite/libgomp.dg/loop-3.c: New.
11556
115572005-10-20 Jakub Jelinek <jakub@redhat.com>
11558
11559 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11560 explicitly private.
11561 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
11562 explicitly shared.
11563
115642005-10-19 Diego Novillo <dnovillo@redhat.com>
11565
11566 * testsuite/libgomp.fortran/jacobi.f: New test.
11567
115682005-10-19 Richard Henderson <rth@redhat.com>
11569
11570 * configure.tgt (i?86-linux): Default to with_arch instead of
11571 CFLAGS. Add -mtune to match target_cpu.
11572 (x86_64-linux): Tune to i686.
11573
11574 * fortran.c (omp_test_nest_lock_): Fix typo.
11575
115762005-10-19 Jakub Jelinek <jakub@redhat.com>
11577
11578 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11579 gomp_ordered_sync): Do nothing if team->nthreads == 1.
11580 * testsuite/libgomp.dg/ordered-3.c: New test.
11581
11582 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
11583 Remove volatile keyword.
11584
11585 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
11586 in COMMON block to avoid warnings on 64-bit targets.
11587
115882005-10-18 Diego Novillo <dnovillo@redhat.com>
11589
11590 * testsuite/libgomp.dg/shared-3.c: New test.
11591
115922005-10-18 Jakub Jelinek <jakub@redhat.com>
11593
11594 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
11595 * testsuite/libgomp.fortran/reduction5.f90: New test.
11596
115972005-10-18 Jakub Jelinek <jakub@redhat.com>
11598
11599 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
11600 dg-options.
11601 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
11602 flush loop now that __sync_synchronize has proper memory barrier.
11603 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
11604 Add -ffixed-form to dg-options.
11605
116062005-10-17 Diego Novillo <dnovillo@redhat.com>
11607
11608 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
11609 from subdirectories.
11610 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
11611 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
11612 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
11613 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
11614 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
11615 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
11616 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
11617 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
11618 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
11619 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
11620 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
11621 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
11622 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
11623 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
11624 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
11625 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
11626 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
11627 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
11628 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
11629 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
11630 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
11631 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
11632 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
11633 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
11634 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
11635
116362005-10-17 Jakub Jelinek <jakub@redhat.com>
11637
11638 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11639 lang_library_path exists. Use find instead of glob to gather tests.
11640 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11641
116422005-10-17 Diego Novillo <dnovillo@redhat.com>
11643
11644 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11645 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11646 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11647 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11648 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11649 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11650 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11651 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11652 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11653 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11654 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11655 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11656 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11657
116582005-10-15 Jakub Jelinek <jakub@redhat.com>
11659
11660 * testsuite/libgomp.dg/vla-1.c: New test.
11661
11662 * testsuite/libgomp.fortran/reference2.f90: New test.
11663
11664 * testsuite/libgomp.fortran/character2.f90: Remove explicit
11665 declaration of omp_get_thread_num.
11666 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
11667 use omp_lib.
11668
11669 * testsuite/libgomp.fortran/reduction1.f90: New test.
11670 * testsuite/libgomp.fortran/reduction2.f90: New test.
11671 * testsuite/libgomp.fortran/reduction3.f90: New test.
11672 * testsuite/libgomp.fortran/reduction4.f90: New test.
11673
116742005-10-13 Richard Henderson <rth@redhat.com>
11675
11676 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11677 * Makefile.in: Regenerate.
11678 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11679 * libgomp.h: Include bar.h.
11680 (struct gomp_barrier): Remove.
11681 (struct gomp_team): Add barrier. Replace master_barrier with
11682 master_release. Replace threads with ordered_release.
11683 (struct gomp_thread): Replace barrier with release.
11684 * ordered.c (gomp_ordered_first): Update for ordered_release change.
11685 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11686 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11687 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11688 (GOMP_single_copy_end): Likewise.
11689 * team.c (gomp_threads_dock): New.
11690 (gomp_barrier_init, gomp_barrier_destroy): Remove.
11691 (gomp_thread_start): Use gomp_barrier_wait.
11692 (new_team, free_team): Update for gomp_team changes.
11693 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11694 (gomp_team_end): Use gomp_barrier_wait.
11695 (initialize_team): Update for gomp_thread changes.
11696 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11697 (gomp_work_share_end_nowait): Use atomic ops when available.
11698 * config/linux/bar.c, config/linux/bar.h: New files.
11699 * config/posix/bar.c, config/posix/bar.h: New files.
11700
117012005-10-13 Jakub Jelinek <jakub@redhat.com>
11702
11703 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11704 * testsuite/libgomp.dg/single-2.c: New test.
11705
11706 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11707 lang_link_flags): Unset, so that they aren't inherited from previously
11708 sourced *.exp.
11709
11710 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11711
117122005-10-12 Richard Henderson <rth@redhat.com>
11713
11714 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11715 (libgomp_init): Use lang_test_file, lang_library_path, and
11716 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
11717
11718 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11719 (lang_test_file, lang_link_flags): New.
11720 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11721
11722 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11723 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11724 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11725 testsuite/libgomp.c++/parallel-1.C,
11726 testsuite/libgomp.c++/reduction-1.C,
11727 testsuite/libgomp.c++/reduction-2.C,
11728 testsuite/libgomp.c++/reduction-3.C,
11729 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11730 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11731 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11732 New files, largely cribbed from the C testsuite.
11733
117342005-10-12 Jakub Jelinek <jakub@redhat.com>
11735
11736 * testsuite/libgomp.fortran/character1.f90: New test.
11737 * testsuite/libgomp.fortran/character2.f90: New test.
11738
11739 * testsuite/libgomp.dg/nested-1.c: New test.
11740 * testsuite/libgomp.dg/nested-2.c: New test.
11741 * testsuite/libgomp.fortran/do1.f90: New test.
11742 * testsuite/libgomp.fortran/do2.f90: New test.
11743
11744 * testsuite/libgomp.fortran/reference1.f90: New test.
11745
117462005-10-11 Jakub Jelinek <jakub@redhat.com>
11747
11748 * testsuite/libgomp.dg/reduction-1.c: New test.
11749 * testsuite/libgomp.dg/reduction-2.c: New test.
11750 * testsuite/libgomp.dg/reduction-3.c: New test.
11751
117522005-10-10 Jakub Jelinek <jakub@redhat.com>
11753
11754 * testsuite/libgomp.dg/atomic-1.c: New test.
11755 * testsuite/libgomp.dg/atomic-2.c: New test.
11756
117572005-10-09 Richard Henderson <rth@redhat.com>
11758
11759 * critical.c (atomic_lock): New.
11760 (initialize_critical): Initialize it.
11761 (GOMP_atomic_start, GOMP_atomic_end): New.
11762 * libgomp.map: Export them.
11763 * libgomp_g.h: Declare them.
11764
11765 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11766
117672005-10-02 Richard Henderson <rth@redhat.com>
11768
11769 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11770 to XCFLAGS instead of CFLAGS.
11771
117722005-09-30 Richard Henderson <rth@redhat.com>
11773
11774 * configure.ac: Determine whether -pthread or -lpthread is needed.
11775 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11776 * Makefine.in, configure: Rebuild.
11777
117782005-09-28 Richard Henderson <rth@redhat.com>
11779
11780 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11781 * testsuite/libgomp.dg/omp-single-3.c: New test.
11782
117832005-09-28 Diego Novillo <dnovillo@redhat.com>
11784
11785 * testsuite/libgomp.dg/omp-single-2.c: New test.
11786 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11787
117882005-09-27 Richard Henderson <rth@redhat.com>
11789
11790 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11791 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11792
117932005-09-27 Jakub Jelinek <jakub@redhat.com>
11794
11795 * testsuite/libgomp.dg/omp-loop03.c: New test.
11796
117972005-09-27 Diego Novillo <dnovillo@redhat.com>
11798
11799 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11800
118012005-09-27 Diego Novillo <dnovillo@redhat.com>
11802
11803 * testsuite/libgomp.dg/omp-single-1.c: New test.
11804 * testsuite/libgomp.dg/shared-1.c: Return 0.
11805 Add prototype for abort.
11806 * testsuite/libgomp.dg/shared-2.c: Likewise.
11807
118082005-09-26 Jakub Jelinek <jakub@redhat.com>
11809
11810 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11811 constructs.
11812
118132005-09-26 Diego Novillo <dnovillo@redhat.com>
11814
11815 * testsuite/libgomp.dg/shared-1.c: New test.
11816 * testsuite/libgomp.dg/shared-2.c: New test.
11817
118182005-09-24 Richard Henderson <rth@redhat.com>
11819
11820 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11821
118222005-09-24 Richard Henderson <rth@redhat.com>
11823
11824 * iter.c (gomp_iter_static_next): Round up when computing number
11825 of iterations. Don't bother distributing a remainder equally.
11826
11827 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11828 Don't call srand. Zero b before testing.
11829 (main): New.
11830
118312005-09-24 Jakub Jelinek <jakub@redhat.com>
11832
11833 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11834 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11835
118362005-09-23 Jakub Jelinek <jakub@redhat.com>
11837
11838 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11839 without !$omp end do, followed immediately by subroutine end.
11840
118412005-09-23 Diego Novillo <dnovillo@redhat.com>
11842
11843 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11844
118452005-09-22 Richard Henderson <rth@redhat.com>
11846
11847 * critical.c (GOMP_critical_name_start): Change argument to void**.
11848 Reuse the pointer space if the mutex fits.
11849 (GOMP_critical_name_end): Likewise.
11850 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11851 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11852 (GOMP_critical_name_end): Likewise.
11853 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11854 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11855
118562005-09-20 Richard Henderson <rth@redhat.com>
11857
11858 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11859 (create_lock_lock): New.
11860 (initialize_critical): Initialize it.
11861 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11862 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11863
118642005-09-20 Diego Novillo <dnovillo@redhat.com>
11865
11866 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11867
118682005-09-20 Diego Novillo <dnovillo@redhat.com>
11869
11870 * testsuite/libgomp.dg/omp-loop01.c: New test.
11871 * testsuite/libgomp.dg/omp-loop02.c: New test.
11872
118732005-09-20 Jakub Jelinek <jakub@redhat.com>
11874
11875 * configure.ac (AC_PROG_FC): Add.
11876 (USE_FORTRAN): New automake conditional.
11877 * configure: Rebuilt.
11878 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11879 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11880 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11881 Add rules to build them.
11882 * Makefile.in: Rebuilt.
11883 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11884 OMP_NEST_LOCK_KIND.
11885 * libgomp.map: Add Fortran wrappers.
11886 * libgomp_f.h.in: New file.
11887 * omp_lib.h.in: New file.
11888 * omp_lib.f90.in: New file.
11889 * fortran.c: New file.
11890 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11891 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11892 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11893 libgfortran has been built.
11894 * testsuite/libgomp.fortran/fortran.exp: New file.
11895 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11896 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11897 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11898 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11899 * testsuite/libgomp.fortran/omp_hello.f: New test.
11900 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11901 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11902 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11903 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11904 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11905 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11906 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11907 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11908
119092005-08-30 Richard Henderson <rth@redhat.com>
11910
11911 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11912 function for when aliases are not usable.
11913 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11914 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11915 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11916 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11917 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11918 GOMP_loop_ordered_guided_next): Likewise.
11919 * ordered.c (GOMP_ordered_start): Likewise.
11920
119212005-08-01 Diego Novillo <dnovillo@redhat.com>
11922
11923 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11924 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11925 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11926 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11927 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11928 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11929 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11930 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11931 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11932
119332005-07-07 Eric Christopher <echristo@redhat.com>
11934 Diego Novillo <dnovillo@redhat.com>
11935
11936 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11937 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11938 up code.
11939 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11940 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11941 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11942 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11943 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11944 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11945 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11946
119472005-06-13 Diego Novillo <dnovillo@redhat.com>
11948
11949 * TOPLEVEL.patch: Remove.
11950
119512005-05-16 Richard Henderson <rth@redhat.com>
11952
11953 * configure.ac: Test for clock_gettime.
11954 * config.h.in, configure: Rebuild.
11955 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11956 (omp_get_wtime): Use clock_gettime if available.
11957 (omp_get_wtick): Use clock_getres if available.
11958
119592005-05-11 Richard Henderson <rth@redhat.com>
11960
11961 * config/linux/ia64/futex.h: New file.
11962 * configure.tgt: Use it.
11963
11964 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11965
119662005-05-07 Richard Henderson <rth@redhat.com>
11967
11968 * config/linux/powerpc/futex.h: New file.
11969 * configure.tgt: Use it.
11970
11971 * config/linux/i486/futex.h: Merge ...
11972 * config/linux/x86_64/futex.h: ... into ...
11973 * config/linux/x86/futex.h: ... here.
11974 * configure.tgt: Update to match.
11975
119762005-05-06 Richard Henderson <rth@redhat.com>
11977
11978 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11979 * config/linux/i486/futex.h: Likewise.
11980 * config/linux/x86_64/futex.h: Likewise.
11981
11982 * config/linux/lock.c: New file.
11983 * config/linux/omp-lock.h: New file.
11984
11985 * critical.c, env.h: Don't include omp.h
11986 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11987 * config/posix/time.c: Likewise.
11988 * config/posix/omp-lock.h: New file.
11989 * libgomp.h: Include omp-lock.h and omp.h.
11990 * Makefile.am (nodist_include_HEADERS): New.
11991 (omp.h): New rule.
11992 * configure.ac (PERL): New.
11993 * mkomp_h.pl: New file.
11994 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11995 with templates.
11996 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11997
11998 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11999 build directory. Re-add -march=i486 hack.
12000
12001 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12002 (libgomp_link_flags): Remove.
12003 (libgomp_initialized): Remove.
12004 (libgomp_init): Don't protect from reinitialization. Copy code
12005 from libstdc++ for getting the multilib set correctly.
12006
120072005-05-05 Richard Henderson <rth@redhat.com>
12008
12009 * config/linux/alpha/futex.h: New file.
12010 * configure.tgt (alpha*-*-linux*): Use it.
12011
12012 * config/posix/mutex.c: New file.
12013 * config/posix/sem.c: Use libgomp.h.
12014
12015 * configure.tgt (x86_64-linux): Also test CC for -m32.
12016 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12017
a1daed2d 12018 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
12019 after $gccpath.
12020
12021 * Makefile.am (SUBDIRS): New.
12022 (libgomp_la_LDFLAGS): Add -lpthread.
12023 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12024 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12025
12026 * libgomp_g.h: New file.
12027 * libgomp.h: Split out all public declarations to libgomp_g.h.
12028 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12029 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12030 * config/linux/sem.h: Likewise.
12031 * config/posix/sem.h: Likewise.
12032
12033 * Makefile.am (AM_LDFLAGS): New.
12034 (libgomp_version_script): Split out from ...
12035 (libgomp_la_LDFLAGS): ... here.
12036 (libgomp_version_info): New.
12037 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12038 (LIBGOMP_ENABLE): New.
12039 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12040 (LIBGOMP_ENABLE_SYMVERS): New.
12041 * configure.ac (AC_INIT): Version 1.0.
12042 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12043 (enable-linux-futex): Likewise. Rename from enable-futex.
12044 (libtool_VERSION): New.
12045 (LIBGOMP_ENABLE_SYMVERS): Use it.
12046 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12047 * Makefile.in, aclocal.m4, configure: Rebuild.
12048
12049 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12050 (gomp_mutex_unlock_slow): Fix typo.
12051 * config/linux/sem.c: Similarly.
12052 (gomp_sem_post_slow): Fix typo.
12053 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12054 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12055 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12056
12057 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12058 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12059 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12060 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12061 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12062 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12063 LDFLAGS. Pull enable_futex check to top-level.
12064 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12065 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12066
12067 First attempt at real configury.
12068 * Makefile, config.h: Remove file.
12069 * Makefile.am, Makefile.in: New file.
12070 * acinclude.m4 aclocal.m4: New file.
12071 * configure.ac, configure.tgt, configure: New file.
12072
12073 * config/posix/lock.c: Rename from sys-lock.c.
12074 * config/posix/mutex.h: Rename from sys-mutex.h.
12075 * config/posix/sem.c: Rename from sys-sem.c.
12076 * config/posix/sem.h: Rename from sys-sem.h.
12077 * config/posix/proc.c: Rename from sys-proc.c.
12078 * config/posix/time.c: Rename from sys-proc.c.
12079
12080 * config/linux/mutex.c: New file.
12081 * config/linux/mutex.h: New file.
12082 * config/linux/sem.c: New file.
12083 * config/linux/sem.h: New file.
12084 * config/linux/i486/futex.h: New file.
12085 * config/linux/x86_64/futex.h: New file.
12086
120872005-05-04 Richard Henderson <rth@redhat.com>
12088
12089 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12090 * libgomp.h: Declare them.
12091 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12092 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12093
120942005-05-04 Richard Henderson <rth@redhat.com>
12095
12096 * libgomp-1 code drop
12097
120982005-05-04 Richard Henderson <rth@redhat.com>
12099
12100 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12101 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12102 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12103 (gomp_iter_static_next): Update.
12104 (gomp_ordered_static_next): Update.
12105 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12106 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12107 totally empty range.
12108 (gomp_loop_ordered_static_next): Refine test for calling
12109 gomp_ordered_static_next.
12110 * testsuite/ordered-1.c: Add case for more threads than iterations.
12111
12112 * iter.c (gomp_iter_runtime_next_locked): Remove.
12113 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 12114 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
12115 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12116 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12117 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12118 gomp_loop_ordered_guided_next): Downcase name, make static, add
12119 an external alias with the old name.
12120 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12121 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12122 switch and call one of the above static functions.
12123 * libgomp.h: Update.
12124
12125 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12126 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12127 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12128 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12129 GOMP_loop_ordered_guided_start): Update to match.
12130 * sections.c (GOMP_sections_start): Likewise.
12131 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12132
12133 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12134 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12135 Use bounds check instead of modulus.
12136 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12137 (gomp_ordered_last): Don't sync with ordered_owner here.
12138 (gomp_ordered_next): Likewise.
12139 (gomp_ordered_static_loop_next): Likewise.
12140 * loop.c, libgomp.h: Update to match.
12141
12142 * libgomp.h (GOMP_barrier): Declare.
12143
12144 * testsuite/barrier-1.c: New file.
12145 * testsuite/critical-1.c: New file.
12146 * testsuite/ordered-2.c: New file.
12147 * testsuite/ordered-1.c: New file.
12148 * testsuite/sections-1.c: New file.
12149 * testsuite/single-1.c: New file.
12150 * testsuite/Makefile (TESTS): Add them.
12151
121522005-05-04 Richard Henderson <rth@redhat.com>
12153
12154 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12155 * loop.c (GOMP_loop_static_start): If not the startup thread,
12156 acquire the mutex to wait for initialization complete.
12157 (GOMP_loop_ordered_static_start): Likewise.
12158 (GOMP_loop_ordered_runtime_start): Likewise.
12159 (GOMP_loop_ordered_static_first): Remove.
12160 (GOMP_loop_ordered_dynamic_first): Remove.
12161 (GOMP_loop_ordered_guided_first): Remove.
12162 (GOMP_loop_ordered_runtime_first): Remove.
12163 * ordered.c (gomp_ordered_loop_first): Post to own release when
12164 we're the first thread.
12165 (gomp_ordered_loop_last): Wait on release if not owner.
12166 (gomp_ordered_loop_next): Likewise.
12167 (gomp_ordered_static_loop_init): New.
12168 (gomp_ordered_static_loop_next): Use ordered_owner.
12169 (GOMP_ordered_start): Likewise.
12170 * work.c (gomp_new_work_share): Initialize ordered_owner.
12171
121722005-05-03 Richard Henderson <rth@redhat.com>
12173
12174 * Makefile (OPT): New.
12175 (CFLAGS): Use it.
12176
12177 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12178 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12179 * libgomp.h, libgomp.map, NOTES: Update to match.
12180
12181 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12182 Add initialized and thr members.
12183 (gomp_thread_start): Pause when initially spawned to wait for
12184 the whole team to be created.
12185 (gomp_team_start): Release team members at the end.
12186
12187 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12188 (f_foo_1): Use GOMP_loop_end.
12189 (f_foo_2): Use GOMP_loop_end_nowait.
12190
12191 * testsuite/loop-2.c: New file.
12192 * testsuite/Makefile (TESTS): Add it.
12193
121942005-05-03 Richard Henderson <rth@redhat.com>
12195
12196 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12197 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12198 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12199 initial work_share.
12200
12201 * testsuite/Makefile: New file.
12202 * testsuite/loop-1.c: New file.
12203
122042005-05-03 Richard Henderson <rth@redhat.com>
12205
12206 Initial implementation and checkin.
21fa2a29 12207\f
a5544970 12208Copyright (C) 2005-2019 Free Software Foundation, Inc.
21fa2a29
JJ
12209
12210Copying and distribution of this file, with or without modification,
12211are permitted in any medium without royalty provided the copyright
12212notice and this notice are preserved.