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