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