]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
ab18f2f5
RH
12014-04-02 Richard Henderson <rth@redhat.com>
2
3 * config/linux/futex.h (futex_wait): Get error value from errno.
4 (futex_wake): Likewise.
5
8bcc90b0
JJ
62014-03-25 Jakub Jelinek <jakub@redhat.com>
7
8 PR c++/60331
9 * testsuite/libgomp.c++/udr-11.C: New test.
10 * testsuite/libgomp.c++/udr-12.C: New test.
11 * testsuite/libgomp.c++/udr-13.C: New test.
12 * testsuite/libgomp.c++/udr-14.C: New test.
13 * testsuite/libgomp.c++/udr-15.C: New test.
14 * testsuite/libgomp.c++/udr-16.C: New test.
15 * testsuite/libgomp.c++/udr-17.C: New test.
16 * testsuite/libgomp.c++/udr-18.C: New test.
17 * testsuite/libgomp.c++/udr-19.C: New test.
18
18d73c7f
RS
192014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20
21 Update copyright years
22
f9030485
RS
232014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * hashtab.h: Use the standard form for the copyright notice.
26
98db73df
TB
272014-01-02 Tobias Burnus <burnus@net-b.de>
28
29 * libgomp.texi: Bump @copying's copyright year.
30
ae246f7f
AT
312013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
32
33 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
34 alloca () with __builtin_alloca ().
35 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
36 * testsuite/libgomp.c/lock-3.c: Likewise.
37 * testsuite/libgomp.c/pr48591.c: Likewise.
38
fa00a5fe
JJ
392013-12-17 Jakub Jelinek <jakub@redhat.com>
40
41 PR testsuite/59534
42 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
43 comparisons.
44
e9792e1d
JJ
452013-12-16 Jakub Jelinek <jakub@redhat.com>
46
47 PR libgomp/58756
48 * testsuite/libgomp.c/pr58756.c: New test.
49
cab37c89
JJ
502013-12-12 Jakub Jelinek <jakub@redhat.com>
51
52 PR libgomp/59467
53 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
54 !$omp parallel.
55
de14871c
TS
562013-11-07 Thomas Schwinge <thomas@codesourcery.com>
57
1707a5de
TS
58 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
59 ALWAYS_CFLAGS.
60 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
61 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
62 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
63 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
64 Likewise.
65
70f05c43
TS
66 * libgomp_g.h: Include <stddef.h> for size_t.
67
de14871c
TS
68 * libgomp.spec.in: Update comment about libgomp's dependencies.
69 * configure.ac: Likewise.
70 * configure: Regenerate.
71
83fd6c5b
TB
722013-10-16 Tobias Burnus <burnus@net-b.de>
73
74 * libgomp.texi: (Runtime Library Routines): Update references for
75 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
76 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
77 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
78 (Environment Variables): Update references for OpenMP 4.0. Add
79 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
80 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
81 order.
82
c8673881
JJ
832013-10-14 Jakub Jelinek <jakub@redhat.com>
84
85 * env.c (parse_bind_var): Initialize value to avoid
86 (false positive) warning.
87
f89163fd
JJ
882013-10-12 Jakub Jelinek <jakub@redhat.com>
89
90 PR libgomp/58691
91 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
92 to check variable.
93 (gomp_init_num_threads): Move i variable declaration into
94 #ifdef CPU_ALLOC_SIZE block.
95 * config/linux/affinity.c (gomp_affinity_init_level): Test
96 gomp_places_list_len == 0 rather than gomp_places_list == 0
97 when checking for topology reading error.
98 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
99 * env.c (parse_affinity): Add ignore argument, if true, don't populate
100 gomp_places_list, only parse env var and always return false.
101 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
102 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
103 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
104 and either of these variables were parsed correctly into a places
105 list.
106
1d340638
TS
1072013-10-11 Thomas Schwinge <thomas@codesourcery.com>
108 Jakub Jelinek <jakub@redhat.com>
109
110 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
111 of 5 loopfn matches.
112 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
113 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
114 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
115 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
116 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
117 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
118 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
119 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
120
71a81c21
TS
1212013-10-11 Thomas Schwinge <thomas@codesourcery.com>
122
bd87f731
TS
123 * Makefile.am (omp_lib.mod): Streamline rule.
124 * Makefile.in: Regenerate.
125
f5745bed
TS
126 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
127 exceptions.
128
b5512c66
TS
129 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
130 * testsuite/libgomp.fortran/lib1.f90: Likewise.
131 * testsuite/libgomp.fortran/lib2.f: Likewise.
132 * testsuite/libgomp.fortran/lib3.f: Likewise.
133
451c19c4
TS
134 * configure.ac: Typo fix.
135 * configure: Regenerate.
136
86a6016d
TS
137 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
138 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
139
71a81c21
TS
140 * omp.h.in: Don't touch the user's namespace.
141
acf0174b
JJ
1422013-10-11 Jakub Jelinek <jakub@redhat.com>
143 Tobias Burnus <burnus@net-b.de>
144 Richard Henderson <rth@redhat.com>
145
146 * target.c: New file.
147 * Makefile.am (libgomp_la_SOURCES): Add target.c.
148 * Makefile.in: Regenerated.
149 * libgomp_g.h (GOMP_task): Add depend argument.
150 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
151 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
152 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
153 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
154 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
155 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
156 GOMP_taskgroup_start, GOMP_taskgroup_end,
157 GOMP_parallel_sections): New prototypes.
158 * fortran.c (omp_is_initial_device): Add ialias_redirect.
159 (omp_is_initial_device_): New function.
160 (ULP, STR1, STR2, ialias_redirect): Removed.
161 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
162 omp_set_default_device_8_, omp_get_default_device_,
163 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
164 functions.
165 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
166 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
167 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
168 @@GOMP_4.0.
169 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
170 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
171 omp_set_default_device, omp_set_default_device_,
172 omp_set_default_device_8_, omp_get_default_device,
173 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
174 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
175 omp_get_team_num_): Export @@OMP_4.0.
176 * team.c (struct gomp_thread_start_data): Add place field.
177 (gomp_thread_start): Clear thr->thread_pool and
178 thr->task before returning. Use gomp_team_barrier_wait_final
179 instead of gomp_team_barrier_wait. Initialize thr->place.
180 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
181 team_cancelled and task_queued_count fields.
182 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
183 before calling pthread_exit.
184 (gomp_free_thread): No longer static. Use
185 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
186 (gomp_team_start): Add flags argument. Set
187 thr->thread_pool->threads_busy to nthreads immediately after creating
188 new pool. Use gomp_managed_threads_lock instead of
189 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
190 (gomp_team_end): Use gomp_managed_threads_lock instead of
191 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
192 of gomp_team_barrier_wait. If team->team_cancelled, call
193 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
194 rather than thr->ts.work_share.
195 (initialize_team): Don't call gomp_sem_init here.
196 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
197 caller.
198 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
199 * env.c (gomp_global_icv): Add default_device_var, target_data and
200 bind_var initializers.
201 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
202 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
203 gomp_places_list_len): New variables.
204 (parse_bind_var, parse_one_place, parse_places_var): New functions.
205 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
206 sized places.
207 (gomp_cancel_var): New global variable.
208 (parse_int): New function.
209 (handle_omp_display_env): New function.
210 (initialize_env): Use it. Initialize default_device_var.
211 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
212 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
213 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
214 been successfully parsed (and call gomp_init_affinity in that case).
215 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
216 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
217 omp_get_team_num, omp_is_initial_device): New functions.
218 * libgomp.h: Include stdlib.h.
219 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
220 Define.
221 (struct target_mem_desc): Forward declare.
222 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
223 and thread_limit_var fields.
224 (gomp_get_num_devices): New prototype.
225 (gomp_cancel_var): New extern decl.
226 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
227 team_cancelled and task_queued_count fields. Add comments about
228 task_{,queued_,running_}count.
229 (gomp_cancel_kind): New enum.
230 (gomp_work_share_end_cancel): New prototype.
231 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
232 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
233 and depend fields.
234 (struct gomp_taskgroup): New type.
235 (struct gomp_task_depend_entry,
236 struct gomp_dependers_vec): New types.
237 (gomp_finish_task): Free depend_hash if non-NULL.
238 (struct gomp_team_state): Add place_partition_off
239 and place_partition_len fields.
240 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
241 gomp_places_list_len): New extern decls.
242 (struct gomp_thread): Add place field.
243 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
244 (gomp_init_thread_affinity): Add place argument.
245 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
246 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
247 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
248 gomp_affinity_init_level, gomp_affinity_print_place): New
249 prototypes.
250 (gomp_team_start): Add flags argument.
251 (gomp_thread_limit_var, gomp_remaining_threads_count,
252 gomp_remaining_threads_lock): Remove.
253 (gomp_managed_threads_lock): New variable.
254 (struct gomp_thread_pool): Add threads_busy field.
255 (gomp_free_thread): New prototype.
256 * task.c: Include hashtab.h.
257 (hash_entry_type): New typedef.
258 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
259 (gomp_init_task): Clear dependers, depend_hash, depend_count,
260 copy_ctors_done and taskgroup fields.
261 (GOMP_task): Add depend argument, handle depend clauses. If
262 gomp_team_barrier_cancelled or if it's taskgroup has been
263 cancelled, don't queue or start new tasks. Set copy_ctors_done
264 field if needed. Initialize taskgroup field. If copy_ctors_done
265 and already cancelled, don't discard the task. If taskgroup is
266 non-NULL, enqueue the task into taskgroup queue. Increment
267 num_children field in taskgroup. Increment task_queued_count.
268 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
269 gomp_task_run_post_remove_taskgroup): New inline functions.
270 (gomp_task_run_post_handle_depend_hash,
271 gomp_task_run_post_handle_dependers,
272 gomp_task_run_post_handle_depend): New functions.
273 (GOMP_taskwait): Use them. If more than one new tasks
274 have been queued, wake other threads if needed.
275 (gomp_barrier_handle_tasks): Likewise. If
276 gomp_team_barrier_cancelled, don't start any new tasks, just free
277 all tasks.
278 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
279 * omp_lib.f90.in
280 (omp_proc_bind_kind, omp_proc_bind_false,
281 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
282 omp_proc_bind_spread): New params.
283 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
284 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
285 omp_get_team_num, omp_is_initial_device): New interfaces.
286 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
287 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
288 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
289 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
290 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
291 useless use omp_lib_kinds.
292 * omp.h.in (omp_proc_bind_t): New typedef.
293 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
294 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
295 omp_get_team_num, omp_is_initial_device): New prototypes.
296 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
297 through to gomp_team_start.
298 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
299 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
300 Adjust gomp_parallel_loop_start callers.
301 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
302 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
303 GOMP_loop_end_cancel): New functions.
304 (GOMP_parallel_end): Add ialias_redirect.
305 * hashtab.h: New file.
306 * libgomp.texi (Environment Variables): Minor cleanup,
307 update section refs to OpenMP 4.0rc2.
308 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
309 environment variables.
310 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
311 team->work_shares_to_free to thr->ts.work_share before calling
312 free_work_share.
313 (gomp_work_share_end_cancel): New function.
314 * config/linux/proc.c: Include errno.h.
315 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
316 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
317 sizeof (cpu_set_t) to determine number of iterations. Fix up check
318 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
319 gomp_cpuset_size is sizeof (cpu_set_t).
320 (gomp_init_num_threads): Initialize gomp_cpuset_size,
321 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
322 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
323 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
324 contain any logical CPUs.
325 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
326 is NULL. Use gomp_cpusetp instead of &cpuset and pass
327 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
328 pthread_getaffinity_np. Check gomp_places_list instead of
329 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
330 * config/linux/bar.c (gomp_barrier_wait_end,
331 gomp_barrier_wait_last): Use BAR_* defines.
332 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
333 from state where needed. Set work_share_cancelled to 0 on last
334 thread.
335 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
336 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
337 functions.
338 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
339 Add cpusetsize argument.
340 (gomp_cpuset_size, gomp_cpusetp): Declare.
341 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
342 (affinity_counter): Remove.
343 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
344 if CPU_ALLOC_SIZE isn't defined.
345 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
346 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
347 bind current thread to the first place.
348 (gomp_init_thread_affinity): Rewritten. Add place argument, just
349 pthread_setaffinity_np to gomp_places_list[place].
350 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
351 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
352 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
353 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
354 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
355 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
356 (gomp_barrier_t): Add awaited_final field.
357 (gomp_barrier_init): Initialize awaited_final field.
358 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
359 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
360 prototypes.
361 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
362 defines.
363 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
364 gomp_team_barrier_cancelled): New inline functions.
365 (gomp_barrier_last_thread,
366 gomp_team_barrier_set_task_pending,
367 gomp_team_barrier_clear_task_pending,
368 gomp_team_barrier_set_waiting_for_tasks,
369 gomp_team_barrier_waiting_for_tasks,
370 gomp_team_barrier_done): Use BAR_* defines.
371 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
372 (gomp_barrier_wait_end): Use BAR_* defines.
373 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
374 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
375 Use BAR_* defines.
376 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
377 gomp_team_barrier_cancel): New functions.
378 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
379 argument.
380 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
381 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
382 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
383 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
384 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
385 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
386 (gomp_barrier_t): Add cancellable field.
387 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
388 gomp_team_barrier_cancel): New prototypes.
389 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
390 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
391 gomp_team_barrier_cancelled): New inline functions.
392 (gomp_barrier_wait_start, gomp_barrier_last_thread,
393 gomp_team_barrier_set_task_pending,
394 gomp_team_barrier_clear_task_pending,
395 gomp_team_barrier_set_waiting_for_tasks,
396 gomp_team_barrier_waiting_for_tasks,
397 gomp_team_barrier_done): Use BAR_* defines.
398 * barrier.c (GOMP_barrier_cancel): New function.
399 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
400 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
401 omp_proc_bind_spread): New params.
402 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
403 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
404 omp_get_team_num, omp_is_initial_device): New externals.
405 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
406 New functions.
407 (gomp_resolve_num_threads): Adjust for thread_limit now being in
408 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
409 infinity. If not nested, just return minimum of max_num_threads
410 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
411 to the returned value. Otherwise, don't update atomically
412 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
413 (GOMP_parallel_end): Adjust for thread_limit now being in
414 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
415 infinity. Adjust threads_busy in the pool rather than
416 gomp_remaining_threads_count. Remember team->nthreads and call
417 gomp_team_end before adjusting threads_busy, if not nested
418 afterwards, just set it to 1 non-atomically. Add ialias.
419 (GOMP_parallel_start): Adjust gomp_team_start caller.
420 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
421 * testsuite/libgomp.c/affinity-1.c: New test.
422 * testsuite/libgomp.c/atomic-15.c: New test.
423 * testsuite/libgomp.c/atomic-16.c: New test.
424 * testsuite/libgomp.c/atomic-17.c: New test.
425 * testsuite/libgomp.c/cancel-for-1.c: New test.
426 * testsuite/libgomp.c/cancel-for-2.c: New test.
427 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
428 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
429 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
430 * testsuite/libgomp.c/cancel-sections-1.c: New test.
431 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
432 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
433 * testsuite/libgomp.c/depend-1.c: New test.
434 * testsuite/libgomp.c/depend-2.c: New test.
435 * testsuite/libgomp.c/depend-3.c: New test.
436 * testsuite/libgomp.c/depend-4.c: New test.
437 * testsuite/libgomp.c/for-1.c: New test.
438 * testsuite/libgomp.c/for-1.h: New file.
439 * testsuite/libgomp.c/for-2.c: New test.
440 * testsuite/libgomp.c/for-2.h: New file.
441 * testsuite/libgomp.c/for-3.c: New test.
442 * testsuite/libgomp.c/pr58392.c: New test.
443 * testsuite/libgomp.c/simd-1.c: New test.
444 * testsuite/libgomp.c/simd-2.c: New test.
445 * testsuite/libgomp.c/simd-3.c: New test.
446 * testsuite/libgomp.c/simd-4.c: New test.
447 * testsuite/libgomp.c/simd-5.c: New test.
448 * testsuite/libgomp.c/simd-6.c: New test.
449 * testsuite/libgomp.c/target-1.c: New test.
450 * testsuite/libgomp.c/target-2.c: New test.
451 * testsuite/libgomp.c/target-3.c: New test.
452 * testsuite/libgomp.c/target-4.c: New test.
453 * testsuite/libgomp.c/target-5.c: New test.
454 * testsuite/libgomp.c/target-6.c: New test.
455 * testsuite/libgomp.c/target-7.c: New test.
456 * testsuite/libgomp.c/taskgroup-1.c: New test.
457 * testsuite/libgomp.c/thread-limit-1.c: New test.
458 * testsuite/libgomp.c/thread-limit-2.c: New test.
459 * testsuite/libgomp.c/thread-limit-3.c: New test.
460 * testsuite/libgomp.c/udr-1.c: New test.
461 * testsuite/libgomp.c/udr-2.c: New test.
462 * testsuite/libgomp.c/udr-3.c: New test.
463 * testsuite/libgomp.c++/affinity-1.C: New test.
464 * testsuite/libgomp.c++/atomic-10.C: New test.
465 * testsuite/libgomp.c++/atomic-11.C: New test.
466 * testsuite/libgomp.c++/atomic-12.C: New test.
467 * testsuite/libgomp.c++/atomic-13.C: New test.
468 * testsuite/libgomp.c++/atomic-14.C: New test.
469 * testsuite/libgomp.c++/atomic-15.C: New test.
470 * testsuite/libgomp.c++/cancel-for-1.C: New test.
471 * testsuite/libgomp.c++/cancel-for-2.C: New test.
472 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
473 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
474 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
475 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
476 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
477 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
478 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
479 * testsuite/libgomp.c++/cancel-test.h: New file.
480 * testsuite/libgomp.c++/for-9.C: New test.
481 * testsuite/libgomp.c++/for-10.C: New test.
482 * testsuite/libgomp.c++/for-11.C: New test.
483 * testsuite/libgomp.c++/simd-1.C: New test.
484 * testsuite/libgomp.c++/simd-2.C: New test.
485 * testsuite/libgomp.c++/simd-3.C: New test.
486 * testsuite/libgomp.c++/simd-4.C: New test.
487 * testsuite/libgomp.c++/simd-5.C: New test.
488 * testsuite/libgomp.c++/simd-6.C: New test.
489 * testsuite/libgomp.c++/simd-7.C: New test.
490 * testsuite/libgomp.c++/simd-8.C: New test.
491 * testsuite/libgomp.c++/target-1.C: New test.
492 * testsuite/libgomp.c++/target-2.C: New test.
493 * testsuite/libgomp.c++/target-2-aux.cc: New file.
494 * testsuite/libgomp.c++/target-3.C: New test.
495 * testsuite/libgomp.c++/taskgroup-1.C: New test.
496 * testsuite/libgomp.c++/udr-1.C: New test.
497 * testsuite/libgomp.c++/udr-2.C: New test.
498 * testsuite/libgomp.c++/udr-3.C: New test.
499 * testsuite/libgomp.c++/udr-4.C: New test.
500 * testsuite/libgomp.c++/udr-5.C: New test.
501 * testsuite/libgomp.c++/udr-6.C: New test.
502 * testsuite/libgomp.c++/udr-7.C: New test.
503 * testsuite/libgomp.c++/udr-8.C: New test.
504 * testsuite/libgomp.c++/udr-9.C: New test.
505
bd599dea
JJ
5062013-09-20 Jakub Jelinek <jakub@redhat.com>
507
508 PR testsuite/57605
509 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
510 ALWAYS_CFLAGS.
511
3cbe17f7
AM
5122013-09-20 Alan Modra <amodra@gmail.com>
513
514 * configure: Regenerate.
515
4befd127
JJ
5162013-09-19 Jakub Jelinek <jakub@redhat.com>
517
518 * testsuite/libgomp.c/sections-2.c: New test.
519
946c8f7b
MS
5202013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
521
522 * testsuite/libgomp.fortran/strassen.f90:
523 Add dg-skip-if aarch64_tiny.
524
1ef3b58e
IS
5252013-06-20 Iain Sandoe <iain@codesourcery.com>
526 Cesar Philippidis <cesar@codesourcery.com>
527
528 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
529 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
530 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
531 * testsuite/libgomp.fortran/fortran.exp: Likewise.
532 * testsuite/libgomp.graphite/graphite.exp: Likewise.
533 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
534 Use dg-runtest rather than gfortran-dg-runtest.
535
9275f73a
TS
5362013-06-10 Thomas Schwinge <thomas@codesourcery.com>
537
538 * testsuite/libgomp.c/icv-2.c: Extend current handling of
539 Linux-based x86 systems to cover all GNU systems.
540 * testsuite/libgomp.c/lock-3.c: Likewise.
541 * testsuite/libgomp.c/pr48591.c: Likewise.
542
492992e2
TS
5432013-06-06 Thomas Schwinge <thomas@codesourcery.com>
544
48df3acb
TS
545 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
546 GNU/Hurd, as done for Linux-based systems.
547
492992e2
TS
548 * config/posix/ptrlock.h: Fix comment.
549
4fed6b25
TB
5502013-05-27 Tobias Burnus <burnus@net-b.de>
551
552 PR fortran/57423
553 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
554 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
555 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
556 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
557 omp_destroy_nest_lock): Correct arguments to match the one in
558 the OpenMP spec.
559 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
560 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
561 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
562 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
563
5a0f4dd3
JJ
5642013-05-16 Jakub Jelinek <jakub@redhat.com>
565
566 * testsuite/libgomp.c/loop-13.c: New test.
567 * testsuite/libgomp.c/loop-14.c: New test.
568 * testsuite/libgomp.c/loop-15.c: New test.
569 * testsuite/libgomp.c++/loop-13.C: New test.
570 * testsuite/libgomp.c++/loop-14.C: New test.
571 * testsuite/libgomp.c++/loop-15.C: New test.
572
6d840d99
JJ
5732013-02-06 Jakub Jelinek <jakub@redhat.com>
574
575 PR middle-end/56217
576 * testsuite/libgomp.c++/pr56217.C: New test.
577
bed8d8a6
AM
5782013-02-01 Alan Modra <amodra@gmail.com>
579
580 * task.c (GOMP_task, GOMP_taskwait): Comment.
581
3b35cd04
DV
5822013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
583 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
584
585 PR libgomp/55561
586 * config/linux/wait.h (do_spin): Use atomic load for addr.
587 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
588 for intptr and ptrlock.
589 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
590 for ptrlock.
591
9a647288
AM
5922013-01-22 Alan Modra <amodra@gmail.com>
593
594 PR libgomp/51376
595 PR libgomp/56073
596 * task.c (GOMP_task): Revert 2011-12-09 change.
597 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
598 barrier to read task->children..
599 (gomp_barrier_handle_tasks): ..and matching atomic store with
600 release barrier here when setting parent->children to NULL.
601
f34dea03
JJ
6022013-01-16 Jakub Jelinek <jakub@redhat.com>
603 Tobias Burnus <burnus@net-b.de>
604
605 PR driver/55884
606 * testsuite/libgomp.fortran/fortran.exp: Use
607 -fintrinsic-modules-path= instead of
608 -fintrinsic-modules-path.
609
8129609c
RS
6102013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
611
612 Update copyright years.
613
aa86bf1e
TB
6142012-12-19 Tobias Burnus <burnus@net-b.de>
615
616 * testsuite/libgomp.fortran/fortran.exp: Set
617 -fintrinsic-modules-path.
618
2865ea66
TB
6192012-12-19 Tobias Burnus <burnus@net-b.de>
620
621 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
622 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
623
4c5ba8d0
JJ
6242012-11-21 Jakub Jelinek <jakub@redhat.com>
625
626 PR libgomp/55411
627 * team.c (gomp_free_thread): Decrease gomp_managed_threads
628 if pool had any threads_used.
629
e9f958c2
JH
6302012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
631
632 * testsuite/libgomp.c++/pr24455.C: Use
633 -Wl,-undefined,dynamic_lookup on darwin.
634
a57d75dc
DE
6352012-11-07 David Edelsohn <dje.gcc@gmail.com>
636
637 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
638
c6c08485
DH
6392012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
640
641 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
642
c1f37c00
IB
6432012-10-23 Ian Bolton <ian.bolton@arm.com>
644 Jim MacArthur <jim.macarthur@arm.com>
645 Marcus Shawcroft <marcus.shawcroft@arm.com>
646 Nigel Stephens <nigel.stephens@arm.com>
647 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
648 Richard Earnshaw <rearnsha@arm.com>
649 Sofiane Naci <sofiane.naci@arm.com>
650 Stephen Thomas <stephen.thomas@arm.com>
651 Tejas Belagod <tejas.belagod@arm.com>
652 Yufeng Zhang <yufeng.zhang@arm.com>
653
654 * configure.tgt: Add AArch64.
655
7c424acd
JM
6562012-10-04 Jason Merrill <jason@redhat.com>
657
658 * testsuite/libgomp.c++/tls-init1.C: New.
659
6608378b
DE
6602012-09-14 David Edelsohn <dje.gcc@gmail.com>
661
662 * configure: Regenerated.
663
c24dbebb
CLT
6642012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
665
666 * config/linux/mips/futex.h (sys_futex0): Change to static
667 function with noinline, nomips16 attributes under MIPS16. Adjust
668 asm statement to place 'li v0,SYS_futex' immediately before
669 syscall insn.
670
3d3949df
SL
6712012-07-04 Sandra Loosemore <sandra@codesourcery.com>
672
673 * libgomp.texi (Library Index): Renamed from "Index" to prevent
674 conflict with index.html on case-insensitive file systems.
675
68a12ef3
UB
6762012-07-03 Uros Bizjak <ubizjak@gmail.com>
677
678 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
679 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
680
33ad93b9 6812012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
682 Michael Matz <matz@suse.de>
683 Tobias Grosser <tobias@grosser.es>
684 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
685
686 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
687 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
688 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
689 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
690
e6fdc918
AS
6912012-06-28 Andreas Schwab <schwab@linux-m68k.org>
692
693 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
694
62e0a1ed
RG
6952012-06-22 Richard Guenther <rguenther@suse.de>
696
697 Merge from graphite branch
698 2012-01-13 Tobias Grosser <tobias@grosser.es>
699
700 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
701 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
702
26127932
JJ
7032012-06-07 Jakub Jelinek <jakub@redhat.com>
704
705 PR middle-end/53580
706 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
707 use GOMP_barrier () call instead.
708 * testsuite/libgomp.c/pr26943-3.c: Likewise.
709 * testsuite/libgomp.c/pr26943-4.c: Likewise.
710 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
711 call GOMP_barrier instead.
712 * testsuite/libgomp.fortran/vla5.f90: Likewise.
713
43fa5db5
JJ
7142012-06-06 Jakub Jelinek <jakub@redhat.com>
715
716 PR libgomp/52993
717 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
718 argument to memset call.
719
e6d5f8c9
L
7202012-05-16 H.J. Lu <hongjiu.lu@intel.com>
721
722 * configure: Regenerated.
723
559d990c
MLI
7242012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
725
726 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
727
b9c23a61
L
7282012-03-31 H.J. Lu <hongjiu.lu@intel.com>
729
730 PR bootstrap/52812
731 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
732
c140ddf3
JJ
7332012-03-22 Jakub Jelinek <jakub@redhat.com>
734
735 PR middle-end/52547
736 * testsuite/libgomp.c/pr52547.c: New test.
737
6a26a74d
BRF
7382012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
739
740 * testsuite/lib/libgomp.exp: load fortran-modules.exp
741
b24513a1
RO
7422012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
743
744 * configure.tgt (mips-sgi-irix6*): Remove.
745
5c30094f
RO
7462012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
747
748 * configure.tgt (alpha*-dec-osf*): Remove.
749
750 * config/osf/sem.h: Remove.
751 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
752
a339c9d6
EB
7532012-02-29 Eric Botcazou <ebotcazou@adacore.com>
754
755 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
756
cc2de92d
RO
7572012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
758
759 PR libstdc++/52188
760 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
761 Remove ENABLE_SYMVERS_SOL2.
762 * configure: Regenerate.
763 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
764 (PREPROCESS): New variable.
765 (libgomp.ver): New target.
766 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
767 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
768 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
769 Use libgomp.ver.
770 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
771 * Makefile.in: Regenerate.
772
dd552284
WL
7732012-02-14 Walter Lee <walt@tilera.com>
774
775 * configure.tgt: Handle tilegx and tilepro.
776 * config/linux/tile/futex.h: New file.
777
31432e21
RG
7782012-02-08 Richard Guenther <rguenther@suse.de>
779
780 PR tree-optimization/46886
781 * testsuite/libgomp.c/pr46886.c: New testcase.
782
b9264b5f
MK
7832012-01-25 Matthias Klose <doko@ubuntu.com>
784
785 * config/linux/arm: Remove empty directory.
786 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
787
fbf7be80
AM
7882011-12-09 Alan Modra <amodra@gmail.com>
789
790 PR libgomp/51376
791 * task.c (GOMP_taskwait): Don't access task->children outside of
792 task_lock mutex region.
793 (GOMP_task): Likewise.
794
5de62d00
JJ
7952011-12-06 Jakub Jelinek <jakub@redhat.com>
796
797 PR libgomp/51132
798 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
799 to file scope.
800 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
801 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
802 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
803 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
804 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
805
45608a43
AM
8062011-12-02 Alan Modra <amodra@gmail.com>
807
808 * config/linux/affinity.c: Use atomic rather than sync builtin.
809 * config/linux/lock.c: Likewise.
810 * config/linux/ptrlock.h: Likewise.
811 * config/linux/ptrlock.c: Likewise.
812 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
813 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
814 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
815 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
816 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
817 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
818 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
819 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
820 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
821 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
822
ab6dd406
AM
8232011-11-30 Alan Modra <amodra@gmail.com>
824
825 PR libgomp/51298
826 * config/linux/bar.h: Use atomic rather than sync builtins.
827 * config/linux/bar.c: Likewise. Add missing acquire
828 synchronisation on generation field.
829 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
830 double unlock.
831
b40c885f
AM
8322011-11-30 Alan Modra <amodra@gmail.com>
833
834 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
835 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
836 * config/linux/mutex.h: Use atomic rather than sync builtins.
837 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
838 * config/linux/omp-lock.h: Comment fix.
839 * config/linux/arm/mutex.h: Delete.
840 * config/linux/powerpc/mutex.h: Delete.
841 * config/linux/ia64/mutex.h: Delete.
842 * config/linux/mips/mutex.h: Delete.
843
3e348fcc
AM
8442011-11-30 Alan Modra <amodra@gmail.com>
845
846 PR libgomp/51249
847 * config/linux/sem.h: Rewrite.
848 * config/linux/sem.c: Rewrite.
849
cef86eb2
RH
8502011-11-28 Richard Henderson <rth@redhat.com>
851
852 * libgomp.h (enum memmodel): New.
853
c6084f68
AT
8542011-11-21 Andreas Tobler <andreast@fgznet.ch>
855
856 * configure: Regenerate.
857
06fe026c
MK
8582011-10-10 Matthias Klose <doko@ubuntu.com>
859
860 * config/posix95: Remove empty directory.
861
a6c975bd
JJ
8622011-08-26 Jakub Jelinek <jakub@redhat.com>
863
864 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
865
c26dffff
JJ
8662011-08-19 Jakub Jelinek <jakub@redhat.com>
867
868 PR fortran/49792
869 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
870 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
871
ddaad3c8
RO
8722011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
873
874 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
875
98d03683
RO
8762011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
877
878 PR libgomp/49965
879 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
880
e0b23d9f
UB
8812011-08-03 Uros Bizjak <ubizjak@gmail.com>
882
883 * config/linux/proc.h: New.
884 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
885 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
886 (gomp_init_num_threads): Update call to cpuset_popcount.
887 (get_num_procs): Ditto.
888 * config/linux/affinity.c (gomp_init_affinity): Call
889 gomp_cpuset_popcount.
890
20906c66
JJ
8912011-08-02 Jakub Jelinek <jakub@redhat.com>
892
893 PR fortran/42041
894 PR fortran/46752
895 * omp.h.in (omp_in_final): New prototype.
896 * omp_lib.f90.in (omp_in_final): New interface.
897 (omp_integer_kind, omp_logical_kind): Remove
898 and replace all its uses in the module with 4.
899 (openmp_version): Change to 201107.
900 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
901 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
902 kind for the parameters.
903 (omp_in_final): New external.
904 (openmp_version): Change to 201107.
905 * task.c (omp_in_final): New function.
906 (gomp_init_task): Initialize final_task.
907 (GOMP_task): Remove unused attribute from flags. Handle final
908 tasks.
909 (GOMP_taskyield): New function.
910 (omp_in_final): Return true if if (false) or final (true) task
911 or descendant of final (true).
912 * fortran.c (omp_in_final_): New function.
913 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
914 (GOMP_3.0): Export GOMP_taskyield.
915 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
916 variables.
917 (parse_unsigned_long_list): New function.
918 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
919 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
920 even if parse_affinity returned false.
921 * config/linux/affinity.c (gomp_init_affinity): Handle
922 gomp_cpu_affinity_len == 0.
923 * libgomp_g.h (GOMP_taskyield): New prototype.
924 * libgomp.h (struct gomp_task): Add final_task field.
925 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
926 * team.c (gomp_team_start): Override new task's nthreads_var icv
927 if list form OMP_NUM_THREADS has been used and it has value for
928 the new nesting level.
929
930 * testsuite/libgomp.c/atomic-11.c: New test.
931 * testsuite/libgomp.c/atomic-12.c: New test.
932 * testsuite/libgomp.c/atomic-13.c: New test.
933 * testsuite/libgomp.c/atomic-14.c: New test.
934 * testsuite/libgomp.c/reduction-6.c: New test.
935 * testsuite/libgomp.c/task-5.c: New test.
936 * testsuite/libgomp.c++/atomic-2.C: New test.
937 * testsuite/libgomp.c++/atomic-3.C: New test.
938 * testsuite/libgomp.c++/atomic-4.C: New test.
939 * testsuite/libgomp.c++/atomic-5.C: New test.
940 * testsuite/libgomp.c++/atomic-6.C: New test.
941 * testsuite/libgomp.c++/atomic-7.C: New test.
942 * testsuite/libgomp.c++/atomic-8.C: New test.
943 * testsuite/libgomp.c++/atomic-9.C: New test.
944 * testsuite/libgomp.c++/task-8.C: New test.
945 * testsuite/libgomp.c++/reduction-4.C: New test.
946 * testsuite/libgomp.fortran/allocatable7.f90: New test.
947 * testsuite/libgomp.fortran/allocatable8.f90: New test.
948 * testsuite/libgomp.fortran/crayptr3.f90: New test.
949 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
950 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
951 * testsuite/libgomp.fortran/pointer1.f90: New test.
952 * testsuite/libgomp.fortran/pointer2.f90: New test.
953 * testsuite/libgomp.fortran/task4.f90: New test.
954
9552011-08-02 Tobias Burnus <burnus@net-b.de>
956
957 * libgomp.texi: Update OpenMP spec references to 3.1.
958 (omp_in_final,OMP_PROC_BIND): New sections.
959 (OMP_NUM_THREADS): Document that the value can be now a list.
960 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
961
c01ecafc
L
9622011-08-02 H.J. Lu <hongjiu.lu@intel.com>
963
964 * config/linux/x86/futex.h: Check __x86_64__ instead of
965 __LP64__.
966
25142650
JJ
9672011-07-29 Jakub Jelinek <jakub@redhat.com>
968
969 PR middle-end/49897
970 PR middle-end/49898
971 * testsuite/libgomp.c/pr49897-1.c: New test.
972 * testsuite/libgomp.c/pr49897-2.c: New test.
973 * testsuite/libgomp.c/pr49898-1.c: New test.
974 * testsuite/libgomp.c/pr49898-2.c: New test.
975
f53d712f
L
9762011-07-28 H.J. Lu <hongjiu.lu@intel.com>
977
978 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
979 for ia32 instead of ilp32.
980
981 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
982 * testsuite/libgomp.c/atomic-6.c: Likewise.
983
3689198d
SP
9842011-07-23 Sebastian Pop <sebastian.pop@amd.com>
985
986 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
987 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
988
1a79cb73
RO
9892011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
990
991 PR libgomp/45351
992 * config/osf/sem.h: New file.
993 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
994
c1f51484
RO
9952011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
996
997 PR target/49541
998 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
999 ldflags.
1000
bfee0724
JJ
10012011-07-15 Jakub Jelinek <jakub@redhat.com>
1002
1003 * config/linux/wait.h (do_spin): New inline, largely copied
1004 from do_wait, just don't do futex_wait here, instead return true if
1005 it should be done.
1006 (do_wait): Implement using do_spin.
1007 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1008 to prototype.
1009 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1010 __sync_bool_compare_and_swap, pass the oldval to
1011 gomp_mutex_lock_slow.
1012 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1013 If all mutex contenders are just spinning and not sleeping, don't
1014 change state to 2 unnecessarily. Optimize the loop when state has
1015 already become 2 to use just one atomic operation per loop instead
1016 of two.
1017 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1018 to prototype.
1019 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1020 __sync_bool_compare_and_swap, pass the oldval to
1021 gomp_mutex_lock_slow.
1022
fb79f500
JJ
10232011-06-22 Jakub Jelinek <jakub@redhat.com>
1024
1025 PR libgomp/49490
1026 * iter.c (gomp_iter_static_next): For chunk size 0
1027 only use n ceil/ nthreads size for the first
1028 n % nthreads threads in the team instead of
1029 all threads except for the last few ones which
1030 get less work or none at all.
1031 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1032 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1033 chunk argument, set run_sched_modifier to 0 for static
1034 resp. 1 for other kinds. If chunk argument is 0
1035 and not static, set value to 1.
1036
4577f730
JJ
10372011-05-19 Jakub Jelinek <jakub@redhat.com>
1038
ea93a47b
JJ
1039 PR c++/49043
1040 * testsuite/libgomp.c++/pr49043.C: New test.
1041
4577f730
JJ
1042 PR c++/48869
1043 * testsuite/libgomp.c++/pr48869.C: New test.
1044
e7385332
JJ
10452011-05-06 Jakub Jelinek <jakub@redhat.com>
1046
1047 PR fortran/48894
1048 * fortran.c: Include limits.h.
1049 (TO_INT): Define.
1050 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1051 *set.
1052 (omp_set_num_threads_8_, omp_set_schedule_8_,
1053 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1054 omp_get_team_size_8_): Use TO_INT macro.
1055 * testsuite/libgomp.fortran/pr48894.f90: New test.
1056
20790697
JJ
10572011-04-13 Jakub Jelinek <jakub@redhat.com>
1058
1059 PR middle-end/48591
1060 * testsuite/libgomp.c/pr48591.c: New test.
1061
bf382f5f
RO
10622011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1063
1064 PR bootstrap/48135
1065 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1066 * configure: Regenerate.
1067
113a53c1
JJ
10682011-02-27 Jakub Jelinek <jakub@redhat.com>
1069
1070 PR fortran/47886
1071 * testsuite/libgomp.fortran/task3.f90: New test.
1072
0024f1af
TB
10732011-02-24 Tobias Burnus <burnus@net-b.de>
1074
1075 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1076
21e1e594
JJ
10772011-02-23 Jakub Jelinek <jakub@redhat.com>
1078
1079 PR libgomp/47854
1080 * libgomp.texi (omp_get_wtime): Don't say time in the past
1081 must be Unix Epoch.
1082
67962076
JJ
10832011-02-18 Jakub Jelinek <jakub@redhat.com>
1084
1085 PR libgomp/47804
1086 * testsuite/libgomp.fortran/fortran.exp: Check for both
1087 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1088 but $blddir != "", still append ${blddir}/${lang_library_path}
1089 to ld_library_path.
1090
3808007c
TB
10912011-02-16 Tobias Burnus <burnus@net-b.de>
1092
1093 PR libgomp/47758
1094 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1095 of libquadmath.a before adding its libpath to ldflags.
1096
53b4d41d
JJ
10972011-02-14 Jakub Jelinek <jakub@redhat.com>
1098
1099 PR libgomp/47731
1100 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1101 to FUTEX_WAIT futex syscall.
1102 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1103
029c8f3e
RW
11042011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1105
1106 * configure: Regenerate.
1107
bddd6626
BK
11082011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1109
1110 PR libstdc++/36104
1111 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1112
f1d4ab26
GP
11132011-01-16 Gerald Pfeifer
1114
1115 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1116
2b503136
JJ
11172010-12-14 Jakub Jelinek <jakub@redhat.com>
1118
1119 PR fortran/46874
1120 * libgomp.fortran/allocatable6.f90: New test.
1121
c0f9d583
RO
11222010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123
1124 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1125 * configure: Regenerate.
1126
7de6ba7a
DK
11272010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1128
1129 PR target/40125
1130 PR lto/46695
1131 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1132 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1133 * aclocal.m4: Regenerate.
1134 * configure: Regenerate.
1135 * Makefile.in: Regenerate.
1136 * testsuite/Makefile.in: Regenerate.
1137
b7516041
JJ
11382010-12-02 Jakub Jelinek <jakub@redhat.com>
1139
edaadf74
JJ
1140 PR fortran/46753
1141 * libgomp.fortran/pr46753.f90: New test.
1142
4c698cf8
JJ
1143 PR libgomp/43706
1144 * env.c (initialize_env): Default to spin count 300000
1145 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1146 is specified.
1147
b7516041
JJ
1148 PR libgomp/45240
1149 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1150 at the end if sync builtins aren't supported.
1151
6b43a34c
RO
11522010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1153
1154 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1155
950691fa
RO
11562010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157
1158 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1159
fb9041ea
IS
11602010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1161
1162 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1163
1ec601bf
FXC
11642010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1165 Tobias Burnus <burnus@net-b.de>
1166
1167 PR fortran/32049
3e348fcc 1168 * configure.ac:
1ec601bf
FXC
1169 * configure: Regenerate.
1170
d213e92e
MS
11712010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1172
1173 * config/linux/futex.h: New.
1174 * config/linux/arm/mutex.h: New.
1175 * configure.tgt (arm*-*-linux*): Add config path.
1176
89d5c66f
SP
11772010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1178
1179 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1180
87350d4a
TB
11812010-09-23 Tobias Burnus <burnus@net-b.de>
1182
1183 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1184 Change Fortran datatype to LOGICAL.
1185 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1186 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1187
75bc9e5e
RW
11882010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1189
1190 * configure: Regenerate.
1191
acb5c916
JJ
11922010-07-26 Jakub Jelinek <jakub@redhat.com>
1193
1194 * libgomp.texi: Add function keyword to a couple of Fortran
1195 interfaces, use integer instead of int for Fortran.
1196
6a2ba183
AH
11972010-07-26 Aldy Hernandez <aldyh@redhat.com>
1198
1199 * libgomp.texi: Fix spelling and pasto problems throughout.
1200 Adjust prototypes to match code.
1201
df161b69
TB
12022010-07-24 Tobias Burnus <burnus@net-b.de>
1203
1204 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1205 silence -fwhole-file warning.
1206
16c9d3b1
RO
12072010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1208
1209 * configure.tgt (*-*-solaris2.[56]*): Removed.
1210
6d28b933
RO
12112010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1212
1213 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1214 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1215 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1216 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1217 targetting solaris2*.
1218 * configure: Regenerate.
1219 * config.h.in: Regenerate.
1220
1221 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1222 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1223 Add libgomp_version_dep.
1224 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1225 versioning.
1226 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1227 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1228 * Makefile.in: Regenerate.
1229
1230 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1231 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1232 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1233 to common block, protected by
1234 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1235
07a67d6a
GP
12362010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1237
1238 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1239
dbd34b89
IS
12402010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1241
1242 PR bootstrap/43170
1243 * configure: Regenerate.
1244
13917ae3
RW
12452010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1246
1247 PR other/43620
1248 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1249 * configure: Regenerate.
1250 * Makefile.in: Regenerate.
1251 * testsuite/Makefile.in: Regenerate.
1252
b83a701b
JJ
12532010-04-26 Jakub Jelinek <jakub@redhat.com>
1254
1255 PR c/43893
1256 * testsuite/libgomp.c/pr43893.c: New test.
1257 * testsuite/libgomp.c++/pr43893.C: New test.
1258
78db7d92
JJ
12592010-04-21 Jakub Jelinek <jakub@redhat.com>
1260
1261 PR middle-end/43570
1262 * testsuite/libgomp.fortran/vla8.f90: New test.
1263
5221d7a9
JJ
12642010-04-20 Jakub Jelinek <jakub@redhat.com>
1265
e4ba7a60
JJ
1266 PR libgomp/43706
1267 * config/linux/affinity.c (gomp_init_affinity): Decrease
1268 gomp_available_cpus if affinity mask confines the process to fewer
1269 CPUs.
1270 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1271 non-NULL, just return gomp_available_cpus.
1272
5221d7a9
JJ
1273 PR libgomp/43569
1274 * sections.c (gomp_sections_init): Initialize ws->mode.
1275
289a9f86
UB
12762010-04-14 Uros Bizjak <ubizjak@gmail.com>
1277
1278 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1279 not unused bar variable.
1280 * configure: Regenerate.
1281
4d9e8446
RW
12822010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1283
1284 * Makefile.in: Regenerate.
1285 * aclocal.m4: Regenerate.
1286 * testsuite/Makefile.in: Regenerate.
1287
80f046cc
JJ
12882010-03-22 Jakub Jelinek <jakub@redhat.com>
1289
1290 PR libgomp/42942
1291 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1292 (initialize_env): Adjust callers.
1293 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1294 when the argument is 0.
1295
1296 * testsuite/libgomp.c/pr42942.c: New test.
1297
b58543c3
SP
12982010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1299
1300 PR middle-end/42644
1301 PR middle-end/42130
1302 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1303 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1304
41d1138f
RO
13052010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1306
1307 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1308 * testsuite/libgomp.c++/task-6.C: Likewise.
1309
6684eb28
SE
13102010-01-28 Steve Ellcey <sje@cup.hp.com>
1311
1312 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1313
2122aa97
PB
13142010-01-26 Paolo Bonzini <bonzini@gnu.org>
1315
1316 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1317 * configure: Regenerate.
1318
057dd91d
JJ
13192010-01-26 Jakub Jelinek <jakub@redhat.com>
1320
1321 PR fortran/42866
1322 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1323
d0709b6a
PB
13242010-01-20 Paolo Bonzini <bonzini@gnu.org>
1325
1326 * configure.ac: Test for executability of GFORTRAN.
1327 * configure: Regenerate.
1328
b9497ab5
RO
13292010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1330
1331 * configure: Regenerate.
1332
45de5648
L
13332010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1334
1335 PR libgomp/42602
1336 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1337
e74003a1
RG
13382010-01-03 Richard Guenther <rguenther@suse.de>
1339
1340 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1341
1b3abda8
SP
13422009-12-23 Sebastian Pop <sebpop@gmail.com>
1343
1344 * testsuite/libgomp.graphite/pr4118.c: New.
1345
e19977d3
IS
13462009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1347
1348 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1349 for darwin, protect the test with require-effective-target tls_runtime.
1350 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1351
1d32a772
IS
13522009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1353
1354 PR target/41605
1355 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1356 link spec %s substitutions for static libraries.
1357
deb109b2
JH
13582009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1359
1360 PR testsuite/42135
1361 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1362
43e02a8a
RW
13632009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1364
1365 * Makefile.in: Regenerate.
1366 * configure: Regenerate.
1367 * testsuite/Makefile.in: Regenerate.
1368
17f35e23
DK
13692009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1370
1371 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1372 settings for LC_ALL and LANG.
1373
281e33e1
JJ
13742009-11-25 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR fortran/42162
1377 * testsuite/libgomp.fortran/pr42162.f90: New test.
1378
2b32c27d
JJ
13792009-11-13 Jakub Jelinek <jakub@redhat.com>
1380
1381 PR middle-end/42029
281e33e1 1382 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 1383
89c74f4a
JJ
13842009-10-26 Jakub Jelinek <jakub@redhat.com>
1385
1386 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1387 *s. Accept ld version without text in ()s.
1388 * configure: Regenerated.
1389
7e06c3d6
EB
13902009-10-22 Razya Ladelsky <razya@il.ibm.com>
1391
1392 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1393
0046b1a7
RW
13942009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1395
1396 PR libgomp/41418
1397 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1398 or a hyphen (happens with fortran language disabled).
1399 * configure: Regenerate.
1400
c82852f7
RW
14012009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1402
1403 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1404 use sed script portable to Solaris /bin/sed for extracting ld
1405 version.
1406 * configure: Regenerate.
1407
98f3eb1f
AM
14082009-09-17 Alexander Monakov <amonakov@ispras.ru>
1409
1410 * testsuite/libgomp.graphite/bounds.c: New test.
1411
878f62e5
RW
14122009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1413
1414 * Makefile.am (libgomp_la_LINK): New.
1415 * Makefile.in: Regenerate.
1416
df58e648
RW
14172009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1418
1419 * configure.ac (AC_PREREQ): Bump to 2.64.
1420
5213506e
RW
14212009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1422
70fa0efa
RW
1423 * Makefile.am (install-html, install-pdf): Remove.
1424 * Makefile.in: Regenerate.
1425
5213506e
RW
1426 * Makefile.in: Regenerate.
1427 * aclocal.m4: Regenerate.
1428 * config.h.in: Regenerate.
1429 * configure: Regenerate.
1430 * testsuite/Makefile.in: Regenerate.
1431
84fec8a5
RW
14322009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1433
1434 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1435 * Makefile.in: Regenerate.
1436
197c68cc
DK
14372009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1438
1439 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1440 * Makefile.in: Regenerate.
1441
693d54f2
TB
14422009-08-19 Tobias Burnus <burnus@net-b.de>
1443
1444 PR fortran/41102
1445 omp_lib.h.in: Fix -std=f95 errors.
1446
1447
8cac884c
DE
14482009-08-14 David Edelsohn <edelsohn@gnu.org>
1449
1450 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1451 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1452 * testsuite/libgomp.graphite/graphite.exp: New.
1453
78729ee2
AT
14542009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1455
1456 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1457 only build.
1458
b13b7f39
DD
14592009-08-04 David Daney <ddaney@caviumnetworks.com>
1460
1461 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1462 needed memory barrier semantics.
1463 * config/linux/mips/mutex.h: New file.
1464
1b3b24c2
RW
14652009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1466
1467 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1468
396b7fa4
JM
14692009-07-16 Joseph Myers <joseph@codesourcery.com>
1470
1471 * configure: Regenerate.
1472
33cde516
RS
14732009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1474
1475 PR testsuite/40699
1476 PR testsuite/40707
1477 PR testsuite/40709
1478 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1479 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1480 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1481
bc21bfa5
RS
14822009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1483
1484 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1485 options when choosing a multilib.
1486
b30bfd40
RS
14872009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1488
1489 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1490 ld_library_path. Use add_path. Add just find_libgcc_s to
1491 ld_library_path, not every libgcc multilib directory.
1492 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1493 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1494 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1495 Use add_path.
1496 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1497
479c15c2
NF
14982009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1499
1500 * Makefile.am (LTLDFLAGS): Define.
1501 (LINK): Define.
1502 * Makefile.in: Regenerate.
1503
667e6f89
JB
15042009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1505
1506 PR fortran/39718
1507 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1508 libgfortranbegin, check existence of libgfortran.a instead of
1509 libgfortranbegin.a.
1510
6dea8e99
JJ
15112009-05-20 Jakub Jelinek <jakub@redhat.com>
1512
1513 PR libgomp/40174
1514 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1515 (gomp_free_pool_helper): Likewise.
1516
34d01e1d
VL
15172009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1518 Jakub Jelinek <jakub@redhat.com>
1519
1520 PR fortran/35423
1521 * testsuite/libgomp.fortran/workshare2.f90: New test.
1522
748086b7
JJ
15232009-04-09 Nick Clifton <nickc@redhat.com>
1524
1525 * iter.c: Change copyright header to refer to version 3 of the
1526 GNU General Public License with version 3.1 of the GCC Runtime
1527 Library Exception and to point readers at the COPYING3 and
1528 COPYING3.RUNTIME files and the FSF's license web page.
1529 * alloc.c: Likewise.
1530 * barrier.c: Likewise.
1531 * config/bsd/proc.c: Likewise.
1532 * config/linux/affinity.c: Likewise.
1533 * config/linux/alpha/futex.h: Likewise.
1534 * config/linux/bar.c: Likewise.
1535 * config/linux/bar.h: Likewise.
1536 * config/linux/ia64/futex.h: Likewise.
1537 * config/linux/ia64/mutex.h: Likewise.
1538 * config/linux/lock.c: Likewise.
1539 * config/linux/mips/futex.h: Likewise.
1540 * config/linux/mutex.c: Likewise.
1541 * config/linux/mutex.h: Likewise.
1542 * config/linux/powerpc/futex.h: Likewise.
1543 * config/linux/proc.c: Likewise.
1544 * config/linux/ptrlock.c: Likewise.
1545 * config/linux/ptrlock.h: Likewise.
1546 * config/linux/s390/futex.h: Likewise.
1547 * config/linux/sem.c: Likewise.
1548 * config/linux/sem.h: Likewise.
1549 * config/linux/sparc/futex.h: Likewise.
1550 * config/linux/wait.h: Likewise.
1551 * config/linux/x86/futex.h: Likewise.
1552 * config/mingw32/proc.c: Likewise.
1553 * config/mingw32/time.c: Likewise.
1554 * config/posix/affinity.c: Likewise.
1555 * config/posix/bar.c: Likewise.
1556 * config/posix/bar.h: Likewise.
1557 * config/posix/lock.c: Likewise.
1558 * config/posix/mutex.h: Likewise.
1559 * config/posix/proc.c: Likewise.
1560 * config/posix/ptrlock.h: Likewise.
1561 * config/posix/sem.c: Likewise.
1562 * config/posix/sem.h: Likewise.
1563 * config/posix/time.c: Likewise.
1564 * config/posix95/lock.c: Likewise.
1565 * critical.c: Likewise.
1566 * env.c: Likewise.
1567 * error.c: Likewise.
1568 * fortran.c: Likewise.
1569 * iter_ull.c: Likewise.
1570 * libgomp.h: Likewise.
1571 * libgomp_f.h.in: Likewise.
1572 * libgomp_g.h: Likewise.
1573 * loop.c: Likewise.
1574 * loop_ull.c: Likewise.
1575 * omp.h.in: Likewise.
1576 * omp_lib.f90.in: Likewise.
1577 * omp_lib.h.in: Likewise.
1578 * ordered.c: Likewise.
1579 * parallel.c: Likewise.
1580 * sections.c: Likewise.
1581 * single.c: Likewise.
1582 * task.c: Likewise.
1583 * team.c: Likewise.
1584 * work.c: Likewise.
1585
15862009-04-09 Jakub Jelinek <jakub@redhat.com>
1587
1588 * testsuite/config/default.exp: Change copyright header to refer to
1589 version 3 of the GNU General Public License and to point readers
1590 at the COPYING3 file and the FSF's license web page.
1591
4f0ae266
JJ
15922009-04-08 Jakub Jelinek <jakub@redhat.com>
1593
1594 PR middle-end/39573
1595 * libgomp.c++/pr39573.C: New test.
1596
03742a9b
JJ
15972009-04-01 Jakub Jelinek <jakub@redhat.com>
1598
1599 PR other/39591
1600 * testsuite/libgomp.c/pr39591-1.c: New test.
1601 * testsuite/libgomp.c/pr39591-2.c: New test.
1602 * testsuite/libgomp.c/pr39591-3.c: New test.
1603
e50ea10b
UB
16042009-03-25 Uros Bizjak <ubizjak@gmail.com>
1605
1606 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1607 * testsuite/libgomp.c/atomic-6.c: Ditto.
1608
c5cdb03f
JJ
16092009-03-23 Jakub Jelinek <jakub@redhat.com>
1610
1611 PR c/39495
1612 * testsuite/libgomp.c/loop-12.c: New test.
1613 * testsuite/libgomp.c/loop-11.c: New test.
1614 * testsuite/libgomp.c++/loop-11.C: New test.
1615 * testsuite/libgomp.c++/loop-12.C: New test.
1616 * testsuite/libgomp.c++/for-8.C: New test.
1617
7a9d3fe8
RW
16182009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1619
1620 * configure: Regenerate.
1621
3ad6b266
JJ
16222009-02-11 Jakub Jelinek <jakub@redhat.com>
1623
1624 PR middle-end/39154
1625 * testsuite/libgomp.c/pr39154.c: New test.
1626
b39dea08
ILT
16272009-01-30 Ian Lance Taylor <iant@google.com>
1628
1629 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1630 libgomp_ld_is_gold. Get gold version number.
1631 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1632 * configure: Rebuild.
1633
72c66596
IS
16342009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1635
e50ea10b 1636 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
1637 use libgfortran.a%s in their specs.
1638
876080ff
JJ
16392009-01-07 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR libgomp/38086
1642 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1643 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1644 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1645 * configure: Regenerated.
1646 * config.h.in: Likewise.
1647
e4ebaef3
JJ
16482008-12-28 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR c++/38650
1651 * testsuite/libgomp.c/pr38650.c: New test.
1652 * testsuite/libgomp.c++/pr38650.C: New test.
1653
382017a6
JJ
16542008-12-27 Jakub Jelinek <jakub@redhat.com>
1655
1656 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1657
79644b27
UB
16582008-12-26 Uros Bizjak <ubizjak@gmail.com>
1659
1660 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1661
baafc534
RW
16622008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1663
1664 * configure: Regenerate.
1665
d9c194cb
JJ
16662008-12-08 Jakub Jelinek <jakub@redhat.com>
1667
1668 PR middle-end/36802
1669 * testsuite/libgomp.c/pr36802-1.c: New test.
1670 * testsuite/libgomp.c/pr36802-2.c: New test.
1671 * testsuite/libgomp.c/pr36802-3.c: New test.
1672
86a182bf
JJ
16732008-12-01 Janis Johnson <janis187@us.ibm.com>
1674
1675 PR libgomp/38270
1676 * config/linux/powerpc/mutex.h: New.
1677
956adfaf
JJ
16782008-12-01 Jakub Jelinek <jakub@redhat.com>
1679
a2d4cdc9
JJ
1680 PR c++/38257
1681 * testsuite/libgomp.c++/for-7.C: New test.
1682
956adfaf
JJ
1683 PR c++/38348
1684 * testsuite/libgomp.c++/for-6.C: New test.
1685
d4038ca2
JJ
16862008-11-26 Janis Johnson <janis187@us.ibm.com>
1687
1688 PR testsuite/28870
1689 * testsuite/lib/libgomp.exp: Include new timeout library files.
1690 (libgomp_target_compile): Set timeout value from new proc.
1691
8b159eea
SE
16922008-11-13 Steve Ellcey <sje@cup.hp.com>
1693
1694 PR libgomp/37938
1695 * config/linux/ia64/mutex.h: New.
1696
5c6ed53a
TB
16972008-11-04 Tobias Burnus <burnus@net-b.de>
1698
1699 PR libgomp/37935
1700 * libgomp.texi (Runtime library routines, environment variables):
1701 Update for OpenMP version 3.0.
1702
6b4a97ed
PG
17032008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1704 Steve Ellcey <sje@cup.hp.com>
1705
1706 * configure: Regenerate for new libtool.
1707 * Makefile.in: Ditto.
1708 * testsuite/Makefile.in: Ditto.
1709
e2b34106
JJ
17102008-09-19 Jakub Jelinek <jakub@redhat.com>
1711 Andreas Tobler <a.tobler@schweiz.org>
1712
1713 * config/bsd/proc.c: New file.
8c3b3600 1714 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
1715 * configure.ac: Check for header <sys/sysctl.h>
1716 * configure: Regenerate.
1717 * config.h.in: Likewise.
1718
3606b8bf
JJ
17192008-09-05 Janis Johnson <janis187@us.ibm.com>
1720
1721 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1722
6528b88d
AL
17232008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1724
1725 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1726 * Makefile.in: Regenerated.
1727 * testsuite/Makefile.in: Regenerated.
1728
d9b14b12 17292008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 1730
a16b68bb 1731 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
1732 depend on blddir if blddir exists.
1733 (libgomp_target_compile): Likewise.
1734 * testsuite/libgomp.c++/c++.exp: Likewise.
1735 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1736
70b1e376
RW
17372008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1738
1739 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1740 Do not list GPL as Invariant Section.
1741
318e8c3f
IG
17422008-07-28 Ilie Garbacea <ilie@mips.com>
1743 Chao-ying Fu <fu@mips.com>
1744
1745 * configure.tgt: Enable futex for MIPS.
1746 * config/linux/mips/futex.h: New file.
1747
4db72361
JJ
17482008-07-16 Jakub Jelinek <jakub@redhat.com>
1749
1750 * team.c (gomp_team_end): Free team immediately if it has
1751 just one thread.
1752
87bd23b8
DE
17532008-07-08 David Edelsohn <edelsohn@gnu.org>
1754
1755 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1756 * testsuite/libgomp.fortran/fortran.exp: Same.
1757 * testsuite/libgomp.c/c.exp: Same.
1758 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1759 directory to library path first.
1760
323ff903
KW
17612008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1762
1763 * env.c (parse_stacksize): Add cast to avoid warning.
1764 (parse_spincount): Likewise.
1765
b357f682
JJ
17662008-06-27 Jakub Jelinek <jakub@redhat.com>
1767
ca2b1311
JJ
1768 * testsuite/libgomp.c/loop-10.c: New test.
1769 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1770 * libgomp.c++/loop-6.C (main): Likewise.
1771
b357f682
JJ
1772 PR debug/36617
1773 * testsuite/libgomp.c/debug-1.c: New test.
1774
09a46078
JJ
17752008-06-19 Jakub Jelinek <jakub@redhat.com>
1776
1777 * testsuite/libgomp.c/nqueens-1.c: New test.
1778
2368a460
JJ
1779 PR c++/36523
1780 * testsuite/libgomp.c++/task-7.C: New function.
1781
18c04407
RW
17822008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1783
1784 * configure: Regenerate.
1785
9c4e59e0
JDA
17862008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1787
1788 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1789 mutex when HAVE_SYNC_BUILTINS isn't defined.
1790
6ccde948
RW
17912008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1792
1793 * libgomp.texi (omp_test_lock): Fix typo.
1794
b896f9fd
TB
17952008-06-12 Tobias Burnus <burnus@net-b.de>
1796
1797 * omp_lib.f90.in: Add "implicit none".
1798
c34938a8
JJ
17992008-06-12 Jakub Jelinek <jakub@redhat.com>
1800
1801 PR middle-end/36506
1802 * testsuite/libgomp.c/reduction-5.c: New test.
1803
976e44e3
JJ
18042008-06-11 Jakub Jelinek <jakub@redhat.com>
1805
5f836cbb
JJ
1806 * libgomp.h (struct gomp_task): Add in_tied_task field.
1807 * task.c (gomp_init_task): Initialize it.
1808 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1809 unconditionally. Don't call gomp_team_barrier_wake if
1810 current task is implicit or if(0) from implicit and number of
1811 running tasks is equal to nthreads - 1.
1812
01501fc8
JJ
1813 PR libgomp/36471
1814 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1815 omp_get_team_size_8): Fix pastos.
1816
976e44e3
JJ
1817 PR libgomp/36469
1818 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1819 * configure: Regenerated.
1820 * config.h.in: Regenerated.
1821 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1822 defined.
1823
e919209b
AT
18242008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1825
1826 PR bootstrap/36452
1827 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1828 (GOMP_loop_ull_dynamic_start): Likewise.
1829 (GOMP_loop_ull_guided_start): Likewise.
1830 (GOMP_loop_ull_ordered_static_start): Likewise.
1831 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1832 (GOMP_loop_ull_ordered_guided_start): Likewise.
1833
a68ab351
JJ
18342008-06-06 Jakub Jelinek <jakub@redhat.com>
1835 Richard Henderson <rth@redhat.com>
1836 Ulrich Drepper <drepper@redhat.com>
1837 Jakob Blomer <jakob.blomer@ira.uka.de>
1838
1839 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1840 Substitute also OMP_*LOCK_25*.
1841 * configure: Regenerated.
1842 * config.h.in: Regenerated.
1843 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1844 ptrlock.c and task.c.
1845 * Makefile.in: Regenerated.
1846 * testsuite/Makefile.in: Regenerated.
1847 * task.c: New file.
1848 * loop_ull.c: New file.
1849 * iter_ull.c: New file.
1850 * libgomp.h: Include ptrlock.h.
1851 (enum gomp_task_kind): New type.
1852 (struct gomp_team): Add task_lock, task_queue, task_count,
1853 task_running_count, single_count fields. Add
1854 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1855 Remove work_share_lock, generation_mask,
1856 oldest_live_gen, num_live_gen and init_work_shares fields, add
1857 work work_share_list_alloc, work_share_list_free and work_share_chunk
1858 fields. Change work_shares from pointer to pointers into an array.
1859 Change ordered_release field into gomp_sem_t ** from flexible array
1860 member. Add implicit_task and initial_work_shares fields.
1861 Move close to the end of the struct.
1862 (struct gomp_team_state): Add single_count, last_work_share,
1863 active_level and level fields, remove work_share_generation.
1864 (gomp_barrier_handle_tasks): New prototype.
1865 (gomp_finish_task): New inline function.
1866 (struct gomp_work_share): Move chunk_size, end, incr into
1867 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1868 next_ll fields. Reshuffle fields. Add next_alloc,
1869 next_ws, next_free and inline_ordered_team_ids fields, change
1870 ordered_team_ids into pointer from flexible array member.
1871 Add mode field. Put lock and next into a different cache line
1872 from most of the write-once fields.
1873 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1874 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1875 gomp_iter_ull_guided_next): New prototypes.
1876 (gomp_new_icv): New prototype.
1877 (struct gomp_thread): Add thread_pool and task fields.
1878 (struct gomp_thread_pool): New type.
1879 (gomp_new_team): New prototype.
1880 (gomp_team_start): Change type of last argument.
1881 (gomp_new_work_share): Removed.
1882 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1883 (gomp_work_share_init_done): New static inline.
1884 (gomp_throttled_spin_count_var, gomp_available_cpus,
1885 gomp_managed_threads): New extern decls.
1886 (gomp_init_task): New prototype.
1887 (gomp_spin_count_var): New extern var decl.
1888 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1889 or no alias support, or if not PIC.
1890 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1891 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1892 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1893 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1894 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1895 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1896 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1897 gomp_test_nest_lock_25): New prototypes.
1898 (omp_lock_symver, strong_alias): Define.
1899 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1900 decls.
1901 (gomp_end_task): New.
1902 (struct gomp_task_icv, gomp_global_icv): New.
1903 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1904 (struct gomp_task): New.
1905 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1906 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1907 (gomp_icv): New.
1908 (gomp_schedule_type): Reorder enum to match
1909 omp_sched_t.
1910 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1911 fields.
1912 (gomp_thread_start): Add gomp_team_barrier_wait call.
1913 For non-nested case remove clearing of docked thread thr fields.
1914 Use pool fields instead of global gomp_* variables. Use
1915 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1916 Create tasks for each member thread.
1917 (free_team): Only destroy team barrier, task_lock here and free it.
1918 (gomp_free_thread): Free last_team if non-NULL.
1919 (gomp_team_end): Call gomp_team_barrier_wait instead of
1920 gomp_barrier_wait. For nested case call one extra
1921 gomp_barrier_wait. Move here some destruction from free_team.
1922 Call free_team on pool->last_team if any, rather than freeing
1923 current team. Destroy work_share_list_free_lock ifndef
1924 HAVE_SYNC_BUILTINS.
1925 (gomp_new_icv): New function.
1926 (gomp_threads, gomp_threads_size, gomp_threads_used,
1927 gomp_threads_dock): Removed.
1928 (gomp_thread_destructor): New variable.
1929 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1930 functions.
1931 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 1932 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
1933 Initialize thread_pool field for new threads. Clear single_count.
1934 Change last argument from ws to team, don't create
1935 new team, set ts.work_share to &team->work_shares[0] and clear
1936 ts.last_work_share. Don't clear ts.work_share_generation.
1937 If number of threads changed, adjust atomically gomp_managed_threads.
1938 Use gomp_init_task instead of gomp_new_task,
1939 set thr->task to the corresponding implicit_task array entry.
1940 Create tasks for each member thread. Initialize ts.level.
1941 (initialize_team): Call pthread_key_create on
1942 gomp_thread_destructor.
1943 (team_destructor): New function.
1944 (new_team): Removed.
1945 (gomp_new_team): New function.
1946 (free_team): Free gomp_work_share blocks chained through next_alloc,
1947 instead of freeing work_shares and destroying work_share_lock.
1948 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1949 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1950 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1951 of gomp_barrier_wait.
1952 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1953 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1954 if gomp_work_share_start returned true. Don't unlock ws->lock.
1955 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1956 of gomp_barrier_wait.
1957 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1958 gomp_work_share_init_done if gomp_work_share_start returned true.
1959 Don't unlock ws->lock.
1960 * work.c: Include stddef.h.
1961 (free_work_share): Use work_share_list_free_lock instead
1962 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1963 Call gomp_fini_work_share and then either free ws if orphaned, or
1964 put it into work_share_list_free list of the current team.
1965 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1966 functions.
1967 (gomp_work_share_start, gomp_work_share_end,
1968 gomp_work_share_end_nowait): Rewritten.
1969 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1970 (openmp_version): Set to 200805.
1971 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1972 omp_sched_guided, omp_sched_auto): New parameters.
1973 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1974 omp_set_max_active_levels, omp_get_max_active_levels,
1975 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1976 omp_get_active_level): New interfaces.
1977 * omp_lib.h.in (openmp_version): Set to 200805.
1978 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1979 omp_sched_guided, omp_sched_auto): New parameters.
1980 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1981 omp_set_max_active_levels, omp_get_max_active_levels,
1982 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1983 omp_get_active_level): New externals.
1984 * loop.c: Include limits.h.
1985 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1986 GFS_AUTO.
1987 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1988 Likewise. Use gomp_icv.
1989 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1990 ts.static_trip here.
1991 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1992 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1993 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1994 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1995 don't unlock ws->lock, otherwise lock it.
1996 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1997 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1998 (gomp_parallel_loop_start): Call gomp_new_team instead of
1999 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2000 Adjust gomp_team_start caller. Pass 0 as second argument to
2001 gomp_resolve_num_threads.
2002 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2003 If adding ws->chunk_size nthreads + 1 times after end won't
2004 overflow, set ws->mode to 1.
2005 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2006 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2007 GOMP_loop_ull_ordered_static_start,
2008 GOMP_loop_ull_ordered_dynamic_start,
2009 GOMP_loop_ull_ordered_guided_start,
2010 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2011 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2012 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2013 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2014 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2015 prototypes.
2016 * libgomp.map: Export lock routines also @@OMP_2.0.
2017 (GOMP_loop_ordered_dynamic_first,
2018 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2019 GOMP_loop_ordered_static_first): Remove.
2020 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2021 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2022 GOMP_loop_ull_ordered_dynamic_next,
2023 GOMP_loop_ull_ordered_dynamic_start,
2024 GOMP_loop_ull_ordered_guided_next,
2025 GOMP_loop_ull_ordered_guided_start,
2026 GOMP_loop_ull_ordered_runtime_next,
2027 GOMP_loop_ull_ordered_runtime_start,
2028 GOMP_loop_ull_ordered_static_next,
2029 GOMP_loop_ull_ordered_static_start,
2030 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2031 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2032 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2033 (omp_set_schedule, omp_get_schedule,
2034 omp_get_thread_limit, omp_set_max_active_levels,
2035 omp_get_max_active_levels, omp_get_level,
2036 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2037 omp_set_schedule_, omp_set_schedule_8_,
2038 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2039 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2040 omp_get_max_active_levels_, omp_get_level_,
2041 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2042 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2043 New exports @@OMP_3.0.
2044 * omp.h.in (omp_sched_t): New type.
2045 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2046 omp_set_max_active_levels, omp_get_max_active_levels,
2047 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2048 omp_get_active_level): New prototypes.
2049 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2050 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2051 gomp_thread_limit_var, gomp_remaining_threads_count,
2052 gomp_remaining_threads_lock): New variables.
2053 (parse_spincount): New function.
2054 (initialize_env): Call gomp_init_num_threads unconditionally.
2055 Initialize gomp_available_cpus. Call parse_spincount,
2056 initialize gomp_{,throttled_}spin_count_var
2057 depending on presence and value of OMP_WAIT_POLICY and
2058 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2059 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2060 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2061 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2062 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2063 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2064 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2065 (gomp_global_icv): New.
2066 (parse_schedule): Use it. Parse "auto".
2067 (omp_set_num_threads): Use gomp_icv.
2068 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2069 Likewise.
2070 (omp_get_max_threads): Move from parallel.c.
2071 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2072 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2073 add ialias.
2074 (parse_stacksize, parse_wait_policy): New functions.
2075 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2076 both wrappers for compatibility and new locks.
2077 (omp_set_schedule, omp_get_schedule,
2078 omp_get_thread_limit, omp_set_max_active_levels,
2079 omp_get_max_active_levels, omp_get_level,
2080 omp_get_ancestor_thread_num, omp_get_team_size,
2081 omp_get_active_level): New ialias_redirect.
2082 (omp_set_schedule_, omp_set_schedule_8_,
2083 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2084 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2085 omp_get_max_active_levels_, omp_get_level_,
2086 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2087 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2088 New functions.
2089 * parallel.c: Include limits.h.
2090 (gomp_resolve_num_threads): Add count argument. Rewritten.
2091 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2092 argument to gomp_team_start. Pass 0 as second argument to
2093 gomp_resolve_num_threads.
2094 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2095 if gomp_thread_limit_var != ULONG_MAX.
2096 (omp_in_parallel): Implement using ts.active_level.
2097 (omp_get_max_threads): Move to env.c.
2098 (omp_get_level, omp_get_ancestor_thread_num,
2099 omp_get_team_size, omp_get_active_level): New functions,
2100 add ialias.
2101 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2102 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2103 gomp_iter_dynamic_next instead of the _locked variant and don't take
2104 lock around it, otherwise acquire it before calling
2105 gomp_iter_dynamic_next_locked.
2106 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2107 gomp_iter_dynamic_next instead of the _locked variant and don't take
2108 lock around it.
2109 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2110 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2111 Adjust gomp_team_start caller. Pass count as second argument to
2112 gomp_resolve_num_threads, don't adjust num_threads after the call.
2113 Use gomp_icv.
2114 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2115 ws->chunk_size by incr.
2116 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2117 code.
2118 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2119 types.
2120 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2121 (omp_check_defines): Check even the compat defines.
2122 * config/linux/ptrlock.c: New file.
2123 * config/linux/ptrlock.h: New file.
2124 * config/linux/wait.h: New file.
2125 * config/posix/ptrlock.c: New file.
2126 * config/posix/ptrlock.h: New file.
2127 * config/linux/bar.h (gomp_team_barrier_wait,
2128 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2129 (gomp_team_barrier_set_task_pending,
2130 gomp_team_barrier_clear_task_pending,
2131 gomp_team_barrier_set_waiting_for_tasks,
2132 gomp_team_barrier_waiting_for_tasks,
2133 gomp_team_barrier_done): New inlines.
2134 (gomp_barrier_t): Rewritten.
2135 (gomp_barrier_state_t): New typedef.
2136 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2137 gomp_barrier_wait_start): Rewritten.
2138 (gomp_barrier_wait_end): Change second argument to
2139 gomp_barrier_state_t.
2140 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2141 inlines.
2142 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2143 futex.h.
2144 (gomp_barrier_wait_end): Rewritten.
2145 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2146 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2147 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2148 (gomp_barrier_state_t): New typedef.
2149 (gomp_team_barrier_wait,
2150 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2151 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2152 into the return value. Return gomp_barrier_state_t.
2153 (gomp_team_barrier_set_task_pending,
2154 gomp_team_barrier_clear_task_pending,
2155 gomp_team_barrier_set_waiting_for_tasks,
2156 gomp_team_barrier_waiting_for_tasks,
2157 gomp_team_barrier_done): New inlines.
2158 (gomp_barrier_wait_end): Change second argument to
2159 gomp_barrier_state_t.
2160 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2161 inlines.
2162 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2163 (gomp_barrier_wait_end): Change second argument to
3e348fcc 2164 gomp_barrier_state_t.
a68ab351
JJ
2165 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2166 gomp_team_barrier_wake): New functions.
2167 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2168 futex.h.
2169 (gomp_futex_wake, gomp_futex_wait): New variables.
2170 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2171 * config/linux/lock.c: Rewrite to make locks task owned,
2172 for backwards compatibility provide the old entrypoints
2173 if symbol versioning. Include wait.h instead of libgomp.h and
2174 futex.h.
2175 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2176 * config/posix95/lock.c: Rewrite to make locks task owned,
2177 for backwards compatibility provide the old entrypoints
2178 if symbol versioning.
2179 * config/posix/lock.c: Rewrite to make locks task owned,
2180 for backwards compatibility provide the old entrypoints
2181 if symbol versioning.
2182 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2183 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2184 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2185 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2186 (sys_futex0): Return error code.
2187 (futex_wake, futex_wait): If ENOSYS was returned, clear
2188 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2189 (cpu_relax, atomic_write_barrier): New static inlines.
2190 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2191 (futex_wake, futex_wait): If ENOSYS was returned, clear
2192 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2193 (cpu_relax, atomic_write_barrier): New static inlines.
2194 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2195 (sys_futex0): Return error code.
2196 (futex_wake, futex_wait): If ENOSYS was returned, clear
2197 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2198 (cpu_relax, atomic_write_barrier): New static inlines.
2199 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2200 (sys_futex0): Return error code.
2201 (futex_wake, futex_wait): If ENOSYS was returned, clear
2202 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2203 (cpu_relax, atomic_write_barrier): New static inlines.
2204 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2205 (sys_futex0): Return error code.
2206 (futex_wake, futex_wait): If ENOSYS was returned, clear
2207 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2208 (cpu_relax, atomic_write_barrier): New static inlines.
2209 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2210 (sys_futex0): Return error code.
2211 (futex_wake, futex_wait): If ENOSYS was returned, clear
2212 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2213 (cpu_relax, atomic_write_barrier): New static inlines.
2214 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2215 futex.h.
2216 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2217 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2218 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2219 types.
2220 (omp_nest_lock_t): Change owner into void *, add lock field.
2221 * config/posix95/omp-lock.h: Include semaphore.h.
2222 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2223 (omp_lock_t): Use sem_t instead of mutex if semaphores
2224 aren't broken.
2225 (omp_nest_lock_t): Likewise. Change owner to void *.
2226 * config/posix/omp-lock.h: Include semaphore.h.
2227 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2228 (omp_lock_t): Use sem_t instead of mutex if semaphores
2229 aren't broken.
2230 (omp_nest_lock_t): Likewise. Add owner field.
2231
22322008-06-06 Jakub Jelinek <jakub@redhat.com>
2233
2234 * testsuite/libgomp.c/collapse-1.c: New test.
2235 * testsuite/libgomp.c/collapse-2.c: New test.
2236 * testsuite/libgomp.c/collapse-3.c: New test.
2237 * testsuite/libgomp.c/icv-1.c: New test.
2238 * testsuite/libgomp.c/icv-2.c: New test.
2239 * testsuite/libgomp.c/lib-2.c: New test.
2240 * testsuite/libgomp.c/lock-1.c: New test.
2241 * testsuite/libgomp.c/lock-2.c: New test.
2242 * testsuite/libgomp.c/lock-3.c: New test.
2243 * testsuite/libgomp.c/loop-4.c: New test.
2244 * testsuite/libgomp.c/loop-5.c: New test.
2245 * testsuite/libgomp.c/loop-6.c: New test.
2246 * testsuite/libgomp.c/loop-7.c: New test.
2247 * testsuite/libgomp.c/loop-8.c: New test.
2248 * testsuite/libgomp.c/loop-9.c: New test.
2249 * testsuite/libgomp.c/nested-3.c: New test.
2250 * testsuite/libgomp.c/nestedfn-6.c: New test.
2251 * testsuite/libgomp.c/sort-1.c: New test.
2252 * testsuite/libgomp.c/task-1.c: New test.
2253 * testsuite/libgomp.c/task-2.c: New test.
2254 * testsuite/libgomp.c/task-3.c: New test.
2255 * testsuite/libgomp.c/task-4.c: New test.
2256 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2257 to C++ testsuite default compiler options.
2258 * testsuite/libgomp.c++/collapse-1.C: New test.
2259 * testsuite/libgomp.c++/collapse-2.C: New test.
2260 * testsuite/libgomp.c++/ctor-10.C: New test.
2261 * testsuite/libgomp.c++/for-1.C: New test.
2262 * testsuite/libgomp.c++/for-2.C: New test.
2263 * testsuite/libgomp.c++/for-3.C: New test.
2264 * testsuite/libgomp.c++/for-4.C: New test.
2265 * testsuite/libgomp.c++/for-5.C: New test.
2266 * testsuite/libgomp.c++/loop-8.C: New test.
2267 * testsuite/libgomp.c++/loop-9.C: New test.
2268 * testsuite/libgomp.c++/loop-10.C: New test.
2269 * testsuite/libgomp.c++/task-1.C: New test.
2270 * testsuite/libgomp.c++/task-2.C: New test.
2271 * testsuite/libgomp.c++/task-3.C: New test.
2272 * testsuite/libgomp.c++/task-4.C: New test.
2273 * testsuite/libgomp.c++/task-5.C: New test.
2274 * testsuite/libgomp.c++/task-6.C: New test.
2275 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2276 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2277 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2278 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2279 * testsuite/libgomp.fortran/collapse1.f90: New test.
2280 * testsuite/libgomp.fortran/collapse2.f90: New test.
2281 * testsuite/libgomp.fortran/collapse3.f90: New test.
2282 * testsuite/libgomp.fortran/collapse4.f90: New test.
2283 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2284 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2285 * testsuite/libgomp.fortran/lib4.f90: New test.
2286 * testsuite/libgomp.fortran/lock-1.f90: New test.
2287 * testsuite/libgomp.fortran/lock-2.f90: New test.
2288 * testsuite/libgomp.fortran/nested1.f90: New test.
2289 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2290 * testsuite/libgomp.fortran/strassen.f90: New test.
2291 * testsuite/libgomp.fortran/tabs1.f90: New test.
2292 * testsuite/libgomp.fortran/tabs2.f: New test.
2293 * testsuite/libgomp.fortran/task1.f90: New test.
2294 * testsuite/libgomp.fortran/task2.f90: New test.
2295 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2296 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2297 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2298 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2299 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2300
7a0112e7
JJ
23012008-05-23 Jakub Jelinek <jakub@redhat.com>
2302
2303 PR c++/36308
2304 * testsuite/libgomp.c++/ctor-11.C: New test.
2305 * testsuite/libgomp.c++/ctor-12.C: New test.
2306
91a5b394
JJ
23072008-05-15 Janis Johnson <janis187@us.ibm.com>
2308
2309 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2310
c18c98c0
JJ
23112008-05-07 Jakub Jelinek <jakub@redhat.com>
2312
2313 PR middle-end/36106
2314 * testsuite/libgomp.c/atomic-5.c: New test.
2315 * testsuite/libgomp.c/atomic-6.c: New test.
2316 * testsuite/libgomp.c/autopar-1.c: New test.
2317
6d26724a
RW
23182008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2319
2320 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2321 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2322 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2323 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2324 * configure: Regenerate.
2325 * Makefile.in, testsuite/Makefile.in: Likewise.
2326
deb984e6
PB
23272008-04-18 Paolo Bonzini <bonzini@gnu.org>
2328
2329 PR bootstrap/35457
2330 * aclocal.m4: Regenerate.
2331 * configure: Regenerate.
2332
9e775963
JJ
23332008-03-18 Jakub Jelinek <jakub@redhat.com>
2334
8119fc93
JJ
2335 PR middle-end/35611
2336 * testsuite/libgomp.c/atomic-4.c: New test.
2337
9e775963
JJ
2338 PR libgomp/35625
2339 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2340 (gomp_iter_guided_next): Likewise.
2341 * testsuite/libgomp.c/pr35625.c: New test.
2342
38d24731
RW
23432008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2344
2345 * aclocal.m4: Regenerate.
2346 * configure: Likewise.
2347 * Makefile.in: Likewise.
2348 * testsuite/Makefile.in: Likewise.
2349
d0fb20be
JJ
23502008-03-13 Jakub Jelinek <jakub@redhat.com>
2351
2352 PR middle-end/35185
2353 * testsuite/libgomp.c++/pr35185.C: New test.
2354
7c8f7639
JJ
23552008-03-12 Jakub Jelinek <jakub@redhat.com>
2356
2357 PR middle-end/35549
2358 * testsuite/libgomp.c/pr35549.c: New test.
2359
251923f5
JJ
23602008-03-06 Jakub Jelinek <jakub@redhat.com>
2361
2362 * testsuite/libgomp.c/atomic-3.c: New test.
2363
f489fba1
FXC
23642008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2365
2366 PR fortran/33197
251923f5 2367 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
2368 .F08 file suffixes.
2369
a1b25e49
PG
23702008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2371
2372 PR libgomp/33131
2373 * configure.ac: Add ACX_HEADER_STRING.
2374 * env.c: Include strings.h.
2375 * aclocal.m4: Regenerate.
2376 * config.h.in: Regenerate.
2377 * configure: Regenerate.
2378 * Makefile.in: Regenerate.
2379 * testsuite/Makefile.in: Regenerate.
2380
6837b3b8
JJ
23812008-02-15 Jakub Jelinek <jakub@redhat.com>
2382
ac84c062
JJ
2383 PR middle-end/35196
2384 * testsuite/libgomp.c/pr35196.c: New test.
2385
6837b3b8
JJ
2386 PR middle-end/35130
2387 * testsuite/libgomp.fortran/pr35130.f90: New test.
2388 * testsuite/libgomp.c/pr35130.c: New test.
2389
c256730c
JJ
23902008-01-25 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR middle-end/33880
2393 * testsuite/libgomp.c/pr33880.c: New test.
2394 * testsuite/libgomp.fortran/pr33880.f90: New test.
2395
c8e95542 23962008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
2397
2398 * configure: Regenerate.
2399
0f3e711e
JJ
24002008-01-08 Jakub Jelinek <jakub@redhat.com>
2401
2402 * configure.ac: Move futex checking into ../config/futex.m4.
2403 * configure: Rebuilt.
2404 * aclocal.m4: Rebuilt.
2405 * Makefile.in: Rebuilt.
2406
2407 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2408 2007-10-15 ../config/tls.m4 change.
2409
5259c813
JJ
24102007-12-19 Jakub Jelinek <jakub@redhat.com>
2411
2412 PR c++/34513
2413 * testsuite/libgomp.c/pr34513.c: New test.
2414 * testsuite/libgomp.c++/pr34513.C: New test.
2415
ae8d8879
JH
24162007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2417
2418 PR target/32765
2419 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2420
2b4cf991
JJ
24212007-12-04 Jakub Jelinek <jakub@redhat.com>
2422
2423 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2424
d2dda7fe
JJ
24252007-12-03 Jakub Jelinek <jakub@redhat.com>
2426
2427 * testsuite/libgomp.c/private-1.c: New test.
2428
d683ec81
PB
24292007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2430 Paolo Bonzini <bonzini@gnu.org>
2431
2432 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2433 instead of 'VPATH ='.
2434 * Makefile.in: Regenerate.
2435
a7415017
MK
24362007-11-23 Matthias Klose <doko@ubuntu.com>
2437
2438 * configure.ac: Adjust makeinfo version check.
2439 * configure: Regenerate.
2440
78e47463
JJ
24412007-11-10 Jakub Jelinek <jakub@redhat.com>
2442
2443 PR fortran/34020
2444 * testsuite/libgomp.fortran/pr34020.f90: New test.
2445
239371f9
JJ
24462007-11-06 Jakub Jelinek <jakub@redhat.com>
2447
2448 PR c++/33894
2449 * testsuite/libgomp.c++/atomic-1.C: New test.
2450
98a5fa94
JJ
24512007-10-25 Jakub Jelinek <jakub@redhat.com>
2452
2453 PR libgomp/33275
2454 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2455 Make x and y integers rather than (implicit) reals. Add private (j)
2456 clause to the last omp parallel.
2457
3afcaaf4
MR
24582007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2459
2460 * configure: Regenerate following changes to ../config/tls.m4.
2461
bd69daef
JJ
24622007-09-28 Jakub Jelinek <jakub@redhat.com>
2463
2464 * testsuite/libgomp.fortran/stack.f90: New test.
2465
1d0bd356
DS
24662007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2467
2468 * config/mingw32/proc.c: New file.
2469
b3172cab
UB
24702007-09-05 Uros Bizjak <ubizjak@gmail.com>
2471
2472 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2473 (main): Use __get_cpuid to get i386 target fetaures.
2474 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2475 (main): Use __get_cpuid to get x86_64 target fetaures.
2476
6da17392
JH
24772007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2478
2479 PR target/32765
2480 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2481 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2482
e1c82219
JJ
24832007-07-12 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR fortran/32550
2486 * testsuite/libgomp.fortran/pr32550.f90: New test.
2487 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2488
12a27363
L
24892007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2490
2491 * aclocal.m4: Regenerated.
2492
5349080d
TB
24932007-07-05 Tobias Burnus <burnus@net-b.de>
2494
2495 PR fortran/32359
2496 * testsuite/libgomp.fortran/pr32359.f90: New.
2497
4f9c450c
JJ
24982007-07-02 Jakub Jelinek <jakub@redhat.com>
2499
2500 PR libgomp/32468
2501 * sections.c (GOMP_parallel_sections_start): Only decrease
2502 number of threads to COUNT if dyn_var is true.
2503 * testsuite/libgomp.c/pr32468.c: New test.
2504
28c67ed7
RO
25052007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2506
2507 PR libgomp/26308
2508 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2509
64964499
JJ
25102007-06-21 Jakub Jelinek <jakub@redhat.com>
2511
2512 PR middle-end/32362
2513 * testsuite/libgomp.c/pr32362-1.c: New test.
2514 * testsuite/libgomp.c/pr32362-2.c: New test.
2515 * testsuite/libgomp.c/pr32362-3.c: New test.
2516
46d8fbd1
JJ
25172007-06-07 Jakub Jelinek <jakub@redhat.com>
2518
2519 * team.c (gomp_team_start): Fix setting up thread_attr
2520 stack size.
2521
82a6cadf
PB
25222007-06-02 Paolo Bonzini <bonzini@gnu.org>
2523
2524 * configure: Regenerate.
2525
1cf3d07d
SE
25262007-05-23 Steve Ellcey <sje@cup.hp.com>
2527
2528 * Makefile.in: Regenerate.
2529 * configure: Regenerate.
2530 * aclocal.m4: Regenerate.
2531 * testsuite/Makefile.in: Regenerate.
2532
12aac30b
JJ
25332007-05-04 Jakub Jelinek <jakub@redhat.com>
2534
2535 * config/linux/proc.c: New file.
2536
f1028b02
JJ
2537 PR libgomp/28482
2538 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2539
06785a48
DF
25402007-04-19 Daniel Franke <franke.daniel@gmail.com>
2541
2542 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2543
b3b08ba0
MK
25442007-04-16 Matthias Klose <doko@debian.org>
2545
2546 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2547 flags if not building with -m64.
2548 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2549 flag for i?86-*-* targets, if current target matches -m64.
2550
6b2c5ce0
SE
25512007-04-14 Steve Ellcey <sje@cup.hp.com>
2552
2553 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2554 * Makefile.in: Regenerate.
2555
dd56fe7c
JDA
25562007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2557
2558 PR testsuite/31369
2559 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2560 ld_library_path.
2561 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2562
a0884cf0
JJ
25632007-04-04 Jakub Jelinek <jakub@redhat.com>
2564
2565 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2566 decls.
2567 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2568 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2569 (parse_affinity): New function.
2570 (initialize_env): Call it and gomp_init_affinity.
2571 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2572 create new pthread_attr_t and call gomp_init_thread_affinity
2573 on it for each thread before passing the attribute to pthread_create.
2574 * config/linux/affinity.c: New file.
2575 * config/posix/affinity.c: New file.
2576 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2577 * configure: Rebuilt.
2578 * config.h.in: Rebuilt.
2579 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2580 * Makefile.in: Rebuilt.
2581
1850744b
AT
25822007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2583
2584 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2585 *-*-darwin*.
2586 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2587 and use it if found.
2588
516f1ed8
UB
25892007-03-18 Uros Bizjak <ubizjak@gmail.com>
2590
2591 * testsuite/config/default.exp: New file.
2592 * testsuite/lib/libgomp.exp: New file.
2593 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2594 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2595 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2596 (libgomp_load): Remove.
2597 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2598 always_ld_library_path, not ld_library_path. Set additional_flags
2599 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2600 (target_compile): Do not call libgomp_init. Append lang_library_path
2601 and lang_link_flags to options.
2602 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2603 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2604 here.
2605 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2606 always_ld_library_path. Set LD_LIBRARY_PATH here.
2607 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2608 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2609 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2610 CX8 flag.
2611 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2612 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2613 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2614 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2615 * testsuite/libgomp.c/atomic-10.c: Ditto.
2616
2ada56f5
JJ
26172007-03-21 Jakub Jelinek <jakub@redhat.com>
2618
2619 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2620 dg-final cleanup-modules line.
2621 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2622 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2623 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2624 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2625 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2626 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2627 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2628
f210f1cd
AS
26292007-03-18 Andreas Schwab <schwab@suse.de>
2630
2631 * acinclude.m4: Adjust regular expression for ld version
2632 extraction.
2633 * configure: Regenerate.
2634
c4dc950d
BM
26352007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2636
2637 * Makefile.am: Add install-pdf target as copied from
2638 automake v1.10 rules.
2639 * Makefile.in: Regenerate
2640
e02a048f
JJ
26412007-02-07 Jakub Jelinek <jakub@redhat.com>
2642
78e075d4
JJ
2643 PR libgomp/28486
2644 * configure: Regenerate.
2645
e02a048f
JJ
2646 PR c++/30703
2647 * testsuite/libgomp.c++/pr30703.C: New test.
2648
60def7ed
JJ
26492007-02-02 Jakub Jelinek <jakub@redhat.com>
2650
2651 Revert:
2652 2006-07-05 Eric Christopher <echristo@apple.com>
2653 * configure.ac: Depend addition of -pthread on host OS.
2654 * configure: Regenerate.
2655
f1b0882e
RW
26562007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2657
2658 * libgomp.texi: Fix spacing after abbreviations.
2659
748b9d7c
DF
26602007-01-31 Daniel Franke <franke.daniel@gmail.com>
2661
2662 PR libgomp/30546
2663 * configure.ac: Add check for makeinfo
2664 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2665 if an appropiate version of makeinfo is found.
2666 * aclocal.m4: Regenerated.
2667 * configure: Regenerated.
2668 * Makefile.in: Regenerated.
2669 * testsuite/Makefile.in: Regenerated.
2670
14734fc7
DF
26712007-01-29 Daniel Franke <franke.daniel@gmail.com>
2672
2673 PR libgomp/30540
2674 * libgomp.texi: More about implementation-dependent settings.
2675
7befd5d2
TB
26762007-01-26 Tobias Burnus <burnus@net-b.de>
2677
2678 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2679
4288fea2
JJ
26802007-01-24 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR middle-end/30494
2683 * testsuite/libgomp.c/pr30494.c: New test.
2684
627ab4b8
TT
26852007-01-15 Tom Tromey <tromey@redhat.com>
2686
2687 * configure: Rebuilt.
2688 * configure.ac: Fixed comment.
2689
7c2b7f45
DF
26902007-01-14 Daniel Franke <franke.daniel@gmail.com>
2691
2692 * libgomp.texi: Document implementation specific default values of
2693 environment variables.
2694
3721b9e1
DF
26952006-12-21 Daniel Franke <franke.daniel@gmail.com>
2696
2697 PR libgomp/28209
2698 * libgomp.texi: New file.
2699 * configure.ac: Add --enable-generated-files-in-srcdir option.
2700 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2701 files to srcdir.
2702 * Makefile.in: Regenerated.
2703 * config.h.in: Regenerated.
2704 * testsuite/Makefile.in: Regenerated.
2705 * NOTES: Removed.
2706
62bd6216
DF
27072006-12-04 Daniel Franke <franke.daniel@gmail.com>
2708
2709 PR libgomp/29949
2710 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2711
aad741f4
EB
27122006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2713
2714 * configure: Regenerate.
2715
22568cc6
JJ
27162006-12-04 Jakub Jelinek <jakub@redhat.com>
2717
2718 PR libgomp/29947
2719 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2720 start if there shouldn't be any loop iterations.
2721 (gomp_loop_ordered_static_start): Remove start == end test.
2722 * testsuite/libgomp.c/pr29947-1.c: New test.
2723 * testsuite/libgomp.c/pr29947-2.c: New test.
2724
a9690009
EB
27252006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2726
2727 * configure.tgt: Force initial-exec TLS model on Linux only.
2728
597c25e6
DJ
27292006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2730
2731 * configure: Regenerated.
2732
6acf0b38
UB
27332006-11-09 Uros Bizjak <ubizjak@gmail.com>
2734
2735 * env.c (parse_schedule): Reject out of range values.
2736 (parse_unsigned_long): Reject out of range, negative or zero values.
2737
a7a53ca5
JJ
27382006-10-29 Jakub Jelinek <jakub@redhat.com>
2739
2740 PR fortran/29629
2741 * testsuite/libgomp.fortran/pr29629.f90: New test.
2742
6d4d216a
EB
27432006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2744
2745 PR libgomp/29494
2746 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2747 * config/posix95: New directory.
2748 * config/posix95/omp-lock.h: New file.
2749 * config/posix95/lock.c: Likewise.
2750
5b043f08
GK
27512006-10-14 Geoffrey Keating <geoffk@apple.com>
2752
2753 * aclocal.m4: Regenerate.
2754 * configure: Regenerate.
2755
b50019f0
DS
27562006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2757
2758 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2759 '<' to '<='.
2760
8887708e
DS
27612006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2762
2763 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2764 test.
2765 * configure: Regenerate.
2766 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2767
9b9e4cd6
JJ
27682006-09-26 Jakub Jelinek <jakub@redhat.com>
2769
a70ad3bb
JJ
2770 PR middle-end/25261
2771 PR middle-end/28790
2772 * testsuite/libgomp.c/nestedfn-4.c: New test.
2773 * testsuite/libgomp.c/nestedfn-5.c: New test.
2774 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2775
9b9e4cd6
JJ
2776 PR fortran/29097
2777 * testsuite/libgomp.fortran/condinc1.f: New test.
2778 * testsuite/libgomp.fortran/condinc2.f: New test.
2779 * testsuite/libgomp.fortran/condinc3.f90: New test.
2780 * testsuite/libgomp.fortran/condinc4.f90: New test.
2781 * testsuite/libgomp.fortran/condinc1.inc: New file.
2782
2fb31455
TT
27832006-09-18 Tom Tromey <tromey@redhat.com>
2784
2785 * configure: Rebuilt.
2786
c663e301
JM
27872006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2788
2789 PR c/28768
2790 PR preprocessor/14634
2791 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2792 to AC_DEFINE.
2793 * configure: Regenerate.
2794
38371be9
SK
27952006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2796
2797 * testsuite/libgomp.fortran/reduction3.f90: Change
2798 -2147483648 to -huge(i)-1 to avoid overflow.
2799 * testsuite/libgomp.fortran/reduction4.f90: Change
2800 Z'ffffffff' to not(0) to avoid overflow.
2801
571d5ac5
JM
28022006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2803
2804 PR libgomp/25938
2805 * Makefile.am (libsubincludedir): New.
2806 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2807 * Makefile.in: Regenerate.
2808
89b3e3cd
JJ
28092006-08-17 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR libgomp/28725
2812 * env.c: Include ctype.h.
2813 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2814 leading and/or trailing whitespace and compare strings case
2815 insensitively.
2816
742fae05
JJ
28172006-07-16 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR fortran/28390
2820 * testsuite/libgomp.fortran/pr28390.f: New test.
2821
a1daed2d
EC
28222006-07-05 Eric Christopher <echristo@apple.com>
2823
2824 * configure.ac: Depend addition of -pthread on host OS.
2825 * configure: Regenerate.
2826
5d7b5199
JJ
28272006-06-21 Jakub Jelinek <jakub@redhat.com>
2828
2829 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2830 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2831 defined.
2832
fe5568e9
JJ
28332006-06-20 Jakub Jelinek <jakub@redhat.com>
2834
2835 PR libgomp/26175
2836 PR libgomp/26477
2837 * configure.ac: If neither --enable-linux-futex nor
2838 --disable-linux-futex is passed, determine the default by checking
2839 for compiling and/or running against NPTL. With --enable-linux-futex,
2840 check if SYS_gettid and SYS_futex are defined.
2841 * configure: Rebuilt.
2842
c3b11a40
RH
28432006-06-14 Richard Henderson <rth@redhat.com>
2844
2845 PR libgomp/28008
2846 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2847 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2848
d0d1b24d
RH
28492006-06-09 Richard Henderson <rth@redhat.com>
2850
2851 * env.c (gomp_nthreads_var): Change to unsigned long.
2852 (gomp_run_sched_chunk): Likewise.
2853 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2854 (initialize_env): Initialize gomp_thread_attr.
2855 * libgomp.h (gomp_nthreads_var): Update decl.
2856 (gomp_run_sched_chunk): Likewise.
2857 (gomp_thread_attr): Declare.
2858 * team.c (gomp_thread_attr): Export.
2859 (initialize_team): Don't initialize it.
2860
cd75853e
JJ
28612006-06-09 Jakub Jelinek <jakub@redhat.com>
2862
2863 PR fortran/27916
2864 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2865 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2866
33815e0c
FXC
28672006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2868
2869 * config/mingw32/time.c: New file.
2870 * configure.tgt: Use it.
2871
6667de0d
CD
28722006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2873
2874 * Makefile.am: Add install-html target. Add install-html to .PHONY
2875 * Makefile.in: Regenerate.
2876
e962c46b
JDA
28772006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2878
2879 PR libgomp/27612
2880 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2881 * testsuite/libgomp.c/critical-1.c: Likewise.
2882 * testsuite/libgomp.c/loop-1.c: Likewise.
2883 * testsuite/libgomp.c/loop-2.c: Likewise.
2884 * testsuite/libgomp.c/single-1.c: Likewise.
2885 * testsuite/libgomp.c/ordered-1.c: Likewise.
2886 * testsuite/libgomp.c/ordered-2.c: Likewise.
2887
eeb1d9e0
JJ
28882006-05-15 Jakub Jelinek <jakub@redhat.com>
2889
2890 PR middle-end/27416
2891 * libgomp.fortran/pr27416-1.f90: New test.
2892
693d710f
JJ
28932006-05-03 Jakub Jelinek <jakub@redhat.com>
2894
2895 PR fortran/27395
2896 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2897 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2898
8ca5b2a2
JJ
28992006-05-02 Jakub Jelinek <jakub@redhat.com>
2900
2901 PR c++/26943
2902 * testsuite/libgomp.c/pr26943-1.c: New test.
2903 * testsuite/libgomp.c/pr26943-2.c: New test.
2904 * testsuite/libgomp.c/pr26943-3.c: New test.
2905 * testsuite/libgomp.c/pr26943-4.c: New test.
2906 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2907 * testsuite/libgomp.c++/pr26943.C: New test.
2908
077b0dfb
JJ
29092006-05-02 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR middle-end/27337
2912 * testsuite/libgomp.c++/pr27337.C: New test.
2913
91b6c26d
JJ
29142006-04-26 Jakub Jelinek <jakub@redhat.com>
2915
2916 PR c/26171
2917 * testsuite/libgomp.c/pr26171.c: New test.
2918
60e1758f
RH
29192006-04-25 Richard Henderson <rth@redhat.com>
2920
2921 PR libgomp/25865
2922 * configure.ac: Use GCC_CHECK_TLS.
2923 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2924 * Makefile.in, aclocal.m4, configure: Regenerate.
2925
615baed7
MK
29262006-04-10 Matthias Klose <doko@debian.org>
2927
2928 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2929 directory names containing underscores.
2930
fae2b46b
JJ
29312006-03-21 Jakub Jelinek <jakub@redhat.com>
2932
2933 PR c++/26691
2934 * testsuite/libgomp.c++/pr26691.C: New test.
2935
11a5f608
JJ
29362006-03-13 Jakub Jelinek <jakub@redhat.com>
2937
2938 * testsuite/libgomp.fortran/retval2.f90: New test.
2939
1799e5d5
RH
29402006-03-09 Diego Novillo <dnovillo@redhat.com>
2941
2942 * testsuite/libgomp.c++: New directory.
2943
d349482e
AT
29442006-02-25 Shantonu Sen <ssen@opendarwin.org>
2945
2946 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2947 * config/posix/sem.c: Implement the above.
2948
29492006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2950
2951 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2952 define HAVE_BROKEN_POSIX_SEMAPHORES.
2953 * configure: Rebuilt.
2954 * config.h.in: Rebuilt.
2955
124452c9
FXC
29562006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2957
2958 PR bootstrap/26161
2959 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2960 for the other pthread check.
2961 * configure: Regenerate.
2962 * config.h.in: Regenerate.
2963
dd8d6dfe
JJ
29642006-02-15 Jakub Jelinek <jakub@redhat.com>
2965
2966 PR libgomp/25938
2967 PR libgomp/25984
2968 * Makefile.am (fincludedir): New variable.
2969 (nodist_include_HEADERS): Remove Fortran files.
2970 (nodist_finclude_HEADERS): New variable.
2971 * Makefile.in: Regenerated.
2972
6c7a4dfd
JJ
29732006-02-13 Jakub Jelinek <jakub@redhat.com>
2974
2975 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2976 Remove tests for returning assumed character length arrays.
2977
5142e08b
RS
29782006-02-12 Roger Sayle <roger@eyesopen.com>
2979 John David Anglin <dave@hiauly1.hia.nrc.ca>
2980
2981 PR libgomp/25936
2982 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 2983
5821fba8
UW
29842006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2985
2986 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2987
cb2bbc67
EB
29882006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2989
2990 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2991 part of LD_LIBRARY_PATH manually.
2992
f05ee80c
L
29932006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2994
2995 PR libgomp/25852
2996 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2997 libgomp_init.
2998
03b8fe49
PB
29992005-01-25 Paolo Bonzini <bonzini@gnu.org>
3000
3001 PR libgomp/25884
f05ee80c
L
3002 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3003 * configure.ac (PERL): Don't set.
3004 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3005 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3006 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3007 * omp.h.in: Wrap the new configure substitutions with @ characters.
3008 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3009 * aclocal.m4, configure, Makefile.in: Regenerate.
3010 * mkomp_h.pl: Delete.
03b8fe49 3011
18cbfd85
PB
30122005-01-24 Paolo Bonzini <bonzini@gnu.org>
3013
3014 PR libgomp/25259
3015 * configure.ac: Use GCC_HEADER_STDINT.
3016 * libgomp.h: Include gstdint.h.
3017 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3018 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3019
c41303c6
RH
30202006-01-24 Richard Henderson <rth@redhat.com>
3021
3022 PR libgomp/25942
3023 * configure.ac: Add AM_MAINTAINER_MODE.
3024 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3025
149b9553
DN
30262006-01-24 Diego Novillo <dnovillo@redhat.com>
3027
3028 * Makefile.in: Regenerate.
3029 * testsuite/Makefile.in: Regenerate.
3030 * aclocal.m4: Regenerate.
3031
192a50ad
AT
30322006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3033
3034 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3035 Solaris.
3036 * configure.ac: Add check for loadavg.h.
3037 (link_gomp): Adjust comment.
3038 * configure: Regenerate.
3039 * config.h.in: Regenerate.
3040
a55b8e18
SE
30412006-01-21 Steve Ellcey <sje@cup.hp.com>
3042
3043 PR libgomp/25877
3044 * configure.ac: Remove check for alloca.h.
3045 * configure: Regenerate.
3046 * config.h.in: Regenerate.
3047 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3048 * team.c: Remove use of alloca.h.
3049 Call gomp_alloca instead of alloca.
3050
692eeb34
SE
30512006-01-20 Steve Ellcey <sje@cup.hp.com>
3052
3053 PR libgomp/25877
3054 * team.c: Add include of alloca.h.
3055 * configure.ac: Add check for alloca.h.
3056 * configure: Regenerate.
3057 * config.h.in: Regenerate.
3058
953ff289
DN
30592006-01-17 Jakub Jelinek <jakub@redhat.com>
3060
3061 PR fortran/25219
3062 * testsuite/libgomp.fortran/pr25219.f90: New test.
3063
30642005-12-05 Uros Bizjak <uros@kss-loka.si>
3065
3066 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3067 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3068 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3069 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3070 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3071 testsuite/libgomp.fortran/threadprivate1.f90,
3072 testsuite/libgomp.fortran/threadprivate2.f90,
3073 testsuite/libgomp.fortran/threadprivate3.f90,
3074 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3075 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3076 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3077 effective-target to TLS runtime.
3078
3079 * testsuite/libgomp.fortran/pr25162.f: Require
3080 effective-target TLS runtime.
3081
30822005-12-01 Jakub Jelinek <jakub@redhat.com>
3083
3084 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3085 * testsuite/libgomp.c/nestedfn-3.c: New test.
3086
30872005-11-30 Jakub Jelinek <jakub@redhat.com>
3088
3089 PR fortran/25162
3090 * testsuite/libgomp.fortran/pr25162.f: New test.
3091
30922005-11-28 Jakub Jelinek <jakub@redhat.com>
3093
3094 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3095 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3096
30972005-11-25 Jakub Jelinek <jakub@redhat.com>
3098
3099 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3100 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3101 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3102 single.c, team.c, work.c, config/linux/alpha/futex.h,
3103 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3104 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3105 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3106 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3107 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3108 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3109 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3110 FSF address.
3111
31122005-11-18 Jakub Jelinek <jakub@redhat.com>
3113
3114 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3115 to nodist_noinst_HEADERS.
3116 * Makefile.in: Rebuilt.
3117
3118 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3119 add integer count field.
3120 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3121 omp_nest_lock_t type change.
3122 (omp_init_nest_lock): Likewise. Initialize count to 0.
3123 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3124 Increment count.
3125 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3126 Decrement count.
3127 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3128 Increment count if successful and return the new nesting level.
3129 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3130 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3131 * testsuite/libgomp.c/lib-1.c: New test.
3132 * testsuite/libgomp.fortran/lib1.f90: New test.
3133 * testsuite/libgomp.fortran/lib2.f: New test.
3134 * testsuite/libgomp.fortran/lib3.f: New test.
3135
31362005-11-17 Richard Henderson <rth@redhat.com>
3137
3138 PR 24845
3139 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3140 * configure.ac (link_gomp): New. Substitute it.
3141 (AC_CONFIG_FILES): Add libgomp.spec.
3142 * libgomp.spec.in: New file.
3143 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3144 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3145
31462005-11-18 Jakub Jelinek <jakub@redhat.com>
3147
3148 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3149 reduction(-:var) behaving the same as reduction(+:var).
3150 * testsuite/libgomp.c/reduction-4.c: New test.
3151
31522005-11-15 Uros Bizjak <uros@kss-loka.si>
3153
3154 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3155 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3156 testsuite/libgomp.c/copyin-3.c,
3157 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3158 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3159 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3160 testsuite/libgomp.c++/pr24455.C,
3161 testsuite/libgomp.fortran/threadprivate1.f90,
3162 testsuite/libgomp.fortran/threadprivate2.f90,
3163 testsuite/libgomp.fortran/threadprivate3.f90,
3164 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3165 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3166 testsuite/libgomp.fortran/omp_parse3.f90: Require
3167 effective-target TLS.
3168
31692005-11-14 Diego Novillo <dnovillo@redhat.com>
3170
3171 * HEADER: Remove.
3172
31732005-11-13 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR libgomp/24797
3176 * team.c (initialize_team): Pass NULL rather than free as
3177 pthread_key_create destructor. Initialize thread specific data
3178 pointer in initial thread to a static local variable rather than
3179 malloced memory.
3180
31812005-11-11 Uros Bizjak <uros@kss-loka.si>
3182
3183 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3184 its location to ld_library_path.
3185
31862005-11-10 Diego Novillo <dnovillo@redhat.com>
3187
3188 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3189
31902005-11-10 Diego Novillo <dnovillo@redhat.com>
3191
3192 * testsuite/libgomp.c: Rename from libgomp.dg.
3193
31942005-11-09 Diego Novillo <dnovillo@redhat.com>
3195
3196 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3197 threadprivate variable 'i'.
3198
31992005-11-09 Jakub Jelinek <jakub@redhat.com>
3200
3201 * config/linux/s390/futex.h: New file.
3202 * configure.tgt: Use it.
3203
3204 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3205 before the parallel.
3206
32072005-11-08 Jakub Jelinek <jakub@redhat.com>
3208
3209 PR c++/24734
3210 * testsuite/libgomp.c++/master-1.C: New test.
3211
32122005-11-07 Jakub Jelinek <jakub@redhat.com>
3213
3214 * testsuite/libgomp.dg/copyin-3.c: New test.
3215
32162005-11-07 Jakub Jelinek <jakub@redhat.com>
3217
3218 * testsuite/libgomp.fortran/retval1.f90: New test.
3219 * testsuite/libgomp.fortran/vla7.f90: New test.
3220
32212005-11-06 Jakub Jelinek <jakub@redhat.com>
3222
3223 * testsuite/libgomp.fortran/vla2.f90: New test.
3224 * testsuite/libgomp.fortran/vla3.f90: New test.
3225 * testsuite/libgomp.fortran/vla4.f90: New test.
3226 * testsuite/libgomp.fortran/vla5.f90: New test.
3227 * testsuite/libgomp.fortran/vla6.f90: New test.
3228
32292005-11-01 Jakub Jelinek <jakub@redhat.com>
3230
3231 * config/linux/sparc/futex.h: New file.
3232 * configure.tgt: Use it.
3233 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3234
3235 * critical.c: Include stdlib.h.
3236 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3237 ignoring return value.
3238 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3239 LIBGOMP_CHECK_SYNC_BUILTINS check.
3240 * configure: Rebuilt.
3241
32422005-10-31 Jakub Jelinek <jakub@redhat.com>
3243
3244 * testsuite/libgomp.fortran/vla1.f90: New test.
3245
32462005-10-31 Richard Henderson <rth@redhat.com>
3247
3248 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3249 setting 's' in different threads.
3250
32512005-10-31 Jakub Jelinek <jakub@redhat.com>
3252
3253 * libgomp.h (attribute_hidden, ialias): Define.
3254 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3255 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3256 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3257 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3258 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3259 omp_test_lock, omp_test_nest_lock): Likewise.
3260 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3261 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3262 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3263 omp_test_lock, omp_test_nest_lock): Likewise.
3264 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3265 omp_get_dynamic, omp_get_nested): Likewise.
3266 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3267 omp_get_thread_num, omp_in_parallel): Likewise.
3268 * fortran.c (ialias_redirect): Define.
3269 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3270 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3271 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3272 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3273 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3274 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3275 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3276 omp_get_wtime): Add ialias_redirect.
3277
32782005-10-30 Jakub Jelinek <jakub@redhat.com>
3279
3280 * fortran.c: Include stdlib.h.
3281
32822005-10-29 Jakub Jelinek <jakub@redhat.com>
3283
3284 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3285 * Makefile.in: Regenerated.
3286
32872005-10-28 Jakub Jelinek <jakub@redhat.com>
3288
3289 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3290 * libgomp_f.h.in (omp_check_defines): New function.
3291 * env.c: Include libgomp_f.h.
3292 (initialize_env): Call omp_check_defines.
3293
3294 * testsuite/libgomp.dg/copyin-2.c: New test.
3295 * testsuite/libgomp.c++/copyin-2.C: New test.
3296 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3297
3298 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3299 * testsuite/libgomp.fortran/sharing2.f90: New test.
3300
3301 * testsuite/libgomp.dg/copyin-1.c: New test.
3302 * testsuite/libgomp.c++/copyin-1.C: New test.
3303
33042005-10-26 Jakub Jelinek <jakub@redhat.com>
3305
3306 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3307
3308 * testsuite/libgomp.fortran/workshare1.f90: New test.
3309
3310 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3311 only test.
3312 * libgomp.fortran/sharing1.f90: New test.
3313
33142005-10-24 Jakub Jelinek <jakub@redhat.com>
3315
3316 PR c++/24502
3317 * testsuite/libgomp.c++/loop-7.C: New test.
3318
3319 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3320
3321 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3322 * testsuite/libgomp.fortran/reduction6.f90: New test.
3323 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3324
33252005-10-23 Richard Henderson <rth@redhat.com>
3326
3327 * testsuite/libgomp.c++/ctor-1.C: New.
3328 * testsuite/libgomp.c++/ctor-2.C: New.
3329 * testsuite/libgomp.c++/ctor-3.C: New.
3330 * testsuite/libgomp.c++/ctor-4.C: New.
3331 * testsuite/libgomp.c++/ctor-5.C: New.
3332 * testsuite/libgomp.c++/ctor-6.C: New.
3333 * testsuite/libgomp.c++/ctor-7.C: New.
3334 * testsuite/libgomp.c++/ctor-8.C: New.
3335 * testsuite/libgomp.c++/ctor-9.C: New.
3336
33372005-10-21 Diego Novillo <dnovillo@redhat.com>
3338
3339 PR 24455
3340 * testsuite/libgomp.c++/pr24455-1.C: New test.
3341 * testsuite/libgomp.c++/pr24455.C: New test.
3342 * testsuite/libgomp.dg/pr24455-1.c: New test.
3343 * testsuite/libgomp.dg/pr24455.c: New test.
3344
33452005-10-20 Richard Henderson <rth@redhat.com>
3346
3347 * testsuite/libgomp.c++/loop-6.C: New.
3348 * testsuite/libgomp.dg/loop-3.c: New.
3349
33502005-10-20 Jakub Jelinek <jakub@redhat.com>
3351
3352 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3353 explicitly private.
3354 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3355 explicitly shared.
3356
33572005-10-19 Diego Novillo <dnovillo@redhat.com>
3358
3359 * testsuite/libgomp.fortran/jacobi.f: New test.
3360
33612005-10-19 Richard Henderson <rth@redhat.com>
3362
3363 * configure.tgt (i?86-linux): Default to with_arch instead of
3364 CFLAGS. Add -mtune to match target_cpu.
3365 (x86_64-linux): Tune to i686.
3366
3367 * fortran.c (omp_test_nest_lock_): Fix typo.
3368
33692005-10-19 Jakub Jelinek <jakub@redhat.com>
3370
3371 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3372 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3373 * testsuite/libgomp.dg/ordered-3.c: New test.
3374
3375 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3376 Remove volatile keyword.
3377
3378 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3379 in COMMON block to avoid warnings on 64-bit targets.
3380
33812005-10-18 Diego Novillo <dnovillo@redhat.com>
3382
3383 * testsuite/libgomp.dg/shared-3.c: New test.
3384
33852005-10-18 Jakub Jelinek <jakub@redhat.com>
3386
3387 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3388 * testsuite/libgomp.fortran/reduction5.f90: New test.
3389
33902005-10-18 Jakub Jelinek <jakub@redhat.com>
3391
3392 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3393 dg-options.
3394 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3395 flush loop now that __sync_synchronize has proper memory barrier.
3396 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3397 Add -ffixed-form to dg-options.
3398
33992005-10-17 Diego Novillo <dnovillo@redhat.com>
3400
3401 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3402 from subdirectories.
3403 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3404 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3405 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3406 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3407 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3408 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3409 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3410 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3411 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3412 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3413 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3414 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3415 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3416 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3417 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3418 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3419 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3420 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3421 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3422 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3423 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3424 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3425 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3426 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3427 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3428
34292005-10-17 Jakub Jelinek <jakub@redhat.com>
3430
3431 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3432 lang_library_path exists. Use find instead of glob to gather tests.
3433 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3434
34352005-10-17 Diego Novillo <dnovillo@redhat.com>
3436
3437 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3438 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3439 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3440 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3441 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3442 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3443 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3444 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3445 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3446 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3447 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3448 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3449 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3450
34512005-10-15 Jakub Jelinek <jakub@redhat.com>
3452
3453 * testsuite/libgomp.dg/vla-1.c: New test.
3454
3455 * testsuite/libgomp.fortran/reference2.f90: New test.
3456
3457 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3458 declaration of omp_get_thread_num.
3459 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3460 use omp_lib.
3461
3462 * testsuite/libgomp.fortran/reduction1.f90: New test.
3463 * testsuite/libgomp.fortran/reduction2.f90: New test.
3464 * testsuite/libgomp.fortran/reduction3.f90: New test.
3465 * testsuite/libgomp.fortran/reduction4.f90: New test.
3466
34672005-10-13 Richard Henderson <rth@redhat.com>
3468
3469 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3470 * Makefile.in: Regenerate.
3471 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3472 * libgomp.h: Include bar.h.
3473 (struct gomp_barrier): Remove.
3474 (struct gomp_team): Add barrier. Replace master_barrier with
3475 master_release. Replace threads with ordered_release.
3476 (struct gomp_thread): Replace barrier with release.
3477 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3478 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3479 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3480 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3481 (GOMP_single_copy_end): Likewise.
3482 * team.c (gomp_threads_dock): New.
3483 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3484 (gomp_thread_start): Use gomp_barrier_wait.
3485 (new_team, free_team): Update for gomp_team changes.
3486 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3487 (gomp_team_end): Use gomp_barrier_wait.
3488 (initialize_team): Update for gomp_thread changes.
3489 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3490 (gomp_work_share_end_nowait): Use atomic ops when available.
3491 * config/linux/bar.c, config/linux/bar.h: New files.
3492 * config/posix/bar.c, config/posix/bar.h: New files.
3493
34942005-10-13 Jakub Jelinek <jakub@redhat.com>
3495
3496 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3497 * testsuite/libgomp.dg/single-2.c: New test.
3498
3499 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3500 lang_link_flags): Unset, so that they aren't inherited from previously
3501 sourced *.exp.
3502
3503 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3504
35052005-10-12 Richard Henderson <rth@redhat.com>
3506
3507 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3508 (libgomp_init): Use lang_test_file, lang_library_path, and
3509 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3510
3511 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3512 (lang_test_file, lang_link_flags): New.
3513 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3514
3515 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3516 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3517 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3518 testsuite/libgomp.c++/parallel-1.C,
3519 testsuite/libgomp.c++/reduction-1.C,
3520 testsuite/libgomp.c++/reduction-2.C,
3521 testsuite/libgomp.c++/reduction-3.C,
3522 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3523 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3524 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3525 New files, largely cribbed from the C testsuite.
3526
35272005-10-12 Jakub Jelinek <jakub@redhat.com>
3528
3529 * testsuite/libgomp.fortran/character1.f90: New test.
3530 * testsuite/libgomp.fortran/character2.f90: New test.
3531
3532 * testsuite/libgomp.dg/nested-1.c: New test.
3533 * testsuite/libgomp.dg/nested-2.c: New test.
3534 * testsuite/libgomp.fortran/do1.f90: New test.
3535 * testsuite/libgomp.fortran/do2.f90: New test.
3536
3537 * testsuite/libgomp.fortran/reference1.f90: New test.
3538
35392005-10-11 Jakub Jelinek <jakub@redhat.com>
3540
3541 * testsuite/libgomp.dg/reduction-1.c: New test.
3542 * testsuite/libgomp.dg/reduction-2.c: New test.
3543 * testsuite/libgomp.dg/reduction-3.c: New test.
3544
35452005-10-10 Jakub Jelinek <jakub@redhat.com>
3546
3547 * testsuite/libgomp.dg/atomic-1.c: New test.
3548 * testsuite/libgomp.dg/atomic-2.c: New test.
3549
35502005-10-09 Richard Henderson <rth@redhat.com>
3551
3552 * critical.c (atomic_lock): New.
3553 (initialize_critical): Initialize it.
3554 (GOMP_atomic_start, GOMP_atomic_end): New.
3555 * libgomp.map: Export them.
3556 * libgomp_g.h: Declare them.
3557
3558 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3559
35602005-10-02 Richard Henderson <rth@redhat.com>
3561
3562 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3563 to XCFLAGS instead of CFLAGS.
3564
35652005-09-30 Richard Henderson <rth@redhat.com>
3566
3567 * configure.ac: Determine whether -pthread or -lpthread is needed.
3568 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3569 * Makefine.in, configure: Rebuild.
3570
35712005-09-28 Richard Henderson <rth@redhat.com>
3572
3573 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3574 * testsuite/libgomp.dg/omp-single-3.c: New test.
3575
35762005-09-28 Diego Novillo <dnovillo@redhat.com>
3577
3578 * testsuite/libgomp.dg/omp-single-2.c: New test.
3579 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3580
35812005-09-27 Richard Henderson <rth@redhat.com>
3582
3583 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3584 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3585
35862005-09-27 Jakub Jelinek <jakub@redhat.com>
3587
3588 * testsuite/libgomp.dg/omp-loop03.c: New test.
3589
35902005-09-27 Diego Novillo <dnovillo@redhat.com>
3591
3592 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3593
35942005-09-27 Diego Novillo <dnovillo@redhat.com>
3595
3596 * testsuite/libgomp.dg/omp-single-1.c: New test.
3597 * testsuite/libgomp.dg/shared-1.c: Return 0.
3598 Add prototype for abort.
3599 * testsuite/libgomp.dg/shared-2.c: Likewise.
3600
36012005-09-26 Jakub Jelinek <jakub@redhat.com>
3602
3603 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3604 constructs.
3605
36062005-09-26 Diego Novillo <dnovillo@redhat.com>
3607
3608 * testsuite/libgomp.dg/shared-1.c: New test.
3609 * testsuite/libgomp.dg/shared-2.c: New test.
3610
36112005-09-24 Richard Henderson <rth@redhat.com>
3612
3613 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3614
36152005-09-24 Richard Henderson <rth@redhat.com>
3616
3617 * iter.c (gomp_iter_static_next): Round up when computing number
3618 of iterations. Don't bother distributing a remainder equally.
3619
3620 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3621 Don't call srand. Zero b before testing.
3622 (main): New.
3623
36242005-09-24 Jakub Jelinek <jakub@redhat.com>
3625
3626 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3627 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3628
36292005-09-23 Jakub Jelinek <jakub@redhat.com>
3630
3631 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3632 without !$omp end do, followed immediately by subroutine end.
3633
36342005-09-23 Diego Novillo <dnovillo@redhat.com>
3635
3636 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3637
36382005-09-22 Richard Henderson <rth@redhat.com>
3639
3640 * critical.c (GOMP_critical_name_start): Change argument to void**.
3641 Reuse the pointer space if the mutex fits.
3642 (GOMP_critical_name_end): Likewise.
3643 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3644 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3645 (GOMP_critical_name_end): Likewise.
3646 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3647 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3648
36492005-09-20 Richard Henderson <rth@redhat.com>
3650
3651 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3652 (create_lock_lock): New.
3653 (initialize_critical): Initialize it.
3654 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3655 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3656
36572005-09-20 Diego Novillo <dnovillo@redhat.com>
3658
3659 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3660
36612005-09-20 Diego Novillo <dnovillo@redhat.com>
3662
3663 * testsuite/libgomp.dg/omp-loop01.c: New test.
3664 * testsuite/libgomp.dg/omp-loop02.c: New test.
3665
36662005-09-20 Jakub Jelinek <jakub@redhat.com>
3667
3668 * configure.ac (AC_PROG_FC): Add.
3669 (USE_FORTRAN): New automake conditional.
3670 * configure: Rebuilt.
3671 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3672 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3673 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3674 Add rules to build them.
3675 * Makefile.in: Rebuilt.
3676 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3677 OMP_NEST_LOCK_KIND.
3678 * libgomp.map: Add Fortran wrappers.
3679 * libgomp_f.h.in: New file.
3680 * omp_lib.h.in: New file.
3681 * omp_lib.f90.in: New file.
3682 * fortran.c: New file.
3683 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3684 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3685 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3686 libgfortran has been built.
3687 * testsuite/libgomp.fortran/fortran.exp: New file.
3688 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3689 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3690 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3691 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3692 * testsuite/libgomp.fortran/omp_hello.f: New test.
3693 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3694 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3695 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3696 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3697 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3698 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3699 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3700 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3701
37022005-08-30 Richard Henderson <rth@redhat.com>
3703
3704 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3705 function for when aliases are not usable.
3706 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3707 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3708 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3709 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3710 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3711 GOMP_loop_ordered_guided_next): Likewise.
3712 * ordered.c (GOMP_ordered_start): Likewise.
3713
37142005-08-01 Diego Novillo <dnovillo@redhat.com>
3715
3716 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3717 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3718 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3719 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3720 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3721 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3722 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3723 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3724 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3725
37262005-07-07 Eric Christopher <echristo@redhat.com>
3727 Diego Novillo <dnovillo@redhat.com>
3728
3729 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3730 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3731 up code.
3732 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3733 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3734 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3735 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3736 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3737 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3738 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3739
37402005-06-13 Diego Novillo <dnovillo@redhat.com>
3741
3742 * TOPLEVEL.patch: Remove.
3743
37442005-05-16 Richard Henderson <rth@redhat.com>
3745
3746 * configure.ac: Test for clock_gettime.
3747 * config.h.in, configure: Rebuild.
3748 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3749 (omp_get_wtime): Use clock_gettime if available.
3750 (omp_get_wtick): Use clock_getres if available.
3751
37522005-05-11 Richard Henderson <rth@redhat.com>
3753
3754 * config/linux/ia64/futex.h: New file.
3755 * configure.tgt: Use it.
3756
3757 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3758
37592005-05-07 Richard Henderson <rth@redhat.com>
3760
3761 * config/linux/powerpc/futex.h: New file.
3762 * configure.tgt: Use it.
3763
3764 * config/linux/i486/futex.h: Merge ...
3765 * config/linux/x86_64/futex.h: ... into ...
3766 * config/linux/x86/futex.h: ... here.
3767 * configure.tgt: Update to match.
3768
37692005-05-06 Richard Henderson <rth@redhat.com>
3770
3771 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3772 * config/linux/i486/futex.h: Likewise.
3773 * config/linux/x86_64/futex.h: Likewise.
3774
3775 * config/linux/lock.c: New file.
3776 * config/linux/omp-lock.h: New file.
3777
3778 * critical.c, env.h: Don't include omp.h
3779 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3780 * config/posix/time.c: Likewise.
3781 * config/posix/omp-lock.h: New file.
3782 * libgomp.h: Include omp-lock.h and omp.h.
3783 * Makefile.am (nodist_include_HEADERS): New.
3784 (omp.h): New rule.
3785 * configure.ac (PERL): New.
3786 * mkomp_h.pl: New file.
3787 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3788 with templates.
3789 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3790
3791 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3792 build directory. Re-add -march=i486 hack.
3793
3794 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3795 (libgomp_link_flags): Remove.
3796 (libgomp_initialized): Remove.
3797 (libgomp_init): Don't protect from reinitialization. Copy code
3798 from libstdc++ for getting the multilib set correctly.
3799
38002005-05-05 Richard Henderson <rth@redhat.com>
3801
3802 * config/linux/alpha/futex.h: New file.
3803 * configure.tgt (alpha*-*-linux*): Use it.
3804
3805 * config/posix/mutex.c: New file.
3806 * config/posix/sem.c: Use libgomp.h.
3807
3808 * configure.tgt (x86_64-linux): Also test CC for -m32.
3809 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3810
a1daed2d 3811 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
3812 after $gccpath.
3813
3814 * Makefile.am (SUBDIRS): New.
3815 (libgomp_la_LDFLAGS): Add -lpthread.
3816 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3817 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3818
3819 * libgomp_g.h: New file.
3820 * libgomp.h: Split out all public declarations to libgomp_g.h.
3821 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3822 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3823 * config/linux/sem.h: Likewise.
3824 * config/posix/sem.h: Likewise.
3825
3826 * Makefile.am (AM_LDFLAGS): New.
3827 (libgomp_version_script): Split out from ...
3828 (libgomp_la_LDFLAGS): ... here.
3829 (libgomp_version_info): New.
3830 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3831 (LIBGOMP_ENABLE): New.
3832 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3833 (LIBGOMP_ENABLE_SYMVERS): New.
3834 * configure.ac (AC_INIT): Version 1.0.
3835 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3836 (enable-linux-futex): Likewise. Rename from enable-futex.
3837 (libtool_VERSION): New.
3838 (LIBGOMP_ENABLE_SYMVERS): Use it.
3839 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3840 * Makefile.in, aclocal.m4, configure: Rebuild.
3841
3842 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3843 (gomp_mutex_unlock_slow): Fix typo.
3844 * config/linux/sem.c: Similarly.
3845 (gomp_sem_post_slow): Fix typo.
3846 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3847 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3848 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3849
3850 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3851 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3852 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3853 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3854 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3855 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3856 LDFLAGS. Pull enable_futex check to top-level.
3857 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3858 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3859
3860 First attempt at real configury.
3861 * Makefile, config.h: Remove file.
3862 * Makefile.am, Makefile.in: New file.
3863 * acinclude.m4 aclocal.m4: New file.
3864 * configure.ac, configure.tgt, configure: New file.
3865
3866 * config/posix/lock.c: Rename from sys-lock.c.
3867 * config/posix/mutex.h: Rename from sys-mutex.h.
3868 * config/posix/sem.c: Rename from sys-sem.c.
3869 * config/posix/sem.h: Rename from sys-sem.h.
3870 * config/posix/proc.c: Rename from sys-proc.c.
3871 * config/posix/time.c: Rename from sys-proc.c.
3872
3873 * config/linux/mutex.c: New file.
3874 * config/linux/mutex.h: New file.
3875 * config/linux/sem.c: New file.
3876 * config/linux/sem.h: New file.
3877 * config/linux/i486/futex.h: New file.
3878 * config/linux/x86_64/futex.h: New file.
3879
38802005-05-04 Richard Henderson <rth@redhat.com>
3881
3882 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3883 * libgomp.h: Declare them.
3884 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3885 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3886
38872005-05-04 Richard Henderson <rth@redhat.com>
3888
3889 * libgomp-1 code drop
3890
38912005-05-04 Richard Henderson <rth@redhat.com>
3892
3893 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3894 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3895 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3896 (gomp_iter_static_next): Update.
3897 (gomp_ordered_static_next): Update.
3898 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3899 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3900 totally empty range.
3901 (gomp_loop_ordered_static_next): Refine test for calling
3902 gomp_ordered_static_next.
3903 * testsuite/ordered-1.c: Add case for more threads than iterations.
3904
3905 * iter.c (gomp_iter_runtime_next_locked): Remove.
3906 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 3907 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
3908 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3909 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3910 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3911 gomp_loop_ordered_guided_next): Downcase name, make static, add
3912 an external alias with the old name.
3913 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3914 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3915 switch and call one of the above static functions.
3916 * libgomp.h: Update.
3917
3918 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3919 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3920 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3921 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3922 GOMP_loop_ordered_guided_start): Update to match.
3923 * sections.c (GOMP_sections_start): Likewise.
3924 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3925
3926 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3927 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3928 Use bounds check instead of modulus.
3929 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3930 (gomp_ordered_last): Don't sync with ordered_owner here.
3931 (gomp_ordered_next): Likewise.
3932 (gomp_ordered_static_loop_next): Likewise.
3933 * loop.c, libgomp.h: Update to match.
3934
3935 * libgomp.h (GOMP_barrier): Declare.
3936
3937 * testsuite/barrier-1.c: New file.
3938 * testsuite/critical-1.c: New file.
3939 * testsuite/ordered-2.c: New file.
3940 * testsuite/ordered-1.c: New file.
3941 * testsuite/sections-1.c: New file.
3942 * testsuite/single-1.c: New file.
3943 * testsuite/Makefile (TESTS): Add them.
3944
39452005-05-04 Richard Henderson <rth@redhat.com>
3946
3947 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3948 * loop.c (GOMP_loop_static_start): If not the startup thread,
3949 acquire the mutex to wait for initialization complete.
3950 (GOMP_loop_ordered_static_start): Likewise.
3951 (GOMP_loop_ordered_runtime_start): Likewise.
3952 (GOMP_loop_ordered_static_first): Remove.
3953 (GOMP_loop_ordered_dynamic_first): Remove.
3954 (GOMP_loop_ordered_guided_first): Remove.
3955 (GOMP_loop_ordered_runtime_first): Remove.
3956 * ordered.c (gomp_ordered_loop_first): Post to own release when
3957 we're the first thread.
3958 (gomp_ordered_loop_last): Wait on release if not owner.
3959 (gomp_ordered_loop_next): Likewise.
3960 (gomp_ordered_static_loop_init): New.
3961 (gomp_ordered_static_loop_next): Use ordered_owner.
3962 (GOMP_ordered_start): Likewise.
3963 * work.c (gomp_new_work_share): Initialize ordered_owner.
3964
39652005-05-03 Richard Henderson <rth@redhat.com>
3966
3967 * Makefile (OPT): New.
3968 (CFLAGS): Use it.
3969
3970 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3971 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3972 * libgomp.h, libgomp.map, NOTES: Update to match.
3973
3974 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3975 Add initialized and thr members.
3976 (gomp_thread_start): Pause when initially spawned to wait for
3977 the whole team to be created.
3978 (gomp_team_start): Release team members at the end.
3979
3980 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3981 (f_foo_1): Use GOMP_loop_end.
3982 (f_foo_2): Use GOMP_loop_end_nowait.
3983
3984 * testsuite/loop-2.c: New file.
3985 * testsuite/Makefile (TESTS): Add it.
3986
39872005-05-03 Richard Henderson <rth@redhat.com>
3988
3989 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3990 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3991 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3992 initial work_share.
3993
3994 * testsuite/Makefile: New file.
3995 * testsuite/loop-1.c: New file.
3996
39972005-05-03 Richard Henderson <rth@redhat.com>
3998
3999 Initial implementation and checkin.