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