1 2015-02-25 Tom de Vries <tom@codesourcery.com>
3 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
4 (check_reduction_op, check_reduction_macro, max, min):
6 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8 (main): Use new functions.
10 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
12 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13 char * for variables holding dlerror return values.
16 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
18 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
20 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
21 Cesar Philippidis <cesar@codesourcery.com>
23 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
24 GOACC_ctaid, and GOACC_nctaid routines.
26 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29 * testsuite/libgomp.c/atomic-18.c: New test.
30 * testsuite/libgomp.c++/atomic-16.C: New test.
32 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36 * testsuite/libgomp.c/pr64824.c: New test.
37 * testsuite/libgomp.c/pr64868.c: New test.
38 * testsuite/libgomp.c++/pr64824.C: New test.
39 * testsuite/libgomp.c++/pr64868.C: New test.
41 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
44 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
46 * config/aix/plugin-suffix.h: Delete.
48 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
51 * configure.tgt (*-*-aix*): Use config_path "aix posix".
52 (*-*-darwin*): Use config_path "bsd darwin posix".
53 (*-*-hpux*): Use config_path "hpux posix".
54 * target.c: Add include of plugin-suffix.h and use
56 * config/aix/plugin-suffix.h: New file.
57 * config/darwin/plugin-suffix.h: New file.
58 * config/hpux/plugin-suffix.h: New file.
59 * config/posix/plugin-suffix.h: New file.
61 2015-01-23 Jakub Jelinek <jakub@redhat.com>
64 * libgomp.c/pr64734.c: New test.
66 2015-01-23 Tom de Vries <tom@codesourcery.com>
69 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
71 2015-01-23 Tom de Vries <tom@codesourcery.com>
74 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
77 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
80 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
81 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
82 formal parameter. Update all users.
83 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
84 Document unused formal parameter.
86 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
88 * oacc-parallel.c: Don't include <alloca.h>.
89 (GOACC_parallel): Use gomp_alloca instead of alloca.
91 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
93 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
95 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
96 James Norris <jnorris@codesourcery.com>
97 Tom de Vries <tom@codesourcery.com>
98 Julian Brown <julian@codesourcery.com>
99 Cesar Philippidis <cesar@codesourcery.com>
100 Nathan Sidwell <nathan@codesourcery.com>
101 Tobias Burnus <burnus@net-b.de>
103 * Makefile.am (search_path): Add $(top_srcdir)/../include.
104 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
105 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
106 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
107 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
108 Include $(top_srcdir)/plugin/Makefrag.am.
109 (nodist_libsubinclude_HEADERS): Add openacc.h.
110 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
111 openacc.f90, openacc.mod, openacc_kinds.mod.
112 (omp_lib.mod): Generalize into...
113 (%.mod): ... this new rule.
114 (openacc_kinds.mod, openacc.mod): New rules.
115 * plugin/configfrag.ac: New file.
116 * configure.ac: Move plugin/offloading support into it. Include
117 it. Instantiate testsuite/libgomp-test-support.pt.exp.
118 * plugin/Makefrag.am: New file.
119 * testsuite/Makefile.am (OFFLOAD_TARGETS)
120 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
122 (libgomp-test-support.exp): New rule.
123 (all-local): Depend on it.
124 * Makefile.in: Regenerate.
125 * testsuite/Makefile.in: Regenerate.
126 * config.h.in: Likewise.
127 * configure: Likewise.
128 * configure.tgt: Harden shell syntax.
129 * env.c: Include "oacc-int.h".
130 (parse_acc_device_type): New function.
131 (gomp_debug_var, goacc_device_type, goacc_device_num): New
133 (initialize_env): Initialize those. Call
134 goacc_runtime_initialize.
135 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
136 (gomp_fatal): Call gomp_vfatal.
137 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
138 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
139 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
140 (splay_tree_node, splay_tree, splay_tree_key)
141 (struct target_mem_desc, struct splay_tree_key_s)
142 (struct gomp_memory_mapping, struct acc_dispatch_t)
143 (struct gomp_device_descr, gomp_acc_insert_pointer)
144 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
145 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
146 (gomp_free_memmap, gomp_fini_device): New declarations.
147 (gomp_vdebug, gomp_debug): New macros.
148 Include "splay-tree.h".
149 * libgomp.map (OACC_2.0): New symbol version. Use for
150 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
151 acc_set_device_type_h_, acc_get_device_type,
152 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
153 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
154 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
155 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
156 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
157 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
158 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
159 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
160 acc_copyin_array_h_, acc_present_or_copyin,
161 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
162 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
163 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
164 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
165 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
166 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
167 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
168 acc_update_device, acc_update_device_32_h_,
169 acc_update_device_64_h_, acc_update_device_array_h_,
170 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
171 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
172 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
173 acc_is_present_64_h_, acc_is_present_array_h_,
174 acc_memcpy_to_device, acc_memcpy_from_device,
175 acc_get_current_cuda_device, acc_get_current_cuda_context,
176 acc_get_cuda_stream, acc_set_cuda_stream.
177 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
178 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
179 GOACC_update, GOACC_wait, GOACC_get_thread_num,
180 GOACC_get_num_threads.
181 (GOMP_PLUGIN_1.0): New symbol version. Use for
182 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
183 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
184 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
185 GOMP_PLUGIN_acc_thread.
186 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
187 environment variable.
188 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
189 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
190 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
191 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
192 (splay_tree_remove): New declarations.
193 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
194 (splay_tree_remove, splay_tree_lookup): Move into...
195 * splay-tree.c: ... this new file.
196 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
197 (splay_tree_node, splay_tree, splay_tree_key)
198 (struct target_mem_desc, struct splay_tree_key_s)
199 (struct gomp_device_descr): Don't declare.
200 (num_devices_openmp): New variable.
201 (gomp_get_num_devices ): Use it.
202 (gomp_init_targets_once): New function.
203 (gomp_get_num_devices ): Use it.
204 (get_kind, gomp_copy_from_async, gomp_free_memmap)
205 (gomp_fini_device, gomp_register_image_for_device): New functions.
206 (gomp_map_vars): Add devaddrs parameter.
207 (gomp_update): Add mm parameter.
208 (gomp_init_device): Move most of it into...
209 (gomp_init_tables): ... this new function.
210 (gomp_register_images_for_device): Remove function.
211 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
212 Make them hidden instead of static.
213 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
214 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
215 (GOMP_target_end_data, GOMP_target_update)
216 (gomp_load_plugin_for_device, gomp_target_init): Update for
218 * oacc-async.c: New file.
219 * oacc-cuda.c: Likewise.
220 * oacc-host.c: Likewise.
221 * oacc-init.c: Likewise.
222 * oacc-int.h: Likewise.
223 * oacc-mem.c: Likewise.
224 * oacc-parallel.c: Likewise.
225 * oacc-plugin.c: Likewise.
226 * oacc-plugin.h: Likewise.
227 * oacc-ptx.h: Likewise.
228 * openacc.f90: Likewise.
229 * openacc.h: Likewise.
230 * openacc_lib.h: Likewise.
231 * plugin/plugin-host.c: Likewise.
232 * plugin/plugin-nvptx.c: Likewise.
233 * libgomp-plugin.c: Likewise.
234 * libgomp-plugin.h: Likewise.
235 * libgomp_target.h: Remove file after merging content into the
236 former file. Update all users.
237 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
238 (offload_targets_s, offload_targets_s_openacc): New variables.
239 (check_effective_target_openacc_nvidia_accel_present)
240 (check_effective_target_openacc_nvidia_accel_selected): New
242 (libgomp_init): Update for OpenACC changes.
243 * testsuite/libgomp-test-support.exp.in: New file.
244 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
245 * testsuite/libgomp.oacc-c/c.exp: Likewise.
246 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
247 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
251 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
253 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
256 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
285 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
287 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
289 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
293 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
294 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
295 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
296 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
298 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
300 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
301 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
302 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
303 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
304 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
305 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
306 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
310 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
312 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
314 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
315 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
316 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
318 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
320 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
321 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
322 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
323 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
326 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
328 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
330 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
331 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
332 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
333 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
334 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
335 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
336 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
337 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
338 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
339 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
340 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
341 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
342 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
345 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
346 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
347 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
348 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
349 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
350 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
351 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
352 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
353 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
354 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
355 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
356 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
357 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
358 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
359 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
360 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
361 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
362 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
363 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
364 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
365 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
366 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
367 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
368 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
369 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
370 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
371 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
372 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
373 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
374 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
375 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
376 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
380 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
385 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
386 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
387 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
388 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
389 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
390 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
391 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
392 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
393 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
394 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
395 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
396 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
397 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
398 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
399 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
400 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
401 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
402 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
403 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
404 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
405 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
406 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
407 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
408 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
409 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
410 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
411 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
412 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
413 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
414 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
415 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
416 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
417 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
418 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
419 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
420 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
421 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
422 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
423 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
424 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
425 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
426 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
427 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
428 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
429 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
430 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
431 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
432 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
433 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
434 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
435 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
436 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
437 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
438 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
439 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
440 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
441 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
442 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
443 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
444 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
446 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
447 Julian Brown <julian@codesourcery.com>
448 David Malcolm <dmalcolm@redhat.com>
450 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
451 to "GNU Offloading and Multi Processing Runtime Library". Change
453 * configure: Regenerate.
454 * libgomp.texi: Update.
456 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
458 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
460 * configure: Regenerate.
462 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
463 "intelmic" in $offload_targets.
465 2015-01-05 Jakub Jelinek <jakub@redhat.com>
467 Update copyright years.
469 * libgomp.texi: Bump @copying's copyright year.
471 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
473 * testsuite/lib/libgomp.exp: Load target-utils.exp.
474 Move load of target-supportes.exp earlier.
476 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
478 * testsuite/libgomp.c/target-9.c: New test.
480 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
482 * config.h.in: Regenerate.
483 * configure: Regenerate.
484 * configure.ac: Add GCC_CHECK_EMUTLS.
485 * libgomp.h: Add check for USE_EMUTLS: this case
486 is equal to HAVE_TLS.
489 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
491 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
493 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
494 Ilya Verbin <ilya.verbin@intel.com>
496 * testsuite/libgomp.c/target-critical-1.c: New test.
498 2014-11-26 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
501 to dg-options unless expensive testing is on.
502 (TESTITERS): Define to N if not defined.
503 (main): Use TESTITERS instead of N.
504 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
505 dg-additional-options depending on whether expensive testing is on.
506 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
507 Decrease N to 100000 and CHUNKSZ to 10000.
509 2014-11-24 Jakub Jelinek <jakub@redhat.com>
512 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
513 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
515 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
517 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
519 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
522 * configure: Regenerated.
524 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
526 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
527 vect_simd_clones effective target.
528 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
530 2014-11-14 Jakub Jelinek <jakub@redhat.com>
532 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
534 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
535 instead of 32 as block_size.
537 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
538 Ilya Verbin <ilya.verbin@intel.com>
540 * Makefile.in: Regenerate.
541 * configure: Regenerate.
542 * configure.ac: Set up offload_additional_options,
543 offload_additional_lib_paths and offload_targets.
544 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
545 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
546 * testsuite/Makefile.in: Regenerate.
547 * testsuite/lib/libgomp.exp (libgomp_init): Append
548 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
549 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
550 build directory to LD_LIBRARY_PATH for intelmic offload targets.
552 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
553 Ilya Verbin <ilya.verbin@intel.com>
554 Kirill Yukhin <kirill.yukhin@intel.com>
555 Ilya Tocar <ilya.tocar@intel.com>
557 * testsuite/lib/libgomp.exp
558 (check_effective_target_offload_device): New.
559 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
560 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
561 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
562 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
563 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
564 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
565 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
566 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
567 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
568 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
569 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
570 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
571 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
572 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
573 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
574 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
575 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
576 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
577 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
578 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
579 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
580 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
581 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
582 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
583 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
584 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
585 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
586 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
587 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
588 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
589 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
590 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
591 * testsuite/libgomp.c/target-7.c: Fix test.
592 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
593 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
594 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
595 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
596 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
597 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
598 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
599 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
600 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
601 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
602 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
603 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
604 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
605 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
606 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
607 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
608 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
609 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
610 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
611 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
612 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
613 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
614 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
615 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
616 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
617 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
618 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
619 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
620 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
621 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
622 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
624 2014-11-13 Jakub Jelinek <jakub@redhat.com>
625 Ilya Verbin <ilya.verbin@intel.com>
626 Thomas Schwinge <thomas@codesourcery.com>
627 Andrey Turetskiy <andrey.turetskiy@intel.com>
629 * libgomp.map (GOMP_4.0.1): New symbol version.
630 Add GOMP_offload_register.
631 * libgomp_target.h: New file.
632 * splay-tree.h: New file.
633 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
634 (gomp_target_init): New forward declaration.
635 (gomp_is_initialized): New static variable.
636 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
637 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
639 (offload_images, num_offload_images, devices, num_devices): New static
641 (splay_compare): New static function.
642 (struct gomp_device_descr): New structure.
643 (gomp_get_num_devices): Call gomp_target_init.
644 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
645 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
646 (GOMP_offload_register): New function.
647 (GOMP_target): Arrange for host callback to be performed in a separate
648 initial thread and contention group, inheriting ICVs from
649 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
650 Add device initialization and lookup for target function in splay tree.
651 (GOMP_target_data): Add device initialization and call gomp_map_vars.
652 (GOMP_target_end_data): Call gomp_unmap_vars.
653 (GOMP_target_update): Add device initialization and call gomp_update.
654 (gomp_load_plugin_for_device, gomp_register_images_for_device)
655 (gomp_target_init): New static functions.
657 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
658 Thomas Schwinge <thomas@codesourcery.com>
659 Ilya Verbin <ilya.verbin@intel.com>
660 Andrey Turetskiy <andrey.turetskiy@intel.com>
662 * config.h.in: Regenerate.
663 * configure: Regenerate.
664 * configure.ac: Check for libdl, required for plugin support.
665 (PLUGIN_SUPPORT): Define if plugins are supported.
666 (enable_offload_targets): Support Intel MIC targets.
667 (OFFLOAD_TARGETS): List of target names suitable for offloading.
669 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
672 * configure: Regenerate.
674 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
678 2014-10-06 Marek Polacek <polacek@redhat.com>
680 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
681 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
682 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
683 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
685 2014-10-06 Marek Polacek <polacek@redhat.com>
687 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
688 * testsuite/libgomp.c/nqueens-1.c: Likewise.
689 * testsuite/libgomp.c/pr26943-3.c: Likewise.
690 * testsuite/libgomp.c/pr26943-4.c: Likewise.
691 * testsuite/libgomp.c/pr36802-2.c: Likewise.
692 * testsuite/libgomp.c/pr36802-3.c: Likewise.
693 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
694 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
695 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
696 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
697 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
698 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
699 * testsuite/libgomp.c/omp-single-1.c: Likewise.
700 * testsuite/libgomp.c/omp-single-2.c: Likewise.
701 * testsuite/libgomp.c/omp_matvec.c: Likewise.
702 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
703 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
704 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
707 2014-10-03 Jakub Jelinek <jakub@redhat.com>
710 * testsuite/libgomp.c/pr61200.c: New test.
712 2014-09-18 Jakub Jelinek <jakub@redhat.com>
715 * testsuite/libgomp.c++/pr63248.C: New test.
717 2014-08-04 Jakub Jelinek <jakub@redhat.com>
719 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
720 is not zero, but taskgroup->children is NULL and there are
721 any task->children, schedule those instead of waiting.
722 * testsuite/libgomp.c/depend-6.c: New test.
723 * testsuite/libgomp.c/depend-7.c: New test.
724 * testsuite/libgomp.c/depend-8.c: New test.
725 * testsuite/libgomp.c/depend-9.c: New test.
726 * testsuite/libgomp.c/depend-10.c: New test.
728 2014-08-01 Jakub Jelinek <jakub@redhat.com>
730 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
731 (struct gomp_taskwait): New type.
732 (struct gomp_task): Add taskwait and parent_depends_on, remove
733 in_taskwait and taskwait_sem fields.
734 (gomp_finish_task): Don't destroy taskwait_sem.
735 * task.c (gomp_init_task): Don't init in_taskwait, instead init
736 taskwait and parent_depends_on.
737 (GOMP_task): For if (0) tasks with depend clause that depend on
738 earlier tasks don't defer them, instead call
739 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
740 Initialize redundant_out field, for redundant out entries just
741 move them at the end of linked list instead of removing them
742 completely, and set redundant_out flag instead of redundant.
743 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
745 (gomp_task_run_post_handle_dependers): If parent is in
746 gomp_task_maybe_wait_for_dependencies and newly runnable task
747 is not parent_depends_on, queue it in parent->children linked
748 list after all runnable tasks with parent_depends_on set.
749 Adjust for addition of taskwait indirection.
750 (gomp_task_run_post_remove_parent): If parent is in
751 gomp_task_maybe_wait_for_dependencies and task to be removed
752 is parent_depends_on, decrement n_depend and if needed awake
753 parent. Adjust for addition of taskwait indirection.
754 (GOMP_taskwait): Adjust for addition of taskwait indirection.
755 (gomp_task_maybe_wait_for_dependencies): New function.
756 * testsuite/libgomp.c/depend-5.c: New test.
758 2014-07-13 Tobias Burnus <burnus@net-b.de>
760 * testsuite/libgomp.fortran/pr34020.f90: Make compile
761 with TS 18508/Fortran 2015.
763 2014-07-06 Marek Polacek <polacek@redhat.com>
766 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
768 2014-07-03 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
771 matches regex $lang_source_re, add $lang_include_flags to options.
772 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
773 * testsuite/libgomp.c++/c++.exp: Likewise.
774 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
775 and lang_include_flags instead of adding -fintrinsic-modules-path= to
777 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
779 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
781 * testsuite/libgomp.fortran/fortran.exp: Explain
782 gfortran-dg-runtest usage.
784 2014-06-25 Jakub Jelinek <jakub@redhat.com>
786 * testsuite/libgomp.fortran/simd5.f90: New test.
787 * testsuite/libgomp.fortran/simd6.f90: New test.
788 * testsuite/libgomp.fortran/simd7.f90: New test.
790 2014-06-24 Jakub Jelinek <jakub@redhat.com>
792 * testsuite/libgomp.c/for-2.c: Define SC to static for
793 #pragma omp for simd testing.
794 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
795 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
797 * testsuite/libgomp.c/simd-14.c: New test.
798 * testsuite/libgomp.c/simd-15.c: New test.
799 * testsuite/libgomp.c/simd-16.c: New test.
800 * testsuite/libgomp.c/simd-17.c: New test.
801 * testsuite/libgomp.c++/for-10.C: Define SC to static for
802 #pragma omp for simd testing.
803 * testsuite/libgomp.c++/simd10.C: New test.
804 * testsuite/libgomp.c++/simd11.C: New test.
805 * testsuite/libgomp.c++/simd12.C: New test.
806 * testsuite/libgomp.c++/simd13.C: New test.
808 * testsuite/libgomp.fortran/aligned1.f03: New test.
809 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
810 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
811 tasks with !$omp parallel !$omp single.
812 * testsuite/libgomp.fortran/target8.f90: New test.
813 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
814 not to use trim in the combiner, instead call elemental function.
815 (fn): New elemental function.
816 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
818 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
820 * testsuite/libgomp.fortran/udr12.f90: New test.
821 * testsuite/libgomp.fortran/udr13.f90: New test.
822 * testsuite/libgomp.fortran/udr14.f90: New test.
823 * testsuite/libgomp.fortran/udr15.f90: New test.
825 2014-06-18 Jakub Jelinek <jakub@redhat.com>
827 * omp_lib.f90.in (openmp_version): Set to 201307.
828 * omp_lib.h.in (openmp_version): Likewise.
829 * testsuite/libgomp.c/target-8.c: New test.
830 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
831 and inbranch clauses.
832 * testsuite/libgomp.fortran/depend-3.f90: New test.
833 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
835 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
836 * testsuite/libgomp.fortran/target1.f90: New test.
837 * testsuite/libgomp.fortran/target2.f90: New test.
838 * testsuite/libgomp.fortran/target3.f90: New test.
839 * testsuite/libgomp.fortran/target4.f90: New test.
840 * testsuite/libgomp.fortran/target5.f90: New test.
841 * testsuite/libgomp.fortran/target6.f90: New test.
842 * testsuite/libgomp.fortran/target7.f90: New test.
844 2014-06-10 Jakub Jelinek <jakub@redhat.com>
847 * testsuite/libgomp.fortran/allocatable9.f90: New test.
848 * testsuite/libgomp.fortran/allocatable10.f90: New test.
849 * testsuite/libgomp.fortran/allocatable11.f90: New test.
850 * testsuite/libgomp.fortran/allocatable12.f90: New test.
851 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
852 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
853 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
854 * testsuite/libgomp.fortran/associate1.f90: New test.
855 * testsuite/libgomp.fortran/associate2.f90: New test.
856 * testsuite/libgomp.fortran/procptr1.f90: New test.
858 2014-06-06 Jakub Jelinek <jakub@redhat.com>
860 * testsuite/libgomp.fortran/simd1.f90: New test.
861 * testsuite/libgomp.fortran/udr1.f90: New test.
862 * testsuite/libgomp.fortran/udr2.f90: New test.
863 * testsuite/libgomp.fortran/udr3.f90: New test.
864 * testsuite/libgomp.fortran/udr4.f90: New test.
865 * testsuite/libgomp.fortran/udr5.f90: New test.
866 * testsuite/libgomp.fortran/udr6.f90: New test.
867 * testsuite/libgomp.fortran/udr7.f90: New test.
868 * testsuite/libgomp.fortran/udr8.f90: New test.
869 * testsuite/libgomp.fortran/udr9.f90: New test.
870 * testsuite/libgomp.fortran/udr10.f90: New test.
871 * testsuite/libgomp.fortran/udr11.f90: New test.
873 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
875 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
876 vect_simd_clones effective target.
877 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
879 2014-05-21 Jakub Jelinek <jakub@redhat.com>
882 * testsuite/libgomp.c++/simd-9.C: New test.
884 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
886 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
887 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
888 texts according to their @menu entry positions.
890 2014-05-11 Jakub Jelinek <jakub@redhat.com>
892 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
893 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
894 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
895 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
896 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
897 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
898 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
899 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
900 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
901 * testsuite/libgomp.fortran/depend-1.f90: New test.
902 * testsuite/libgomp.fortran/depend-2.f90: New test.
903 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
904 * testsuite/libgomp.fortran/simd1.f90: New test.
905 * testsuite/libgomp.fortran/simd2.f90: New test.
906 * testsuite/libgomp.fortran/simd3.f90: New test.
907 * testsuite/libgomp.fortran/simd4.f90: New test.
908 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
910 2014-05-02 Jakub Jelinek <jakub@redhat.com>
912 * testsuite/libgomp.c/simd-10.c: New test.
913 * testsuite/libgomp.c/simd-11.c: New test.
914 * testsuite/libgomp.c/simd-12.c: New test.
915 * testsuite/libgomp.c/simd-13.c: New test.
917 2014-04-24 Jakub Jelinek <jakub@redhat.com>
919 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
920 atomic type clauses in any order and optional comma in between.
921 * testsuite/libgomp.c++/atomic-15.C: Likewise.
922 * testsuite/libgomp.c/atomic-17.c: Likewise.
924 * testsuite/libgomp.c/simd-7.c: New test.
925 * testsuite/libgomp.c/simd-8.c: New test.
926 * testsuite/libgomp.c/simd-9.c: New test.
927 * testsuite/libgomp.c/loop-16.c: New test.
929 2014-04-02 Richard Henderson <rth@redhat.com>
931 * config/linux/futex.h (futex_wait): Get error value from errno.
932 (futex_wake): Likewise.
934 2014-03-25 Jakub Jelinek <jakub@redhat.com>
937 * testsuite/libgomp.c++/udr-11.C: New test.
938 * testsuite/libgomp.c++/udr-12.C: New test.
939 * testsuite/libgomp.c++/udr-13.C: New test.
940 * testsuite/libgomp.c++/udr-14.C: New test.
941 * testsuite/libgomp.c++/udr-15.C: New test.
942 * testsuite/libgomp.c++/udr-16.C: New test.
943 * testsuite/libgomp.c++/udr-17.C: New test.
944 * testsuite/libgomp.c++/udr-18.C: New test.
945 * testsuite/libgomp.c++/udr-19.C: New test.
947 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
949 Update copyright years
951 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
953 * hashtab.h: Use the standard form for the copyright notice.
955 2014-01-02 Tobias Burnus <burnus@net-b.de>
957 * libgomp.texi: Bump @copying's copyright year.
959 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
961 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
962 alloca () with __builtin_alloca ().
963 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
964 * testsuite/libgomp.c/lock-3.c: Likewise.
965 * testsuite/libgomp.c/pr48591.c: Likewise.
967 2013-12-17 Jakub Jelinek <jakub@redhat.com>
970 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
973 2013-12-16 Jakub Jelinek <jakub@redhat.com>
976 * testsuite/libgomp.c/pr58756.c: New test.
978 2013-12-12 Jakub Jelinek <jakub@redhat.com>
981 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
984 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
986 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
988 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
989 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
990 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
991 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
994 * libgomp_g.h: Include <stddef.h> for size_t.
996 * libgomp.spec.in: Update comment about libgomp's dependencies.
997 * configure.ac: Likewise.
998 * configure: Regenerate.
1000 2013-10-16 Tobias Burnus <burnus@net-b.de>
1002 * libgomp.texi: (Runtime Library Routines): Update references for
1003 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1004 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1005 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1006 (Environment Variables): Update references for OpenMP 4.0. Add
1007 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1008 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1011 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1013 * env.c (parse_bind_var): Initialize value to avoid
1014 (false positive) warning.
1016 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1019 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1021 (gomp_init_num_threads): Move i variable declaration into
1022 #ifdef CPU_ALLOC_SIZE block.
1023 * config/linux/affinity.c (gomp_affinity_init_level): Test
1024 gomp_places_list_len == 0 rather than gomp_places_list == 0
1025 when checking for topology reading error.
1026 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1027 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1028 gomp_places_list, only parse env var and always return false.
1029 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1030 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1031 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1032 and either of these variables were parsed correctly into a places
1035 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1036 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1039 of 5 loopfn matches.
1040 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1041 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1042 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1043 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1044 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1045 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1046 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1047 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1049 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1051 * Makefile.am (omp_lib.mod): Streamline rule.
1052 * Makefile.in: Regenerate.
1054 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1057 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1058 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1059 * testsuite/libgomp.fortran/lib2.f: Likewise.
1060 * testsuite/libgomp.fortran/lib3.f: Likewise.
1062 * configure.ac: Typo fix.
1063 * configure: Regenerate.
1065 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1066 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1068 * omp.h.in: Don't touch the user's namespace.
1070 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1071 Tobias Burnus <burnus@net-b.de>
1072 Richard Henderson <rth@redhat.com>
1074 * target.c: New file.
1075 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1076 * Makefile.in: Regenerated.
1077 * libgomp_g.h (GOMP_task): Add depend argument.
1078 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1079 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1080 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1081 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1082 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1083 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1084 GOMP_taskgroup_start, GOMP_taskgroup_end,
1085 GOMP_parallel_sections): New prototypes.
1086 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1087 (omp_is_initial_device_): New function.
1088 (ULP, STR1, STR2, ialias_redirect): Removed.
1089 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1090 omp_set_default_device_8_, omp_get_default_device_,
1091 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1093 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1094 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1095 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1097 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1098 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1099 omp_set_default_device, omp_set_default_device_,
1100 omp_set_default_device_8_, omp_get_default_device,
1101 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1102 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1103 omp_get_team_num_): Export @@OMP_4.0.
1104 * team.c (struct gomp_thread_start_data): Add place field.
1105 (gomp_thread_start): Clear thr->thread_pool and
1106 thr->task before returning. Use gomp_team_barrier_wait_final
1107 instead of gomp_team_barrier_wait. Initialize thr->place.
1108 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1109 team_cancelled and task_queued_count fields.
1110 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1111 before calling pthread_exit.
1112 (gomp_free_thread): No longer static. Use
1113 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1114 (gomp_team_start): Add flags argument. Set
1115 thr->thread_pool->threads_busy to nthreads immediately after creating
1116 new pool. Use gomp_managed_threads_lock instead of
1117 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1118 (gomp_team_end): Use gomp_managed_threads_lock instead of
1119 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1120 of gomp_team_barrier_wait. If team->team_cancelled, call
1121 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1122 rather than thr->ts.work_share.
1123 (initialize_team): Don't call gomp_sem_init here.
1124 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1126 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1127 * env.c (gomp_global_icv): Add default_device_var, target_data and
1128 bind_var initializers.
1129 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1130 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1131 gomp_places_list_len): New variables.
1132 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1133 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1135 (gomp_cancel_var): New global variable.
1136 (parse_int): New function.
1137 (handle_omp_display_env): New function.
1138 (initialize_env): Use it. Initialize default_device_var.
1139 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1140 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1141 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1142 been successfully parsed (and call gomp_init_affinity in that case).
1143 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1144 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1145 omp_get_team_num, omp_is_initial_device): New functions.
1146 * libgomp.h: Include stdlib.h.
1147 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1149 (struct target_mem_desc): Forward declare.
1150 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1151 and thread_limit_var fields.
1152 (gomp_get_num_devices): New prototype.
1153 (gomp_cancel_var): New extern decl.
1154 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1155 team_cancelled and task_queued_count fields. Add comments about
1156 task_{,queued_,running_}count.
1157 (gomp_cancel_kind): New enum.
1158 (gomp_work_share_end_cancel): New prototype.
1159 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1160 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1162 (struct gomp_taskgroup): New type.
1163 (struct gomp_task_depend_entry,
1164 struct gomp_dependers_vec): New types.
1165 (gomp_finish_task): Free depend_hash if non-NULL.
1166 (struct gomp_team_state): Add place_partition_off
1167 and place_partition_len fields.
1168 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1169 gomp_places_list_len): New extern decls.
1170 (struct gomp_thread): Add place field.
1171 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1172 (gomp_init_thread_affinity): Add place argument.
1173 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1174 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1175 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1176 gomp_affinity_init_level, gomp_affinity_print_place): New
1178 (gomp_team_start): Add flags argument.
1179 (gomp_thread_limit_var, gomp_remaining_threads_count,
1180 gomp_remaining_threads_lock): Remove.
1181 (gomp_managed_threads_lock): New variable.
1182 (struct gomp_thread_pool): Add threads_busy field.
1183 (gomp_free_thread): New prototype.
1184 * task.c: Include hashtab.h.
1185 (hash_entry_type): New typedef.
1186 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1187 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1188 copy_ctors_done and taskgroup fields.
1189 (GOMP_task): Add depend argument, handle depend clauses. If
1190 gomp_team_barrier_cancelled or if it's taskgroup has been
1191 cancelled, don't queue or start new tasks. Set copy_ctors_done
1192 field if needed. Initialize taskgroup field. If copy_ctors_done
1193 and already cancelled, don't discard the task. If taskgroup is
1194 non-NULL, enqueue the task into taskgroup queue. Increment
1195 num_children field in taskgroup. Increment task_queued_count.
1196 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1197 gomp_task_run_post_remove_taskgroup): New inline functions.
1198 (gomp_task_run_post_handle_depend_hash,
1199 gomp_task_run_post_handle_dependers,
1200 gomp_task_run_post_handle_depend): New functions.
1201 (GOMP_taskwait): Use them. If more than one new tasks
1202 have been queued, wake other threads if needed.
1203 (gomp_barrier_handle_tasks): Likewise. If
1204 gomp_team_barrier_cancelled, don't start any new tasks, just free
1206 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1208 (omp_proc_bind_kind, omp_proc_bind_false,
1209 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1210 omp_proc_bind_spread): New params.
1211 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1212 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1213 omp_get_team_num, omp_is_initial_device): New interfaces.
1214 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1215 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1216 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1217 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1218 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1219 useless use omp_lib_kinds.
1220 * omp.h.in (omp_proc_bind_t): New typedef.
1221 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1222 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1223 omp_get_team_num, omp_is_initial_device): New prototypes.
1224 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1225 through to gomp_team_start.
1226 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1227 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1228 Adjust gomp_parallel_loop_start callers.
1229 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1230 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1231 GOMP_loop_end_cancel): New functions.
1232 (GOMP_parallel_end): Add ialias_redirect.
1233 * hashtab.h: New file.
1234 * libgomp.texi (Environment Variables): Minor cleanup,
1235 update section refs to OpenMP 4.0rc2.
1236 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1237 environment variables.
1238 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1239 team->work_shares_to_free to thr->ts.work_share before calling
1241 (gomp_work_share_end_cancel): New function.
1242 * config/linux/proc.c: Include errno.h.
1243 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1244 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1245 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1246 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1247 gomp_cpuset_size is sizeof (cpu_set_t).
1248 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1249 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1250 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1251 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1252 contain any logical CPUs.
1253 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1254 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1255 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1256 pthread_getaffinity_np. Check gomp_places_list instead of
1257 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1258 * config/linux/bar.c (gomp_barrier_wait_end,
1259 gomp_barrier_wait_last): Use BAR_* defines.
1260 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1261 from state where needed. Set work_share_cancelled to 0 on last
1263 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1264 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1266 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1267 Add cpusetsize argument.
1268 (gomp_cpuset_size, gomp_cpusetp): Declare.
1269 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1270 (affinity_counter): Remove.
1271 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1272 if CPU_ALLOC_SIZE isn't defined.
1273 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1274 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1275 bind current thread to the first place.
1276 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1277 pthread_setaffinity_np to gomp_places_list[place].
1278 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1279 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1280 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1281 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1282 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1283 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1284 (gomp_barrier_t): Add awaited_final field.
1285 (gomp_barrier_init): Initialize awaited_final field.
1286 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1287 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1289 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1291 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1292 gomp_team_barrier_cancelled): New inline functions.
1293 (gomp_barrier_last_thread,
1294 gomp_team_barrier_set_task_pending,
1295 gomp_team_barrier_clear_task_pending,
1296 gomp_team_barrier_set_waiting_for_tasks,
1297 gomp_team_barrier_waiting_for_tasks,
1298 gomp_team_barrier_done): Use BAR_* defines.
1299 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1300 (gomp_barrier_wait_end): Use BAR_* defines.
1301 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1302 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1304 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1305 gomp_team_barrier_cancel): New functions.
1306 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1308 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1309 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1310 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1311 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1312 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1313 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1314 (gomp_barrier_t): Add cancellable field.
1315 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1316 gomp_team_barrier_cancel): New prototypes.
1317 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1318 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1319 gomp_team_barrier_cancelled): New inline functions.
1320 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1321 gomp_team_barrier_set_task_pending,
1322 gomp_team_barrier_clear_task_pending,
1323 gomp_team_barrier_set_waiting_for_tasks,
1324 gomp_team_barrier_waiting_for_tasks,
1325 gomp_team_barrier_done): Use BAR_* defines.
1326 * barrier.c (GOMP_barrier_cancel): New function.
1327 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1328 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1329 omp_proc_bind_spread): New params.
1330 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1331 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1332 omp_get_team_num, omp_is_initial_device): New externals.
1333 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1335 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1336 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1337 infinity. If not nested, just return minimum of max_num_threads
1338 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1339 to the returned value. Otherwise, don't update atomically
1340 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1341 (GOMP_parallel_end): Adjust for thread_limit now being in
1342 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1343 infinity. Adjust threads_busy in the pool rather than
1344 gomp_remaining_threads_count. Remember team->nthreads and call
1345 gomp_team_end before adjusting threads_busy, if not nested
1346 afterwards, just set it to 1 non-atomically. Add ialias.
1347 (GOMP_parallel_start): Adjust gomp_team_start caller.
1348 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1349 * testsuite/libgomp.c/affinity-1.c: New test.
1350 * testsuite/libgomp.c/atomic-15.c: New test.
1351 * testsuite/libgomp.c/atomic-16.c: New test.
1352 * testsuite/libgomp.c/atomic-17.c: New test.
1353 * testsuite/libgomp.c/cancel-for-1.c: New test.
1354 * testsuite/libgomp.c/cancel-for-2.c: New test.
1355 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1356 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1357 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1358 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1359 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1360 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1361 * testsuite/libgomp.c/depend-1.c: New test.
1362 * testsuite/libgomp.c/depend-2.c: New test.
1363 * testsuite/libgomp.c/depend-3.c: New test.
1364 * testsuite/libgomp.c/depend-4.c: New test.
1365 * testsuite/libgomp.c/for-1.c: New test.
1366 * testsuite/libgomp.c/for-1.h: New file.
1367 * testsuite/libgomp.c/for-2.c: New test.
1368 * testsuite/libgomp.c/for-2.h: New file.
1369 * testsuite/libgomp.c/for-3.c: New test.
1370 * testsuite/libgomp.c/pr58392.c: New test.
1371 * testsuite/libgomp.c/simd-1.c: New test.
1372 * testsuite/libgomp.c/simd-2.c: New test.
1373 * testsuite/libgomp.c/simd-3.c: New test.
1374 * testsuite/libgomp.c/simd-4.c: New test.
1375 * testsuite/libgomp.c/simd-5.c: New test.
1376 * testsuite/libgomp.c/simd-6.c: New test.
1377 * testsuite/libgomp.c/target-1.c: New test.
1378 * testsuite/libgomp.c/target-2.c: New test.
1379 * testsuite/libgomp.c/target-3.c: New test.
1380 * testsuite/libgomp.c/target-4.c: New test.
1381 * testsuite/libgomp.c/target-5.c: New test.
1382 * testsuite/libgomp.c/target-6.c: New test.
1383 * testsuite/libgomp.c/target-7.c: New test.
1384 * testsuite/libgomp.c/taskgroup-1.c: New test.
1385 * testsuite/libgomp.c/thread-limit-1.c: New test.
1386 * testsuite/libgomp.c/thread-limit-2.c: New test.
1387 * testsuite/libgomp.c/thread-limit-3.c: New test.
1388 * testsuite/libgomp.c/udr-1.c: New test.
1389 * testsuite/libgomp.c/udr-2.c: New test.
1390 * testsuite/libgomp.c/udr-3.c: New test.
1391 * testsuite/libgomp.c++/affinity-1.C: New test.
1392 * testsuite/libgomp.c++/atomic-10.C: New test.
1393 * testsuite/libgomp.c++/atomic-11.C: New test.
1394 * testsuite/libgomp.c++/atomic-12.C: New test.
1395 * testsuite/libgomp.c++/atomic-13.C: New test.
1396 * testsuite/libgomp.c++/atomic-14.C: New test.
1397 * testsuite/libgomp.c++/atomic-15.C: New test.
1398 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1399 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1400 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1401 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1402 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1403 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1404 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1405 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1406 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1407 * testsuite/libgomp.c++/cancel-test.h: New file.
1408 * testsuite/libgomp.c++/for-9.C: New test.
1409 * testsuite/libgomp.c++/for-10.C: New test.
1410 * testsuite/libgomp.c++/for-11.C: New test.
1411 * testsuite/libgomp.c++/simd-1.C: New test.
1412 * testsuite/libgomp.c++/simd-2.C: New test.
1413 * testsuite/libgomp.c++/simd-3.C: New test.
1414 * testsuite/libgomp.c++/simd-4.C: New test.
1415 * testsuite/libgomp.c++/simd-5.C: New test.
1416 * testsuite/libgomp.c++/simd-6.C: New test.
1417 * testsuite/libgomp.c++/simd-7.C: New test.
1418 * testsuite/libgomp.c++/simd-8.C: New test.
1419 * testsuite/libgomp.c++/target-1.C: New test.
1420 * testsuite/libgomp.c++/target-2.C: New test.
1421 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1422 * testsuite/libgomp.c++/target-3.C: New test.
1423 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1424 * testsuite/libgomp.c++/udr-1.C: New test.
1425 * testsuite/libgomp.c++/udr-2.C: New test.
1426 * testsuite/libgomp.c++/udr-3.C: New test.
1427 * testsuite/libgomp.c++/udr-4.C: New test.
1428 * testsuite/libgomp.c++/udr-5.C: New test.
1429 * testsuite/libgomp.c++/udr-6.C: New test.
1430 * testsuite/libgomp.c++/udr-7.C: New test.
1431 * testsuite/libgomp.c++/udr-8.C: New test.
1432 * testsuite/libgomp.c++/udr-9.C: New test.
1434 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1437 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1440 2013-09-20 Alan Modra <amodra@gmail.com>
1442 * configure: Regenerate.
1444 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1446 * testsuite/libgomp.c/sections-2.c: New test.
1448 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1450 * testsuite/libgomp.fortran/strassen.f90:
1451 Add dg-skip-if aarch64_tiny.
1453 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1454 Cesar Philippidis <cesar@codesourcery.com>
1456 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1457 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1458 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1459 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1460 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1461 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1462 Use dg-runtest rather than gfortran-dg-runtest.
1464 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1466 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1467 Linux-based x86 systems to cover all GNU systems.
1468 * testsuite/libgomp.c/lock-3.c: Likewise.
1469 * testsuite/libgomp.c/pr48591.c: Likewise.
1471 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1473 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1474 GNU/Hurd, as done for Linux-based systems.
1476 * config/posix/ptrlock.h: Fix comment.
1478 2013-05-27 Tobias Burnus <burnus@net-b.de>
1481 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1482 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1483 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1484 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1485 omp_destroy_nest_lock): Correct arguments to match the one in
1487 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1488 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1489 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1490 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1492 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1494 * testsuite/libgomp.c/loop-13.c: New test.
1495 * testsuite/libgomp.c/loop-14.c: New test.
1496 * testsuite/libgomp.c/loop-15.c: New test.
1497 * testsuite/libgomp.c++/loop-13.C: New test.
1498 * testsuite/libgomp.c++/loop-14.C: New test.
1499 * testsuite/libgomp.c++/loop-15.C: New test.
1501 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1504 * testsuite/libgomp.c++/pr56217.C: New test.
1506 2013-02-01 Alan Modra <amodra@gmail.com>
1508 * task.c (GOMP_task, GOMP_taskwait): Comment.
1510 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1511 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1514 * config/linux/wait.h (do_spin): Use atomic load for addr.
1515 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1516 for intptr and ptrlock.
1517 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1520 2013-01-22 Alan Modra <amodra@gmail.com>
1524 * task.c (GOMP_task): Revert 2011-12-09 change.
1525 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1526 barrier to read task->children..
1527 (gomp_barrier_handle_tasks): ..and matching atomic store with
1528 release barrier here when setting parent->children to NULL.
1530 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1531 Tobias Burnus <burnus@net-b.de>
1534 * testsuite/libgomp.fortran/fortran.exp: Use
1535 -fintrinsic-modules-path= instead of
1536 -fintrinsic-modules-path.
1538 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1540 Update copyright years.
1542 2012-12-19 Tobias Burnus <burnus@net-b.de>
1544 * testsuite/libgomp.fortran/fortran.exp: Set
1545 -fintrinsic-modules-path.
1547 2012-12-19 Tobias Burnus <burnus@net-b.de>
1549 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1550 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1552 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1555 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1556 if pool had any threads_used.
1558 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1560 * testsuite/libgomp.c++/pr24455.C: Use
1561 -Wl,-undefined,dynamic_lookup on darwin.
1563 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1565 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1567 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1569 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1571 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1572 Jim MacArthur <jim.macarthur@arm.com>
1573 Marcus Shawcroft <marcus.shawcroft@arm.com>
1574 Nigel Stephens <nigel.stephens@arm.com>
1575 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1576 Richard Earnshaw <rearnsha@arm.com>
1577 Sofiane Naci <sofiane.naci@arm.com>
1578 Stephen Thomas <stephen.thomas@arm.com>
1579 Tejas Belagod <tejas.belagod@arm.com>
1580 Yufeng Zhang <yufeng.zhang@arm.com>
1582 * configure.tgt: Add AArch64.
1584 2012-10-04 Jason Merrill <jason@redhat.com>
1586 * testsuite/libgomp.c++/tls-init1.C: New.
1588 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1590 * configure: Regenerated.
1592 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1594 * config/linux/mips/futex.h (sys_futex0): Change to static
1595 function with noinline, nomips16 attributes under MIPS16. Adjust
1596 asm statement to place 'li v0,SYS_futex' immediately before
1599 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1601 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1602 conflict with index.html on case-insensitive file systems.
1604 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1606 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1607 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1609 2012-07-02 Richard Guenther <rguenther@suse.de>
1610 Michael Matz <matz@suse.de>
1611 Tobias Grosser <tobias@grosser.es>
1612 Sebastian Pop <sebpop@gmail.com>
1614 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1615 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1616 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1617 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1619 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1621 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1623 2012-06-22 Richard Guenther <rguenther@suse.de>
1625 Merge from graphite branch
1626 2012-01-13 Tobias Grosser <tobias@grosser.es>
1628 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1629 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1631 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1634 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1635 use GOMP_barrier () call instead.
1636 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1637 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1638 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1639 call GOMP_barrier instead.
1640 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1642 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1645 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1646 argument to memset call.
1648 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1650 * configure: Regenerated.
1652 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1654 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1656 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1659 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1661 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1664 * testsuite/libgomp.c/pr52547.c: New test.
1666 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1668 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1670 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1672 * configure.tgt (mips-sgi-irix6*): Remove.
1674 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1676 * configure.tgt (alpha*-dec-osf*): Remove.
1678 * config/osf/sem.h: Remove.
1679 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1681 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1683 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1685 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1688 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1689 Remove ENABLE_SYMVERS_SOL2.
1690 * configure: Regenerate.
1691 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1692 (PREPROCESS): New variable.
1693 (libgomp.ver): New target.
1694 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1695 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1696 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1698 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1699 * Makefile.in: Regenerate.
1701 2012-02-14 Walter Lee <walt@tilera.com>
1703 * configure.tgt: Handle tilegx and tilepro.
1704 * config/linux/tile/futex.h: New file.
1706 2012-02-08 Richard Guenther <rguenther@suse.de>
1708 PR tree-optimization/46886
1709 * testsuite/libgomp.c/pr46886.c: New testcase.
1711 2012-01-25 Matthias Klose <doko@ubuntu.com>
1713 * config/linux/arm: Remove empty directory.
1714 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1716 2011-12-09 Alan Modra <amodra@gmail.com>
1719 * task.c (GOMP_taskwait): Don't access task->children outside of
1720 task_lock mutex region.
1721 (GOMP_task): Likewise.
1723 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1726 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1728 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1729 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1730 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1731 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1732 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1734 2011-12-02 Alan Modra <amodra@gmail.com>
1736 * config/linux/affinity.c: Use atomic rather than sync builtin.
1737 * config/linux/lock.c: Likewise.
1738 * config/linux/ptrlock.h: Likewise.
1739 * config/linux/ptrlock.c: Likewise.
1740 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1741 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1742 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1743 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1744 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1745 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1746 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1747 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1748 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1749 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1751 2011-11-30 Alan Modra <amodra@gmail.com>
1754 * config/linux/bar.h: Use atomic rather than sync builtins.
1755 * config/linux/bar.c: Likewise. Add missing acquire
1756 synchronisation on generation field.
1757 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1760 2011-11-30 Alan Modra <amodra@gmail.com>
1762 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1763 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1764 * config/linux/mutex.h: Use atomic rather than sync builtins.
1765 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1766 * config/linux/omp-lock.h: Comment fix.
1767 * config/linux/arm/mutex.h: Delete.
1768 * config/linux/powerpc/mutex.h: Delete.
1769 * config/linux/ia64/mutex.h: Delete.
1770 * config/linux/mips/mutex.h: Delete.
1772 2011-11-30 Alan Modra <amodra@gmail.com>
1775 * config/linux/sem.h: Rewrite.
1776 * config/linux/sem.c: Rewrite.
1778 2011-11-28 Richard Henderson <rth@redhat.com>
1780 * libgomp.h (enum memmodel): New.
1782 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1784 * configure: Regenerate.
1786 2011-10-10 Matthias Klose <doko@ubuntu.com>
1788 * config/posix95: Remove empty directory.
1790 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1792 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1794 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1797 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1798 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1800 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1802 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1804 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1807 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1809 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1811 * config/linux/proc.h: New.
1812 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1813 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1814 (gomp_init_num_threads): Update call to cpuset_popcount.
1815 (get_num_procs): Ditto.
1816 * config/linux/affinity.c (gomp_init_affinity): Call
1817 gomp_cpuset_popcount.
1819 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1823 * omp.h.in (omp_in_final): New prototype.
1824 * omp_lib.f90.in (omp_in_final): New interface.
1825 (omp_integer_kind, omp_logical_kind): Remove
1826 and replace all its uses in the module with 4.
1827 (openmp_version): Change to 201107.
1828 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1829 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1830 kind for the parameters.
1831 (omp_in_final): New external.
1832 (openmp_version): Change to 201107.
1833 * task.c (omp_in_final): New function.
1834 (gomp_init_task): Initialize final_task.
1835 (GOMP_task): Remove unused attribute from flags. Handle final
1837 (GOMP_taskyield): New function.
1838 (omp_in_final): Return true if if (false) or final (true) task
1839 or descendant of final (true).
1840 * fortran.c (omp_in_final_): New function.
1841 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1842 (GOMP_3.0): Export GOMP_taskyield.
1843 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1845 (parse_unsigned_long_list): New function.
1846 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1847 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1848 even if parse_affinity returned false.
1849 * config/linux/affinity.c (gomp_init_affinity): Handle
1850 gomp_cpu_affinity_len == 0.
1851 * libgomp_g.h (GOMP_taskyield): New prototype.
1852 * libgomp.h (struct gomp_task): Add final_task field.
1853 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1854 * team.c (gomp_team_start): Override new task's nthreads_var icv
1855 if list form OMP_NUM_THREADS has been used and it has value for
1856 the new nesting level.
1858 * testsuite/libgomp.c/atomic-11.c: New test.
1859 * testsuite/libgomp.c/atomic-12.c: New test.
1860 * testsuite/libgomp.c/atomic-13.c: New test.
1861 * testsuite/libgomp.c/atomic-14.c: New test.
1862 * testsuite/libgomp.c/reduction-6.c: New test.
1863 * testsuite/libgomp.c/task-5.c: New test.
1864 * testsuite/libgomp.c++/atomic-2.C: New test.
1865 * testsuite/libgomp.c++/atomic-3.C: New test.
1866 * testsuite/libgomp.c++/atomic-4.C: New test.
1867 * testsuite/libgomp.c++/atomic-5.C: New test.
1868 * testsuite/libgomp.c++/atomic-6.C: New test.
1869 * testsuite/libgomp.c++/atomic-7.C: New test.
1870 * testsuite/libgomp.c++/atomic-8.C: New test.
1871 * testsuite/libgomp.c++/atomic-9.C: New test.
1872 * testsuite/libgomp.c++/task-8.C: New test.
1873 * testsuite/libgomp.c++/reduction-4.C: New test.
1874 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1875 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1876 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1877 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1878 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1879 * testsuite/libgomp.fortran/pointer1.f90: New test.
1880 * testsuite/libgomp.fortran/pointer2.f90: New test.
1881 * testsuite/libgomp.fortran/task4.f90: New test.
1883 2011-08-02 Tobias Burnus <burnus@net-b.de>
1885 * libgomp.texi: Update OpenMP spec references to 3.1.
1886 (omp_in_final,OMP_PROC_BIND): New sections.
1887 (OMP_NUM_THREADS): Document that the value can be now a list.
1888 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1890 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1892 * config/linux/x86/futex.h: Check __x86_64__ instead of
1895 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1899 * testsuite/libgomp.c/pr49897-1.c: New test.
1900 * testsuite/libgomp.c/pr49897-2.c: New test.
1901 * testsuite/libgomp.c/pr49898-1.c: New test.
1902 * testsuite/libgomp.c/pr49898-2.c: New test.
1904 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1906 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1907 for ia32 instead of ilp32.
1909 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1910 * testsuite/libgomp.c/atomic-6.c: Likewise.
1912 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1914 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1915 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1917 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1920 * config/osf/sem.h: New file.
1921 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1923 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1926 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1929 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1931 * config/linux/wait.h (do_spin): New inline, largely copied
1932 from do_wait, just don't do futex_wait here, instead return true if
1934 (do_wait): Implement using do_spin.
1935 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1937 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1938 __sync_bool_compare_and_swap, pass the oldval to
1939 gomp_mutex_lock_slow.
1940 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1941 If all mutex contenders are just spinning and not sleeping, don't
1942 change state to 2 unnecessarily. Optimize the loop when state has
1943 already become 2 to use just one atomic operation per loop instead
1945 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1947 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1948 __sync_bool_compare_and_swap, pass the oldval to
1949 gomp_mutex_lock_slow.
1951 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1954 * iter.c (gomp_iter_static_next): For chunk size 0
1955 only use n ceil/ nthreads size for the first
1956 n % nthreads threads in the team instead of
1957 all threads except for the last few ones which
1958 get less work or none at all.
1959 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1960 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1961 chunk argument, set run_sched_modifier to 0 for static
1962 resp. 1 for other kinds. If chunk argument is 0
1963 and not static, set value to 1.
1965 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1968 * testsuite/libgomp.c++/pr49043.C: New test.
1971 * testsuite/libgomp.c++/pr48869.C: New test.
1973 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1976 * fortran.c: Include limits.h.
1978 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1980 (omp_set_num_threads_8_, omp_set_schedule_8_,
1981 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1982 omp_get_team_size_8_): Use TO_INT macro.
1983 * testsuite/libgomp.fortran/pr48894.f90: New test.
1985 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1988 * testsuite/libgomp.c/pr48591.c: New test.
1990 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1993 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1994 * configure: Regenerate.
1996 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1999 * testsuite/libgomp.fortran/task3.f90: New test.
2001 2011-02-24 Tobias Burnus <burnus@net-b.de>
2003 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2005 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2008 * libgomp.texi (omp_get_wtime): Don't say time in the past
2011 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2014 * testsuite/libgomp.fortran/fortran.exp: Check for both
2015 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2016 but $blddir != "", still append ${blddir}/${lang_library_path}
2019 2011-02-16 Tobias Burnus <burnus@net-b.de>
2022 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2023 of libquadmath.a before adding its libpath to ldflags.
2025 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2028 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2029 to FUTEX_WAIT futex syscall.
2030 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2032 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2034 * configure: Regenerate.
2036 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2039 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2041 2011-01-16 Gerald Pfeifer
2043 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2045 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2048 * libgomp.fortran/allocatable6.f90: New test.
2050 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2052 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2053 * configure: Regenerate.
2055 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2059 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2060 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2061 * aclocal.m4: Regenerate.
2062 * configure: Regenerate.
2063 * Makefile.in: Regenerate.
2064 * testsuite/Makefile.in: Regenerate.
2066 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2069 * libgomp.fortran/pr46753.f90: New test.
2072 * env.c (initialize_env): Default to spin count 300000
2073 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2077 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2078 at the end if sync builtins aren't supported.
2080 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2082 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2084 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2086 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2088 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2090 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2092 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2093 Tobias Burnus <burnus@net-b.de>
2097 * configure: Regenerate.
2099 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2101 * config/linux/futex.h: New.
2102 * config/linux/arm/mutex.h: New.
2103 * configure.tgt (arm*-*-linux*): Add config path.
2105 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2107 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2109 2010-09-23 Tobias Burnus <burnus@net-b.de>
2111 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2112 Change Fortran datatype to LOGICAL.
2113 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2114 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2116 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2118 * configure: Regenerate.
2120 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2122 * libgomp.texi: Add function keyword to a couple of Fortran
2123 interfaces, use integer instead of int for Fortran.
2125 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2127 * libgomp.texi: Fix spelling and pasto problems throughout.
2128 Adjust prototypes to match code.
2130 2010-07-24 Tobias Burnus <burnus@net-b.de>
2132 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2133 silence -fwhole-file warning.
2135 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2137 * configure.tgt (*-*-solaris2.[56]*): Removed.
2139 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2141 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2142 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2143 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2144 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2145 targetting solaris2*.
2146 * configure: Regenerate.
2147 * config.h.in: Regenerate.
2149 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2150 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2151 Add libgomp_version_dep.
2152 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2154 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2155 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2156 * Makefile.in: Regenerate.
2158 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2159 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2160 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2161 to common block, protected by
2162 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2164 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2166 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2168 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2171 * configure: Regenerate.
2173 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2176 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2177 * configure: Regenerate.
2178 * Makefile.in: Regenerate.
2179 * testsuite/Makefile.in: Regenerate.
2181 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2184 * testsuite/libgomp.c/pr43893.c: New test.
2185 * testsuite/libgomp.c++/pr43893.C: New test.
2187 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2190 * testsuite/libgomp.fortran/vla8.f90: New test.
2192 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2195 * config/linux/affinity.c (gomp_init_affinity): Decrease
2196 gomp_available_cpus if affinity mask confines the process to fewer
2198 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2199 non-NULL, just return gomp_available_cpus.
2202 * sections.c (gomp_sections_init): Initialize ws->mode.
2204 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2206 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2207 not unused bar variable.
2208 * configure: Regenerate.
2210 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2212 * Makefile.in: Regenerate.
2213 * aclocal.m4: Regenerate.
2214 * testsuite/Makefile.in: Regenerate.
2216 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2219 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2220 (initialize_env): Adjust callers.
2221 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2222 when the argument is 0.
2224 * testsuite/libgomp.c/pr42942.c: New test.
2226 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2230 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2231 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2233 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2235 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2236 * testsuite/libgomp.c++/task-6.C: Likewise.
2238 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2240 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2242 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2244 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2245 * configure: Regenerate.
2247 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2250 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2252 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2254 * configure.ac: Test for executability of GFORTRAN.
2255 * configure: Regenerate.
2257 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2259 * configure: Regenerate.
2261 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2264 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2266 2010-01-03 Richard Guenther <rguenther@suse.de>
2268 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2270 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2272 * testsuite/libgomp.graphite/pr4118.c: New.
2274 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2276 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2277 for darwin, protect the test with require-effective-target tls_runtime.
2278 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2280 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2283 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2284 link spec %s substitutions for static libraries.
2286 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2289 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2291 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2293 * Makefile.in: Regenerate.
2294 * configure: Regenerate.
2295 * testsuite/Makefile.in: Regenerate.
2297 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2299 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2300 settings for LC_ALL and LANG.
2302 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2305 * testsuite/libgomp.fortran/pr42162.f90: New test.
2307 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2310 * testsuite/libgomp.c/pr42029.c: New test.
2312 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2314 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2315 *s. Accept ld version without text in ()s.
2316 * configure: Regenerated.
2318 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2320 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2322 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2325 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2326 or a hyphen (happens with fortran language disabled).
2327 * configure: Regenerate.
2329 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2331 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2332 use sed script portable to Solaris /bin/sed for extracting ld
2334 * configure: Regenerate.
2336 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2338 * testsuite/libgomp.graphite/bounds.c: New test.
2340 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2342 * Makefile.am (libgomp_la_LINK): New.
2343 * Makefile.in: Regenerate.
2345 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2347 * configure.ac (AC_PREREQ): Bump to 2.64.
2349 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2351 * Makefile.am (install-html, install-pdf): Remove.
2352 * Makefile.in: Regenerate.
2354 * Makefile.in: Regenerate.
2355 * aclocal.m4: Regenerate.
2356 * config.h.in: Regenerate.
2357 * configure: Regenerate.
2358 * testsuite/Makefile.in: Regenerate.
2360 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2362 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2363 * Makefile.in: Regenerate.
2365 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2367 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2368 * Makefile.in: Regenerate.
2370 2009-08-19 Tobias Burnus <burnus@net-b.de>
2373 omp_lib.h.in: Fix -std=f95 errors.
2376 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2378 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2379 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2380 * testsuite/libgomp.graphite/graphite.exp: New.
2382 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2384 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2387 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2389 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2390 needed memory barrier semantics.
2391 * config/linux/mips/mutex.h: New file.
2393 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2395 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2397 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2399 * configure: Regenerate.
2401 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2406 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2407 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2408 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2410 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2412 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2413 options when choosing a multilib.
2415 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2417 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2418 ld_library_path. Use add_path. Add just find_libgcc_s to
2419 ld_library_path, not every libgcc multilib directory.
2420 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2421 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2422 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2424 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2426 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2428 * Makefile.am (LTLDFLAGS): Define.
2430 * Makefile.in: Regenerate.
2432 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2435 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2436 libgfortranbegin, check existence of libgfortran.a instead of
2439 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2442 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2443 (gomp_free_pool_helper): Likewise.
2445 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2446 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.fortran/workshare2.f90: New test.
2451 2009-04-09 Nick Clifton <nickc@redhat.com>
2453 * iter.c: Change copyright header to refer to version 3 of the
2454 GNU General Public License with version 3.1 of the GCC Runtime
2455 Library Exception and to point readers at the COPYING3 and
2456 COPYING3.RUNTIME files and the FSF's license web page.
2457 * alloc.c: Likewise.
2458 * barrier.c: Likewise.
2459 * config/bsd/proc.c: Likewise.
2460 * config/linux/affinity.c: Likewise.
2461 * config/linux/alpha/futex.h: Likewise.
2462 * config/linux/bar.c: Likewise.
2463 * config/linux/bar.h: Likewise.
2464 * config/linux/ia64/futex.h: Likewise.
2465 * config/linux/ia64/mutex.h: Likewise.
2466 * config/linux/lock.c: Likewise.
2467 * config/linux/mips/futex.h: Likewise.
2468 * config/linux/mutex.c: Likewise.
2469 * config/linux/mutex.h: Likewise.
2470 * config/linux/powerpc/futex.h: Likewise.
2471 * config/linux/proc.c: Likewise.
2472 * config/linux/ptrlock.c: Likewise.
2473 * config/linux/ptrlock.h: Likewise.
2474 * config/linux/s390/futex.h: Likewise.
2475 * config/linux/sem.c: Likewise.
2476 * config/linux/sem.h: Likewise.
2477 * config/linux/sparc/futex.h: Likewise.
2478 * config/linux/wait.h: Likewise.
2479 * config/linux/x86/futex.h: Likewise.
2480 * config/mingw32/proc.c: Likewise.
2481 * config/mingw32/time.c: Likewise.
2482 * config/posix/affinity.c: Likewise.
2483 * config/posix/bar.c: Likewise.
2484 * config/posix/bar.h: Likewise.
2485 * config/posix/lock.c: Likewise.
2486 * config/posix/mutex.h: Likewise.
2487 * config/posix/proc.c: Likewise.
2488 * config/posix/ptrlock.h: Likewise.
2489 * config/posix/sem.c: Likewise.
2490 * config/posix/sem.h: Likewise.
2491 * config/posix/time.c: Likewise.
2492 * config/posix95/lock.c: Likewise.
2493 * critical.c: Likewise.
2495 * error.c: Likewise.
2496 * fortran.c: Likewise.
2497 * iter_ull.c: Likewise.
2498 * libgomp.h: Likewise.
2499 * libgomp_f.h.in: Likewise.
2500 * libgomp_g.h: Likewise.
2502 * loop_ull.c: Likewise.
2503 * omp.h.in: Likewise.
2504 * omp_lib.f90.in: Likewise.
2505 * omp_lib.h.in: Likewise.
2506 * ordered.c: Likewise.
2507 * parallel.c: Likewise.
2508 * sections.c: Likewise.
2509 * single.c: Likewise.
2514 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2516 * testsuite/config/default.exp: Change copyright header to refer to
2517 version 3 of the GNU General Public License and to point readers
2518 at the COPYING3 file and the FSF's license web page.
2520 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2523 * libgomp.c++/pr39573.C: New test.
2525 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2528 * testsuite/libgomp.c/pr39591-1.c: New test.
2529 * testsuite/libgomp.c/pr39591-2.c: New test.
2530 * testsuite/libgomp.c/pr39591-3.c: New test.
2532 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2534 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2535 * testsuite/libgomp.c/atomic-6.c: Ditto.
2537 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2540 * testsuite/libgomp.c/loop-12.c: New test.
2541 * testsuite/libgomp.c/loop-11.c: New test.
2542 * testsuite/libgomp.c++/loop-11.C: New test.
2543 * testsuite/libgomp.c++/loop-12.C: New test.
2544 * testsuite/libgomp.c++/for-8.C: New test.
2546 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2548 * configure: Regenerate.
2550 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2553 * testsuite/libgomp.c/pr39154.c: New test.
2555 2009-01-30 Ian Lance Taylor <iant@google.com>
2557 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2558 libgomp_ld_is_gold. Get gold version number.
2559 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2560 * configure: Rebuild.
2562 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2564 * testsuite/lib/libgomp.exp: Add -B option for targets that
2565 use libgfortran.a%s in their specs.
2567 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2570 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2571 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2572 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2573 * configure: Regenerated.
2574 * config.h.in: Likewise.
2576 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2579 * testsuite/libgomp.c/pr38650.c: New test.
2580 * testsuite/libgomp.c++/pr38650.C: New test.
2582 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2584 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2586 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2588 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2590 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2592 * configure: Regenerate.
2594 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2597 * testsuite/libgomp.c/pr36802-1.c: New test.
2598 * testsuite/libgomp.c/pr36802-2.c: New test.
2599 * testsuite/libgomp.c/pr36802-3.c: New test.
2601 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2604 * config/linux/powerpc/mutex.h: New.
2606 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2609 * testsuite/libgomp.c++/for-7.C: New test.
2612 * testsuite/libgomp.c++/for-6.C: New test.
2614 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2617 * testsuite/lib/libgomp.exp: Include new timeout library files.
2618 (libgomp_target_compile): Set timeout value from new proc.
2620 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2623 * config/linux/ia64/mutex.h: New.
2625 2008-11-04 Tobias Burnus <burnus@net-b.de>
2628 * libgomp.texi (Runtime library routines, environment variables):
2629 Update for OpenMP version 3.0.
2631 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2632 Steve Ellcey <sje@cup.hp.com>
2634 * configure: Regenerate for new libtool.
2635 * Makefile.in: Ditto.
2636 * testsuite/Makefile.in: Ditto.
2638 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2639 Andreas Tobler <a.tobler@schweiz.org>
2641 * config/bsd/proc.c: New file.
2642 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2643 * configure.ac: Check for header <sys/sysctl.h>
2644 * configure: Regenerate.
2645 * config.h.in: Likewise.
2647 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2649 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2651 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2653 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2654 * Makefile.in: Regenerated.
2655 * testsuite/Makefile.in: Regenerated.
2657 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2659 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2660 depend on blddir if blddir exists.
2661 (libgomp_target_compile): Likewise.
2662 * testsuite/libgomp.c++/c++.exp: Likewise.
2663 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2665 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2667 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2668 Do not list GPL as Invariant Section.
2670 2008-07-28 Ilie Garbacea <ilie@mips.com>
2671 Chao-ying Fu <fu@mips.com>
2673 * configure.tgt: Enable futex for MIPS.
2674 * config/linux/mips/futex.h: New file.
2676 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2678 * team.c (gomp_team_end): Free team immediately if it has
2681 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2683 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2684 * testsuite/libgomp.fortran/fortran.exp: Same.
2685 * testsuite/libgomp.c/c.exp: Same.
2686 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2687 directory to library path first.
2689 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2691 * env.c (parse_stacksize): Add cast to avoid warning.
2692 (parse_spincount): Likewise.
2694 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2696 * testsuite/libgomp.c/loop-10.c: New test.
2697 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2698 * libgomp.c++/loop-6.C (main): Likewise.
2701 * testsuite/libgomp.c/debug-1.c: New test.
2703 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2705 * testsuite/libgomp.c/nqueens-1.c: New test.
2708 * testsuite/libgomp.c++/task-7.C: New function.
2710 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2712 * configure: Regenerate.
2714 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2716 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2717 mutex when HAVE_SYNC_BUILTINS isn't defined.
2719 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2721 * libgomp.texi (omp_test_lock): Fix typo.
2723 2008-06-12 Tobias Burnus <burnus@net-b.de>
2725 * omp_lib.f90.in: Add "implicit none".
2727 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2730 * testsuite/libgomp.c/reduction-5.c: New test.
2732 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2734 * libgomp.h (struct gomp_task): Add in_tied_task field.
2735 * task.c (gomp_init_task): Initialize it.
2736 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2737 unconditionally. Don't call gomp_team_barrier_wake if
2738 current task is implicit or if(0) from implicit and number of
2739 running tasks is equal to nthreads - 1.
2742 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2743 omp_get_team_size_8): Fix pastos.
2746 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2747 * configure: Regenerated.
2748 * config.h.in: Regenerated.
2749 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2752 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
2755 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2756 (GOMP_loop_ull_dynamic_start): Likewise.
2757 (GOMP_loop_ull_guided_start): Likewise.
2758 (GOMP_loop_ull_ordered_static_start): Likewise.
2759 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2760 (GOMP_loop_ull_ordered_guided_start): Likewise.
2762 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2763 Richard Henderson <rth@redhat.com>
2764 Ulrich Drepper <drepper@redhat.com>
2765 Jakob Blomer <jakob.blomer@ira.uka.de>
2767 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2768 Substitute also OMP_*LOCK_25*.
2769 * configure: Regenerated.
2770 * config.h.in: Regenerated.
2771 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2772 ptrlock.c and task.c.
2773 * Makefile.in: Regenerated.
2774 * testsuite/Makefile.in: Regenerated.
2776 * loop_ull.c: New file.
2777 * iter_ull.c: New file.
2778 * libgomp.h: Include ptrlock.h.
2779 (enum gomp_task_kind): New type.
2780 (struct gomp_team): Add task_lock, task_queue, task_count,
2781 task_running_count, single_count fields. Add
2782 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2783 Remove work_share_lock, generation_mask,
2784 oldest_live_gen, num_live_gen and init_work_shares fields, add
2785 work work_share_list_alloc, work_share_list_free and work_share_chunk
2786 fields. Change work_shares from pointer to pointers into an array.
2787 Change ordered_release field into gomp_sem_t ** from flexible array
2788 member. Add implicit_task and initial_work_shares fields.
2789 Move close to the end of the struct.
2790 (struct gomp_team_state): Add single_count, last_work_share,
2791 active_level and level fields, remove work_share_generation.
2792 (gomp_barrier_handle_tasks): New prototype.
2793 (gomp_finish_task): New inline function.
2794 (struct gomp_work_share): Move chunk_size, end, incr into
2795 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2796 next_ll fields. Reshuffle fields. Add next_alloc,
2797 next_ws, next_free and inline_ordered_team_ids fields, change
2798 ordered_team_ids into pointer from flexible array member.
2799 Add mode field. Put lock and next into a different cache line
2800 from most of the write-once fields.
2801 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2802 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2803 gomp_iter_ull_guided_next): New prototypes.
2804 (gomp_new_icv): New prototype.
2805 (struct gomp_thread): Add thread_pool and task fields.
2806 (struct gomp_thread_pool): New type.
2807 (gomp_new_team): New prototype.
2808 (gomp_team_start): Change type of last argument.
2809 (gomp_new_work_share): Removed.
2810 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2811 (gomp_work_share_init_done): New static inline.
2812 (gomp_throttled_spin_count_var, gomp_available_cpus,
2813 gomp_managed_threads): New extern decls.
2814 (gomp_init_task): New prototype.
2815 (gomp_spin_count_var): New extern var decl.
2816 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2817 or no alias support, or if not PIC.
2818 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2819 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2820 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2821 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2822 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2823 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2824 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2825 gomp_test_nest_lock_25): New prototypes.
2826 (omp_lock_symver, strong_alias): Define.
2827 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2829 (gomp_end_task): New.
2830 (struct gomp_task_icv, gomp_global_icv): New.
2831 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2832 (struct gomp_task): New.
2833 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2834 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2836 (gomp_schedule_type): Reorder enum to match
2838 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2840 (gomp_thread_start): Add gomp_team_barrier_wait call.
2841 For non-nested case remove clearing of docked thread thr fields.
2842 Use pool fields instead of global gomp_* variables. Use
2843 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2844 Create tasks for each member thread.
2845 (free_team): Only destroy team barrier, task_lock here and free it.
2846 (gomp_free_thread): Free last_team if non-NULL.
2847 (gomp_team_end): Call gomp_team_barrier_wait instead of
2848 gomp_barrier_wait. For nested case call one extra
2849 gomp_barrier_wait. Move here some destruction from free_team.
2850 Call free_team on pool->last_team if any, rather than freeing
2851 current team. Destroy work_share_list_free_lock ifndef
2853 (gomp_new_icv): New function.
2854 (gomp_threads, gomp_threads_size, gomp_threads_used,
2855 gomp_threads_dock): Removed.
2856 (gomp_thread_destructor): New variable.
2857 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2859 (gomp_team_start): Create new pool if current thread doesn't have
2860 one. Use pool fields instead of global gomp_* variables.
2861 Initialize thread_pool field for new threads. Clear single_count.
2862 Change last argument from ws to team, don't create
2863 new team, set ts.work_share to &team->work_shares[0] and clear
2864 ts.last_work_share. Don't clear ts.work_share_generation.
2865 If number of threads changed, adjust atomically gomp_managed_threads.
2866 Use gomp_init_task instead of gomp_new_task,
2867 set thr->task to the corresponding implicit_task array entry.
2868 Create tasks for each member thread. Initialize ts.level.
2869 (initialize_team): Call pthread_key_create on
2870 gomp_thread_destructor.
2871 (team_destructor): New function.
2872 (new_team): Removed.
2873 (gomp_new_team): New function.
2874 (free_team): Free gomp_work_share blocks chained through next_alloc,
2875 instead of freeing work_shares and destroying work_share_lock.
2876 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2877 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2878 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2879 of gomp_barrier_wait.
2880 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2881 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2882 if gomp_work_share_start returned true. Don't unlock ws->lock.
2883 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2884 of gomp_barrier_wait.
2885 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2886 gomp_work_share_init_done if gomp_work_share_start returned true.
2887 Don't unlock ws->lock.
2888 * work.c: Include stddef.h.
2889 (free_work_share): Use work_share_list_free_lock instead
2890 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2891 Call gomp_fini_work_share and then either free ws if orphaned, or
2892 put it into work_share_list_free list of the current team.
2893 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2895 (gomp_work_share_start, gomp_work_share_end,
2896 gomp_work_share_end_nowait): Rewritten.
2897 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2898 (openmp_version): Set to 200805.
2899 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2900 omp_sched_guided, omp_sched_auto): New parameters.
2901 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2902 omp_set_max_active_levels, omp_get_max_active_levels,
2903 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2904 omp_get_active_level): New interfaces.
2905 * omp_lib.h.in (openmp_version): Set to 200805.
2906 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2907 omp_sched_guided, omp_sched_auto): New parameters.
2908 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2909 omp_set_max_active_levels, omp_get_max_active_levels,
2910 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2911 omp_get_active_level): New externals.
2912 * loop.c: Include limits.h.
2913 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2915 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2916 Likewise. Use gomp_icv.
2917 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2918 ts.static_trip here.
2919 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2920 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2921 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2922 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2923 don't unlock ws->lock, otherwise lock it.
2924 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2925 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2926 (gomp_parallel_loop_start): Call gomp_new_team instead of
2927 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2928 Adjust gomp_team_start caller. Pass 0 as second argument to
2929 gomp_resolve_num_threads.
2930 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2931 If adding ws->chunk_size nthreads + 1 times after end won't
2932 overflow, set ws->mode to 1.
2933 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2934 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2935 GOMP_loop_ull_ordered_static_start,
2936 GOMP_loop_ull_ordered_dynamic_start,
2937 GOMP_loop_ull_ordered_guided_start,
2938 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2939 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2940 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2941 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2942 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2944 * libgomp.map: Export lock routines also @@OMP_2.0.
2945 (GOMP_loop_ordered_dynamic_first,
2946 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2947 GOMP_loop_ordered_static_first): Remove.
2948 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2949 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2950 GOMP_loop_ull_ordered_dynamic_next,
2951 GOMP_loop_ull_ordered_dynamic_start,
2952 GOMP_loop_ull_ordered_guided_next,
2953 GOMP_loop_ull_ordered_guided_start,
2954 GOMP_loop_ull_ordered_runtime_next,
2955 GOMP_loop_ull_ordered_runtime_start,
2956 GOMP_loop_ull_ordered_static_next,
2957 GOMP_loop_ull_ordered_static_start,
2958 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2959 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2960 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2961 (omp_set_schedule, omp_get_schedule,
2962 omp_get_thread_limit, omp_set_max_active_levels,
2963 omp_get_max_active_levels, omp_get_level,
2964 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2965 omp_set_schedule_, omp_set_schedule_8_,
2966 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2967 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2968 omp_get_max_active_levels_, omp_get_level_,
2969 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2970 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2971 New exports @@OMP_3.0.
2972 * omp.h.in (omp_sched_t): New type.
2973 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2974 omp_set_max_active_levels, omp_get_max_active_levels,
2975 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2976 omp_get_active_level): New prototypes.
2977 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2978 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2979 gomp_thread_limit_var, gomp_remaining_threads_count,
2980 gomp_remaining_threads_lock): New variables.
2981 (parse_spincount): New function.
2982 (initialize_env): Call gomp_init_num_threads unconditionally.
2983 Initialize gomp_available_cpus. Call parse_spincount,
2984 initialize gomp_{,throttled_}spin_count_var
2985 depending on presence and value of OMP_WAIT_POLICY and
2986 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2987 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2988 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2989 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2990 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2991 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2992 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2993 (gomp_global_icv): New.
2994 (parse_schedule): Use it. Parse "auto".
2995 (omp_set_num_threads): Use gomp_icv.
2996 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2998 (omp_get_max_threads): Move from parallel.c.
2999 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3000 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3002 (parse_stacksize, parse_wait_policy): New functions.
3003 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3004 both wrappers for compatibility and new locks.
3005 (omp_set_schedule, omp_get_schedule,
3006 omp_get_thread_limit, omp_set_max_active_levels,
3007 omp_get_max_active_levels, omp_get_level,
3008 omp_get_ancestor_thread_num, omp_get_team_size,
3009 omp_get_active_level): New ialias_redirect.
3010 (omp_set_schedule_, omp_set_schedule_8_,
3011 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3012 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3013 omp_get_max_active_levels_, omp_get_level_,
3014 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3015 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3017 * parallel.c: Include limits.h.
3018 (gomp_resolve_num_threads): Add count argument. Rewritten.
3019 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3020 argument to gomp_team_start. Pass 0 as second argument to
3021 gomp_resolve_num_threads.
3022 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3023 if gomp_thread_limit_var != ULONG_MAX.
3024 (omp_in_parallel): Implement using ts.active_level.
3025 (omp_get_max_threads): Move to env.c.
3026 (omp_get_level, omp_get_ancestor_thread_num,
3027 omp_get_team_size, omp_get_active_level): New functions,
3029 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3030 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3031 gomp_iter_dynamic_next instead of the _locked variant and don't take
3032 lock around it, otherwise acquire it before calling
3033 gomp_iter_dynamic_next_locked.
3034 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3035 gomp_iter_dynamic_next instead of the _locked variant and don't take
3037 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3038 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3039 Adjust gomp_team_start caller. Pass count as second argument to
3040 gomp_resolve_num_threads, don't adjust num_threads after the call.
3042 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3043 ws->chunk_size by incr.
3044 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3046 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3048 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3049 (omp_check_defines): Check even the compat defines.
3050 * config/linux/ptrlock.c: New file.
3051 * config/linux/ptrlock.h: New file.
3052 * config/linux/wait.h: New file.
3053 * config/posix/ptrlock.c: New file.
3054 * config/posix/ptrlock.h: New file.
3055 * config/linux/bar.h (gomp_team_barrier_wait,
3056 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3057 (gomp_team_barrier_set_task_pending,
3058 gomp_team_barrier_clear_task_pending,
3059 gomp_team_barrier_set_waiting_for_tasks,
3060 gomp_team_barrier_waiting_for_tasks,
3061 gomp_team_barrier_done): New inlines.
3062 (gomp_barrier_t): Rewritten.
3063 (gomp_barrier_state_t): New typedef.
3064 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3065 gomp_barrier_wait_start): Rewritten.
3066 (gomp_barrier_wait_end): Change second argument to
3067 gomp_barrier_state_t.
3068 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3070 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3072 (gomp_barrier_wait_end): Rewritten.
3073 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3074 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3075 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3076 (gomp_barrier_state_t): New typedef.
3077 (gomp_team_barrier_wait,
3078 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3079 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3080 into the return value. Return gomp_barrier_state_t.
3081 (gomp_team_barrier_set_task_pending,
3082 gomp_team_barrier_clear_task_pending,
3083 gomp_team_barrier_set_waiting_for_tasks,
3084 gomp_team_barrier_waiting_for_tasks,
3085 gomp_team_barrier_done): New inlines.
3086 (gomp_barrier_wait_end): Change second argument to
3087 gomp_barrier_state_t.
3088 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3090 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3091 (gomp_barrier_wait_end): Change second argument to
3092 gomp_barrier_state_t.
3093 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3094 gomp_team_barrier_wake): New functions.
3095 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3097 (gomp_futex_wake, gomp_futex_wait): New variables.
3098 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3099 * config/linux/lock.c: Rewrite to make locks task owned,
3100 for backwards compatibility provide the old entrypoints
3101 if symbol versioning. Include wait.h instead of libgomp.h and
3103 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3104 * config/posix95/lock.c: Rewrite to make locks task owned,
3105 for backwards compatibility provide the old entrypoints
3106 if symbol versioning.
3107 * config/posix/lock.c: Rewrite to make locks task owned,
3108 for backwards compatibility provide the old entrypoints
3109 if symbol versioning.
3110 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3111 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3112 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3113 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3114 (sys_futex0): Return error code.
3115 (futex_wake, futex_wait): If ENOSYS was returned, clear
3116 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3117 (cpu_relax, atomic_write_barrier): New static inlines.
3118 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3119 (futex_wake, futex_wait): If ENOSYS was returned, clear
3120 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3121 (cpu_relax, atomic_write_barrier): New static inlines.
3122 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3123 (sys_futex0): Return error code.
3124 (futex_wake, futex_wait): If ENOSYS was returned, clear
3125 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3126 (cpu_relax, atomic_write_barrier): New static inlines.
3127 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3128 (sys_futex0): Return error code.
3129 (futex_wake, futex_wait): If ENOSYS was returned, clear
3130 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3131 (cpu_relax, atomic_write_barrier): New static inlines.
3132 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3133 (sys_futex0): Return error code.
3134 (futex_wake, futex_wait): If ENOSYS was returned, clear
3135 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3136 (cpu_relax, atomic_write_barrier): New static inlines.
3137 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3138 (sys_futex0): Return error code.
3139 (futex_wake, futex_wait): If ENOSYS was returned, clear
3140 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3141 (cpu_relax, atomic_write_barrier): New static inlines.
3142 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3144 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3145 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3146 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3148 (omp_nest_lock_t): Change owner into void *, add lock field.
3149 * config/posix95/omp-lock.h: Include semaphore.h.
3150 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3151 (omp_lock_t): Use sem_t instead of mutex if semaphores
3153 (omp_nest_lock_t): Likewise. Change owner to void *.
3154 * config/posix/omp-lock.h: Include semaphore.h.
3155 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3156 (omp_lock_t): Use sem_t instead of mutex if semaphores
3158 (omp_nest_lock_t): Likewise. Add owner field.
3160 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3162 * testsuite/libgomp.c/collapse-1.c: New test.
3163 * testsuite/libgomp.c/collapse-2.c: New test.
3164 * testsuite/libgomp.c/collapse-3.c: New test.
3165 * testsuite/libgomp.c/icv-1.c: New test.
3166 * testsuite/libgomp.c/icv-2.c: New test.
3167 * testsuite/libgomp.c/lib-2.c: New test.
3168 * testsuite/libgomp.c/lock-1.c: New test.
3169 * testsuite/libgomp.c/lock-2.c: New test.
3170 * testsuite/libgomp.c/lock-3.c: New test.
3171 * testsuite/libgomp.c/loop-4.c: New test.
3172 * testsuite/libgomp.c/loop-5.c: New test.
3173 * testsuite/libgomp.c/loop-6.c: New test.
3174 * testsuite/libgomp.c/loop-7.c: New test.
3175 * testsuite/libgomp.c/loop-8.c: New test.
3176 * testsuite/libgomp.c/loop-9.c: New test.
3177 * testsuite/libgomp.c/nested-3.c: New test.
3178 * testsuite/libgomp.c/nestedfn-6.c: New test.
3179 * testsuite/libgomp.c/sort-1.c: New test.
3180 * testsuite/libgomp.c/task-1.c: New test.
3181 * testsuite/libgomp.c/task-2.c: New test.
3182 * testsuite/libgomp.c/task-3.c: New test.
3183 * testsuite/libgomp.c/task-4.c: New test.
3184 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3185 to C++ testsuite default compiler options.
3186 * testsuite/libgomp.c++/collapse-1.C: New test.
3187 * testsuite/libgomp.c++/collapse-2.C: New test.
3188 * testsuite/libgomp.c++/ctor-10.C: New test.
3189 * testsuite/libgomp.c++/for-1.C: New test.
3190 * testsuite/libgomp.c++/for-2.C: New test.
3191 * testsuite/libgomp.c++/for-3.C: New test.
3192 * testsuite/libgomp.c++/for-4.C: New test.
3193 * testsuite/libgomp.c++/for-5.C: New test.
3194 * testsuite/libgomp.c++/loop-8.C: New test.
3195 * testsuite/libgomp.c++/loop-9.C: New test.
3196 * testsuite/libgomp.c++/loop-10.C: New test.
3197 * testsuite/libgomp.c++/task-1.C: New test.
3198 * testsuite/libgomp.c++/task-2.C: New test.
3199 * testsuite/libgomp.c++/task-3.C: New test.
3200 * testsuite/libgomp.c++/task-4.C: New test.
3201 * testsuite/libgomp.c++/task-5.C: New test.
3202 * testsuite/libgomp.c++/task-6.C: New test.
3203 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3204 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3205 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3206 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3207 * testsuite/libgomp.fortran/collapse1.f90: New test.
3208 * testsuite/libgomp.fortran/collapse2.f90: New test.
3209 * testsuite/libgomp.fortran/collapse3.f90: New test.
3210 * testsuite/libgomp.fortran/collapse4.f90: New test.
3211 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3212 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3213 * testsuite/libgomp.fortran/lib4.f90: New test.
3214 * testsuite/libgomp.fortran/lock-1.f90: New test.
3215 * testsuite/libgomp.fortran/lock-2.f90: New test.
3216 * testsuite/libgomp.fortran/nested1.f90: New test.
3217 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3218 * testsuite/libgomp.fortran/strassen.f90: New test.
3219 * testsuite/libgomp.fortran/tabs1.f90: New test.
3220 * testsuite/libgomp.fortran/tabs2.f: New test.
3221 * testsuite/libgomp.fortran/task1.f90: New test.
3222 * testsuite/libgomp.fortran/task2.f90: New test.
3223 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3224 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3225 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3226 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3227 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3229 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3232 * testsuite/libgomp.c++/ctor-11.C: New test.
3233 * testsuite/libgomp.c++/ctor-12.C: New test.
3235 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3237 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3239 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3242 * testsuite/libgomp.c/atomic-5.c: New test.
3243 * testsuite/libgomp.c/atomic-6.c: New test.
3244 * testsuite/libgomp.c/autopar-1.c: New test.
3246 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3248 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3249 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3250 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3251 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3252 * configure: Regenerate.
3253 * Makefile.in, testsuite/Makefile.in: Likewise.
3255 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3258 * aclocal.m4: Regenerate.
3259 * configure: Regenerate.
3261 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3264 * testsuite/libgomp.c/atomic-4.c: New test.
3267 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3268 (gomp_iter_guided_next): Likewise.
3269 * testsuite/libgomp.c/pr35625.c: New test.
3271 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3273 * aclocal.m4: Regenerate.
3274 * configure: Likewise.
3275 * Makefile.in: Likewise.
3276 * testsuite/Makefile.in: Likewise.
3278 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3281 * testsuite/libgomp.c++/pr35185.C: New test.
3283 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3286 * testsuite/libgomp.c/pr35549.c: New test.
3288 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3290 * testsuite/libgomp.c/atomic-3.c: New test.
3292 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3295 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3298 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3301 * configure.ac: Add ACX_HEADER_STRING.
3302 * env.c: Include strings.h.
3303 * aclocal.m4: Regenerate.
3304 * config.h.in: Regenerate.
3305 * configure: Regenerate.
3306 * Makefile.in: Regenerate.
3307 * testsuite/Makefile.in: Regenerate.
3309 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3312 * testsuite/libgomp.c/pr35196.c: New test.
3315 * testsuite/libgomp.fortran/pr35130.f90: New test.
3316 * testsuite/libgomp.c/pr35130.c: New test.
3318 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3321 * testsuite/libgomp.c/pr33880.c: New test.
3322 * testsuite/libgomp.fortran/pr33880.f90: New test.
3324 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3326 * configure: Regenerate.
3328 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3330 * configure.ac: Move futex checking into ../config/futex.m4.
3331 * configure: Rebuilt.
3332 * aclocal.m4: Rebuilt.
3333 * Makefile.in: Rebuilt.
3335 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3336 2007-10-15 ../config/tls.m4 change.
3338 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3341 * testsuite/libgomp.c/pr34513.c: New test.
3342 * testsuite/libgomp.c++/pr34513.C: New test.
3344 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3347 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3349 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3351 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3353 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3355 * testsuite/libgomp.c/private-1.c: New test.
3357 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3358 Paolo Bonzini <bonzini@gnu.org>
3360 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3361 instead of 'VPATH ='.
3362 * Makefile.in: Regenerate.
3364 2007-11-23 Matthias Klose <doko@ubuntu.com>
3366 * configure.ac: Adjust makeinfo version check.
3367 * configure: Regenerate.
3369 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3372 * testsuite/libgomp.fortran/pr34020.f90: New test.
3374 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3377 * testsuite/libgomp.c++/atomic-1.C: New test.
3379 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3382 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3383 Make x and y integers rather than (implicit) reals. Add private (j)
3384 clause to the last omp parallel.
3386 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3388 * configure: Regenerate following changes to ../config/tls.m4.
3390 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3392 * testsuite/libgomp.fortran/stack.f90: New test.
3394 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3396 * config/mingw32/proc.c: New file.
3398 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3400 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3401 (main): Use __get_cpuid to get i386 target fetaures.
3402 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3403 (main): Use __get_cpuid to get x86_64 target fetaures.
3405 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3408 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3409 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3411 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3414 * testsuite/libgomp.fortran/pr32550.f90: New test.
3415 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3417 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3419 * aclocal.m4: Regenerated.
3421 2007-07-05 Tobias Burnus <burnus@net-b.de>
3424 * testsuite/libgomp.fortran/pr32359.f90: New.
3426 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3429 * sections.c (GOMP_parallel_sections_start): Only decrease
3430 number of threads to COUNT if dyn_var is true.
3431 * testsuite/libgomp.c/pr32468.c: New test.
3433 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3436 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3438 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3441 * testsuite/libgomp.c/pr32362-1.c: New test.
3442 * testsuite/libgomp.c/pr32362-2.c: New test.
3443 * testsuite/libgomp.c/pr32362-3.c: New test.
3445 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3447 * team.c (gomp_team_start): Fix setting up thread_attr
3450 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3452 * configure: Regenerate.
3454 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3456 * Makefile.in: Regenerate.
3457 * configure: Regenerate.
3458 * aclocal.m4: Regenerate.
3459 * testsuite/Makefile.in: Regenerate.
3461 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3463 * config/linux/proc.c: New file.
3466 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3468 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3470 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3472 2007-04-16 Matthias Klose <doko@debian.org>
3474 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3475 flags if not building with -m64.
3476 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3477 flag for i?86-*-* targets, if current target matches -m64.
3479 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3481 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3482 * Makefile.in: Regenerate.
3484 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3487 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3489 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3491 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3493 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3495 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3496 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3497 (parse_affinity): New function.
3498 (initialize_env): Call it and gomp_init_affinity.
3499 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3500 create new pthread_attr_t and call gomp_init_thread_affinity
3501 on it for each thread before passing the attribute to pthread_create.
3502 * config/linux/affinity.c: New file.
3503 * config/posix/affinity.c: New file.
3504 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3505 * configure: Rebuilt.
3506 * config.h.in: Rebuilt.
3507 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3508 * Makefile.in: Rebuilt.
3510 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3512 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3514 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3515 and use it if found.
3517 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3519 * testsuite/config/default.exp: New file.
3520 * testsuite/lib/libgomp.exp: New file.
3521 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3522 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3523 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3524 (libgomp_load): Remove.
3525 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3526 always_ld_library_path, not ld_library_path. Set additional_flags
3527 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3528 (target_compile): Do not call libgomp_init. Append lang_library_path
3529 and lang_link_flags to options.
3530 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3531 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3533 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3534 always_ld_library_path. Set LD_LIBRARY_PATH here.
3535 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3536 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3537 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3539 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3540 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3541 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3542 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3543 * testsuite/libgomp.c/atomic-10.c: Ditto.
3545 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3547 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3548 dg-final cleanup-modules line.
3549 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3550 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3551 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3552 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3553 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3554 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3555 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3557 2007-03-18 Andreas Schwab <schwab@suse.de>
3559 * acinclude.m4: Adjust regular expression for ld version
3561 * configure: Regenerate.
3563 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3565 * Makefile.am: Add install-pdf target as copied from
3566 automake v1.10 rules.
3567 * Makefile.in: Regenerate
3569 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3572 * configure: Regenerate.
3575 * testsuite/libgomp.c++/pr30703.C: New test.
3577 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3580 2006-07-05 Eric Christopher <echristo@apple.com>
3581 * configure.ac: Depend addition of -pthread on host OS.
3582 * configure: Regenerate.
3584 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3586 * libgomp.texi: Fix spacing after abbreviations.
3588 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3591 * configure.ac: Add check for makeinfo
3592 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3593 if an appropiate version of makeinfo is found.
3594 * aclocal.m4: Regenerated.
3595 * configure: Regenerated.
3596 * Makefile.in: Regenerated.
3597 * testsuite/Makefile.in: Regenerated.
3599 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3602 * libgomp.texi: More about implementation-dependent settings.
3604 2007-01-26 Tobias Burnus <burnus@net-b.de>
3606 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3608 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3611 * testsuite/libgomp.c/pr30494.c: New test.
3613 2007-01-15 Tom Tromey <tromey@redhat.com>
3615 * configure: Rebuilt.
3616 * configure.ac: Fixed comment.
3618 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3620 * libgomp.texi: Document implementation specific default values of
3621 environment variables.
3623 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3626 * libgomp.texi: New file.
3627 * configure.ac: Add --enable-generated-files-in-srcdir option.
3628 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3630 * Makefile.in: Regenerated.
3631 * config.h.in: Regenerated.
3632 * testsuite/Makefile.in: Regenerated.
3635 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3638 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3640 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3642 * configure: Regenerate.
3644 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3647 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3648 start if there shouldn't be any loop iterations.
3649 (gomp_loop_ordered_static_start): Remove start == end test.
3650 * testsuite/libgomp.c/pr29947-1.c: New test.
3651 * testsuite/libgomp.c/pr29947-2.c: New test.
3653 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3655 * configure.tgt: Force initial-exec TLS model on Linux only.
3657 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3659 * configure: Regenerated.
3661 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3663 * env.c (parse_schedule): Reject out of range values.
3664 (parse_unsigned_long): Reject out of range, negative or zero values.
3666 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3669 * testsuite/libgomp.fortran/pr29629.f90: New test.
3671 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3674 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3675 * config/posix95: New directory.
3676 * config/posix95/omp-lock.h: New file.
3677 * config/posix95/lock.c: Likewise.
3679 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3681 * aclocal.m4: Regenerate.
3682 * configure: Regenerate.
3684 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3686 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3689 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3691 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3693 * configure: Regenerate.
3694 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3696 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3700 * testsuite/libgomp.c/nestedfn-4.c: New test.
3701 * testsuite/libgomp.c/nestedfn-5.c: New test.
3702 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3705 * testsuite/libgomp.fortran/condinc1.f: New test.
3706 * testsuite/libgomp.fortran/condinc2.f: New test.
3707 * testsuite/libgomp.fortran/condinc3.f90: New test.
3708 * testsuite/libgomp.fortran/condinc4.f90: New test.
3709 * testsuite/libgomp.fortran/condinc1.inc: New file.
3711 2006-09-18 Tom Tromey <tromey@redhat.com>
3713 * configure: Rebuilt.
3715 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3718 PR preprocessor/14634
3719 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3721 * configure: Regenerate.
3723 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3725 * testsuite/libgomp.fortran/reduction3.f90: Change
3726 -2147483648 to -huge(i)-1 to avoid overflow.
3727 * testsuite/libgomp.fortran/reduction4.f90: Change
3728 Z'ffffffff' to not(0) to avoid overflow.
3730 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3733 * Makefile.am (libsubincludedir): New.
3734 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3735 * Makefile.in: Regenerate.
3737 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3740 * env.c: Include ctype.h.
3741 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3742 leading and/or trailing whitespace and compare strings case
3745 2006-07-16 Jakub Jelinek <jakub@redhat.com>
3748 * testsuite/libgomp.fortran/pr28390.f: New test.
3750 2006-07-05 Eric Christopher <echristo@apple.com>
3752 * configure.ac: Depend addition of -pthread on host OS.
3753 * configure: Regenerate.
3755 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3757 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3758 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3761 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3765 * configure.ac: If neither --enable-linux-futex nor
3766 --disable-linux-futex is passed, determine the default by checking
3767 for compiling and/or running against NPTL. With --enable-linux-futex,
3768 check if SYS_gettid and SYS_futex are defined.
3769 * configure: Rebuilt.
3771 2006-06-14 Richard Henderson <rth@redhat.com>
3774 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3775 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3777 2006-06-09 Richard Henderson <rth@redhat.com>
3779 * env.c (gomp_nthreads_var): Change to unsigned long.
3780 (gomp_run_sched_chunk): Likewise.
3781 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3782 (initialize_env): Initialize gomp_thread_attr.
3783 * libgomp.h (gomp_nthreads_var): Update decl.
3784 (gomp_run_sched_chunk): Likewise.
3785 (gomp_thread_attr): Declare.
3786 * team.c (gomp_thread_attr): Export.
3787 (initialize_team): Don't initialize it.
3789 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3792 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3793 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3795 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3797 * config/mingw32/time.c: New file.
3798 * configure.tgt: Use it.
3800 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3802 * Makefile.am: Add install-html target. Add install-html to .PHONY
3803 * Makefile.in: Regenerate.
3805 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3808 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3809 * testsuite/libgomp.c/critical-1.c: Likewise.
3810 * testsuite/libgomp.c/loop-1.c: Likewise.
3811 * testsuite/libgomp.c/loop-2.c: Likewise.
3812 * testsuite/libgomp.c/single-1.c: Likewise.
3813 * testsuite/libgomp.c/ordered-1.c: Likewise.
3814 * testsuite/libgomp.c/ordered-2.c: Likewise.
3816 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3819 * libgomp.fortran/pr27416-1.f90: New test.
3821 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3824 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3825 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3827 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3830 * testsuite/libgomp.c/pr26943-1.c: New test.
3831 * testsuite/libgomp.c/pr26943-2.c: New test.
3832 * testsuite/libgomp.c/pr26943-3.c: New test.
3833 * testsuite/libgomp.c/pr26943-4.c: New test.
3834 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3835 * testsuite/libgomp.c++/pr26943.C: New test.
3837 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3840 * testsuite/libgomp.c++/pr27337.C: New test.
3842 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3845 * testsuite/libgomp.c/pr26171.c: New test.
3847 2006-04-25 Richard Henderson <rth@redhat.com>
3850 * configure.ac: Use GCC_CHECK_TLS.
3851 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3852 * Makefile.in, aclocal.m4, configure: Regenerate.
3854 2006-04-10 Matthias Klose <doko@debian.org>
3856 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3857 directory names containing underscores.
3859 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3862 * testsuite/libgomp.c++/pr26691.C: New test.
3864 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3866 * testsuite/libgomp.fortran/retval2.f90: New test.
3868 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3870 * testsuite/libgomp.c++: New directory.
3872 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3874 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3875 * config/posix/sem.c: Implement the above.
3877 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3879 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3880 define HAVE_BROKEN_POSIX_SEMAPHORES.
3881 * configure: Rebuilt.
3882 * config.h.in: Rebuilt.
3884 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3887 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3888 for the other pthread check.
3889 * configure: Regenerate.
3890 * config.h.in: Regenerate.
3892 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3896 * Makefile.am (fincludedir): New variable.
3897 (nodist_include_HEADERS): Remove Fortran files.
3898 (nodist_finclude_HEADERS): New variable.
3899 * Makefile.in: Regenerated.
3901 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3903 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3904 Remove tests for returning assumed character length arrays.
3906 2006-02-12 Roger Sayle <roger@eyesopen.com>
3907 John David Anglin <dave@hiauly1.hia.nrc.ca>
3910 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3912 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3914 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3916 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3918 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3919 part of LD_LIBRARY_PATH manually.
3921 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3924 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3927 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3930 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3931 * configure.ac (PERL): Don't set.
3932 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3933 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3934 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3935 * omp.h.in: Wrap the new configure substitutions with @ characters.
3936 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3937 * aclocal.m4, configure, Makefile.in: Regenerate.
3938 * mkomp_h.pl: Delete.
3940 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3943 * configure.ac: Use GCC_HEADER_STDINT.
3944 * libgomp.h: Include gstdint.h.
3945 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3946 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3948 2006-01-24 Richard Henderson <rth@redhat.com>
3951 * configure.ac: Add AM_MAINTAINER_MODE.
3952 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3954 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3956 * Makefile.in: Regenerate.
3957 * testsuite/Makefile.in: Regenerate.
3958 * aclocal.m4: Regenerate.
3960 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3962 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3964 * configure.ac: Add check for loadavg.h.
3965 (link_gomp): Adjust comment.
3966 * configure: Regenerate.
3967 * config.h.in: Regenerate.
3969 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3972 * configure.ac: Remove check for alloca.h.
3973 * configure: Regenerate.
3974 * config.h.in: Regenerate.
3975 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3976 * team.c: Remove use of alloca.h.
3977 Call gomp_alloca instead of alloca.
3979 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3982 * team.c: Add include of alloca.h.
3983 * configure.ac: Add check for alloca.h.
3984 * configure: Regenerate.
3985 * config.h.in: Regenerate.
3987 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3990 * testsuite/libgomp.fortran/pr25219.f90: New test.
3992 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3994 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3995 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3996 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3997 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3998 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3999 testsuite/libgomp.fortran/threadprivate1.f90,
4000 testsuite/libgomp.fortran/threadprivate2.f90,
4001 testsuite/libgomp.fortran/threadprivate3.f90,
4002 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4003 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4004 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4005 effective-target to TLS runtime.
4007 * testsuite/libgomp.fortran/pr25162.f: Require
4008 effective-target TLS runtime.
4010 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4012 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4013 * testsuite/libgomp.c/nestedfn-3.c: New test.
4015 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4018 * testsuite/libgomp.fortran/pr25162.f: New test.
4020 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4022 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4023 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4025 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4027 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4028 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4029 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4030 single.c, team.c, work.c, config/linux/alpha/futex.h,
4031 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4032 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4033 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4034 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4035 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4036 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4037 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4040 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4042 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4043 to nodist_noinst_HEADERS.
4044 * Makefile.in: Rebuilt.
4046 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4047 add integer count field.
4048 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4049 omp_nest_lock_t type change.
4050 (omp_init_nest_lock): Likewise. Initialize count to 0.
4051 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4053 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4055 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4056 Increment count if successful and return the new nesting level.
4057 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4058 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4059 * testsuite/libgomp.c/lib-1.c: New test.
4060 * testsuite/libgomp.fortran/lib1.f90: New test.
4061 * testsuite/libgomp.fortran/lib2.f: New test.
4062 * testsuite/libgomp.fortran/lib3.f: New test.
4064 2005-11-17 Richard Henderson <rth@redhat.com>
4067 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4068 * configure.ac (link_gomp): New. Substitute it.
4069 (AC_CONFIG_FILES): Add libgomp.spec.
4070 * libgomp.spec.in: New file.
4071 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4072 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4074 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4076 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4077 reduction(-:var) behaving the same as reduction(+:var).
4078 * testsuite/libgomp.c/reduction-4.c: New test.
4080 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4082 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4083 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4084 testsuite/libgomp.c/copyin-3.c,
4085 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4086 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4087 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4088 testsuite/libgomp.c++/pr24455.C,
4089 testsuite/libgomp.fortran/threadprivate1.f90,
4090 testsuite/libgomp.fortran/threadprivate2.f90,
4091 testsuite/libgomp.fortran/threadprivate3.f90,
4092 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4093 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4094 testsuite/libgomp.fortran/omp_parse3.f90: Require
4095 effective-target TLS.
4097 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4101 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4104 * team.c (initialize_team): Pass NULL rather than free as
4105 pthread_key_create destructor. Initialize thread specific data
4106 pointer in initial thread to a static local variable rather than
4109 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4111 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4112 its location to ld_library_path.
4114 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4116 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4118 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4120 * testsuite/libgomp.c: Rename from libgomp.dg.
4122 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4124 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4125 threadprivate variable 'i'.
4127 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4129 * config/linux/s390/futex.h: New file.
4130 * configure.tgt: Use it.
4132 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4133 before the parallel.
4135 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4138 * testsuite/libgomp.c++/master-1.C: New test.
4140 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4142 * testsuite/libgomp.dg/copyin-3.c: New test.
4144 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4146 * testsuite/libgomp.fortran/retval1.f90: New test.
4147 * testsuite/libgomp.fortran/vla7.f90: New test.
4149 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4151 * testsuite/libgomp.fortran/vla2.f90: New test.
4152 * testsuite/libgomp.fortran/vla3.f90: New test.
4153 * testsuite/libgomp.fortran/vla4.f90: New test.
4154 * testsuite/libgomp.fortran/vla5.f90: New test.
4155 * testsuite/libgomp.fortran/vla6.f90: New test.
4157 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4159 * config/linux/sparc/futex.h: New file.
4160 * configure.tgt: Use it.
4161 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4163 * critical.c: Include stdlib.h.
4164 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4165 ignoring return value.
4166 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4167 LIBGOMP_CHECK_SYNC_BUILTINS check.
4168 * configure: Rebuilt.
4170 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4172 * testsuite/libgomp.fortran/vla1.f90: New test.
4174 2005-10-31 Richard Henderson <rth@redhat.com>
4176 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4177 setting 's' in different threads.
4179 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4181 * libgomp.h (attribute_hidden, ialias): Define.
4182 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4183 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4184 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4185 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4186 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4187 omp_test_lock, omp_test_nest_lock): Likewise.
4188 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4189 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4190 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4191 omp_test_lock, omp_test_nest_lock): Likewise.
4192 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4193 omp_get_dynamic, omp_get_nested): Likewise.
4194 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4195 omp_get_thread_num, omp_in_parallel): Likewise.
4196 * fortran.c (ialias_redirect): Define.
4197 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4198 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4199 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4200 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4201 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4202 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4203 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4204 omp_get_wtime): Add ialias_redirect.
4206 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4208 * fortran.c: Include stdlib.h.
4210 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4212 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4213 * Makefile.in: Regenerated.
4215 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4217 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4218 * libgomp_f.h.in (omp_check_defines): New function.
4219 * env.c: Include libgomp_f.h.
4220 (initialize_env): Call omp_check_defines.
4222 * testsuite/libgomp.dg/copyin-2.c: New test.
4223 * testsuite/libgomp.c++/copyin-2.C: New test.
4224 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4226 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4227 * testsuite/libgomp.fortran/sharing2.f90: New test.
4229 * testsuite/libgomp.dg/copyin-1.c: New test.
4230 * testsuite/libgomp.c++/copyin-1.C: New test.
4232 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4234 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4236 * testsuite/libgomp.fortran/workshare1.f90: New test.
4238 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4240 * libgomp.fortran/sharing1.f90: New test.
4242 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4245 * testsuite/libgomp.c++/loop-7.C: New test.
4247 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4249 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4250 * testsuite/libgomp.fortran/reduction6.f90: New test.
4251 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4253 2005-10-23 Richard Henderson <rth@redhat.com>
4255 * testsuite/libgomp.c++/ctor-1.C: New.
4256 * testsuite/libgomp.c++/ctor-2.C: New.
4257 * testsuite/libgomp.c++/ctor-3.C: New.
4258 * testsuite/libgomp.c++/ctor-4.C: New.
4259 * testsuite/libgomp.c++/ctor-5.C: New.
4260 * testsuite/libgomp.c++/ctor-6.C: New.
4261 * testsuite/libgomp.c++/ctor-7.C: New.
4262 * testsuite/libgomp.c++/ctor-8.C: New.
4263 * testsuite/libgomp.c++/ctor-9.C: New.
4265 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4268 * testsuite/libgomp.c++/pr24455-1.C: New test.
4269 * testsuite/libgomp.c++/pr24455.C: New test.
4270 * testsuite/libgomp.dg/pr24455-1.c: New test.
4271 * testsuite/libgomp.dg/pr24455.c: New test.
4273 2005-10-20 Richard Henderson <rth@redhat.com>
4275 * testsuite/libgomp.c++/loop-6.C: New.
4276 * testsuite/libgomp.dg/loop-3.c: New.
4278 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4280 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4282 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4285 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4287 * testsuite/libgomp.fortran/jacobi.f: New test.
4289 2005-10-19 Richard Henderson <rth@redhat.com>
4291 * configure.tgt (i?86-linux): Default to with_arch instead of
4292 CFLAGS. Add -mtune to match target_cpu.
4293 (x86_64-linux): Tune to i686.
4295 * fortran.c (omp_test_nest_lock_): Fix typo.
4297 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4299 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4300 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4301 * testsuite/libgomp.dg/ordered-3.c: New test.
4303 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4304 Remove volatile keyword.
4306 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4307 in COMMON block to avoid warnings on 64-bit targets.
4309 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4311 * testsuite/libgomp.dg/shared-3.c: New test.
4313 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4315 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4316 * testsuite/libgomp.fortran/reduction5.f90: New test.
4318 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4320 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4322 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4323 flush loop now that __sync_synchronize has proper memory barrier.
4324 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4325 Add -ffixed-form to dg-options.
4327 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4329 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4330 from subdirectories.
4331 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4332 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4333 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4334 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4335 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4336 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4337 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4338 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4339 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4340 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4341 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4342 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4343 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4344 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4345 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4346 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4347 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4348 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4349 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4350 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4351 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4352 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4353 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4354 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4355 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4357 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4359 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4360 lang_library_path exists. Use find instead of glob to gather tests.
4361 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4363 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4365 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4366 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4367 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4368 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4369 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4370 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4371 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4372 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4373 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4374 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4375 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4376 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4377 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4379 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4381 * testsuite/libgomp.dg/vla-1.c: New test.
4383 * testsuite/libgomp.fortran/reference2.f90: New test.
4385 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4386 declaration of omp_get_thread_num.
4387 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4390 * testsuite/libgomp.fortran/reduction1.f90: New test.
4391 * testsuite/libgomp.fortran/reduction2.f90: New test.
4392 * testsuite/libgomp.fortran/reduction3.f90: New test.
4393 * testsuite/libgomp.fortran/reduction4.f90: New test.
4395 2005-10-13 Richard Henderson <rth@redhat.com>
4397 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4398 * Makefile.in: Regenerate.
4399 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4400 * libgomp.h: Include bar.h.
4401 (struct gomp_barrier): Remove.
4402 (struct gomp_team): Add barrier. Replace master_barrier with
4403 master_release. Replace threads with ordered_release.
4404 (struct gomp_thread): Replace barrier with release.
4405 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4406 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4407 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4408 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4409 (GOMP_single_copy_end): Likewise.
4410 * team.c (gomp_threads_dock): New.
4411 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4412 (gomp_thread_start): Use gomp_barrier_wait.
4413 (new_team, free_team): Update for gomp_team changes.
4414 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4415 (gomp_team_end): Use gomp_barrier_wait.
4416 (initialize_team): Update for gomp_thread changes.
4417 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4418 (gomp_work_share_end_nowait): Use atomic ops when available.
4419 * config/linux/bar.c, config/linux/bar.h: New files.
4420 * config/posix/bar.c, config/posix/bar.h: New files.
4422 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4424 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4425 * testsuite/libgomp.dg/single-2.c: New test.
4427 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4428 lang_link_flags): Unset, so that they aren't inherited from previously
4431 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4433 2005-10-12 Richard Henderson <rth@redhat.com>
4435 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4436 (libgomp_init): Use lang_test_file, lang_library_path, and
4437 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4439 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4440 (lang_test_file, lang_link_flags): New.
4441 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4443 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4444 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4445 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4446 testsuite/libgomp.c++/parallel-1.C,
4447 testsuite/libgomp.c++/reduction-1.C,
4448 testsuite/libgomp.c++/reduction-2.C,
4449 testsuite/libgomp.c++/reduction-3.C,
4450 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4451 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4452 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4453 New files, largely cribbed from the C testsuite.
4455 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4457 * testsuite/libgomp.fortran/character1.f90: New test.
4458 * testsuite/libgomp.fortran/character2.f90: New test.
4460 * testsuite/libgomp.dg/nested-1.c: New test.
4461 * testsuite/libgomp.dg/nested-2.c: New test.
4462 * testsuite/libgomp.fortran/do1.f90: New test.
4463 * testsuite/libgomp.fortran/do2.f90: New test.
4465 * testsuite/libgomp.fortran/reference1.f90: New test.
4467 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4469 * testsuite/libgomp.dg/reduction-1.c: New test.
4470 * testsuite/libgomp.dg/reduction-2.c: New test.
4471 * testsuite/libgomp.dg/reduction-3.c: New test.
4473 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4475 * testsuite/libgomp.dg/atomic-1.c: New test.
4476 * testsuite/libgomp.dg/atomic-2.c: New test.
4478 2005-10-09 Richard Henderson <rth@redhat.com>
4480 * critical.c (atomic_lock): New.
4481 (initialize_critical): Initialize it.
4482 (GOMP_atomic_start, GOMP_atomic_end): New.
4483 * libgomp.map: Export them.
4484 * libgomp_g.h: Declare them.
4486 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4488 2005-10-02 Richard Henderson <rth@redhat.com>
4490 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4491 to XCFLAGS instead of CFLAGS.
4493 2005-09-30 Richard Henderson <rth@redhat.com>
4495 * configure.ac: Determine whether -pthread or -lpthread is needed.
4496 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4497 * Makefine.in, configure: Rebuild.
4499 2005-09-28 Richard Henderson <rth@redhat.com>
4501 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4502 * testsuite/libgomp.dg/omp-single-3.c: New test.
4504 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4506 * testsuite/libgomp.dg/omp-single-2.c: New test.
4507 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4509 2005-09-27 Richard Henderson <rth@redhat.com>
4511 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4512 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4514 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4516 * testsuite/libgomp.dg/omp-loop03.c: New test.
4518 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4520 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4522 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4524 * testsuite/libgomp.dg/omp-single-1.c: New test.
4525 * testsuite/libgomp.dg/shared-1.c: Return 0.
4526 Add prototype for abort.
4527 * testsuite/libgomp.dg/shared-2.c: Likewise.
4529 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4531 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4534 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4536 * testsuite/libgomp.dg/shared-1.c: New test.
4537 * testsuite/libgomp.dg/shared-2.c: New test.
4539 2005-09-24 Richard Henderson <rth@redhat.com>
4541 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4543 2005-09-24 Richard Henderson <rth@redhat.com>
4545 * iter.c (gomp_iter_static_next): Round up when computing number
4546 of iterations. Don't bother distributing a remainder equally.
4548 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4549 Don't call srand. Zero b before testing.
4552 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4554 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4555 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4557 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4559 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4560 without !$omp end do, followed immediately by subroutine end.
4562 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4564 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4566 2005-09-22 Richard Henderson <rth@redhat.com>
4568 * critical.c (GOMP_critical_name_start): Change argument to void**.
4569 Reuse the pointer space if the mutex fits.
4570 (GOMP_critical_name_end): Likewise.
4571 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4572 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4573 (GOMP_critical_name_end): Likewise.
4574 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4575 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4577 2005-09-20 Richard Henderson <rth@redhat.com>
4579 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4580 (create_lock_lock): New.
4581 (initialize_critical): Initialize it.
4582 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4583 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4585 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4587 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4589 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4591 * testsuite/libgomp.dg/omp-loop01.c: New test.
4592 * testsuite/libgomp.dg/omp-loop02.c: New test.
4594 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4596 * configure.ac (AC_PROG_FC): Add.
4597 (USE_FORTRAN): New automake conditional.
4598 * configure: Rebuilt.
4599 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4600 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4601 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4602 Add rules to build them.
4603 * Makefile.in: Rebuilt.
4604 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4606 * libgomp.map: Add Fortran wrappers.
4607 * libgomp_f.h.in: New file.
4608 * omp_lib.h.in: New file.
4609 * omp_lib.f90.in: New file.
4610 * fortran.c: New file.
4611 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4612 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4613 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4614 libgfortran has been built.
4615 * testsuite/libgomp.fortran/fortran.exp: New file.
4616 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4617 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4618 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4619 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4620 * testsuite/libgomp.fortran/omp_hello.f: New test.
4621 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4622 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4623 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4624 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4625 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4626 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4627 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4628 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4630 2005-08-30 Richard Henderson <rth@redhat.com>
4632 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4633 function for when aliases are not usable.
4634 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4635 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4636 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4637 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4638 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4639 GOMP_loop_ordered_guided_next): Likewise.
4640 * ordered.c (GOMP_ordered_start): Likewise.
4642 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4644 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4645 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4646 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4647 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4648 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4649 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4650 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4651 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4652 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4654 2005-07-07 Eric Christopher <echristo@redhat.com>
4655 Diego Novillo <dnovillo@redhat.com>
4657 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4658 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4660 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4661 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4662 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4663 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4664 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4665 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4666 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4668 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4670 * TOPLEVEL.patch: Remove.
4672 2005-05-16 Richard Henderson <rth@redhat.com>
4674 * configure.ac: Test for clock_gettime.
4675 * config.h.in, configure: Rebuild.
4676 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4677 (omp_get_wtime): Use clock_gettime if available.
4678 (omp_get_wtick): Use clock_getres if available.
4680 2005-05-11 Richard Henderson <rth@redhat.com>
4682 * config/linux/ia64/futex.h: New file.
4683 * configure.tgt: Use it.
4685 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4687 2005-05-07 Richard Henderson <rth@redhat.com>
4689 * config/linux/powerpc/futex.h: New file.
4690 * configure.tgt: Use it.
4692 * config/linux/i486/futex.h: Merge ...
4693 * config/linux/x86_64/futex.h: ... into ...
4694 * config/linux/x86/futex.h: ... here.
4695 * configure.tgt: Update to match.
4697 2005-05-06 Richard Henderson <rth@redhat.com>
4699 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4700 * config/linux/i486/futex.h: Likewise.
4701 * config/linux/x86_64/futex.h: Likewise.
4703 * config/linux/lock.c: New file.
4704 * config/linux/omp-lock.h: New file.
4706 * critical.c, env.h: Don't include omp.h
4707 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4708 * config/posix/time.c: Likewise.
4709 * config/posix/omp-lock.h: New file.
4710 * libgomp.h: Include omp-lock.h and omp.h.
4711 * Makefile.am (nodist_include_HEADERS): New.
4713 * configure.ac (PERL): New.
4714 * mkomp_h.pl: New file.
4715 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4717 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4719 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4720 build directory. Re-add -march=i486 hack.
4722 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4723 (libgomp_link_flags): Remove.
4724 (libgomp_initialized): Remove.
4725 (libgomp_init): Don't protect from reinitialization. Copy code
4726 from libstdc++ for getting the multilib set correctly.
4728 2005-05-05 Richard Henderson <rth@redhat.com>
4730 * config/linux/alpha/futex.h: New file.
4731 * configure.tgt (alpha*-*-linux*): Use it.
4733 * config/posix/mutex.c: New file.
4734 * config/posix/sem.c: Use libgomp.h.
4736 * configure.tgt (x86_64-linux): Also test CC for -m32.
4737 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4739 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4742 * Makefile.am (SUBDIRS): New.
4743 (libgomp_la_LDFLAGS): Add -lpthread.
4744 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4745 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4747 * libgomp_g.h: New file.
4748 * libgomp.h: Split out all public declarations to libgomp_g.h.
4749 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4750 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4751 * config/linux/sem.h: Likewise.
4752 * config/posix/sem.h: Likewise.
4754 * Makefile.am (AM_LDFLAGS): New.
4755 (libgomp_version_script): Split out from ...
4756 (libgomp_la_LDFLAGS): ... here.
4757 (libgomp_version_info): New.
4758 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4759 (LIBGOMP_ENABLE): New.
4760 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4761 (LIBGOMP_ENABLE_SYMVERS): New.
4762 * configure.ac (AC_INIT): Version 1.0.
4763 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4764 (enable-linux-futex): Likewise. Rename from enable-futex.
4765 (libtool_VERSION): New.
4766 (LIBGOMP_ENABLE_SYMVERS): Use it.
4767 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4768 * Makefile.in, aclocal.m4, configure: Rebuild.
4770 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4771 (gomp_mutex_unlock_slow): Fix typo.
4772 * config/linux/sem.c: Similarly.
4773 (gomp_sem_post_slow): Fix typo.
4774 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4775 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4776 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4778 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4779 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4780 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4781 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4782 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4783 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4784 LDFLAGS. Pull enable_futex check to top-level.
4785 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4786 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4788 First attempt at real configury.
4789 * Makefile, config.h: Remove file.
4790 * Makefile.am, Makefile.in: New file.
4791 * acinclude.m4 aclocal.m4: New file.
4792 * configure.ac, configure.tgt, configure: New file.
4794 * config/posix/lock.c: Rename from sys-lock.c.
4795 * config/posix/mutex.h: Rename from sys-mutex.h.
4796 * config/posix/sem.c: Rename from sys-sem.c.
4797 * config/posix/sem.h: Rename from sys-sem.h.
4798 * config/posix/proc.c: Rename from sys-proc.c.
4799 * config/posix/time.c: Rename from sys-proc.c.
4801 * config/linux/mutex.c: New file.
4802 * config/linux/mutex.h: New file.
4803 * config/linux/sem.c: New file.
4804 * config/linux/sem.h: New file.
4805 * config/linux/i486/futex.h: New file.
4806 * config/linux/x86_64/futex.h: New file.
4808 2005-05-04 Richard Henderson <rth@redhat.com>
4810 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4811 * libgomp.h: Declare them.
4812 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4813 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4815 2005-05-04 Richard Henderson <rth@redhat.com>
4817 * libgomp-1 code drop
4819 2005-05-04 Richard Henderson <rth@redhat.com>
4821 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4822 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4823 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4824 (gomp_iter_static_next): Update.
4825 (gomp_ordered_static_next): Update.
4826 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4827 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4828 totally empty range.
4829 (gomp_loop_ordered_static_next): Refine test for calling
4830 gomp_ordered_static_next.
4831 * testsuite/ordered-1.c: Add case for more threads than iterations.
4833 * iter.c (gomp_iter_runtime_next_locked): Remove.
4834 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4835 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4836 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4837 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4838 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4839 gomp_loop_ordered_guided_next): Downcase name, make static, add
4840 an external alias with the old name.
4841 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4842 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4843 switch and call one of the above static functions.
4844 * libgomp.h: Update.
4846 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4847 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4848 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4849 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4850 GOMP_loop_ordered_guided_start): Update to match.
4851 * sections.c (GOMP_sections_start): Likewise.
4852 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4854 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4855 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4856 Use bounds check instead of modulus.
4857 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4858 (gomp_ordered_last): Don't sync with ordered_owner here.
4859 (gomp_ordered_next): Likewise.
4860 (gomp_ordered_static_loop_next): Likewise.
4861 * loop.c, libgomp.h: Update to match.
4863 * libgomp.h (GOMP_barrier): Declare.
4865 * testsuite/barrier-1.c: New file.
4866 * testsuite/critical-1.c: New file.
4867 * testsuite/ordered-2.c: New file.
4868 * testsuite/ordered-1.c: New file.
4869 * testsuite/sections-1.c: New file.
4870 * testsuite/single-1.c: New file.
4871 * testsuite/Makefile (TESTS): Add them.
4873 2005-05-04 Richard Henderson <rth@redhat.com>
4875 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4876 * loop.c (GOMP_loop_static_start): If not the startup thread,
4877 acquire the mutex to wait for initialization complete.
4878 (GOMP_loop_ordered_static_start): Likewise.
4879 (GOMP_loop_ordered_runtime_start): Likewise.
4880 (GOMP_loop_ordered_static_first): Remove.
4881 (GOMP_loop_ordered_dynamic_first): Remove.
4882 (GOMP_loop_ordered_guided_first): Remove.
4883 (GOMP_loop_ordered_runtime_first): Remove.
4884 * ordered.c (gomp_ordered_loop_first): Post to own release when
4885 we're the first thread.
4886 (gomp_ordered_loop_last): Wait on release if not owner.
4887 (gomp_ordered_loop_next): Likewise.
4888 (gomp_ordered_static_loop_init): New.
4889 (gomp_ordered_static_loop_next): Use ordered_owner.
4890 (GOMP_ordered_start): Likewise.
4891 * work.c (gomp_new_work_share): Initialize ordered_owner.
4893 2005-05-03 Richard Henderson <rth@redhat.com>
4895 * Makefile (OPT): New.
4898 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4899 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4900 * libgomp.h, libgomp.map, NOTES: Update to match.
4902 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4903 Add initialized and thr members.
4904 (gomp_thread_start): Pause when initially spawned to wait for
4905 the whole team to be created.
4906 (gomp_team_start): Release team members at the end.
4908 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4909 (f_foo_1): Use GOMP_loop_end.
4910 (f_foo_2): Use GOMP_loop_end_nowait.
4912 * testsuite/loop-2.c: New file.
4913 * testsuite/Makefile (TESTS): Add it.
4915 2005-05-03 Richard Henderson <rth@redhat.com>
4917 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4918 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4919 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4922 * testsuite/Makefile: New file.
4923 * testsuite/loop-1.c: New file.
4925 2005-05-03 Richard Henderson <rth@redhat.com>
4927 Initial implementation and checkin.