1 2014-11-24 Jakub Jelinek <jakub@redhat.com>
4 * libgomp.fortran/pr63938-1.f90: New test.
5 * libgomp.fortran/pr63938-2.f90: New test.
7 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
9 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
14 * configure: Regenerated.
16 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
18 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
19 vect_simd_clones effective target.
20 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
22 2014-11-14 Jakub Jelinek <jakub@redhat.com>
24 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
26 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
27 instead of 32 as block_size.
29 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
30 Ilya Verbin <ilya.verbin@intel.com>
32 * Makefile.in: Regenerate.
33 * configure: Regenerate.
34 * configure.ac: Set up offload_additional_options,
35 offload_additional_lib_paths and offload_targets.
36 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
37 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
38 * testsuite/Makefile.in: Regenerate.
39 * testsuite/lib/libgomp.exp (libgomp_init): Append
40 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
41 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
42 build directory to LD_LIBRARY_PATH for intelmic offload targets.
44 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
45 Ilya Verbin <ilya.verbin@intel.com>
46 Kirill Yukhin <kirill.yukhin@intel.com>
47 Ilya Tocar <ilya.tocar@intel.com>
49 * testsuite/lib/libgomp.exp
50 (check_effective_target_offload_device): New.
51 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
52 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
53 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
54 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
55 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
56 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
57 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
58 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
59 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
60 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
61 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
62 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
63 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
64 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
65 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
66 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
67 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
68 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
69 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
70 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
71 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
72 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
73 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
74 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
75 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
76 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
77 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
78 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
79 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
80 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
81 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
82 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
83 * testsuite/libgomp.c/target-7.c: Fix test.
84 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
85 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
86 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
87 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
88 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
89 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
90 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
91 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
92 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
93 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
94 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
95 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
96 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
97 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
98 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
99 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
100 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
101 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
102 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
103 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
104 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
105 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
106 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
107 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
108 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
109 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
110 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
111 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
112 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
113 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
114 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
116 2014-11-13 Jakub Jelinek <jakub@redhat.com>
117 Ilya Verbin <ilya.verbin@intel.com>
118 Thomas Schwinge <thomas@codesourcery.com>
119 Andrey Turetskiy <andrey.turetskiy@intel.com>
121 * libgomp.map (GOMP_4.0.1): New symbol version.
122 Add GOMP_offload_register.
123 * libgomp_target.h: New file.
124 * splay-tree.h: New file.
125 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
126 (gomp_target_init): New forward declaration.
127 (gomp_is_initialized): New static variable.
128 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
129 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
131 (offload_images, num_offload_images, devices, num_devices): New static
133 (splay_compare): New static function.
134 (struct gomp_device_descr): New structure.
135 (gomp_get_num_devices): Call gomp_target_init.
136 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
137 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
138 (GOMP_offload_register): New function.
139 (GOMP_target): Arrange for host callback to be performed in a separate
140 initial thread and contention group, inheriting ICVs from
141 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
142 Add device initialization and lookup for target function in splay tree.
143 (GOMP_target_data): Add device initialization and call gomp_map_vars.
144 (GOMP_target_end_data): Call gomp_unmap_vars.
145 (GOMP_target_update): Add device initialization and call gomp_update.
146 (gomp_load_plugin_for_device, gomp_register_images_for_device)
147 (gomp_target_init): New static functions.
149 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
150 Thomas Schwinge <thomas@codesourcery.com>
151 Ilya Verbin <ilya.verbin@intel.com>
152 Andrey Turetskiy <andrey.turetskiy@intel.com>
154 * config.h.in: Regenerate.
155 * configure: Regenerate.
156 * configure.ac: Check for libdl, required for plugin support.
157 (PLUGIN_SUPPORT): Define if plugins are supported.
158 (enable_offload_targets): Support Intel MIC targets.
159 (OFFLOAD_TARGETS): List of target names suitable for offloading.
161 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
164 * configure: Regenerate.
166 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
168 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
170 2014-10-06 Marek Polacek <polacek@redhat.com>
172 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
173 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
174 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
175 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
177 2014-10-06 Marek Polacek <polacek@redhat.com>
179 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
180 * testsuite/libgomp.c/nqueens-1.c: Likewise.
181 * testsuite/libgomp.c/pr26943-3.c: Likewise.
182 * testsuite/libgomp.c/pr26943-4.c: Likewise.
183 * testsuite/libgomp.c/pr36802-2.c: Likewise.
184 * testsuite/libgomp.c/pr36802-3.c: Likewise.
185 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
186 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
187 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
188 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
189 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
190 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
191 * testsuite/libgomp.c/omp-single-1.c: Likewise.
192 * testsuite/libgomp.c/omp-single-2.c: Likewise.
193 * testsuite/libgomp.c/omp_matvec.c: Likewise.
194 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
195 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
196 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
199 2014-10-03 Jakub Jelinek <jakub@redhat.com>
202 * testsuite/libgomp.c/pr61200.c: New test.
204 2014-09-18 Jakub Jelinek <jakub@redhat.com>
207 * testsuite/libgomp.c++/pr63248.C: New test.
209 2014-08-04 Jakub Jelinek <jakub@redhat.com>
211 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
212 is not zero, but taskgroup->children is NULL and there are
213 any task->children, schedule those instead of waiting.
214 * testsuite/libgomp.c/depend-6.c: New test.
215 * testsuite/libgomp.c/depend-7.c: New test.
216 * testsuite/libgomp.c/depend-8.c: New test.
217 * testsuite/libgomp.c/depend-9.c: New test.
218 * testsuite/libgomp.c/depend-10.c: New test.
220 2014-08-01 Jakub Jelinek <jakub@redhat.com>
222 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
223 (struct gomp_taskwait): New type.
224 (struct gomp_task): Add taskwait and parent_depends_on, remove
225 in_taskwait and taskwait_sem fields.
226 (gomp_finish_task): Don't destroy taskwait_sem.
227 * task.c (gomp_init_task): Don't init in_taskwait, instead init
228 taskwait and parent_depends_on.
229 (GOMP_task): For if (0) tasks with depend clause that depend on
230 earlier tasks don't defer them, instead call
231 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
232 Initialize redundant_out field, for redundant out entries just
233 move them at the end of linked list instead of removing them
234 completely, and set redundant_out flag instead of redundant.
235 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
237 (gomp_task_run_post_handle_dependers): If parent is in
238 gomp_task_maybe_wait_for_dependencies and newly runnable task
239 is not parent_depends_on, queue it in parent->children linked
240 list after all runnable tasks with parent_depends_on set.
241 Adjust for addition of taskwait indirection.
242 (gomp_task_run_post_remove_parent): If parent is in
243 gomp_task_maybe_wait_for_dependencies and task to be removed
244 is parent_depends_on, decrement n_depend and if needed awake
245 parent. Adjust for addition of taskwait indirection.
246 (GOMP_taskwait): Adjust for addition of taskwait indirection.
247 (gomp_task_maybe_wait_for_dependencies): New function.
248 * testsuite/libgomp.c/depend-5.c: New test.
250 2014-07-13 Tobias Burnus <burnus@net-b.de>
252 * testsuite/libgomp.fortran/pr34020.f90: Make compile
253 with TS 18508/Fortran 2015.
255 2014-07-06 Marek Polacek <polacek@redhat.com>
258 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
260 2014-07-03 Jakub Jelinek <jakub@redhat.com>
262 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
263 matches regex $lang_source_re, add $lang_include_flags to options.
264 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
265 * testsuite/libgomp.c++/c++.exp: Likewise.
266 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
267 and lang_include_flags instead of adding -fintrinsic-modules-path= to
269 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
271 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
273 * testsuite/libgomp.fortran/fortran.exp: Explain
274 gfortran-dg-runtest usage.
276 2014-06-25 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.fortran/simd5.f90: New test.
279 * testsuite/libgomp.fortran/simd6.f90: New test.
280 * testsuite/libgomp.fortran/simd7.f90: New test.
282 2014-06-24 Jakub Jelinek <jakub@redhat.com>
284 * testsuite/libgomp.c/for-2.c: Define SC to static for
285 #pragma omp for simd testing.
286 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
287 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
289 * testsuite/libgomp.c/simd-14.c: New test.
290 * testsuite/libgomp.c/simd-15.c: New test.
291 * testsuite/libgomp.c/simd-16.c: New test.
292 * testsuite/libgomp.c/simd-17.c: New test.
293 * testsuite/libgomp.c++/for-10.C: Define SC to static for
294 #pragma omp for simd testing.
295 * testsuite/libgomp.c++/simd10.C: New test.
296 * testsuite/libgomp.c++/simd11.C: New test.
297 * testsuite/libgomp.c++/simd12.C: New test.
298 * testsuite/libgomp.c++/simd13.C: New test.
300 * testsuite/libgomp.fortran/aligned1.f03: New test.
301 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
302 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
303 tasks with !$omp parallel !$omp single.
304 * testsuite/libgomp.fortran/target8.f90: New test.
305 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
306 not to use trim in the combiner, instead call elemental function.
307 (fn): New elemental function.
308 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
310 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
312 * testsuite/libgomp.fortran/udr12.f90: New test.
313 * testsuite/libgomp.fortran/udr13.f90: New test.
314 * testsuite/libgomp.fortran/udr14.f90: New test.
315 * testsuite/libgomp.fortran/udr15.f90: New test.
317 2014-06-18 Jakub Jelinek <jakub@redhat.com>
319 * omp_lib.f90.in (openmp_version): Set to 201307.
320 * omp_lib.h.in (openmp_version): Likewise.
321 * testsuite/libgomp.c/target-8.c: New test.
322 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
323 and inbranch clauses.
324 * testsuite/libgomp.fortran/depend-3.f90: New test.
325 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
327 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
328 * testsuite/libgomp.fortran/target1.f90: New test.
329 * testsuite/libgomp.fortran/target2.f90: New test.
330 * testsuite/libgomp.fortran/target3.f90: New test.
331 * testsuite/libgomp.fortran/target4.f90: New test.
332 * testsuite/libgomp.fortran/target5.f90: New test.
333 * testsuite/libgomp.fortran/target6.f90: New test.
334 * testsuite/libgomp.fortran/target7.f90: New test.
336 2014-06-10 Jakub Jelinek <jakub@redhat.com>
339 * testsuite/libgomp.fortran/allocatable9.f90: New test.
340 * testsuite/libgomp.fortran/allocatable10.f90: New test.
341 * testsuite/libgomp.fortran/allocatable11.f90: New test.
342 * testsuite/libgomp.fortran/allocatable12.f90: New test.
343 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
344 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
345 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
346 * testsuite/libgomp.fortran/associate1.f90: New test.
347 * testsuite/libgomp.fortran/associate2.f90: New test.
348 * testsuite/libgomp.fortran/procptr1.f90: New test.
350 2014-06-06 Jakub Jelinek <jakub@redhat.com>
352 * testsuite/libgomp.fortran/simd1.f90: New test.
353 * testsuite/libgomp.fortran/udr1.f90: New test.
354 * testsuite/libgomp.fortran/udr2.f90: New test.
355 * testsuite/libgomp.fortran/udr3.f90: New test.
356 * testsuite/libgomp.fortran/udr4.f90: New test.
357 * testsuite/libgomp.fortran/udr5.f90: New test.
358 * testsuite/libgomp.fortran/udr6.f90: New test.
359 * testsuite/libgomp.fortran/udr7.f90: New test.
360 * testsuite/libgomp.fortran/udr8.f90: New test.
361 * testsuite/libgomp.fortran/udr9.f90: New test.
362 * testsuite/libgomp.fortran/udr10.f90: New test.
363 * testsuite/libgomp.fortran/udr11.f90: New test.
365 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
367 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
368 vect_simd_clones effective target.
369 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
371 2014-05-21 Jakub Jelinek <jakub@redhat.com>
374 * testsuite/libgomp.c++/simd-9.C: New test.
376 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
378 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
379 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
380 texts according to their @menu entry positions.
382 2014-05-11 Jakub Jelinek <jakub@redhat.com>
384 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
385 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
386 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
387 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
388 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
389 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
390 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
391 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
392 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
393 * testsuite/libgomp.fortran/depend-1.f90: New test.
394 * testsuite/libgomp.fortran/depend-2.f90: New test.
395 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
396 * testsuite/libgomp.fortran/simd1.f90: New test.
397 * testsuite/libgomp.fortran/simd2.f90: New test.
398 * testsuite/libgomp.fortran/simd3.f90: New test.
399 * testsuite/libgomp.fortran/simd4.f90: New test.
400 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
402 2014-05-02 Jakub Jelinek <jakub@redhat.com>
404 * testsuite/libgomp.c/simd-10.c: New test.
405 * testsuite/libgomp.c/simd-11.c: New test.
406 * testsuite/libgomp.c/simd-12.c: New test.
407 * testsuite/libgomp.c/simd-13.c: New test.
409 2014-04-24 Jakub Jelinek <jakub@redhat.com>
411 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
412 atomic type clauses in any order and optional comma in between.
413 * testsuite/libgomp.c++/atomic-15.C: Likewise.
414 * testsuite/libgomp.c/atomic-17.c: Likewise.
416 * testsuite/libgomp.c/simd-7.c: New test.
417 * testsuite/libgomp.c/simd-8.c: New test.
418 * testsuite/libgomp.c/simd-9.c: New test.
419 * testsuite/libgomp.c/loop-16.c: New test.
421 2014-04-02 Richard Henderson <rth@redhat.com>
423 * config/linux/futex.h (futex_wait): Get error value from errno.
424 (futex_wake): Likewise.
426 2014-03-25 Jakub Jelinek <jakub@redhat.com>
429 * testsuite/libgomp.c++/udr-11.C: New test.
430 * testsuite/libgomp.c++/udr-12.C: New test.
431 * testsuite/libgomp.c++/udr-13.C: New test.
432 * testsuite/libgomp.c++/udr-14.C: New test.
433 * testsuite/libgomp.c++/udr-15.C: New test.
434 * testsuite/libgomp.c++/udr-16.C: New test.
435 * testsuite/libgomp.c++/udr-17.C: New test.
436 * testsuite/libgomp.c++/udr-18.C: New test.
437 * testsuite/libgomp.c++/udr-19.C: New test.
439 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
441 Update copyright years
443 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
445 * hashtab.h: Use the standard form for the copyright notice.
447 2014-01-02 Tobias Burnus <burnus@net-b.de>
449 * libgomp.texi: Bump @copying's copyright year.
451 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
453 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
454 alloca () with __builtin_alloca ().
455 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
456 * testsuite/libgomp.c/lock-3.c: Likewise.
457 * testsuite/libgomp.c/pr48591.c: Likewise.
459 2013-12-17 Jakub Jelinek <jakub@redhat.com>
462 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
465 2013-12-16 Jakub Jelinek <jakub@redhat.com>
468 * testsuite/libgomp.c/pr58756.c: New test.
470 2013-12-12 Jakub Jelinek <jakub@redhat.com>
473 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
476 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
478 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
480 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
481 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
482 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
483 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
486 * libgomp_g.h: Include <stddef.h> for size_t.
488 * libgomp.spec.in: Update comment about libgomp's dependencies.
489 * configure.ac: Likewise.
490 * configure: Regenerate.
492 2013-10-16 Tobias Burnus <burnus@net-b.de>
494 * libgomp.texi: (Runtime Library Routines): Update references for
495 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
496 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
497 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
498 (Environment Variables): Update references for OpenMP 4.0. Add
499 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
500 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
503 2013-10-14 Jakub Jelinek <jakub@redhat.com>
505 * env.c (parse_bind_var): Initialize value to avoid
506 (false positive) warning.
508 2013-10-12 Jakub Jelinek <jakub@redhat.com>
511 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
513 (gomp_init_num_threads): Move i variable declaration into
514 #ifdef CPU_ALLOC_SIZE block.
515 * config/linux/affinity.c (gomp_affinity_init_level): Test
516 gomp_places_list_len == 0 rather than gomp_places_list == 0
517 when checking for topology reading error.
518 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
519 * env.c (parse_affinity): Add ignore argument, if true, don't populate
520 gomp_places_list, only parse env var and always return false.
521 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
522 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
523 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
524 and either of these variables were parsed correctly into a places
527 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
528 Jakub Jelinek <jakub@redhat.com>
530 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
532 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
533 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
534 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
535 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
536 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
537 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
538 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
539 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
541 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
543 * Makefile.am (omp_lib.mod): Streamline rule.
544 * Makefile.in: Regenerate.
546 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
549 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
550 * testsuite/libgomp.fortran/lib1.f90: Likewise.
551 * testsuite/libgomp.fortran/lib2.f: Likewise.
552 * testsuite/libgomp.fortran/lib3.f: Likewise.
554 * configure.ac: Typo fix.
555 * configure: Regenerate.
557 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
558 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
560 * omp.h.in: Don't touch the user's namespace.
562 2013-10-11 Jakub Jelinek <jakub@redhat.com>
563 Tobias Burnus <burnus@net-b.de>
564 Richard Henderson <rth@redhat.com>
566 * target.c: New file.
567 * Makefile.am (libgomp_la_SOURCES): Add target.c.
568 * Makefile.in: Regenerated.
569 * libgomp_g.h (GOMP_task): Add depend argument.
570 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
571 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
572 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
573 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
574 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
575 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
576 GOMP_taskgroup_start, GOMP_taskgroup_end,
577 GOMP_parallel_sections): New prototypes.
578 * fortran.c (omp_is_initial_device): Add ialias_redirect.
579 (omp_is_initial_device_): New function.
580 (ULP, STR1, STR2, ialias_redirect): Removed.
581 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
582 omp_set_default_device_8_, omp_get_default_device_,
583 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
585 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
586 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
587 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
589 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
590 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
591 omp_set_default_device, omp_set_default_device_,
592 omp_set_default_device_8_, omp_get_default_device,
593 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
594 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
595 omp_get_team_num_): Export @@OMP_4.0.
596 * team.c (struct gomp_thread_start_data): Add place field.
597 (gomp_thread_start): Clear thr->thread_pool and
598 thr->task before returning. Use gomp_team_barrier_wait_final
599 instead of gomp_team_barrier_wait. Initialize thr->place.
600 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
601 team_cancelled and task_queued_count fields.
602 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
603 before calling pthread_exit.
604 (gomp_free_thread): No longer static. Use
605 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
606 (gomp_team_start): Add flags argument. Set
607 thr->thread_pool->threads_busy to nthreads immediately after creating
608 new pool. Use gomp_managed_threads_lock instead of
609 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
610 (gomp_team_end): Use gomp_managed_threads_lock instead of
611 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
612 of gomp_team_barrier_wait. If team->team_cancelled, call
613 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
614 rather than thr->ts.work_share.
615 (initialize_team): Don't call gomp_sem_init here.
616 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
618 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
619 * env.c (gomp_global_icv): Add default_device_var, target_data and
620 bind_var initializers.
621 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
622 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
623 gomp_places_list_len): New variables.
624 (parse_bind_var, parse_one_place, parse_places_var): New functions.
625 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
627 (gomp_cancel_var): New global variable.
628 (parse_int): New function.
629 (handle_omp_display_env): New function.
630 (initialize_env): Use it. Initialize default_device_var.
631 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
632 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
633 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
634 been successfully parsed (and call gomp_init_affinity in that case).
635 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
636 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
637 omp_get_team_num, omp_is_initial_device): New functions.
638 * libgomp.h: Include stdlib.h.
639 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
641 (struct target_mem_desc): Forward declare.
642 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
643 and thread_limit_var fields.
644 (gomp_get_num_devices): New prototype.
645 (gomp_cancel_var): New extern decl.
646 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
647 team_cancelled and task_queued_count fields. Add comments about
648 task_{,queued_,running_}count.
649 (gomp_cancel_kind): New enum.
650 (gomp_work_share_end_cancel): New prototype.
651 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
652 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
654 (struct gomp_taskgroup): New type.
655 (struct gomp_task_depend_entry,
656 struct gomp_dependers_vec): New types.
657 (gomp_finish_task): Free depend_hash if non-NULL.
658 (struct gomp_team_state): Add place_partition_off
659 and place_partition_len fields.
660 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
661 gomp_places_list_len): New extern decls.
662 (struct gomp_thread): Add place field.
663 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
664 (gomp_init_thread_affinity): Add place argument.
665 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
666 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
667 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
668 gomp_affinity_init_level, gomp_affinity_print_place): New
670 (gomp_team_start): Add flags argument.
671 (gomp_thread_limit_var, gomp_remaining_threads_count,
672 gomp_remaining_threads_lock): Remove.
673 (gomp_managed_threads_lock): New variable.
674 (struct gomp_thread_pool): Add threads_busy field.
675 (gomp_free_thread): New prototype.
676 * task.c: Include hashtab.h.
677 (hash_entry_type): New typedef.
678 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
679 (gomp_init_task): Clear dependers, depend_hash, depend_count,
680 copy_ctors_done and taskgroup fields.
681 (GOMP_task): Add depend argument, handle depend clauses. If
682 gomp_team_barrier_cancelled or if it's taskgroup has been
683 cancelled, don't queue or start new tasks. Set copy_ctors_done
684 field if needed. Initialize taskgroup field. If copy_ctors_done
685 and already cancelled, don't discard the task. If taskgroup is
686 non-NULL, enqueue the task into taskgroup queue. Increment
687 num_children field in taskgroup. Increment task_queued_count.
688 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
689 gomp_task_run_post_remove_taskgroup): New inline functions.
690 (gomp_task_run_post_handle_depend_hash,
691 gomp_task_run_post_handle_dependers,
692 gomp_task_run_post_handle_depend): New functions.
693 (GOMP_taskwait): Use them. If more than one new tasks
694 have been queued, wake other threads if needed.
695 (gomp_barrier_handle_tasks): Likewise. If
696 gomp_team_barrier_cancelled, don't start any new tasks, just free
698 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
700 (omp_proc_bind_kind, omp_proc_bind_false,
701 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
702 omp_proc_bind_spread): New params.
703 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
704 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
705 omp_get_team_num, omp_is_initial_device): New interfaces.
706 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
707 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
708 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
709 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
710 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
711 useless use omp_lib_kinds.
712 * omp.h.in (omp_proc_bind_t): New typedef.
713 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
714 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
715 omp_get_team_num, omp_is_initial_device): New prototypes.
716 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
717 through to gomp_team_start.
718 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
719 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
720 Adjust gomp_parallel_loop_start callers.
721 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
722 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
723 GOMP_loop_end_cancel): New functions.
724 (GOMP_parallel_end): Add ialias_redirect.
725 * hashtab.h: New file.
726 * libgomp.texi (Environment Variables): Minor cleanup,
727 update section refs to OpenMP 4.0rc2.
728 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
729 environment variables.
730 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
731 team->work_shares_to_free to thr->ts.work_share before calling
733 (gomp_work_share_end_cancel): New function.
734 * config/linux/proc.c: Include errno.h.
735 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
736 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
737 sizeof (cpu_set_t) to determine number of iterations. Fix up check
738 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
739 gomp_cpuset_size is sizeof (cpu_set_t).
740 (gomp_init_num_threads): Initialize gomp_cpuset_size,
741 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
742 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
743 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
744 contain any logical CPUs.
745 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
746 is NULL. Use gomp_cpusetp instead of &cpuset and pass
747 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
748 pthread_getaffinity_np. Check gomp_places_list instead of
749 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
750 * config/linux/bar.c (gomp_barrier_wait_end,
751 gomp_barrier_wait_last): Use BAR_* defines.
752 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
753 from state where needed. Set work_share_cancelled to 0 on last
755 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
756 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
758 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
759 Add cpusetsize argument.
760 (gomp_cpuset_size, gomp_cpusetp): Declare.
761 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
762 (affinity_counter): Remove.
763 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
764 if CPU_ALLOC_SIZE isn't defined.
765 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
766 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
767 bind current thread to the first place.
768 (gomp_init_thread_affinity): Rewritten. Add place argument, just
769 pthread_setaffinity_np to gomp_places_list[place].
770 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
771 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
772 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
773 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
774 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
775 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
776 (gomp_barrier_t): Add awaited_final field.
777 (gomp_barrier_init): Initialize awaited_final field.
778 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
779 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
781 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
783 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
784 gomp_team_barrier_cancelled): New inline functions.
785 (gomp_barrier_last_thread,
786 gomp_team_barrier_set_task_pending,
787 gomp_team_barrier_clear_task_pending,
788 gomp_team_barrier_set_waiting_for_tasks,
789 gomp_team_barrier_waiting_for_tasks,
790 gomp_team_barrier_done): Use BAR_* defines.
791 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
792 (gomp_barrier_wait_end): Use BAR_* defines.
793 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
794 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
796 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
797 gomp_team_barrier_cancel): New functions.
798 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
800 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
801 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
802 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
803 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
804 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
805 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
806 (gomp_barrier_t): Add cancellable field.
807 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
808 gomp_team_barrier_cancel): New prototypes.
809 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
810 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
811 gomp_team_barrier_cancelled): New inline functions.
812 (gomp_barrier_wait_start, gomp_barrier_last_thread,
813 gomp_team_barrier_set_task_pending,
814 gomp_team_barrier_clear_task_pending,
815 gomp_team_barrier_set_waiting_for_tasks,
816 gomp_team_barrier_waiting_for_tasks,
817 gomp_team_barrier_done): Use BAR_* defines.
818 * barrier.c (GOMP_barrier_cancel): New function.
819 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
820 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
821 omp_proc_bind_spread): New params.
822 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
823 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
824 omp_get_team_num, omp_is_initial_device): New externals.
825 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
827 (gomp_resolve_num_threads): Adjust for thread_limit now being in
828 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
829 infinity. If not nested, just return minimum of max_num_threads
830 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
831 to the returned value. Otherwise, don't update atomically
832 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
833 (GOMP_parallel_end): Adjust for thread_limit now being in
834 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
835 infinity. Adjust threads_busy in the pool rather than
836 gomp_remaining_threads_count. Remember team->nthreads and call
837 gomp_team_end before adjusting threads_busy, if not nested
838 afterwards, just set it to 1 non-atomically. Add ialias.
839 (GOMP_parallel_start): Adjust gomp_team_start caller.
840 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
841 * testsuite/libgomp.c/affinity-1.c: New test.
842 * testsuite/libgomp.c/atomic-15.c: New test.
843 * testsuite/libgomp.c/atomic-16.c: New test.
844 * testsuite/libgomp.c/atomic-17.c: New test.
845 * testsuite/libgomp.c/cancel-for-1.c: New test.
846 * testsuite/libgomp.c/cancel-for-2.c: New test.
847 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
848 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
849 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
850 * testsuite/libgomp.c/cancel-sections-1.c: New test.
851 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
852 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
853 * testsuite/libgomp.c/depend-1.c: New test.
854 * testsuite/libgomp.c/depend-2.c: New test.
855 * testsuite/libgomp.c/depend-3.c: New test.
856 * testsuite/libgomp.c/depend-4.c: New test.
857 * testsuite/libgomp.c/for-1.c: New test.
858 * testsuite/libgomp.c/for-1.h: New file.
859 * testsuite/libgomp.c/for-2.c: New test.
860 * testsuite/libgomp.c/for-2.h: New file.
861 * testsuite/libgomp.c/for-3.c: New test.
862 * testsuite/libgomp.c/pr58392.c: New test.
863 * testsuite/libgomp.c/simd-1.c: New test.
864 * testsuite/libgomp.c/simd-2.c: New test.
865 * testsuite/libgomp.c/simd-3.c: New test.
866 * testsuite/libgomp.c/simd-4.c: New test.
867 * testsuite/libgomp.c/simd-5.c: New test.
868 * testsuite/libgomp.c/simd-6.c: New test.
869 * testsuite/libgomp.c/target-1.c: New test.
870 * testsuite/libgomp.c/target-2.c: New test.
871 * testsuite/libgomp.c/target-3.c: New test.
872 * testsuite/libgomp.c/target-4.c: New test.
873 * testsuite/libgomp.c/target-5.c: New test.
874 * testsuite/libgomp.c/target-6.c: New test.
875 * testsuite/libgomp.c/target-7.c: New test.
876 * testsuite/libgomp.c/taskgroup-1.c: New test.
877 * testsuite/libgomp.c/thread-limit-1.c: New test.
878 * testsuite/libgomp.c/thread-limit-2.c: New test.
879 * testsuite/libgomp.c/thread-limit-3.c: New test.
880 * testsuite/libgomp.c/udr-1.c: New test.
881 * testsuite/libgomp.c/udr-2.c: New test.
882 * testsuite/libgomp.c/udr-3.c: New test.
883 * testsuite/libgomp.c++/affinity-1.C: New test.
884 * testsuite/libgomp.c++/atomic-10.C: New test.
885 * testsuite/libgomp.c++/atomic-11.C: New test.
886 * testsuite/libgomp.c++/atomic-12.C: New test.
887 * testsuite/libgomp.c++/atomic-13.C: New test.
888 * testsuite/libgomp.c++/atomic-14.C: New test.
889 * testsuite/libgomp.c++/atomic-15.C: New test.
890 * testsuite/libgomp.c++/cancel-for-1.C: New test.
891 * testsuite/libgomp.c++/cancel-for-2.C: New test.
892 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
893 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
894 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
895 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
896 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
897 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
898 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
899 * testsuite/libgomp.c++/cancel-test.h: New file.
900 * testsuite/libgomp.c++/for-9.C: New test.
901 * testsuite/libgomp.c++/for-10.C: New test.
902 * testsuite/libgomp.c++/for-11.C: New test.
903 * testsuite/libgomp.c++/simd-1.C: New test.
904 * testsuite/libgomp.c++/simd-2.C: New test.
905 * testsuite/libgomp.c++/simd-3.C: New test.
906 * testsuite/libgomp.c++/simd-4.C: New test.
907 * testsuite/libgomp.c++/simd-5.C: New test.
908 * testsuite/libgomp.c++/simd-6.C: New test.
909 * testsuite/libgomp.c++/simd-7.C: New test.
910 * testsuite/libgomp.c++/simd-8.C: New test.
911 * testsuite/libgomp.c++/target-1.C: New test.
912 * testsuite/libgomp.c++/target-2.C: New test.
913 * testsuite/libgomp.c++/target-2-aux.cc: New file.
914 * testsuite/libgomp.c++/target-3.C: New test.
915 * testsuite/libgomp.c++/taskgroup-1.C: New test.
916 * testsuite/libgomp.c++/udr-1.C: New test.
917 * testsuite/libgomp.c++/udr-2.C: New test.
918 * testsuite/libgomp.c++/udr-3.C: New test.
919 * testsuite/libgomp.c++/udr-4.C: New test.
920 * testsuite/libgomp.c++/udr-5.C: New test.
921 * testsuite/libgomp.c++/udr-6.C: New test.
922 * testsuite/libgomp.c++/udr-7.C: New test.
923 * testsuite/libgomp.c++/udr-8.C: New test.
924 * testsuite/libgomp.c++/udr-9.C: New test.
926 2013-09-20 Jakub Jelinek <jakub@redhat.com>
929 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
932 2013-09-20 Alan Modra <amodra@gmail.com>
934 * configure: Regenerate.
936 2013-09-19 Jakub Jelinek <jakub@redhat.com>
938 * testsuite/libgomp.c/sections-2.c: New test.
940 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
942 * testsuite/libgomp.fortran/strassen.f90:
943 Add dg-skip-if aarch64_tiny.
945 2013-06-20 Iain Sandoe <iain@codesourcery.com>
946 Cesar Philippidis <cesar@codesourcery.com>
948 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
949 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
950 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
951 * testsuite/libgomp.fortran/fortran.exp: Likewise.
952 * testsuite/libgomp.graphite/graphite.exp: Likewise.
953 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
954 Use dg-runtest rather than gfortran-dg-runtest.
956 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
958 * testsuite/libgomp.c/icv-2.c: Extend current handling of
959 Linux-based x86 systems to cover all GNU systems.
960 * testsuite/libgomp.c/lock-3.c: Likewise.
961 * testsuite/libgomp.c/pr48591.c: Likewise.
963 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
965 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
966 GNU/Hurd, as done for Linux-based systems.
968 * config/posix/ptrlock.h: Fix comment.
970 2013-05-27 Tobias Burnus <burnus@net-b.de>
973 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
974 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
975 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
976 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
977 omp_destroy_nest_lock): Correct arguments to match the one in
979 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
980 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
981 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
982 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
984 2013-05-16 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.c/loop-13.c: New test.
987 * testsuite/libgomp.c/loop-14.c: New test.
988 * testsuite/libgomp.c/loop-15.c: New test.
989 * testsuite/libgomp.c++/loop-13.C: New test.
990 * testsuite/libgomp.c++/loop-14.C: New test.
991 * testsuite/libgomp.c++/loop-15.C: New test.
993 2013-02-06 Jakub Jelinek <jakub@redhat.com>
996 * testsuite/libgomp.c++/pr56217.C: New test.
998 2013-02-01 Alan Modra <amodra@gmail.com>
1000 * task.c (GOMP_task, GOMP_taskwait): Comment.
1002 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1003 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1006 * config/linux/wait.h (do_spin): Use atomic load for addr.
1007 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1008 for intptr and ptrlock.
1009 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1012 2013-01-22 Alan Modra <amodra@gmail.com>
1016 * task.c (GOMP_task): Revert 2011-12-09 change.
1017 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1018 barrier to read task->children..
1019 (gomp_barrier_handle_tasks): ..and matching atomic store with
1020 release barrier here when setting parent->children to NULL.
1022 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1023 Tobias Burnus <burnus@net-b.de>
1026 * testsuite/libgomp.fortran/fortran.exp: Use
1027 -fintrinsic-modules-path= instead of
1028 -fintrinsic-modules-path.
1030 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1032 Update copyright years.
1034 2012-12-19 Tobias Burnus <burnus@net-b.de>
1036 * testsuite/libgomp.fortran/fortran.exp: Set
1037 -fintrinsic-modules-path.
1039 2012-12-19 Tobias Burnus <burnus@net-b.de>
1041 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1042 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1044 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1047 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1048 if pool had any threads_used.
1050 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1052 * testsuite/libgomp.c++/pr24455.C: Use
1053 -Wl,-undefined,dynamic_lookup on darwin.
1055 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1057 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1059 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1061 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1063 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1064 Jim MacArthur <jim.macarthur@arm.com>
1065 Marcus Shawcroft <marcus.shawcroft@arm.com>
1066 Nigel Stephens <nigel.stephens@arm.com>
1067 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1068 Richard Earnshaw <rearnsha@arm.com>
1069 Sofiane Naci <sofiane.naci@arm.com>
1070 Stephen Thomas <stephen.thomas@arm.com>
1071 Tejas Belagod <tejas.belagod@arm.com>
1072 Yufeng Zhang <yufeng.zhang@arm.com>
1074 * configure.tgt: Add AArch64.
1076 2012-10-04 Jason Merrill <jason@redhat.com>
1078 * testsuite/libgomp.c++/tls-init1.C: New.
1080 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1082 * configure: Regenerated.
1084 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1086 * config/linux/mips/futex.h (sys_futex0): Change to static
1087 function with noinline, nomips16 attributes under MIPS16. Adjust
1088 asm statement to place 'li v0,SYS_futex' immediately before
1091 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1093 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1094 conflict with index.html on case-insensitive file systems.
1096 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1098 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1099 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1101 2012-07-02 Richard Guenther <rguenther@suse.de>
1102 Michael Matz <matz@suse.de>
1103 Tobias Grosser <tobias@grosser.es>
1104 Sebastian Pop <sebpop@gmail.com>
1106 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1107 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1108 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1109 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1111 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1113 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1115 2012-06-22 Richard Guenther <rguenther@suse.de>
1117 Merge from graphite branch
1118 2012-01-13 Tobias Grosser <tobias@grosser.es>
1120 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1121 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1123 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1126 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1127 use GOMP_barrier () call instead.
1128 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1129 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1130 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1131 call GOMP_barrier instead.
1132 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1134 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1137 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1138 argument to memset call.
1140 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1142 * configure: Regenerated.
1144 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1146 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1148 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1151 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1153 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1156 * testsuite/libgomp.c/pr52547.c: New test.
1158 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1160 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1162 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1164 * configure.tgt (mips-sgi-irix6*): Remove.
1166 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1168 * configure.tgt (alpha*-dec-osf*): Remove.
1170 * config/osf/sem.h: Remove.
1171 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1173 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1175 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1177 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1181 Remove ENABLE_SYMVERS_SOL2.
1182 * configure: Regenerate.
1183 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1184 (PREPROCESS): New variable.
1185 (libgomp.ver): New target.
1186 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1187 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1188 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1190 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1191 * Makefile.in: Regenerate.
1193 2012-02-14 Walter Lee <walt@tilera.com>
1195 * configure.tgt: Handle tilegx and tilepro.
1196 * config/linux/tile/futex.h: New file.
1198 2012-02-08 Richard Guenther <rguenther@suse.de>
1200 PR tree-optimization/46886
1201 * testsuite/libgomp.c/pr46886.c: New testcase.
1203 2012-01-25 Matthias Klose <doko@ubuntu.com>
1205 * config/linux/arm: Remove empty directory.
1206 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1208 2011-12-09 Alan Modra <amodra@gmail.com>
1211 * task.c (GOMP_taskwait): Don't access task->children outside of
1212 task_lock mutex region.
1213 (GOMP_task): Likewise.
1215 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1218 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1220 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1221 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1222 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1223 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1224 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1226 2011-12-02 Alan Modra <amodra@gmail.com>
1228 * config/linux/affinity.c: Use atomic rather than sync builtin.
1229 * config/linux/lock.c: Likewise.
1230 * config/linux/ptrlock.h: Likewise.
1231 * config/linux/ptrlock.c: Likewise.
1232 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1233 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1234 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1235 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1236 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1237 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1238 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1239 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1240 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1241 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1243 2011-11-30 Alan Modra <amodra@gmail.com>
1246 * config/linux/bar.h: Use atomic rather than sync builtins.
1247 * config/linux/bar.c: Likewise. Add missing acquire
1248 synchronisation on generation field.
1249 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1252 2011-11-30 Alan Modra <amodra@gmail.com>
1254 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1255 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1256 * config/linux/mutex.h: Use atomic rather than sync builtins.
1257 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1258 * config/linux/omp-lock.h: Comment fix.
1259 * config/linux/arm/mutex.h: Delete.
1260 * config/linux/powerpc/mutex.h: Delete.
1261 * config/linux/ia64/mutex.h: Delete.
1262 * config/linux/mips/mutex.h: Delete.
1264 2011-11-30 Alan Modra <amodra@gmail.com>
1267 * config/linux/sem.h: Rewrite.
1268 * config/linux/sem.c: Rewrite.
1270 2011-11-28 Richard Henderson <rth@redhat.com>
1272 * libgomp.h (enum memmodel): New.
1274 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1276 * configure: Regenerate.
1278 2011-10-10 Matthias Klose <doko@ubuntu.com>
1280 * config/posix95: Remove empty directory.
1282 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1284 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1286 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1289 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1290 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1292 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1296 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1299 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1301 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1303 * config/linux/proc.h: New.
1304 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1305 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1306 (gomp_init_num_threads): Update call to cpuset_popcount.
1307 (get_num_procs): Ditto.
1308 * config/linux/affinity.c (gomp_init_affinity): Call
1309 gomp_cpuset_popcount.
1311 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1315 * omp.h.in (omp_in_final): New prototype.
1316 * omp_lib.f90.in (omp_in_final): New interface.
1317 (omp_integer_kind, omp_logical_kind): Remove
1318 and replace all its uses in the module with 4.
1319 (openmp_version): Change to 201107.
1320 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1321 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1322 kind for the parameters.
1323 (omp_in_final): New external.
1324 (openmp_version): Change to 201107.
1325 * task.c (omp_in_final): New function.
1326 (gomp_init_task): Initialize final_task.
1327 (GOMP_task): Remove unused attribute from flags. Handle final
1329 (GOMP_taskyield): New function.
1330 (omp_in_final): Return true if if (false) or final (true) task
1331 or descendant of final (true).
1332 * fortran.c (omp_in_final_): New function.
1333 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1334 (GOMP_3.0): Export GOMP_taskyield.
1335 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1337 (parse_unsigned_long_list): New function.
1338 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1339 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1340 even if parse_affinity returned false.
1341 * config/linux/affinity.c (gomp_init_affinity): Handle
1342 gomp_cpu_affinity_len == 0.
1343 * libgomp_g.h (GOMP_taskyield): New prototype.
1344 * libgomp.h (struct gomp_task): Add final_task field.
1345 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1346 * team.c (gomp_team_start): Override new task's nthreads_var icv
1347 if list form OMP_NUM_THREADS has been used and it has value for
1348 the new nesting level.
1350 * testsuite/libgomp.c/atomic-11.c: New test.
1351 * testsuite/libgomp.c/atomic-12.c: New test.
1352 * testsuite/libgomp.c/atomic-13.c: New test.
1353 * testsuite/libgomp.c/atomic-14.c: New test.
1354 * testsuite/libgomp.c/reduction-6.c: New test.
1355 * testsuite/libgomp.c/task-5.c: New test.
1356 * testsuite/libgomp.c++/atomic-2.C: New test.
1357 * testsuite/libgomp.c++/atomic-3.C: New test.
1358 * testsuite/libgomp.c++/atomic-4.C: New test.
1359 * testsuite/libgomp.c++/atomic-5.C: New test.
1360 * testsuite/libgomp.c++/atomic-6.C: New test.
1361 * testsuite/libgomp.c++/atomic-7.C: New test.
1362 * testsuite/libgomp.c++/atomic-8.C: New test.
1363 * testsuite/libgomp.c++/atomic-9.C: New test.
1364 * testsuite/libgomp.c++/task-8.C: New test.
1365 * testsuite/libgomp.c++/reduction-4.C: New test.
1366 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1367 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1368 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1369 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1370 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1371 * testsuite/libgomp.fortran/pointer1.f90: New test.
1372 * testsuite/libgomp.fortran/pointer2.f90: New test.
1373 * testsuite/libgomp.fortran/task4.f90: New test.
1375 2011-08-02 Tobias Burnus <burnus@net-b.de>
1377 * libgomp.texi: Update OpenMP spec references to 3.1.
1378 (omp_in_final,OMP_PROC_BIND): New sections.
1379 (OMP_NUM_THREADS): Document that the value can be now a list.
1380 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1382 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1384 * config/linux/x86/futex.h: Check __x86_64__ instead of
1387 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1391 * testsuite/libgomp.c/pr49897-1.c: New test.
1392 * testsuite/libgomp.c/pr49897-2.c: New test.
1393 * testsuite/libgomp.c/pr49898-1.c: New test.
1394 * testsuite/libgomp.c/pr49898-2.c: New test.
1396 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1398 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1399 for ia32 instead of ilp32.
1401 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1402 * testsuite/libgomp.c/atomic-6.c: Likewise.
1404 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1406 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1407 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1409 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1412 * config/osf/sem.h: New file.
1413 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1415 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1418 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1421 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1423 * config/linux/wait.h (do_spin): New inline, largely copied
1424 from do_wait, just don't do futex_wait here, instead return true if
1426 (do_wait): Implement using do_spin.
1427 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1429 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1430 __sync_bool_compare_and_swap, pass the oldval to
1431 gomp_mutex_lock_slow.
1432 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1433 If all mutex contenders are just spinning and not sleeping, don't
1434 change state to 2 unnecessarily. Optimize the loop when state has
1435 already become 2 to use just one atomic operation per loop instead
1437 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1439 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1440 __sync_bool_compare_and_swap, pass the oldval to
1441 gomp_mutex_lock_slow.
1443 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1446 * iter.c (gomp_iter_static_next): For chunk size 0
1447 only use n ceil/ nthreads size for the first
1448 n % nthreads threads in the team instead of
1449 all threads except for the last few ones which
1450 get less work or none at all.
1451 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1452 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1453 chunk argument, set run_sched_modifier to 0 for static
1454 resp. 1 for other kinds. If chunk argument is 0
1455 and not static, set value to 1.
1457 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1460 * testsuite/libgomp.c++/pr49043.C: New test.
1463 * testsuite/libgomp.c++/pr48869.C: New test.
1465 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1468 * fortran.c: Include limits.h.
1470 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1472 (omp_set_num_threads_8_, omp_set_schedule_8_,
1473 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1474 omp_get_team_size_8_): Use TO_INT macro.
1475 * testsuite/libgomp.fortran/pr48894.f90: New test.
1477 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1480 * testsuite/libgomp.c/pr48591.c: New test.
1482 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1485 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1486 * configure: Regenerate.
1488 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1491 * testsuite/libgomp.fortran/task3.f90: New test.
1493 2011-02-24 Tobias Burnus <burnus@net-b.de>
1495 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1497 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1500 * libgomp.texi (omp_get_wtime): Don't say time in the past
1503 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1506 * testsuite/libgomp.fortran/fortran.exp: Check for both
1507 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1508 but $blddir != "", still append ${blddir}/${lang_library_path}
1511 2011-02-16 Tobias Burnus <burnus@net-b.de>
1514 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1515 of libquadmath.a before adding its libpath to ldflags.
1517 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1520 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1521 to FUTEX_WAIT futex syscall.
1522 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1524 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1526 * configure: Regenerate.
1528 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1531 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1533 2011-01-16 Gerald Pfeifer
1535 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1537 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1540 * libgomp.fortran/allocatable6.f90: New test.
1542 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1544 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1545 * configure: Regenerate.
1547 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1551 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1552 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1553 * aclocal.m4: Regenerate.
1554 * configure: Regenerate.
1555 * Makefile.in: Regenerate.
1556 * testsuite/Makefile.in: Regenerate.
1558 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1561 * libgomp.fortran/pr46753.f90: New test.
1564 * env.c (initialize_env): Default to spin count 300000
1565 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1569 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1570 at the end if sync builtins aren't supported.
1572 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1576 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1578 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1580 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1582 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1584 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1585 Tobias Burnus <burnus@net-b.de>
1589 * configure: Regenerate.
1591 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1593 * config/linux/futex.h: New.
1594 * config/linux/arm/mutex.h: New.
1595 * configure.tgt (arm*-*-linux*): Add config path.
1597 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1599 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1601 2010-09-23 Tobias Burnus <burnus@net-b.de>
1603 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1604 Change Fortran datatype to LOGICAL.
1605 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1606 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1608 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1610 * configure: Regenerate.
1612 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1614 * libgomp.texi: Add function keyword to a couple of Fortran
1615 interfaces, use integer instead of int for Fortran.
1617 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1619 * libgomp.texi: Fix spelling and pasto problems throughout.
1620 Adjust prototypes to match code.
1622 2010-07-24 Tobias Burnus <burnus@net-b.de>
1624 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1625 silence -fwhole-file warning.
1627 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1629 * configure.tgt (*-*-solaris2.[56]*): Removed.
1631 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1633 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1634 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1635 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1636 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1637 targetting solaris2*.
1638 * configure: Regenerate.
1639 * config.h.in: Regenerate.
1641 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1642 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1643 Add libgomp_version_dep.
1644 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1646 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1647 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1648 * Makefile.in: Regenerate.
1650 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1651 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1652 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1653 to common block, protected by
1654 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1656 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1658 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1660 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1663 * configure: Regenerate.
1665 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1668 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1669 * configure: Regenerate.
1670 * Makefile.in: Regenerate.
1671 * testsuite/Makefile.in: Regenerate.
1673 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1676 * testsuite/libgomp.c/pr43893.c: New test.
1677 * testsuite/libgomp.c++/pr43893.C: New test.
1679 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1682 * testsuite/libgomp.fortran/vla8.f90: New test.
1684 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1687 * config/linux/affinity.c (gomp_init_affinity): Decrease
1688 gomp_available_cpus if affinity mask confines the process to fewer
1690 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1691 non-NULL, just return gomp_available_cpus.
1694 * sections.c (gomp_sections_init): Initialize ws->mode.
1696 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1698 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1699 not unused bar variable.
1700 * configure: Regenerate.
1702 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1704 * Makefile.in: Regenerate.
1705 * aclocal.m4: Regenerate.
1706 * testsuite/Makefile.in: Regenerate.
1708 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1711 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1712 (initialize_env): Adjust callers.
1713 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1714 when the argument is 0.
1716 * testsuite/libgomp.c/pr42942.c: New test.
1718 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1722 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1723 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1725 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1727 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1728 * testsuite/libgomp.c++/task-6.C: Likewise.
1730 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1732 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1734 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1736 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1737 * configure: Regenerate.
1739 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1742 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1744 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1746 * configure.ac: Test for executability of GFORTRAN.
1747 * configure: Regenerate.
1749 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1751 * configure: Regenerate.
1753 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1756 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1758 2010-01-03 Richard Guenther <rguenther@suse.de>
1760 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1762 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1764 * testsuite/libgomp.graphite/pr4118.c: New.
1766 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1768 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1769 for darwin, protect the test with require-effective-target tls_runtime.
1770 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1772 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1775 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1776 link spec %s substitutions for static libraries.
1778 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1781 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1783 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1785 * Makefile.in: Regenerate.
1786 * configure: Regenerate.
1787 * testsuite/Makefile.in: Regenerate.
1789 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1791 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1792 settings for LC_ALL and LANG.
1794 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1797 * testsuite/libgomp.fortran/pr42162.f90: New test.
1799 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1802 * testsuite/libgomp.c/pr42029.c: New test.
1804 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1806 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1807 *s. Accept ld version without text in ()s.
1808 * configure: Regenerated.
1810 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1812 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1814 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1817 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1818 or a hyphen (happens with fortran language disabled).
1819 * configure: Regenerate.
1821 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1823 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1824 use sed script portable to Solaris /bin/sed for extracting ld
1826 * configure: Regenerate.
1828 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1830 * testsuite/libgomp.graphite/bounds.c: New test.
1832 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1834 * Makefile.am (libgomp_la_LINK): New.
1835 * Makefile.in: Regenerate.
1837 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1839 * configure.ac (AC_PREREQ): Bump to 2.64.
1841 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1843 * Makefile.am (install-html, install-pdf): Remove.
1844 * Makefile.in: Regenerate.
1846 * Makefile.in: Regenerate.
1847 * aclocal.m4: Regenerate.
1848 * config.h.in: Regenerate.
1849 * configure: Regenerate.
1850 * testsuite/Makefile.in: Regenerate.
1852 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1854 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1855 * Makefile.in: Regenerate.
1857 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1859 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1860 * Makefile.in: Regenerate.
1862 2009-08-19 Tobias Burnus <burnus@net-b.de>
1865 omp_lib.h.in: Fix -std=f95 errors.
1868 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1870 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1871 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1872 * testsuite/libgomp.graphite/graphite.exp: New.
1874 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1876 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1879 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1881 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1882 needed memory barrier semantics.
1883 * config/linux/mips/mutex.h: New file.
1885 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1887 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1889 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1891 * configure: Regenerate.
1893 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1898 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1899 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1900 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1902 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1904 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1905 options when choosing a multilib.
1907 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1909 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1910 ld_library_path. Use add_path. Add just find_libgcc_s to
1911 ld_library_path, not every libgcc multilib directory.
1912 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1913 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1914 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1916 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1918 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1920 * Makefile.am (LTLDFLAGS): Define.
1922 * Makefile.in: Regenerate.
1924 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1927 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1928 libgfortranbegin, check existence of libgfortran.a instead of
1931 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1934 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1935 (gomp_free_pool_helper): Likewise.
1937 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1938 Jakub Jelinek <jakub@redhat.com>
1941 * testsuite/libgomp.fortran/workshare2.f90: New test.
1943 2009-04-09 Nick Clifton <nickc@redhat.com>
1945 * iter.c: Change copyright header to refer to version 3 of the
1946 GNU General Public License with version 3.1 of the GCC Runtime
1947 Library Exception and to point readers at the COPYING3 and
1948 COPYING3.RUNTIME files and the FSF's license web page.
1949 * alloc.c: Likewise.
1950 * barrier.c: Likewise.
1951 * config/bsd/proc.c: Likewise.
1952 * config/linux/affinity.c: Likewise.
1953 * config/linux/alpha/futex.h: Likewise.
1954 * config/linux/bar.c: Likewise.
1955 * config/linux/bar.h: Likewise.
1956 * config/linux/ia64/futex.h: Likewise.
1957 * config/linux/ia64/mutex.h: Likewise.
1958 * config/linux/lock.c: Likewise.
1959 * config/linux/mips/futex.h: Likewise.
1960 * config/linux/mutex.c: Likewise.
1961 * config/linux/mutex.h: Likewise.
1962 * config/linux/powerpc/futex.h: Likewise.
1963 * config/linux/proc.c: Likewise.
1964 * config/linux/ptrlock.c: Likewise.
1965 * config/linux/ptrlock.h: Likewise.
1966 * config/linux/s390/futex.h: Likewise.
1967 * config/linux/sem.c: Likewise.
1968 * config/linux/sem.h: Likewise.
1969 * config/linux/sparc/futex.h: Likewise.
1970 * config/linux/wait.h: Likewise.
1971 * config/linux/x86/futex.h: Likewise.
1972 * config/mingw32/proc.c: Likewise.
1973 * config/mingw32/time.c: Likewise.
1974 * config/posix/affinity.c: Likewise.
1975 * config/posix/bar.c: Likewise.
1976 * config/posix/bar.h: Likewise.
1977 * config/posix/lock.c: Likewise.
1978 * config/posix/mutex.h: Likewise.
1979 * config/posix/proc.c: Likewise.
1980 * config/posix/ptrlock.h: Likewise.
1981 * config/posix/sem.c: Likewise.
1982 * config/posix/sem.h: Likewise.
1983 * config/posix/time.c: Likewise.
1984 * config/posix95/lock.c: Likewise.
1985 * critical.c: Likewise.
1987 * error.c: Likewise.
1988 * fortran.c: Likewise.
1989 * iter_ull.c: Likewise.
1990 * libgomp.h: Likewise.
1991 * libgomp_f.h.in: Likewise.
1992 * libgomp_g.h: Likewise.
1994 * loop_ull.c: Likewise.
1995 * omp.h.in: Likewise.
1996 * omp_lib.f90.in: Likewise.
1997 * omp_lib.h.in: Likewise.
1998 * ordered.c: Likewise.
1999 * parallel.c: Likewise.
2000 * sections.c: Likewise.
2001 * single.c: Likewise.
2006 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2008 * testsuite/config/default.exp: Change copyright header to refer to
2009 version 3 of the GNU General Public License and to point readers
2010 at the COPYING3 file and the FSF's license web page.
2012 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2015 * libgomp.c++/pr39573.C: New test.
2017 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2020 * testsuite/libgomp.c/pr39591-1.c: New test.
2021 * testsuite/libgomp.c/pr39591-2.c: New test.
2022 * testsuite/libgomp.c/pr39591-3.c: New test.
2024 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2026 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2027 * testsuite/libgomp.c/atomic-6.c: Ditto.
2029 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2032 * testsuite/libgomp.c/loop-12.c: New test.
2033 * testsuite/libgomp.c/loop-11.c: New test.
2034 * testsuite/libgomp.c++/loop-11.C: New test.
2035 * testsuite/libgomp.c++/loop-12.C: New test.
2036 * testsuite/libgomp.c++/for-8.C: New test.
2038 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2040 * configure: Regenerate.
2042 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2045 * testsuite/libgomp.c/pr39154.c: New test.
2047 2009-01-30 Ian Lance Taylor <iant@google.com>
2049 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2050 libgomp_ld_is_gold. Get gold version number.
2051 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2052 * configure: Rebuild.
2054 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2056 * testsuite/lib/libgomp.exp: Add -B option for targets that
2057 use libgfortran.a%s in their specs.
2059 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2062 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2063 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2064 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2065 * configure: Regenerated.
2066 * config.h.in: Likewise.
2068 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2071 * testsuite/libgomp.c/pr38650.c: New test.
2072 * testsuite/libgomp.c++/pr38650.C: New test.
2074 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2076 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2078 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2080 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2082 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2084 * configure: Regenerate.
2086 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2089 * testsuite/libgomp.c/pr36802-1.c: New test.
2090 * testsuite/libgomp.c/pr36802-2.c: New test.
2091 * testsuite/libgomp.c/pr36802-3.c: New test.
2093 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2096 * config/linux/powerpc/mutex.h: New.
2098 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2101 * testsuite/libgomp.c++/for-7.C: New test.
2104 * testsuite/libgomp.c++/for-6.C: New test.
2106 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2109 * testsuite/lib/libgomp.exp: Include new timeout library files.
2110 (libgomp_target_compile): Set timeout value from new proc.
2112 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2115 * config/linux/ia64/mutex.h: New.
2117 2008-11-04 Tobias Burnus <burnus@net-b.de>
2120 * libgomp.texi (Runtime library routines, environment variables):
2121 Update for OpenMP version 3.0.
2123 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2124 Steve Ellcey <sje@cup.hp.com>
2126 * configure: Regenerate for new libtool.
2127 * Makefile.in: Ditto.
2128 * testsuite/Makefile.in: Ditto.
2130 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2131 Andreas Tobler <a.tobler@schweiz.org>
2133 * config/bsd/proc.c: New file.
2134 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2135 * configure.ac: Check for header <sys/sysctl.h>
2136 * configure: Regenerate.
2137 * config.h.in: Likewise.
2139 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2141 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2143 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2145 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2146 * Makefile.in: Regenerated.
2147 * testsuite/Makefile.in: Regenerated.
2149 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2151 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2152 depend on blddir if blddir exists.
2153 (libgomp_target_compile): Likewise.
2154 * testsuite/libgomp.c++/c++.exp: Likewise.
2155 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2157 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2159 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2160 Do not list GPL as Invariant Section.
2162 2008-07-28 Ilie Garbacea <ilie@mips.com>
2163 Chao-ying Fu <fu@mips.com>
2165 * configure.tgt: Enable futex for MIPS.
2166 * config/linux/mips/futex.h: New file.
2168 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2170 * team.c (gomp_team_end): Free team immediately if it has
2173 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2175 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2176 * testsuite/libgomp.fortran/fortran.exp: Same.
2177 * testsuite/libgomp.c/c.exp: Same.
2178 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2179 directory to library path first.
2181 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2183 * env.c (parse_stacksize): Add cast to avoid warning.
2184 (parse_spincount): Likewise.
2186 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2188 * testsuite/libgomp.c/loop-10.c: New test.
2189 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2190 * libgomp.c++/loop-6.C (main): Likewise.
2193 * testsuite/libgomp.c/debug-1.c: New test.
2195 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2197 * testsuite/libgomp.c/nqueens-1.c: New test.
2200 * testsuite/libgomp.c++/task-7.C: New function.
2202 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2204 * configure: Regenerate.
2206 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2208 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2209 mutex when HAVE_SYNC_BUILTINS isn't defined.
2211 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2213 * libgomp.texi (omp_test_lock): Fix typo.
2215 2008-06-12 Tobias Burnus <burnus@net-b.de>
2217 * omp_lib.f90.in: Add "implicit none".
2219 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2222 * testsuite/libgomp.c/reduction-5.c: New test.
2224 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2226 * libgomp.h (struct gomp_task): Add in_tied_task field.
2227 * task.c (gomp_init_task): Initialize it.
2228 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2229 unconditionally. Don't call gomp_team_barrier_wake if
2230 current task is implicit or if(0) from implicit and number of
2231 running tasks is equal to nthreads - 1.
2234 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2235 omp_get_team_size_8): Fix pastos.
2238 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2239 * configure: Regenerated.
2240 * config.h.in: Regenerated.
2241 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2244 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
2247 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2248 (GOMP_loop_ull_dynamic_start): Likewise.
2249 (GOMP_loop_ull_guided_start): Likewise.
2250 (GOMP_loop_ull_ordered_static_start): Likewise.
2251 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2252 (GOMP_loop_ull_ordered_guided_start): Likewise.
2254 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2255 Richard Henderson <rth@redhat.com>
2256 Ulrich Drepper <drepper@redhat.com>
2257 Jakob Blomer <jakob.blomer@ira.uka.de>
2259 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2260 Substitute also OMP_*LOCK_25*.
2261 * configure: Regenerated.
2262 * config.h.in: Regenerated.
2263 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2264 ptrlock.c and task.c.
2265 * Makefile.in: Regenerated.
2266 * testsuite/Makefile.in: Regenerated.
2268 * loop_ull.c: New file.
2269 * iter_ull.c: New file.
2270 * libgomp.h: Include ptrlock.h.
2271 (enum gomp_task_kind): New type.
2272 (struct gomp_team): Add task_lock, task_queue, task_count,
2273 task_running_count, single_count fields. Add
2274 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2275 Remove work_share_lock, generation_mask,
2276 oldest_live_gen, num_live_gen and init_work_shares fields, add
2277 work work_share_list_alloc, work_share_list_free and work_share_chunk
2278 fields. Change work_shares from pointer to pointers into an array.
2279 Change ordered_release field into gomp_sem_t ** from flexible array
2280 member. Add implicit_task and initial_work_shares fields.
2281 Move close to the end of the struct.
2282 (struct gomp_team_state): Add single_count, last_work_share,
2283 active_level and level fields, remove work_share_generation.
2284 (gomp_barrier_handle_tasks): New prototype.
2285 (gomp_finish_task): New inline function.
2286 (struct gomp_work_share): Move chunk_size, end, incr into
2287 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2288 next_ll fields. Reshuffle fields. Add next_alloc,
2289 next_ws, next_free and inline_ordered_team_ids fields, change
2290 ordered_team_ids into pointer from flexible array member.
2291 Add mode field. Put lock and next into a different cache line
2292 from most of the write-once fields.
2293 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2294 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2295 gomp_iter_ull_guided_next): New prototypes.
2296 (gomp_new_icv): New prototype.
2297 (struct gomp_thread): Add thread_pool and task fields.
2298 (struct gomp_thread_pool): New type.
2299 (gomp_new_team): New prototype.
2300 (gomp_team_start): Change type of last argument.
2301 (gomp_new_work_share): Removed.
2302 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2303 (gomp_work_share_init_done): New static inline.
2304 (gomp_throttled_spin_count_var, gomp_available_cpus,
2305 gomp_managed_threads): New extern decls.
2306 (gomp_init_task): New prototype.
2307 (gomp_spin_count_var): New extern var decl.
2308 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2309 or no alias support, or if not PIC.
2310 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2311 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2312 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2313 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2314 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2315 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2316 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2317 gomp_test_nest_lock_25): New prototypes.
2318 (omp_lock_symver, strong_alias): Define.
2319 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2321 (gomp_end_task): New.
2322 (struct gomp_task_icv, gomp_global_icv): New.
2323 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2324 (struct gomp_task): New.
2325 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2326 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2328 (gomp_schedule_type): Reorder enum to match
2330 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2332 (gomp_thread_start): Add gomp_team_barrier_wait call.
2333 For non-nested case remove clearing of docked thread thr fields.
2334 Use pool fields instead of global gomp_* variables. Use
2335 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2336 Create tasks for each member thread.
2337 (free_team): Only destroy team barrier, task_lock here and free it.
2338 (gomp_free_thread): Free last_team if non-NULL.
2339 (gomp_team_end): Call gomp_team_barrier_wait instead of
2340 gomp_barrier_wait. For nested case call one extra
2341 gomp_barrier_wait. Move here some destruction from free_team.
2342 Call free_team on pool->last_team if any, rather than freeing
2343 current team. Destroy work_share_list_free_lock ifndef
2345 (gomp_new_icv): New function.
2346 (gomp_threads, gomp_threads_size, gomp_threads_used,
2347 gomp_threads_dock): Removed.
2348 (gomp_thread_destructor): New variable.
2349 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2351 (gomp_team_start): Create new pool if current thread doesn't have
2352 one. Use pool fields instead of global gomp_* variables.
2353 Initialize thread_pool field for new threads. Clear single_count.
2354 Change last argument from ws to team, don't create
2355 new team, set ts.work_share to &team->work_shares[0] and clear
2356 ts.last_work_share. Don't clear ts.work_share_generation.
2357 If number of threads changed, adjust atomically gomp_managed_threads.
2358 Use gomp_init_task instead of gomp_new_task,
2359 set thr->task to the corresponding implicit_task array entry.
2360 Create tasks for each member thread. Initialize ts.level.
2361 (initialize_team): Call pthread_key_create on
2362 gomp_thread_destructor.
2363 (team_destructor): New function.
2364 (new_team): Removed.
2365 (gomp_new_team): New function.
2366 (free_team): Free gomp_work_share blocks chained through next_alloc,
2367 instead of freeing work_shares and destroying work_share_lock.
2368 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2369 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2370 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2371 of gomp_barrier_wait.
2372 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2373 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2374 if gomp_work_share_start returned true. Don't unlock ws->lock.
2375 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2376 of gomp_barrier_wait.
2377 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2378 gomp_work_share_init_done if gomp_work_share_start returned true.
2379 Don't unlock ws->lock.
2380 * work.c: Include stddef.h.
2381 (free_work_share): Use work_share_list_free_lock instead
2382 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2383 Call gomp_fini_work_share and then either free ws if orphaned, or
2384 put it into work_share_list_free list of the current team.
2385 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2387 (gomp_work_share_start, gomp_work_share_end,
2388 gomp_work_share_end_nowait): Rewritten.
2389 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2390 (openmp_version): Set to 200805.
2391 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2392 omp_sched_guided, omp_sched_auto): New parameters.
2393 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2394 omp_set_max_active_levels, omp_get_max_active_levels,
2395 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2396 omp_get_active_level): New interfaces.
2397 * omp_lib.h.in (openmp_version): Set to 200805.
2398 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2399 omp_sched_guided, omp_sched_auto): New parameters.
2400 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2401 omp_set_max_active_levels, omp_get_max_active_levels,
2402 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2403 omp_get_active_level): New externals.
2404 * loop.c: Include limits.h.
2405 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2407 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2408 Likewise. Use gomp_icv.
2409 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2410 ts.static_trip here.
2411 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2412 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2413 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2414 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2415 don't unlock ws->lock, otherwise lock it.
2416 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2417 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2418 (gomp_parallel_loop_start): Call gomp_new_team instead of
2419 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2420 Adjust gomp_team_start caller. Pass 0 as second argument to
2421 gomp_resolve_num_threads.
2422 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2423 If adding ws->chunk_size nthreads + 1 times after end won't
2424 overflow, set ws->mode to 1.
2425 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2426 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2427 GOMP_loop_ull_ordered_static_start,
2428 GOMP_loop_ull_ordered_dynamic_start,
2429 GOMP_loop_ull_ordered_guided_start,
2430 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2431 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2432 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2433 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2434 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2436 * libgomp.map: Export lock routines also @@OMP_2.0.
2437 (GOMP_loop_ordered_dynamic_first,
2438 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2439 GOMP_loop_ordered_static_first): Remove.
2440 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2441 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2442 GOMP_loop_ull_ordered_dynamic_next,
2443 GOMP_loop_ull_ordered_dynamic_start,
2444 GOMP_loop_ull_ordered_guided_next,
2445 GOMP_loop_ull_ordered_guided_start,
2446 GOMP_loop_ull_ordered_runtime_next,
2447 GOMP_loop_ull_ordered_runtime_start,
2448 GOMP_loop_ull_ordered_static_next,
2449 GOMP_loop_ull_ordered_static_start,
2450 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2451 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2452 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2453 (omp_set_schedule, omp_get_schedule,
2454 omp_get_thread_limit, omp_set_max_active_levels,
2455 omp_get_max_active_levels, omp_get_level,
2456 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2457 omp_set_schedule_, omp_set_schedule_8_,
2458 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2459 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2460 omp_get_max_active_levels_, omp_get_level_,
2461 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2462 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2463 New exports @@OMP_3.0.
2464 * omp.h.in (omp_sched_t): New type.
2465 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2466 omp_set_max_active_levels, omp_get_max_active_levels,
2467 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2468 omp_get_active_level): New prototypes.
2469 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2470 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2471 gomp_thread_limit_var, gomp_remaining_threads_count,
2472 gomp_remaining_threads_lock): New variables.
2473 (parse_spincount): New function.
2474 (initialize_env): Call gomp_init_num_threads unconditionally.
2475 Initialize gomp_available_cpus. Call parse_spincount,
2476 initialize gomp_{,throttled_}spin_count_var
2477 depending on presence and value of OMP_WAIT_POLICY and
2478 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2479 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2480 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2481 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2482 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2483 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2484 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2485 (gomp_global_icv): New.
2486 (parse_schedule): Use it. Parse "auto".
2487 (omp_set_num_threads): Use gomp_icv.
2488 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2490 (omp_get_max_threads): Move from parallel.c.
2491 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2492 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2494 (parse_stacksize, parse_wait_policy): New functions.
2495 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2496 both wrappers for compatibility and new locks.
2497 (omp_set_schedule, omp_get_schedule,
2498 omp_get_thread_limit, omp_set_max_active_levels,
2499 omp_get_max_active_levels, omp_get_level,
2500 omp_get_ancestor_thread_num, omp_get_team_size,
2501 omp_get_active_level): New ialias_redirect.
2502 (omp_set_schedule_, omp_set_schedule_8_,
2503 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2504 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2505 omp_get_max_active_levels_, omp_get_level_,
2506 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2507 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2509 * parallel.c: Include limits.h.
2510 (gomp_resolve_num_threads): Add count argument. Rewritten.
2511 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2512 argument to gomp_team_start. Pass 0 as second argument to
2513 gomp_resolve_num_threads.
2514 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2515 if gomp_thread_limit_var != ULONG_MAX.
2516 (omp_in_parallel): Implement using ts.active_level.
2517 (omp_get_max_threads): Move to env.c.
2518 (omp_get_level, omp_get_ancestor_thread_num,
2519 omp_get_team_size, omp_get_active_level): New functions,
2521 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2522 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2523 gomp_iter_dynamic_next instead of the _locked variant and don't take
2524 lock around it, otherwise acquire it before calling
2525 gomp_iter_dynamic_next_locked.
2526 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2527 gomp_iter_dynamic_next instead of the _locked variant and don't take
2529 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2530 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2531 Adjust gomp_team_start caller. Pass count as second argument to
2532 gomp_resolve_num_threads, don't adjust num_threads after the call.
2534 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2535 ws->chunk_size by incr.
2536 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2538 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2540 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2541 (omp_check_defines): Check even the compat defines.
2542 * config/linux/ptrlock.c: New file.
2543 * config/linux/ptrlock.h: New file.
2544 * config/linux/wait.h: New file.
2545 * config/posix/ptrlock.c: New file.
2546 * config/posix/ptrlock.h: New file.
2547 * config/linux/bar.h (gomp_team_barrier_wait,
2548 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2549 (gomp_team_barrier_set_task_pending,
2550 gomp_team_barrier_clear_task_pending,
2551 gomp_team_barrier_set_waiting_for_tasks,
2552 gomp_team_barrier_waiting_for_tasks,
2553 gomp_team_barrier_done): New inlines.
2554 (gomp_barrier_t): Rewritten.
2555 (gomp_barrier_state_t): New typedef.
2556 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2557 gomp_barrier_wait_start): Rewritten.
2558 (gomp_barrier_wait_end): Change second argument to
2559 gomp_barrier_state_t.
2560 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2562 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2564 (gomp_barrier_wait_end): Rewritten.
2565 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2566 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2567 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2568 (gomp_barrier_state_t): New typedef.
2569 (gomp_team_barrier_wait,
2570 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2571 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2572 into the return value. Return gomp_barrier_state_t.
2573 (gomp_team_barrier_set_task_pending,
2574 gomp_team_barrier_clear_task_pending,
2575 gomp_team_barrier_set_waiting_for_tasks,
2576 gomp_team_barrier_waiting_for_tasks,
2577 gomp_team_barrier_done): New inlines.
2578 (gomp_barrier_wait_end): Change second argument to
2579 gomp_barrier_state_t.
2580 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2582 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2583 (gomp_barrier_wait_end): Change second argument to
2584 gomp_barrier_state_t.
2585 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2586 gomp_team_barrier_wake): New functions.
2587 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2589 (gomp_futex_wake, gomp_futex_wait): New variables.
2590 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2591 * config/linux/lock.c: Rewrite to make locks task owned,
2592 for backwards compatibility provide the old entrypoints
2593 if symbol versioning. Include wait.h instead of libgomp.h and
2595 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2596 * config/posix95/lock.c: Rewrite to make locks task owned,
2597 for backwards compatibility provide the old entrypoints
2598 if symbol versioning.
2599 * config/posix/lock.c: Rewrite to make locks task owned,
2600 for backwards compatibility provide the old entrypoints
2601 if symbol versioning.
2602 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2603 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2604 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2605 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2606 (sys_futex0): Return error code.
2607 (futex_wake, futex_wait): If ENOSYS was returned, clear
2608 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2609 (cpu_relax, atomic_write_barrier): New static inlines.
2610 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2611 (futex_wake, futex_wait): If ENOSYS was returned, clear
2612 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2613 (cpu_relax, atomic_write_barrier): New static inlines.
2614 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2615 (sys_futex0): Return error code.
2616 (futex_wake, futex_wait): If ENOSYS was returned, clear
2617 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2618 (cpu_relax, atomic_write_barrier): New static inlines.
2619 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2620 (sys_futex0): Return error code.
2621 (futex_wake, futex_wait): If ENOSYS was returned, clear
2622 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2623 (cpu_relax, atomic_write_barrier): New static inlines.
2624 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2625 (sys_futex0): Return error code.
2626 (futex_wake, futex_wait): If ENOSYS was returned, clear
2627 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2628 (cpu_relax, atomic_write_barrier): New static inlines.
2629 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2630 (sys_futex0): Return error code.
2631 (futex_wake, futex_wait): If ENOSYS was returned, clear
2632 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2633 (cpu_relax, atomic_write_barrier): New static inlines.
2634 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2636 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2637 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2638 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2640 (omp_nest_lock_t): Change owner into void *, add lock field.
2641 * config/posix95/omp-lock.h: Include semaphore.h.
2642 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2643 (omp_lock_t): Use sem_t instead of mutex if semaphores
2645 (omp_nest_lock_t): Likewise. Change owner to void *.
2646 * config/posix/omp-lock.h: Include semaphore.h.
2647 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2648 (omp_lock_t): Use sem_t instead of mutex if semaphores
2650 (omp_nest_lock_t): Likewise. Add owner field.
2652 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2654 * testsuite/libgomp.c/collapse-1.c: New test.
2655 * testsuite/libgomp.c/collapse-2.c: New test.
2656 * testsuite/libgomp.c/collapse-3.c: New test.
2657 * testsuite/libgomp.c/icv-1.c: New test.
2658 * testsuite/libgomp.c/icv-2.c: New test.
2659 * testsuite/libgomp.c/lib-2.c: New test.
2660 * testsuite/libgomp.c/lock-1.c: New test.
2661 * testsuite/libgomp.c/lock-2.c: New test.
2662 * testsuite/libgomp.c/lock-3.c: New test.
2663 * testsuite/libgomp.c/loop-4.c: New test.
2664 * testsuite/libgomp.c/loop-5.c: New test.
2665 * testsuite/libgomp.c/loop-6.c: New test.
2666 * testsuite/libgomp.c/loop-7.c: New test.
2667 * testsuite/libgomp.c/loop-8.c: New test.
2668 * testsuite/libgomp.c/loop-9.c: New test.
2669 * testsuite/libgomp.c/nested-3.c: New test.
2670 * testsuite/libgomp.c/nestedfn-6.c: New test.
2671 * testsuite/libgomp.c/sort-1.c: New test.
2672 * testsuite/libgomp.c/task-1.c: New test.
2673 * testsuite/libgomp.c/task-2.c: New test.
2674 * testsuite/libgomp.c/task-3.c: New test.
2675 * testsuite/libgomp.c/task-4.c: New test.
2676 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2677 to C++ testsuite default compiler options.
2678 * testsuite/libgomp.c++/collapse-1.C: New test.
2679 * testsuite/libgomp.c++/collapse-2.C: New test.
2680 * testsuite/libgomp.c++/ctor-10.C: New test.
2681 * testsuite/libgomp.c++/for-1.C: New test.
2682 * testsuite/libgomp.c++/for-2.C: New test.
2683 * testsuite/libgomp.c++/for-3.C: New test.
2684 * testsuite/libgomp.c++/for-4.C: New test.
2685 * testsuite/libgomp.c++/for-5.C: New test.
2686 * testsuite/libgomp.c++/loop-8.C: New test.
2687 * testsuite/libgomp.c++/loop-9.C: New test.
2688 * testsuite/libgomp.c++/loop-10.C: New test.
2689 * testsuite/libgomp.c++/task-1.C: New test.
2690 * testsuite/libgomp.c++/task-2.C: New test.
2691 * testsuite/libgomp.c++/task-3.C: New test.
2692 * testsuite/libgomp.c++/task-4.C: New test.
2693 * testsuite/libgomp.c++/task-5.C: New test.
2694 * testsuite/libgomp.c++/task-6.C: New test.
2695 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2696 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2697 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2698 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2699 * testsuite/libgomp.fortran/collapse1.f90: New test.
2700 * testsuite/libgomp.fortran/collapse2.f90: New test.
2701 * testsuite/libgomp.fortran/collapse3.f90: New test.
2702 * testsuite/libgomp.fortran/collapse4.f90: New test.
2703 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2704 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2705 * testsuite/libgomp.fortran/lib4.f90: New test.
2706 * testsuite/libgomp.fortran/lock-1.f90: New test.
2707 * testsuite/libgomp.fortran/lock-2.f90: New test.
2708 * testsuite/libgomp.fortran/nested1.f90: New test.
2709 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2710 * testsuite/libgomp.fortran/strassen.f90: New test.
2711 * testsuite/libgomp.fortran/tabs1.f90: New test.
2712 * testsuite/libgomp.fortran/tabs2.f: New test.
2713 * testsuite/libgomp.fortran/task1.f90: New test.
2714 * testsuite/libgomp.fortran/task2.f90: New test.
2715 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2716 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2717 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2718 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2719 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2721 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2724 * testsuite/libgomp.c++/ctor-11.C: New test.
2725 * testsuite/libgomp.c++/ctor-12.C: New test.
2727 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2729 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2731 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2734 * testsuite/libgomp.c/atomic-5.c: New test.
2735 * testsuite/libgomp.c/atomic-6.c: New test.
2736 * testsuite/libgomp.c/autopar-1.c: New test.
2738 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2740 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2741 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2742 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2743 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2744 * configure: Regenerate.
2745 * Makefile.in, testsuite/Makefile.in: Likewise.
2747 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2750 * aclocal.m4: Regenerate.
2751 * configure: Regenerate.
2753 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2756 * testsuite/libgomp.c/atomic-4.c: New test.
2759 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2760 (gomp_iter_guided_next): Likewise.
2761 * testsuite/libgomp.c/pr35625.c: New test.
2763 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2765 * aclocal.m4: Regenerate.
2766 * configure: Likewise.
2767 * Makefile.in: Likewise.
2768 * testsuite/Makefile.in: Likewise.
2770 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2773 * testsuite/libgomp.c++/pr35185.C: New test.
2775 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2778 * testsuite/libgomp.c/pr35549.c: New test.
2780 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2782 * testsuite/libgomp.c/atomic-3.c: New test.
2784 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2787 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2790 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2793 * configure.ac: Add ACX_HEADER_STRING.
2794 * env.c: Include strings.h.
2795 * aclocal.m4: Regenerate.
2796 * config.h.in: Regenerate.
2797 * configure: Regenerate.
2798 * Makefile.in: Regenerate.
2799 * testsuite/Makefile.in: Regenerate.
2801 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2804 * testsuite/libgomp.c/pr35196.c: New test.
2807 * testsuite/libgomp.fortran/pr35130.f90: New test.
2808 * testsuite/libgomp.c/pr35130.c: New test.
2810 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2813 * testsuite/libgomp.c/pr33880.c: New test.
2814 * testsuite/libgomp.fortran/pr33880.f90: New test.
2816 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2818 * configure: Regenerate.
2820 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2822 * configure.ac: Move futex checking into ../config/futex.m4.
2823 * configure: Rebuilt.
2824 * aclocal.m4: Rebuilt.
2825 * Makefile.in: Rebuilt.
2827 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2828 2007-10-15 ../config/tls.m4 change.
2830 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2833 * testsuite/libgomp.c/pr34513.c: New test.
2834 * testsuite/libgomp.c++/pr34513.C: New test.
2836 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2839 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2841 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2843 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2845 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2847 * testsuite/libgomp.c/private-1.c: New test.
2849 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2850 Paolo Bonzini <bonzini@gnu.org>
2852 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2853 instead of 'VPATH ='.
2854 * Makefile.in: Regenerate.
2856 2007-11-23 Matthias Klose <doko@ubuntu.com>
2858 * configure.ac: Adjust makeinfo version check.
2859 * configure: Regenerate.
2861 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2864 * testsuite/libgomp.fortran/pr34020.f90: New test.
2866 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2869 * testsuite/libgomp.c++/atomic-1.C: New test.
2871 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2874 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2875 Make x and y integers rather than (implicit) reals. Add private (j)
2876 clause to the last omp parallel.
2878 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2880 * configure: Regenerate following changes to ../config/tls.m4.
2882 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2884 * testsuite/libgomp.fortran/stack.f90: New test.
2886 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2888 * config/mingw32/proc.c: New file.
2890 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2892 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2893 (main): Use __get_cpuid to get i386 target fetaures.
2894 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2895 (main): Use __get_cpuid to get x86_64 target fetaures.
2897 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2900 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2901 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2903 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2906 * testsuite/libgomp.fortran/pr32550.f90: New test.
2907 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2909 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2911 * aclocal.m4: Regenerated.
2913 2007-07-05 Tobias Burnus <burnus@net-b.de>
2916 * testsuite/libgomp.fortran/pr32359.f90: New.
2918 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2921 * sections.c (GOMP_parallel_sections_start): Only decrease
2922 number of threads to COUNT if dyn_var is true.
2923 * testsuite/libgomp.c/pr32468.c: New test.
2925 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2928 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2930 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2933 * testsuite/libgomp.c/pr32362-1.c: New test.
2934 * testsuite/libgomp.c/pr32362-2.c: New test.
2935 * testsuite/libgomp.c/pr32362-3.c: New test.
2937 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2939 * team.c (gomp_team_start): Fix setting up thread_attr
2942 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2944 * configure: Regenerate.
2946 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2948 * Makefile.in: Regenerate.
2949 * configure: Regenerate.
2950 * aclocal.m4: Regenerate.
2951 * testsuite/Makefile.in: Regenerate.
2953 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2955 * config/linux/proc.c: New file.
2958 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2960 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2962 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2964 2007-04-16 Matthias Klose <doko@debian.org>
2966 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2967 flags if not building with -m64.
2968 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2969 flag for i?86-*-* targets, if current target matches -m64.
2971 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2973 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2974 * Makefile.in: Regenerate.
2976 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2979 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2981 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2983 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2985 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2987 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2988 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2989 (parse_affinity): New function.
2990 (initialize_env): Call it and gomp_init_affinity.
2991 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2992 create new pthread_attr_t and call gomp_init_thread_affinity
2993 on it for each thread before passing the attribute to pthread_create.
2994 * config/linux/affinity.c: New file.
2995 * config/posix/affinity.c: New file.
2996 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2997 * configure: Rebuilt.
2998 * config.h.in: Rebuilt.
2999 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3000 * Makefile.in: Rebuilt.
3002 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3004 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3006 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3007 and use it if found.
3009 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3011 * testsuite/config/default.exp: New file.
3012 * testsuite/lib/libgomp.exp: New file.
3013 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3014 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3015 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3016 (libgomp_load): Remove.
3017 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3018 always_ld_library_path, not ld_library_path. Set additional_flags
3019 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3020 (target_compile): Do not call libgomp_init. Append lang_library_path
3021 and lang_link_flags to options.
3022 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3023 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3025 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3026 always_ld_library_path. Set LD_LIBRARY_PATH here.
3027 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3028 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3029 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3031 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3032 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3033 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3034 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3035 * testsuite/libgomp.c/atomic-10.c: Ditto.
3037 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3039 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3040 dg-final cleanup-modules line.
3041 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3042 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3043 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3044 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3045 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3046 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3047 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3049 2007-03-18 Andreas Schwab <schwab@suse.de>
3051 * acinclude.m4: Adjust regular expression for ld version
3053 * configure: Regenerate.
3055 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3057 * Makefile.am: Add install-pdf target as copied from
3058 automake v1.10 rules.
3059 * Makefile.in: Regenerate
3061 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3064 * configure: Regenerate.
3067 * testsuite/libgomp.c++/pr30703.C: New test.
3069 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3072 2006-07-05 Eric Christopher <echristo@apple.com>
3073 * configure.ac: Depend addition of -pthread on host OS.
3074 * configure: Regenerate.
3076 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3078 * libgomp.texi: Fix spacing after abbreviations.
3080 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3083 * configure.ac: Add check for makeinfo
3084 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3085 if an appropiate version of makeinfo is found.
3086 * aclocal.m4: Regenerated.
3087 * configure: Regenerated.
3088 * Makefile.in: Regenerated.
3089 * testsuite/Makefile.in: Regenerated.
3091 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3094 * libgomp.texi: More about implementation-dependent settings.
3096 2007-01-26 Tobias Burnus <burnus@net-b.de>
3098 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3100 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3103 * testsuite/libgomp.c/pr30494.c: New test.
3105 2007-01-15 Tom Tromey <tromey@redhat.com>
3107 * configure: Rebuilt.
3108 * configure.ac: Fixed comment.
3110 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3112 * libgomp.texi: Document implementation specific default values of
3113 environment variables.
3115 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3118 * libgomp.texi: New file.
3119 * configure.ac: Add --enable-generated-files-in-srcdir option.
3120 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3122 * Makefile.in: Regenerated.
3123 * config.h.in: Regenerated.
3124 * testsuite/Makefile.in: Regenerated.
3127 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3130 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3132 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3134 * configure: Regenerate.
3136 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3139 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3140 start if there shouldn't be any loop iterations.
3141 (gomp_loop_ordered_static_start): Remove start == end test.
3142 * testsuite/libgomp.c/pr29947-1.c: New test.
3143 * testsuite/libgomp.c/pr29947-2.c: New test.
3145 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3147 * configure.tgt: Force initial-exec TLS model on Linux only.
3149 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3151 * configure: Regenerated.
3153 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3155 * env.c (parse_schedule): Reject out of range values.
3156 (parse_unsigned_long): Reject out of range, negative or zero values.
3158 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3161 * testsuite/libgomp.fortran/pr29629.f90: New test.
3163 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3166 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3167 * config/posix95: New directory.
3168 * config/posix95/omp-lock.h: New file.
3169 * config/posix95/lock.c: Likewise.
3171 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3173 * aclocal.m4: Regenerate.
3174 * configure: Regenerate.
3176 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3178 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3181 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3183 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3185 * configure: Regenerate.
3186 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3188 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3192 * testsuite/libgomp.c/nestedfn-4.c: New test.
3193 * testsuite/libgomp.c/nestedfn-5.c: New test.
3194 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3197 * testsuite/libgomp.fortran/condinc1.f: New test.
3198 * testsuite/libgomp.fortran/condinc2.f: New test.
3199 * testsuite/libgomp.fortran/condinc3.f90: New test.
3200 * testsuite/libgomp.fortran/condinc4.f90: New test.
3201 * testsuite/libgomp.fortran/condinc1.inc: New file.
3203 2006-09-18 Tom Tromey <tromey@redhat.com>
3205 * configure: Rebuilt.
3207 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3210 PR preprocessor/14634
3211 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3213 * configure: Regenerate.
3215 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3217 * testsuite/libgomp.fortran/reduction3.f90: Change
3218 -2147483648 to -huge(i)-1 to avoid overflow.
3219 * testsuite/libgomp.fortran/reduction4.f90: Change
3220 Z'ffffffff' to not(0) to avoid overflow.
3222 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3225 * Makefile.am (libsubincludedir): New.
3226 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3227 * Makefile.in: Regenerate.
3229 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3232 * env.c: Include ctype.h.
3233 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3234 leading and/or trailing whitespace and compare strings case
3237 2006-07-16 Jakub Jelinek <jakub@redhat.com>
3240 * testsuite/libgomp.fortran/pr28390.f: New test.
3242 2006-07-05 Eric Christopher <echristo@apple.com>
3244 * configure.ac: Depend addition of -pthread on host OS.
3245 * configure: Regenerate.
3247 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3249 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3250 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3253 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3257 * configure.ac: If neither --enable-linux-futex nor
3258 --disable-linux-futex is passed, determine the default by checking
3259 for compiling and/or running against NPTL. With --enable-linux-futex,
3260 check if SYS_gettid and SYS_futex are defined.
3261 * configure: Rebuilt.
3263 2006-06-14 Richard Henderson <rth@redhat.com>
3266 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3267 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3269 2006-06-09 Richard Henderson <rth@redhat.com>
3271 * env.c (gomp_nthreads_var): Change to unsigned long.
3272 (gomp_run_sched_chunk): Likewise.
3273 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3274 (initialize_env): Initialize gomp_thread_attr.
3275 * libgomp.h (gomp_nthreads_var): Update decl.
3276 (gomp_run_sched_chunk): Likewise.
3277 (gomp_thread_attr): Declare.
3278 * team.c (gomp_thread_attr): Export.
3279 (initialize_team): Don't initialize it.
3281 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3284 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3285 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3287 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3289 * config/mingw32/time.c: New file.
3290 * configure.tgt: Use it.
3292 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3294 * Makefile.am: Add install-html target. Add install-html to .PHONY
3295 * Makefile.in: Regenerate.
3297 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3300 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3301 * testsuite/libgomp.c/critical-1.c: Likewise.
3302 * testsuite/libgomp.c/loop-1.c: Likewise.
3303 * testsuite/libgomp.c/loop-2.c: Likewise.
3304 * testsuite/libgomp.c/single-1.c: Likewise.
3305 * testsuite/libgomp.c/ordered-1.c: Likewise.
3306 * testsuite/libgomp.c/ordered-2.c: Likewise.
3308 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3311 * libgomp.fortran/pr27416-1.f90: New test.
3313 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3316 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3317 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3319 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3322 * testsuite/libgomp.c/pr26943-1.c: New test.
3323 * testsuite/libgomp.c/pr26943-2.c: New test.
3324 * testsuite/libgomp.c/pr26943-3.c: New test.
3325 * testsuite/libgomp.c/pr26943-4.c: New test.
3326 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3327 * testsuite/libgomp.c++/pr26943.C: New test.
3329 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3332 * testsuite/libgomp.c++/pr27337.C: New test.
3334 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3337 * testsuite/libgomp.c/pr26171.c: New test.
3339 2006-04-25 Richard Henderson <rth@redhat.com>
3342 * configure.ac: Use GCC_CHECK_TLS.
3343 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3344 * Makefile.in, aclocal.m4, configure: Regenerate.
3346 2006-04-10 Matthias Klose <doko@debian.org>
3348 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3349 directory names containing underscores.
3351 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3354 * testsuite/libgomp.c++/pr26691.C: New test.
3356 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3358 * testsuite/libgomp.fortran/retval2.f90: New test.
3360 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3362 * testsuite/libgomp.c++: New directory.
3364 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3366 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3367 * config/posix/sem.c: Implement the above.
3369 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3371 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3372 define HAVE_BROKEN_POSIX_SEMAPHORES.
3373 * configure: Rebuilt.
3374 * config.h.in: Rebuilt.
3376 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3379 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3380 for the other pthread check.
3381 * configure: Regenerate.
3382 * config.h.in: Regenerate.
3384 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3388 * Makefile.am (fincludedir): New variable.
3389 (nodist_include_HEADERS): Remove Fortran files.
3390 (nodist_finclude_HEADERS): New variable.
3391 * Makefile.in: Regenerated.
3393 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3395 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3396 Remove tests for returning assumed character length arrays.
3398 2006-02-12 Roger Sayle <roger@eyesopen.com>
3399 John David Anglin <dave@hiauly1.hia.nrc.ca>
3402 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3404 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3406 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3408 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3410 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3411 part of LD_LIBRARY_PATH manually.
3413 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3416 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3419 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3422 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3423 * configure.ac (PERL): Don't set.
3424 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3425 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3426 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3427 * omp.h.in: Wrap the new configure substitutions with @ characters.
3428 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3429 * aclocal.m4, configure, Makefile.in: Regenerate.
3430 * mkomp_h.pl: Delete.
3432 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3435 * configure.ac: Use GCC_HEADER_STDINT.
3436 * libgomp.h: Include gstdint.h.
3437 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3438 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3440 2006-01-24 Richard Henderson <rth@redhat.com>
3443 * configure.ac: Add AM_MAINTAINER_MODE.
3444 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3446 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3448 * Makefile.in: Regenerate.
3449 * testsuite/Makefile.in: Regenerate.
3450 * aclocal.m4: Regenerate.
3452 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3454 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3456 * configure.ac: Add check for loadavg.h.
3457 (link_gomp): Adjust comment.
3458 * configure: Regenerate.
3459 * config.h.in: Regenerate.
3461 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3464 * configure.ac: Remove check for alloca.h.
3465 * configure: Regenerate.
3466 * config.h.in: Regenerate.
3467 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3468 * team.c: Remove use of alloca.h.
3469 Call gomp_alloca instead of alloca.
3471 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3474 * team.c: Add include of alloca.h.
3475 * configure.ac: Add check for alloca.h.
3476 * configure: Regenerate.
3477 * config.h.in: Regenerate.
3479 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3482 * testsuite/libgomp.fortran/pr25219.f90: New test.
3484 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3486 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3487 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3488 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3489 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3490 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3491 testsuite/libgomp.fortran/threadprivate1.f90,
3492 testsuite/libgomp.fortran/threadprivate2.f90,
3493 testsuite/libgomp.fortran/threadprivate3.f90,
3494 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3495 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3496 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3497 effective-target to TLS runtime.
3499 * testsuite/libgomp.fortran/pr25162.f: Require
3500 effective-target TLS runtime.
3502 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3504 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3505 * testsuite/libgomp.c/nestedfn-3.c: New test.
3507 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3510 * testsuite/libgomp.fortran/pr25162.f: New test.
3512 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3514 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3515 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3517 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3519 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3520 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3521 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3522 single.c, team.c, work.c, config/linux/alpha/futex.h,
3523 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3524 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3525 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3526 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3527 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3528 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3529 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3532 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3534 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3535 to nodist_noinst_HEADERS.
3536 * Makefile.in: Rebuilt.
3538 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3539 add integer count field.
3540 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3541 omp_nest_lock_t type change.
3542 (omp_init_nest_lock): Likewise. Initialize count to 0.
3543 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3545 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3547 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3548 Increment count if successful and return the new nesting level.
3549 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3550 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3551 * testsuite/libgomp.c/lib-1.c: New test.
3552 * testsuite/libgomp.fortran/lib1.f90: New test.
3553 * testsuite/libgomp.fortran/lib2.f: New test.
3554 * testsuite/libgomp.fortran/lib3.f: New test.
3556 2005-11-17 Richard Henderson <rth@redhat.com>
3559 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3560 * configure.ac (link_gomp): New. Substitute it.
3561 (AC_CONFIG_FILES): Add libgomp.spec.
3562 * libgomp.spec.in: New file.
3563 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3564 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3566 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3568 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3569 reduction(-:var) behaving the same as reduction(+:var).
3570 * testsuite/libgomp.c/reduction-4.c: New test.
3572 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3574 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3575 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3576 testsuite/libgomp.c/copyin-3.c,
3577 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3578 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3579 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3580 testsuite/libgomp.c++/pr24455.C,
3581 testsuite/libgomp.fortran/threadprivate1.f90,
3582 testsuite/libgomp.fortran/threadprivate2.f90,
3583 testsuite/libgomp.fortran/threadprivate3.f90,
3584 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3585 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3586 testsuite/libgomp.fortran/omp_parse3.f90: Require
3587 effective-target TLS.
3589 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3593 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3596 * team.c (initialize_team): Pass NULL rather than free as
3597 pthread_key_create destructor. Initialize thread specific data
3598 pointer in initial thread to a static local variable rather than
3601 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3603 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3604 its location to ld_library_path.
3606 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3608 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3610 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3612 * testsuite/libgomp.c: Rename from libgomp.dg.
3614 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3616 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3617 threadprivate variable 'i'.
3619 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3621 * config/linux/s390/futex.h: New file.
3622 * configure.tgt: Use it.
3624 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3625 before the parallel.
3627 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3630 * testsuite/libgomp.c++/master-1.C: New test.
3632 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3634 * testsuite/libgomp.dg/copyin-3.c: New test.
3636 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3638 * testsuite/libgomp.fortran/retval1.f90: New test.
3639 * testsuite/libgomp.fortran/vla7.f90: New test.
3641 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3643 * testsuite/libgomp.fortran/vla2.f90: New test.
3644 * testsuite/libgomp.fortran/vla3.f90: New test.
3645 * testsuite/libgomp.fortran/vla4.f90: New test.
3646 * testsuite/libgomp.fortran/vla5.f90: New test.
3647 * testsuite/libgomp.fortran/vla6.f90: New test.
3649 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3651 * config/linux/sparc/futex.h: New file.
3652 * configure.tgt: Use it.
3653 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3655 * critical.c: Include stdlib.h.
3656 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3657 ignoring return value.
3658 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3659 LIBGOMP_CHECK_SYNC_BUILTINS check.
3660 * configure: Rebuilt.
3662 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3664 * testsuite/libgomp.fortran/vla1.f90: New test.
3666 2005-10-31 Richard Henderson <rth@redhat.com>
3668 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3669 setting 's' in different threads.
3671 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3673 * libgomp.h (attribute_hidden, ialias): Define.
3674 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3675 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3676 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3677 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3678 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3679 omp_test_lock, omp_test_nest_lock): Likewise.
3680 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3681 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3682 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3683 omp_test_lock, omp_test_nest_lock): Likewise.
3684 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3685 omp_get_dynamic, omp_get_nested): Likewise.
3686 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3687 omp_get_thread_num, omp_in_parallel): Likewise.
3688 * fortran.c (ialias_redirect): Define.
3689 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3690 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3691 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3692 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3693 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3694 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3695 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3696 omp_get_wtime): Add ialias_redirect.
3698 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3700 * fortran.c: Include stdlib.h.
3702 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3704 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3705 * Makefile.in: Regenerated.
3707 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3709 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3710 * libgomp_f.h.in (omp_check_defines): New function.
3711 * env.c: Include libgomp_f.h.
3712 (initialize_env): Call omp_check_defines.
3714 * testsuite/libgomp.dg/copyin-2.c: New test.
3715 * testsuite/libgomp.c++/copyin-2.C: New test.
3716 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3718 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3719 * testsuite/libgomp.fortran/sharing2.f90: New test.
3721 * testsuite/libgomp.dg/copyin-1.c: New test.
3722 * testsuite/libgomp.c++/copyin-1.C: New test.
3724 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3726 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3728 * testsuite/libgomp.fortran/workshare1.f90: New test.
3730 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3732 * libgomp.fortran/sharing1.f90: New test.
3734 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3737 * testsuite/libgomp.c++/loop-7.C: New test.
3739 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3741 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3742 * testsuite/libgomp.fortran/reduction6.f90: New test.
3743 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3745 2005-10-23 Richard Henderson <rth@redhat.com>
3747 * testsuite/libgomp.c++/ctor-1.C: New.
3748 * testsuite/libgomp.c++/ctor-2.C: New.
3749 * testsuite/libgomp.c++/ctor-3.C: New.
3750 * testsuite/libgomp.c++/ctor-4.C: New.
3751 * testsuite/libgomp.c++/ctor-5.C: New.
3752 * testsuite/libgomp.c++/ctor-6.C: New.
3753 * testsuite/libgomp.c++/ctor-7.C: New.
3754 * testsuite/libgomp.c++/ctor-8.C: New.
3755 * testsuite/libgomp.c++/ctor-9.C: New.
3757 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3760 * testsuite/libgomp.c++/pr24455-1.C: New test.
3761 * testsuite/libgomp.c++/pr24455.C: New test.
3762 * testsuite/libgomp.dg/pr24455-1.c: New test.
3763 * testsuite/libgomp.dg/pr24455.c: New test.
3765 2005-10-20 Richard Henderson <rth@redhat.com>
3767 * testsuite/libgomp.c++/loop-6.C: New.
3768 * testsuite/libgomp.dg/loop-3.c: New.
3770 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3772 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3774 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3777 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3779 * testsuite/libgomp.fortran/jacobi.f: New test.
3781 2005-10-19 Richard Henderson <rth@redhat.com>
3783 * configure.tgt (i?86-linux): Default to with_arch instead of
3784 CFLAGS. Add -mtune to match target_cpu.
3785 (x86_64-linux): Tune to i686.
3787 * fortran.c (omp_test_nest_lock_): Fix typo.
3789 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3791 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3792 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3793 * testsuite/libgomp.dg/ordered-3.c: New test.
3795 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3796 Remove volatile keyword.
3798 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3799 in COMMON block to avoid warnings on 64-bit targets.
3801 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3803 * testsuite/libgomp.dg/shared-3.c: New test.
3805 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3807 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3808 * testsuite/libgomp.fortran/reduction5.f90: New test.
3810 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3812 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3814 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3815 flush loop now that __sync_synchronize has proper memory barrier.
3816 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3817 Add -ffixed-form to dg-options.
3819 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3821 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3822 from subdirectories.
3823 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3824 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3825 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3826 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3827 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3828 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3829 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3830 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3831 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3832 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3833 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3834 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3835 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3836 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3837 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3838 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3839 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3840 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3841 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3842 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3843 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3844 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3845 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3846 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3847 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3849 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3851 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3852 lang_library_path exists. Use find instead of glob to gather tests.
3853 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3855 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3857 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3858 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3859 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3860 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3861 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3862 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3863 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3864 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3865 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3866 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3867 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3868 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3869 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3871 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3873 * testsuite/libgomp.dg/vla-1.c: New test.
3875 * testsuite/libgomp.fortran/reference2.f90: New test.
3877 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3878 declaration of omp_get_thread_num.
3879 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3882 * testsuite/libgomp.fortran/reduction1.f90: New test.
3883 * testsuite/libgomp.fortran/reduction2.f90: New test.
3884 * testsuite/libgomp.fortran/reduction3.f90: New test.
3885 * testsuite/libgomp.fortran/reduction4.f90: New test.
3887 2005-10-13 Richard Henderson <rth@redhat.com>
3889 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3890 * Makefile.in: Regenerate.
3891 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3892 * libgomp.h: Include bar.h.
3893 (struct gomp_barrier): Remove.
3894 (struct gomp_team): Add barrier. Replace master_barrier with
3895 master_release. Replace threads with ordered_release.
3896 (struct gomp_thread): Replace barrier with release.
3897 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3898 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3899 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3900 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3901 (GOMP_single_copy_end): Likewise.
3902 * team.c (gomp_threads_dock): New.
3903 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3904 (gomp_thread_start): Use gomp_barrier_wait.
3905 (new_team, free_team): Update for gomp_team changes.
3906 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3907 (gomp_team_end): Use gomp_barrier_wait.
3908 (initialize_team): Update for gomp_thread changes.
3909 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3910 (gomp_work_share_end_nowait): Use atomic ops when available.
3911 * config/linux/bar.c, config/linux/bar.h: New files.
3912 * config/posix/bar.c, config/posix/bar.h: New files.
3914 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3916 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3917 * testsuite/libgomp.dg/single-2.c: New test.
3919 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3920 lang_link_flags): Unset, so that they aren't inherited from previously
3923 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3925 2005-10-12 Richard Henderson <rth@redhat.com>
3927 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3928 (libgomp_init): Use lang_test_file, lang_library_path, and
3929 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3931 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3932 (lang_test_file, lang_link_flags): New.
3933 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3935 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3936 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3937 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3938 testsuite/libgomp.c++/parallel-1.C,
3939 testsuite/libgomp.c++/reduction-1.C,
3940 testsuite/libgomp.c++/reduction-2.C,
3941 testsuite/libgomp.c++/reduction-3.C,
3942 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3943 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3944 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3945 New files, largely cribbed from the C testsuite.
3947 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3949 * testsuite/libgomp.fortran/character1.f90: New test.
3950 * testsuite/libgomp.fortran/character2.f90: New test.
3952 * testsuite/libgomp.dg/nested-1.c: New test.
3953 * testsuite/libgomp.dg/nested-2.c: New test.
3954 * testsuite/libgomp.fortran/do1.f90: New test.
3955 * testsuite/libgomp.fortran/do2.f90: New test.
3957 * testsuite/libgomp.fortran/reference1.f90: New test.
3959 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3961 * testsuite/libgomp.dg/reduction-1.c: New test.
3962 * testsuite/libgomp.dg/reduction-2.c: New test.
3963 * testsuite/libgomp.dg/reduction-3.c: New test.
3965 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3967 * testsuite/libgomp.dg/atomic-1.c: New test.
3968 * testsuite/libgomp.dg/atomic-2.c: New test.
3970 2005-10-09 Richard Henderson <rth@redhat.com>
3972 * critical.c (atomic_lock): New.
3973 (initialize_critical): Initialize it.
3974 (GOMP_atomic_start, GOMP_atomic_end): New.
3975 * libgomp.map: Export them.
3976 * libgomp_g.h: Declare them.
3978 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3980 2005-10-02 Richard Henderson <rth@redhat.com>
3982 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3983 to XCFLAGS instead of CFLAGS.
3985 2005-09-30 Richard Henderson <rth@redhat.com>
3987 * configure.ac: Determine whether -pthread or -lpthread is needed.
3988 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3989 * Makefine.in, configure: Rebuild.
3991 2005-09-28 Richard Henderson <rth@redhat.com>
3993 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3994 * testsuite/libgomp.dg/omp-single-3.c: New test.
3996 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3998 * testsuite/libgomp.dg/omp-single-2.c: New test.
3999 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4001 2005-09-27 Richard Henderson <rth@redhat.com>
4003 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4004 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4006 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4008 * testsuite/libgomp.dg/omp-loop03.c: New test.
4010 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4012 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4014 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4016 * testsuite/libgomp.dg/omp-single-1.c: New test.
4017 * testsuite/libgomp.dg/shared-1.c: Return 0.
4018 Add prototype for abort.
4019 * testsuite/libgomp.dg/shared-2.c: Likewise.
4021 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4023 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4026 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4028 * testsuite/libgomp.dg/shared-1.c: New test.
4029 * testsuite/libgomp.dg/shared-2.c: New test.
4031 2005-09-24 Richard Henderson <rth@redhat.com>
4033 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4035 2005-09-24 Richard Henderson <rth@redhat.com>
4037 * iter.c (gomp_iter_static_next): Round up when computing number
4038 of iterations. Don't bother distributing a remainder equally.
4040 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4041 Don't call srand. Zero b before testing.
4044 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4046 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4047 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4049 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4051 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4052 without !$omp end do, followed immediately by subroutine end.
4054 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4056 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4058 2005-09-22 Richard Henderson <rth@redhat.com>
4060 * critical.c (GOMP_critical_name_start): Change argument to void**.
4061 Reuse the pointer space if the mutex fits.
4062 (GOMP_critical_name_end): Likewise.
4063 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4064 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4065 (GOMP_critical_name_end): Likewise.
4066 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4067 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4069 2005-09-20 Richard Henderson <rth@redhat.com>
4071 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4072 (create_lock_lock): New.
4073 (initialize_critical): Initialize it.
4074 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4075 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4077 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4079 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4081 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4083 * testsuite/libgomp.dg/omp-loop01.c: New test.
4084 * testsuite/libgomp.dg/omp-loop02.c: New test.
4086 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4088 * configure.ac (AC_PROG_FC): Add.
4089 (USE_FORTRAN): New automake conditional.
4090 * configure: Rebuilt.
4091 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4092 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4093 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4094 Add rules to build them.
4095 * Makefile.in: Rebuilt.
4096 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4098 * libgomp.map: Add Fortran wrappers.
4099 * libgomp_f.h.in: New file.
4100 * omp_lib.h.in: New file.
4101 * omp_lib.f90.in: New file.
4102 * fortran.c: New file.
4103 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4104 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4105 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4106 libgfortran has been built.
4107 * testsuite/libgomp.fortran/fortran.exp: New file.
4108 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4109 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4110 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4111 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4112 * testsuite/libgomp.fortran/omp_hello.f: New test.
4113 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4114 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4115 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4116 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4117 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4118 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4119 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4120 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4122 2005-08-30 Richard Henderson <rth@redhat.com>
4124 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4125 function for when aliases are not usable.
4126 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4127 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4128 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4129 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4130 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4131 GOMP_loop_ordered_guided_next): Likewise.
4132 * ordered.c (GOMP_ordered_start): Likewise.
4134 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4136 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4137 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4138 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4139 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4140 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4141 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4142 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4143 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4144 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4146 2005-07-07 Eric Christopher <echristo@redhat.com>
4147 Diego Novillo <dnovillo@redhat.com>
4149 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4150 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4152 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4153 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4154 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4155 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4156 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4157 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4158 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4160 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4162 * TOPLEVEL.patch: Remove.
4164 2005-05-16 Richard Henderson <rth@redhat.com>
4166 * configure.ac: Test for clock_gettime.
4167 * config.h.in, configure: Rebuild.
4168 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4169 (omp_get_wtime): Use clock_gettime if available.
4170 (omp_get_wtick): Use clock_getres if available.
4172 2005-05-11 Richard Henderson <rth@redhat.com>
4174 * config/linux/ia64/futex.h: New file.
4175 * configure.tgt: Use it.
4177 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4179 2005-05-07 Richard Henderson <rth@redhat.com>
4181 * config/linux/powerpc/futex.h: New file.
4182 * configure.tgt: Use it.
4184 * config/linux/i486/futex.h: Merge ...
4185 * config/linux/x86_64/futex.h: ... into ...
4186 * config/linux/x86/futex.h: ... here.
4187 * configure.tgt: Update to match.
4189 2005-05-06 Richard Henderson <rth@redhat.com>
4191 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4192 * config/linux/i486/futex.h: Likewise.
4193 * config/linux/x86_64/futex.h: Likewise.
4195 * config/linux/lock.c: New file.
4196 * config/linux/omp-lock.h: New file.
4198 * critical.c, env.h: Don't include omp.h
4199 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4200 * config/posix/time.c: Likewise.
4201 * config/posix/omp-lock.h: New file.
4202 * libgomp.h: Include omp-lock.h and omp.h.
4203 * Makefile.am (nodist_include_HEADERS): New.
4205 * configure.ac (PERL): New.
4206 * mkomp_h.pl: New file.
4207 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4209 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4211 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4212 build directory. Re-add -march=i486 hack.
4214 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4215 (libgomp_link_flags): Remove.
4216 (libgomp_initialized): Remove.
4217 (libgomp_init): Don't protect from reinitialization. Copy code
4218 from libstdc++ for getting the multilib set correctly.
4220 2005-05-05 Richard Henderson <rth@redhat.com>
4222 * config/linux/alpha/futex.h: New file.
4223 * configure.tgt (alpha*-*-linux*): Use it.
4225 * config/posix/mutex.c: New file.
4226 * config/posix/sem.c: Use libgomp.h.
4228 * configure.tgt (x86_64-linux): Also test CC for -m32.
4229 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4231 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4234 * Makefile.am (SUBDIRS): New.
4235 (libgomp_la_LDFLAGS): Add -lpthread.
4236 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4237 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4239 * libgomp_g.h: New file.
4240 * libgomp.h: Split out all public declarations to libgomp_g.h.
4241 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4242 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4243 * config/linux/sem.h: Likewise.
4244 * config/posix/sem.h: Likewise.
4246 * Makefile.am (AM_LDFLAGS): New.
4247 (libgomp_version_script): Split out from ...
4248 (libgomp_la_LDFLAGS): ... here.
4249 (libgomp_version_info): New.
4250 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4251 (LIBGOMP_ENABLE): New.
4252 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4253 (LIBGOMP_ENABLE_SYMVERS): New.
4254 * configure.ac (AC_INIT): Version 1.0.
4255 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4256 (enable-linux-futex): Likewise. Rename from enable-futex.
4257 (libtool_VERSION): New.
4258 (LIBGOMP_ENABLE_SYMVERS): Use it.
4259 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4260 * Makefile.in, aclocal.m4, configure: Rebuild.
4262 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4263 (gomp_mutex_unlock_slow): Fix typo.
4264 * config/linux/sem.c: Similarly.
4265 (gomp_sem_post_slow): Fix typo.
4266 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4267 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4268 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4270 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4271 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4272 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4273 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4274 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4275 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4276 LDFLAGS. Pull enable_futex check to top-level.
4277 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4278 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4280 First attempt at real configury.
4281 * Makefile, config.h: Remove file.
4282 * Makefile.am, Makefile.in: New file.
4283 * acinclude.m4 aclocal.m4: New file.
4284 * configure.ac, configure.tgt, configure: New file.
4286 * config/posix/lock.c: Rename from sys-lock.c.
4287 * config/posix/mutex.h: Rename from sys-mutex.h.
4288 * config/posix/sem.c: Rename from sys-sem.c.
4289 * config/posix/sem.h: Rename from sys-sem.h.
4290 * config/posix/proc.c: Rename from sys-proc.c.
4291 * config/posix/time.c: Rename from sys-proc.c.
4293 * config/linux/mutex.c: New file.
4294 * config/linux/mutex.h: New file.
4295 * config/linux/sem.c: New file.
4296 * config/linux/sem.h: New file.
4297 * config/linux/i486/futex.h: New file.
4298 * config/linux/x86_64/futex.h: New file.
4300 2005-05-04 Richard Henderson <rth@redhat.com>
4302 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4303 * libgomp.h: Declare them.
4304 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4305 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4307 2005-05-04 Richard Henderson <rth@redhat.com>
4309 * libgomp-1 code drop
4311 2005-05-04 Richard Henderson <rth@redhat.com>
4313 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4314 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4315 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4316 (gomp_iter_static_next): Update.
4317 (gomp_ordered_static_next): Update.
4318 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4319 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4320 totally empty range.
4321 (gomp_loop_ordered_static_next): Refine test for calling
4322 gomp_ordered_static_next.
4323 * testsuite/ordered-1.c: Add case for more threads than iterations.
4325 * iter.c (gomp_iter_runtime_next_locked): Remove.
4326 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4327 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4328 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4329 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4330 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4331 gomp_loop_ordered_guided_next): Downcase name, make static, add
4332 an external alias with the old name.
4333 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4334 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4335 switch and call one of the above static functions.
4336 * libgomp.h: Update.
4338 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4339 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4340 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4341 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4342 GOMP_loop_ordered_guided_start): Update to match.
4343 * sections.c (GOMP_sections_start): Likewise.
4344 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4346 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4347 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4348 Use bounds check instead of modulus.
4349 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4350 (gomp_ordered_last): Don't sync with ordered_owner here.
4351 (gomp_ordered_next): Likewise.
4352 (gomp_ordered_static_loop_next): Likewise.
4353 * loop.c, libgomp.h: Update to match.
4355 * libgomp.h (GOMP_barrier): Declare.
4357 * testsuite/barrier-1.c: New file.
4358 * testsuite/critical-1.c: New file.
4359 * testsuite/ordered-2.c: New file.
4360 * testsuite/ordered-1.c: New file.
4361 * testsuite/sections-1.c: New file.
4362 * testsuite/single-1.c: New file.
4363 * testsuite/Makefile (TESTS): Add them.
4365 2005-05-04 Richard Henderson <rth@redhat.com>
4367 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4368 * loop.c (GOMP_loop_static_start): If not the startup thread,
4369 acquire the mutex to wait for initialization complete.
4370 (GOMP_loop_ordered_static_start): Likewise.
4371 (GOMP_loop_ordered_runtime_start): Likewise.
4372 (GOMP_loop_ordered_static_first): Remove.
4373 (GOMP_loop_ordered_dynamic_first): Remove.
4374 (GOMP_loop_ordered_guided_first): Remove.
4375 (GOMP_loop_ordered_runtime_first): Remove.
4376 * ordered.c (gomp_ordered_loop_first): Post to own release when
4377 we're the first thread.
4378 (gomp_ordered_loop_last): Wait on release if not owner.
4379 (gomp_ordered_loop_next): Likewise.
4380 (gomp_ordered_static_loop_init): New.
4381 (gomp_ordered_static_loop_next): Use ordered_owner.
4382 (GOMP_ordered_start): Likewise.
4383 * work.c (gomp_new_work_share): Initialize ordered_owner.
4385 2005-05-03 Richard Henderson <rth@redhat.com>
4387 * Makefile (OPT): New.
4390 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4391 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4392 * libgomp.h, libgomp.map, NOTES: Update to match.
4394 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4395 Add initialized and thr members.
4396 (gomp_thread_start): Pause when initially spawned to wait for
4397 the whole team to be created.
4398 (gomp_team_start): Release team members at the end.
4400 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4401 (f_foo_1): Use GOMP_loop_end.
4402 (f_foo_2): Use GOMP_loop_end_nowait.
4404 * testsuite/loop-2.c: New file.
4405 * testsuite/Makefile (TESTS): Add it.
4407 2005-05-03 Richard Henderson <rth@redhat.com>
4409 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4410 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4411 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4414 * testsuite/Makefile: New file.
4415 * testsuite/loop-1.c: New file.
4417 2005-05-03 Richard Henderson <rth@redhat.com>
4419 Initial implementation and checkin.