1 2015-02-04 Jakub Jelinek <jakub@redhat.com>
5 * testsuite/libgomp.c/pr64824.c: New test.
6 * testsuite/libgomp.c/pr64868.c: New test.
7 * testsuite/libgomp.c++/pr64824.C: New test.
8 * testsuite/libgomp.c++/pr64868.C: New test.
10 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15 * config/aix/plugin-suffix.h: Delete.
17 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
20 * configure.tgt (*-*-aix*): Use config_path "aix posix".
21 (*-*-darwin*): Use config_path "bsd darwin posix".
22 (*-*-hpux*): Use config_path "hpux posix".
23 * target.c: Add include of plugin-suffix.h and use
25 * config/aix/plugin-suffix.h: New file.
26 * config/darwin/plugin-suffix.h: New file.
27 * config/hpux/plugin-suffix.h: New file.
28 * config/posix/plugin-suffix.h: New file.
30 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33 * libgomp.c/pr64734.c: New test.
35 2015-01-23 Tom de Vries <tom@codesourcery.com>
38 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
40 2015-01-23 Tom de Vries <tom@codesourcery.com>
43 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
46 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
49 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
50 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
51 formal parameter. Update all users.
52 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
53 Document unused formal parameter.
55 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
57 * oacc-parallel.c: Don't include <alloca.h>.
58 (GOACC_parallel): Use gomp_alloca instead of alloca.
60 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
62 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
64 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
65 James Norris <jnorris@codesourcery.com>
66 Tom de Vries <tom@codesourcery.com>
67 Julian Brown <julian@codesourcery.com>
68 Cesar Philippidis <cesar@codesourcery.com>
69 Nathan Sidwell <nathan@codesourcery.com>
70 Tobias Burnus <burnus@net-b.de>
72 * Makefile.am (search_path): Add $(top_srcdir)/../include.
73 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
74 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
75 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
76 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
77 Include $(top_srcdir)/plugin/Makefrag.am.
78 (nodist_libsubinclude_HEADERS): Add openacc.h.
79 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
80 openacc.f90, openacc.mod, openacc_kinds.mod.
81 (omp_lib.mod): Generalize into...
82 (%.mod): ... this new rule.
83 (openacc_kinds.mod, openacc.mod): New rules.
84 * plugin/configfrag.ac: New file.
85 * configure.ac: Move plugin/offloading support into it. Include
86 it. Instantiate testsuite/libgomp-test-support.pt.exp.
87 * plugin/Makefrag.am: New file.
88 * testsuite/Makefile.am (OFFLOAD_TARGETS)
89 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
91 (libgomp-test-support.exp): New rule.
92 (all-local): Depend on it.
93 * Makefile.in: Regenerate.
94 * testsuite/Makefile.in: Regenerate.
95 * config.h.in: Likewise.
96 * configure: Likewise.
97 * configure.tgt: Harden shell syntax.
98 * env.c: Include "oacc-int.h".
99 (parse_acc_device_type): New function.
100 (gomp_debug_var, goacc_device_type, goacc_device_num): New
102 (initialize_env): Initialize those. Call
103 goacc_runtime_initialize.
104 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
105 (gomp_fatal): Call gomp_vfatal.
106 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
107 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
108 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
109 (splay_tree_node, splay_tree, splay_tree_key)
110 (struct target_mem_desc, struct splay_tree_key_s)
111 (struct gomp_memory_mapping, struct acc_dispatch_t)
112 (struct gomp_device_descr, gomp_acc_insert_pointer)
113 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
114 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
115 (gomp_free_memmap, gomp_fini_device): New declarations.
116 (gomp_vdebug, gomp_debug): New macros.
117 Include "splay-tree.h".
118 * libgomp.map (OACC_2.0): New symbol version. Use for
119 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
120 acc_set_device_type_h_, acc_get_device_type,
121 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
122 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
123 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
124 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
125 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
126 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
127 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
128 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
129 acc_copyin_array_h_, acc_present_or_copyin,
130 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
131 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
132 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
133 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
134 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
135 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
136 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
137 acc_update_device, acc_update_device_32_h_,
138 acc_update_device_64_h_, acc_update_device_array_h_,
139 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
140 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
141 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
142 acc_is_present_64_h_, acc_is_present_array_h_,
143 acc_memcpy_to_device, acc_memcpy_from_device,
144 acc_get_current_cuda_device, acc_get_current_cuda_context,
145 acc_get_cuda_stream, acc_set_cuda_stream.
146 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
147 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
148 GOACC_update, GOACC_wait, GOACC_get_thread_num,
149 GOACC_get_num_threads.
150 (GOMP_PLUGIN_1.0): New symbol version. Use for
151 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
152 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
153 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
154 GOMP_PLUGIN_acc_thread.
155 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
156 environment variable.
157 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
158 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
159 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
160 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
161 (splay_tree_remove): New declarations.
162 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
163 (splay_tree_remove, splay_tree_lookup): Move into...
164 * splay-tree.c: ... this new file.
165 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
166 (splay_tree_node, splay_tree, splay_tree_key)
167 (struct target_mem_desc, struct splay_tree_key_s)
168 (struct gomp_device_descr): Don't declare.
169 (num_devices_openmp): New variable.
170 (gomp_get_num_devices ): Use it.
171 (gomp_init_targets_once): New function.
172 (gomp_get_num_devices ): Use it.
173 (get_kind, gomp_copy_from_async, gomp_free_memmap)
174 (gomp_fini_device, gomp_register_image_for_device): New functions.
175 (gomp_map_vars): Add devaddrs parameter.
176 (gomp_update): Add mm parameter.
177 (gomp_init_device): Move most of it into...
178 (gomp_init_tables): ... this new function.
179 (gomp_register_images_for_device): Remove function.
180 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
181 Make them hidden instead of static.
182 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
183 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
184 (GOMP_target_end_data, GOMP_target_update)
185 (gomp_load_plugin_for_device, gomp_target_init): Update for
187 * oacc-async.c: New file.
188 * oacc-cuda.c: Likewise.
189 * oacc-host.c: Likewise.
190 * oacc-init.c: Likewise.
191 * oacc-int.h: Likewise.
192 * oacc-mem.c: Likewise.
193 * oacc-parallel.c: Likewise.
194 * oacc-plugin.c: Likewise.
195 * oacc-plugin.h: Likewise.
196 * oacc-ptx.h: Likewise.
197 * openacc.f90: Likewise.
198 * openacc.h: Likewise.
199 * openacc_lib.h: Likewise.
200 * plugin/plugin-host.c: Likewise.
201 * plugin/plugin-nvptx.c: Likewise.
202 * libgomp-plugin.c: Likewise.
203 * libgomp-plugin.h: Likewise.
204 * libgomp_target.h: Remove file after merging content into the
205 former file. Update all users.
206 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
207 (offload_targets_s, offload_targets_s_openacc): New variables.
208 (check_effective_target_openacc_nvidia_accel_present)
209 (check_effective_target_openacc_nvidia_accel_selected): New
211 (libgomp_init): Update for OpenACC changes.
212 * testsuite/libgomp-test-support.exp.in: New file.
213 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
214 * testsuite/libgomp.oacc-c/c.exp: Likewise.
215 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
225 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
229 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
242 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
243 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
244 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
245 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
246 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
247 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
251 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
253 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
256 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
285 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
287 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
289 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
293 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
294 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
295 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
296 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
298 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
300 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
301 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
302 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
303 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
304 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
305 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
306 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
310 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
312 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
314 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
315 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
316 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
318 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
320 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
321 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
322 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
323 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
326 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
328 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
330 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
331 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
332 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
333 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
334 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
335 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
336 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
337 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
338 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
339 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
340 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
341 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
342 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
345 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
346 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
347 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
348 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
349 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
350 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
351 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
352 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
354 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
355 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
356 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
357 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
358 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
359 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
360 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
361 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
362 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
363 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
364 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
365 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
366 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
367 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
368 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
369 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
370 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
371 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
372 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
373 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
374 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
375 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
376 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
377 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
378 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
379 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
380 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
381 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
382 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
383 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
384 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
385 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
386 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
387 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
388 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
389 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
390 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
391 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
392 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
393 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
394 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
395 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
396 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
397 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
398 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
399 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
400 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
401 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
402 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
403 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
404 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
405 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
406 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
407 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
408 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
409 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
410 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
411 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
412 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
413 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
415 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
416 Julian Brown <julian@codesourcery.com>
417 David Malcolm <dmalcolm@redhat.com>
419 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
420 to "GNU Offloading and Multi Processing Runtime Library". Change
422 * configure: Regenerate.
423 * libgomp.texi: Update.
425 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
427 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
429 * configure: Regenerate.
431 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
432 "intelmic" in $offload_targets.
434 2015-01-05 Jakub Jelinek <jakub@redhat.com>
436 Update copyright years.
438 * libgomp.texi: Bump @copying's copyright year.
440 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
442 * testsuite/lib/libgomp.exp: Load target-utils.exp.
443 Move load of target-supportes.exp earlier.
445 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
447 * testsuite/libgomp.c/target-9.c: New test.
449 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
451 * config.h.in: Regenerate.
452 * configure: Regenerate.
453 * configure.ac: Add GCC_CHECK_EMUTLS.
454 * libgomp.h: Add check for USE_EMUTLS: this case
455 is equal to HAVE_TLS.
458 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
460 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
462 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
463 Ilya Verbin <ilya.verbin@intel.com>
465 * testsuite/libgomp.c/target-critical-1.c: New test.
467 2014-11-26 Jakub Jelinek <jakub@redhat.com>
469 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
470 to dg-options unless expensive testing is on.
471 (TESTITERS): Define to N if not defined.
472 (main): Use TESTITERS instead of N.
473 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
474 dg-additional-options depending on whether expensive testing is on.
475 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
476 Decrease N to 100000 and CHUNKSZ to 10000.
478 2014-11-24 Jakub Jelinek <jakub@redhat.com>
481 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
482 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
484 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
486 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
488 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
491 * configure: Regenerated.
493 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
495 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
496 vect_simd_clones effective target.
497 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
499 2014-11-14 Jakub Jelinek <jakub@redhat.com>
501 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
503 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
504 instead of 32 as block_size.
506 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
507 Ilya Verbin <ilya.verbin@intel.com>
509 * Makefile.in: Regenerate.
510 * configure: Regenerate.
511 * configure.ac: Set up offload_additional_options,
512 offload_additional_lib_paths and offload_targets.
513 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
514 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
515 * testsuite/Makefile.in: Regenerate.
516 * testsuite/lib/libgomp.exp (libgomp_init): Append
517 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
518 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
519 build directory to LD_LIBRARY_PATH for intelmic offload targets.
521 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
522 Ilya Verbin <ilya.verbin@intel.com>
523 Kirill Yukhin <kirill.yukhin@intel.com>
524 Ilya Tocar <ilya.tocar@intel.com>
526 * testsuite/lib/libgomp.exp
527 (check_effective_target_offload_device): New.
528 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
529 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
530 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
531 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
532 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
533 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
534 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
535 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
536 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
537 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
538 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
539 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
540 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
541 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
542 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
543 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
544 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
545 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
546 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
547 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
548 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
549 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
550 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
551 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
552 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
553 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
554 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
555 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
556 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
557 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
558 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
559 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
560 * testsuite/libgomp.c/target-7.c: Fix test.
561 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
562 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
563 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
564 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
565 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
566 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
567 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
568 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
569 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
570 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
571 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
572 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
573 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
574 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
575 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
576 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
577 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
578 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
579 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
580 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
581 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
582 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
583 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
584 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
585 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
586 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
587 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
588 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
589 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
590 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
591 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
593 2014-11-13 Jakub Jelinek <jakub@redhat.com>
594 Ilya Verbin <ilya.verbin@intel.com>
595 Thomas Schwinge <thomas@codesourcery.com>
596 Andrey Turetskiy <andrey.turetskiy@intel.com>
598 * libgomp.map (GOMP_4.0.1): New symbol version.
599 Add GOMP_offload_register.
600 * libgomp_target.h: New file.
601 * splay-tree.h: New file.
602 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
603 (gomp_target_init): New forward declaration.
604 (gomp_is_initialized): New static variable.
605 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
606 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
608 (offload_images, num_offload_images, devices, num_devices): New static
610 (splay_compare): New static function.
611 (struct gomp_device_descr): New structure.
612 (gomp_get_num_devices): Call gomp_target_init.
613 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
614 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
615 (GOMP_offload_register): New function.
616 (GOMP_target): Arrange for host callback to be performed in a separate
617 initial thread and contention group, inheriting ICVs from
618 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
619 Add device initialization and lookup for target function in splay tree.
620 (GOMP_target_data): Add device initialization and call gomp_map_vars.
621 (GOMP_target_end_data): Call gomp_unmap_vars.
622 (GOMP_target_update): Add device initialization and call gomp_update.
623 (gomp_load_plugin_for_device, gomp_register_images_for_device)
624 (gomp_target_init): New static functions.
626 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
627 Thomas Schwinge <thomas@codesourcery.com>
628 Ilya Verbin <ilya.verbin@intel.com>
629 Andrey Turetskiy <andrey.turetskiy@intel.com>
631 * config.h.in: Regenerate.
632 * configure: Regenerate.
633 * configure.ac: Check for libdl, required for plugin support.
634 (PLUGIN_SUPPORT): Define if plugins are supported.
635 (enable_offload_targets): Support Intel MIC targets.
636 (OFFLOAD_TARGETS): List of target names suitable for offloading.
638 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
641 * configure: Regenerate.
643 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
645 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
647 2014-10-06 Marek Polacek <polacek@redhat.com>
649 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
650 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
651 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
652 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
654 2014-10-06 Marek Polacek <polacek@redhat.com>
656 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
657 * testsuite/libgomp.c/nqueens-1.c: Likewise.
658 * testsuite/libgomp.c/pr26943-3.c: Likewise.
659 * testsuite/libgomp.c/pr26943-4.c: Likewise.
660 * testsuite/libgomp.c/pr36802-2.c: Likewise.
661 * testsuite/libgomp.c/pr36802-3.c: Likewise.
662 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
663 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
664 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
665 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
666 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
667 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
668 * testsuite/libgomp.c/omp-single-1.c: Likewise.
669 * testsuite/libgomp.c/omp-single-2.c: Likewise.
670 * testsuite/libgomp.c/omp_matvec.c: Likewise.
671 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
672 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
673 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
676 2014-10-03 Jakub Jelinek <jakub@redhat.com>
679 * testsuite/libgomp.c/pr61200.c: New test.
681 2014-09-18 Jakub Jelinek <jakub@redhat.com>
684 * testsuite/libgomp.c++/pr63248.C: New test.
686 2014-08-04 Jakub Jelinek <jakub@redhat.com>
688 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
689 is not zero, but taskgroup->children is NULL and there are
690 any task->children, schedule those instead of waiting.
691 * testsuite/libgomp.c/depend-6.c: New test.
692 * testsuite/libgomp.c/depend-7.c: New test.
693 * testsuite/libgomp.c/depend-8.c: New test.
694 * testsuite/libgomp.c/depend-9.c: New test.
695 * testsuite/libgomp.c/depend-10.c: New test.
697 2014-08-01 Jakub Jelinek <jakub@redhat.com>
699 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
700 (struct gomp_taskwait): New type.
701 (struct gomp_task): Add taskwait and parent_depends_on, remove
702 in_taskwait and taskwait_sem fields.
703 (gomp_finish_task): Don't destroy taskwait_sem.
704 * task.c (gomp_init_task): Don't init in_taskwait, instead init
705 taskwait and parent_depends_on.
706 (GOMP_task): For if (0) tasks with depend clause that depend on
707 earlier tasks don't defer them, instead call
708 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
709 Initialize redundant_out field, for redundant out entries just
710 move them at the end of linked list instead of removing them
711 completely, and set redundant_out flag instead of redundant.
712 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
714 (gomp_task_run_post_handle_dependers): If parent is in
715 gomp_task_maybe_wait_for_dependencies and newly runnable task
716 is not parent_depends_on, queue it in parent->children linked
717 list after all runnable tasks with parent_depends_on set.
718 Adjust for addition of taskwait indirection.
719 (gomp_task_run_post_remove_parent): If parent is in
720 gomp_task_maybe_wait_for_dependencies and task to be removed
721 is parent_depends_on, decrement n_depend and if needed awake
722 parent. Adjust for addition of taskwait indirection.
723 (GOMP_taskwait): Adjust for addition of taskwait indirection.
724 (gomp_task_maybe_wait_for_dependencies): New function.
725 * testsuite/libgomp.c/depend-5.c: New test.
727 2014-07-13 Tobias Burnus <burnus@net-b.de>
729 * testsuite/libgomp.fortran/pr34020.f90: Make compile
730 with TS 18508/Fortran 2015.
732 2014-07-06 Marek Polacek <polacek@redhat.com>
735 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
737 2014-07-03 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
740 matches regex $lang_source_re, add $lang_include_flags to options.
741 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
742 * testsuite/libgomp.c++/c++.exp: Likewise.
743 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
744 and lang_include_flags instead of adding -fintrinsic-modules-path= to
746 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
748 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
750 * testsuite/libgomp.fortran/fortran.exp: Explain
751 gfortran-dg-runtest usage.
753 2014-06-25 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.fortran/simd5.f90: New test.
756 * testsuite/libgomp.fortran/simd6.f90: New test.
757 * testsuite/libgomp.fortran/simd7.f90: New test.
759 2014-06-24 Jakub Jelinek <jakub@redhat.com>
761 * testsuite/libgomp.c/for-2.c: Define SC to static for
762 #pragma omp for simd testing.
763 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
764 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
766 * testsuite/libgomp.c/simd-14.c: New test.
767 * testsuite/libgomp.c/simd-15.c: New test.
768 * testsuite/libgomp.c/simd-16.c: New test.
769 * testsuite/libgomp.c/simd-17.c: New test.
770 * testsuite/libgomp.c++/for-10.C: Define SC to static for
771 #pragma omp for simd testing.
772 * testsuite/libgomp.c++/simd10.C: New test.
773 * testsuite/libgomp.c++/simd11.C: New test.
774 * testsuite/libgomp.c++/simd12.C: New test.
775 * testsuite/libgomp.c++/simd13.C: New test.
777 * testsuite/libgomp.fortran/aligned1.f03: New test.
778 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
779 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
780 tasks with !$omp parallel !$omp single.
781 * testsuite/libgomp.fortran/target8.f90: New test.
782 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
783 not to use trim in the combiner, instead call elemental function.
784 (fn): New elemental function.
785 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
787 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
789 * testsuite/libgomp.fortran/udr12.f90: New test.
790 * testsuite/libgomp.fortran/udr13.f90: New test.
791 * testsuite/libgomp.fortran/udr14.f90: New test.
792 * testsuite/libgomp.fortran/udr15.f90: New test.
794 2014-06-18 Jakub Jelinek <jakub@redhat.com>
796 * omp_lib.f90.in (openmp_version): Set to 201307.
797 * omp_lib.h.in (openmp_version): Likewise.
798 * testsuite/libgomp.c/target-8.c: New test.
799 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
800 and inbranch clauses.
801 * testsuite/libgomp.fortran/depend-3.f90: New test.
802 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
804 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
805 * testsuite/libgomp.fortran/target1.f90: New test.
806 * testsuite/libgomp.fortran/target2.f90: New test.
807 * testsuite/libgomp.fortran/target3.f90: New test.
808 * testsuite/libgomp.fortran/target4.f90: New test.
809 * testsuite/libgomp.fortran/target5.f90: New test.
810 * testsuite/libgomp.fortran/target6.f90: New test.
811 * testsuite/libgomp.fortran/target7.f90: New test.
813 2014-06-10 Jakub Jelinek <jakub@redhat.com>
816 * testsuite/libgomp.fortran/allocatable9.f90: New test.
817 * testsuite/libgomp.fortran/allocatable10.f90: New test.
818 * testsuite/libgomp.fortran/allocatable11.f90: New test.
819 * testsuite/libgomp.fortran/allocatable12.f90: New test.
820 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
821 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
822 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
823 * testsuite/libgomp.fortran/associate1.f90: New test.
824 * testsuite/libgomp.fortran/associate2.f90: New test.
825 * testsuite/libgomp.fortran/procptr1.f90: New test.
827 2014-06-06 Jakub Jelinek <jakub@redhat.com>
829 * testsuite/libgomp.fortran/simd1.f90: New test.
830 * testsuite/libgomp.fortran/udr1.f90: New test.
831 * testsuite/libgomp.fortran/udr2.f90: New test.
832 * testsuite/libgomp.fortran/udr3.f90: New test.
833 * testsuite/libgomp.fortran/udr4.f90: New test.
834 * testsuite/libgomp.fortran/udr5.f90: New test.
835 * testsuite/libgomp.fortran/udr6.f90: New test.
836 * testsuite/libgomp.fortran/udr7.f90: New test.
837 * testsuite/libgomp.fortran/udr8.f90: New test.
838 * testsuite/libgomp.fortran/udr9.f90: New test.
839 * testsuite/libgomp.fortran/udr10.f90: New test.
840 * testsuite/libgomp.fortran/udr11.f90: New test.
842 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
844 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
845 vect_simd_clones effective target.
846 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
848 2014-05-21 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/libgomp.c++/simd-9.C: New test.
853 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
855 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
856 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
857 texts according to their @menu entry positions.
859 2014-05-11 Jakub Jelinek <jakub@redhat.com>
861 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
862 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
863 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
864 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
865 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
866 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
867 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
868 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
869 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
870 * testsuite/libgomp.fortran/depend-1.f90: New test.
871 * testsuite/libgomp.fortran/depend-2.f90: New test.
872 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
873 * testsuite/libgomp.fortran/simd1.f90: New test.
874 * testsuite/libgomp.fortran/simd2.f90: New test.
875 * testsuite/libgomp.fortran/simd3.f90: New test.
876 * testsuite/libgomp.fortran/simd4.f90: New test.
877 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
879 2014-05-02 Jakub Jelinek <jakub@redhat.com>
881 * testsuite/libgomp.c/simd-10.c: New test.
882 * testsuite/libgomp.c/simd-11.c: New test.
883 * testsuite/libgomp.c/simd-12.c: New test.
884 * testsuite/libgomp.c/simd-13.c: New test.
886 2014-04-24 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
889 atomic type clauses in any order and optional comma in between.
890 * testsuite/libgomp.c++/atomic-15.C: Likewise.
891 * testsuite/libgomp.c/atomic-17.c: Likewise.
893 * testsuite/libgomp.c/simd-7.c: New test.
894 * testsuite/libgomp.c/simd-8.c: New test.
895 * testsuite/libgomp.c/simd-9.c: New test.
896 * testsuite/libgomp.c/loop-16.c: New test.
898 2014-04-02 Richard Henderson <rth@redhat.com>
900 * config/linux/futex.h (futex_wait): Get error value from errno.
901 (futex_wake): Likewise.
903 2014-03-25 Jakub Jelinek <jakub@redhat.com>
906 * testsuite/libgomp.c++/udr-11.C: New test.
907 * testsuite/libgomp.c++/udr-12.C: New test.
908 * testsuite/libgomp.c++/udr-13.C: New test.
909 * testsuite/libgomp.c++/udr-14.C: New test.
910 * testsuite/libgomp.c++/udr-15.C: New test.
911 * testsuite/libgomp.c++/udr-16.C: New test.
912 * testsuite/libgomp.c++/udr-17.C: New test.
913 * testsuite/libgomp.c++/udr-18.C: New test.
914 * testsuite/libgomp.c++/udr-19.C: New test.
916 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
918 Update copyright years
920 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
922 * hashtab.h: Use the standard form for the copyright notice.
924 2014-01-02 Tobias Burnus <burnus@net-b.de>
926 * libgomp.texi: Bump @copying's copyright year.
928 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
930 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
931 alloca () with __builtin_alloca ().
932 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
933 * testsuite/libgomp.c/lock-3.c: Likewise.
934 * testsuite/libgomp.c/pr48591.c: Likewise.
936 2013-12-17 Jakub Jelinek <jakub@redhat.com>
939 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
942 2013-12-16 Jakub Jelinek <jakub@redhat.com>
945 * testsuite/libgomp.c/pr58756.c: New test.
947 2013-12-12 Jakub Jelinek <jakub@redhat.com>
950 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
953 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
955 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
957 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
958 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
959 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
960 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
963 * libgomp_g.h: Include <stddef.h> for size_t.
965 * libgomp.spec.in: Update comment about libgomp's dependencies.
966 * configure.ac: Likewise.
967 * configure: Regenerate.
969 2013-10-16 Tobias Burnus <burnus@net-b.de>
971 * libgomp.texi: (Runtime Library Routines): Update references for
972 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
973 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
974 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
975 (Environment Variables): Update references for OpenMP 4.0. Add
976 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
977 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
980 2013-10-14 Jakub Jelinek <jakub@redhat.com>
982 * env.c (parse_bind_var): Initialize value to avoid
983 (false positive) warning.
985 2013-10-12 Jakub Jelinek <jakub@redhat.com>
988 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
990 (gomp_init_num_threads): Move i variable declaration into
991 #ifdef CPU_ALLOC_SIZE block.
992 * config/linux/affinity.c (gomp_affinity_init_level): Test
993 gomp_places_list_len == 0 rather than gomp_places_list == 0
994 when checking for topology reading error.
995 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
996 * env.c (parse_affinity): Add ignore argument, if true, don't populate
997 gomp_places_list, only parse env var and always return false.
998 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
999 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1000 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1001 and either of these variables were parsed correctly into a places
1004 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1005 Jakub Jelinek <jakub@redhat.com>
1007 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1008 of 5 loopfn matches.
1009 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1010 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1011 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1012 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1013 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1014 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1015 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1016 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1018 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1020 * Makefile.am (omp_lib.mod): Streamline rule.
1021 * Makefile.in: Regenerate.
1023 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1026 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1027 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1028 * testsuite/libgomp.fortran/lib2.f: Likewise.
1029 * testsuite/libgomp.fortran/lib3.f: Likewise.
1031 * configure.ac: Typo fix.
1032 * configure: Regenerate.
1034 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1035 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1037 * omp.h.in: Don't touch the user's namespace.
1039 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1040 Tobias Burnus <burnus@net-b.de>
1041 Richard Henderson <rth@redhat.com>
1043 * target.c: New file.
1044 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1045 * Makefile.in: Regenerated.
1046 * libgomp_g.h (GOMP_task): Add depend argument.
1047 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1048 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1049 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1050 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1051 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1052 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1053 GOMP_taskgroup_start, GOMP_taskgroup_end,
1054 GOMP_parallel_sections): New prototypes.
1055 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1056 (omp_is_initial_device_): New function.
1057 (ULP, STR1, STR2, ialias_redirect): Removed.
1058 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1059 omp_set_default_device_8_, omp_get_default_device_,
1060 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1062 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1063 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1064 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1066 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1067 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1068 omp_set_default_device, omp_set_default_device_,
1069 omp_set_default_device_8_, omp_get_default_device,
1070 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1071 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1072 omp_get_team_num_): Export @@OMP_4.0.
1073 * team.c (struct gomp_thread_start_data): Add place field.
1074 (gomp_thread_start): Clear thr->thread_pool and
1075 thr->task before returning. Use gomp_team_barrier_wait_final
1076 instead of gomp_team_barrier_wait. Initialize thr->place.
1077 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1078 team_cancelled and task_queued_count fields.
1079 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1080 before calling pthread_exit.
1081 (gomp_free_thread): No longer static. Use
1082 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1083 (gomp_team_start): Add flags argument. Set
1084 thr->thread_pool->threads_busy to nthreads immediately after creating
1085 new pool. Use gomp_managed_threads_lock instead of
1086 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1087 (gomp_team_end): Use gomp_managed_threads_lock instead of
1088 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1089 of gomp_team_barrier_wait. If team->team_cancelled, call
1090 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1091 rather than thr->ts.work_share.
1092 (initialize_team): Don't call gomp_sem_init here.
1093 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1095 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1096 * env.c (gomp_global_icv): Add default_device_var, target_data and
1097 bind_var initializers.
1098 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1099 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1100 gomp_places_list_len): New variables.
1101 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1102 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1104 (gomp_cancel_var): New global variable.
1105 (parse_int): New function.
1106 (handle_omp_display_env): New function.
1107 (initialize_env): Use it. Initialize default_device_var.
1108 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1109 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1110 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1111 been successfully parsed (and call gomp_init_affinity in that case).
1112 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1113 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1114 omp_get_team_num, omp_is_initial_device): New functions.
1115 * libgomp.h: Include stdlib.h.
1116 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1118 (struct target_mem_desc): Forward declare.
1119 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1120 and thread_limit_var fields.
1121 (gomp_get_num_devices): New prototype.
1122 (gomp_cancel_var): New extern decl.
1123 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1124 team_cancelled and task_queued_count fields. Add comments about
1125 task_{,queued_,running_}count.
1126 (gomp_cancel_kind): New enum.
1127 (gomp_work_share_end_cancel): New prototype.
1128 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1129 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1131 (struct gomp_taskgroup): New type.
1132 (struct gomp_task_depend_entry,
1133 struct gomp_dependers_vec): New types.
1134 (gomp_finish_task): Free depend_hash if non-NULL.
1135 (struct gomp_team_state): Add place_partition_off
1136 and place_partition_len fields.
1137 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1138 gomp_places_list_len): New extern decls.
1139 (struct gomp_thread): Add place field.
1140 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1141 (gomp_init_thread_affinity): Add place argument.
1142 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1143 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1144 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1145 gomp_affinity_init_level, gomp_affinity_print_place): New
1147 (gomp_team_start): Add flags argument.
1148 (gomp_thread_limit_var, gomp_remaining_threads_count,
1149 gomp_remaining_threads_lock): Remove.
1150 (gomp_managed_threads_lock): New variable.
1151 (struct gomp_thread_pool): Add threads_busy field.
1152 (gomp_free_thread): New prototype.
1153 * task.c: Include hashtab.h.
1154 (hash_entry_type): New typedef.
1155 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1156 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1157 copy_ctors_done and taskgroup fields.
1158 (GOMP_task): Add depend argument, handle depend clauses. If
1159 gomp_team_barrier_cancelled or if it's taskgroup has been
1160 cancelled, don't queue or start new tasks. Set copy_ctors_done
1161 field if needed. Initialize taskgroup field. If copy_ctors_done
1162 and already cancelled, don't discard the task. If taskgroup is
1163 non-NULL, enqueue the task into taskgroup queue. Increment
1164 num_children field in taskgroup. Increment task_queued_count.
1165 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1166 gomp_task_run_post_remove_taskgroup): New inline functions.
1167 (gomp_task_run_post_handle_depend_hash,
1168 gomp_task_run_post_handle_dependers,
1169 gomp_task_run_post_handle_depend): New functions.
1170 (GOMP_taskwait): Use them. If more than one new tasks
1171 have been queued, wake other threads if needed.
1172 (gomp_barrier_handle_tasks): Likewise. If
1173 gomp_team_barrier_cancelled, don't start any new tasks, just free
1175 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1177 (omp_proc_bind_kind, omp_proc_bind_false,
1178 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1179 omp_proc_bind_spread): New params.
1180 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1181 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1182 omp_get_team_num, omp_is_initial_device): New interfaces.
1183 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1184 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1185 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1186 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1187 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1188 useless use omp_lib_kinds.
1189 * omp.h.in (omp_proc_bind_t): New typedef.
1190 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1191 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1192 omp_get_team_num, omp_is_initial_device): New prototypes.
1193 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1194 through to gomp_team_start.
1195 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1196 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1197 Adjust gomp_parallel_loop_start callers.
1198 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1199 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1200 GOMP_loop_end_cancel): New functions.
1201 (GOMP_parallel_end): Add ialias_redirect.
1202 * hashtab.h: New file.
1203 * libgomp.texi (Environment Variables): Minor cleanup,
1204 update section refs to OpenMP 4.0rc2.
1205 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1206 environment variables.
1207 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1208 team->work_shares_to_free to thr->ts.work_share before calling
1210 (gomp_work_share_end_cancel): New function.
1211 * config/linux/proc.c: Include errno.h.
1212 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1213 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1214 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1215 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1216 gomp_cpuset_size is sizeof (cpu_set_t).
1217 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1218 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1219 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1220 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1221 contain any logical CPUs.
1222 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1223 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1224 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1225 pthread_getaffinity_np. Check gomp_places_list instead of
1226 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1227 * config/linux/bar.c (gomp_barrier_wait_end,
1228 gomp_barrier_wait_last): Use BAR_* defines.
1229 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1230 from state where needed. Set work_share_cancelled to 0 on last
1232 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1233 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1235 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1236 Add cpusetsize argument.
1237 (gomp_cpuset_size, gomp_cpusetp): Declare.
1238 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1239 (affinity_counter): Remove.
1240 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1241 if CPU_ALLOC_SIZE isn't defined.
1242 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1243 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1244 bind current thread to the first place.
1245 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1246 pthread_setaffinity_np to gomp_places_list[place].
1247 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1248 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1249 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1250 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1251 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1252 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1253 (gomp_barrier_t): Add awaited_final field.
1254 (gomp_barrier_init): Initialize awaited_final field.
1255 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1256 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1258 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1260 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1261 gomp_team_barrier_cancelled): New inline functions.
1262 (gomp_barrier_last_thread,
1263 gomp_team_barrier_set_task_pending,
1264 gomp_team_barrier_clear_task_pending,
1265 gomp_team_barrier_set_waiting_for_tasks,
1266 gomp_team_barrier_waiting_for_tasks,
1267 gomp_team_barrier_done): Use BAR_* defines.
1268 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1269 (gomp_barrier_wait_end): Use BAR_* defines.
1270 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1271 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1273 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1274 gomp_team_barrier_cancel): New functions.
1275 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1277 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1278 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1279 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1280 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1281 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1282 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1283 (gomp_barrier_t): Add cancellable field.
1284 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1285 gomp_team_barrier_cancel): New prototypes.
1286 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1287 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1288 gomp_team_barrier_cancelled): New inline functions.
1289 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1290 gomp_team_barrier_set_task_pending,
1291 gomp_team_barrier_clear_task_pending,
1292 gomp_team_barrier_set_waiting_for_tasks,
1293 gomp_team_barrier_waiting_for_tasks,
1294 gomp_team_barrier_done): Use BAR_* defines.
1295 * barrier.c (GOMP_barrier_cancel): New function.
1296 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1297 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1298 omp_proc_bind_spread): New params.
1299 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1300 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1301 omp_get_team_num, omp_is_initial_device): New externals.
1302 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1304 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1305 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1306 infinity. If not nested, just return minimum of max_num_threads
1307 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1308 to the returned value. Otherwise, don't update atomically
1309 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1310 (GOMP_parallel_end): Adjust for thread_limit now being in
1311 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1312 infinity. Adjust threads_busy in the pool rather than
1313 gomp_remaining_threads_count. Remember team->nthreads and call
1314 gomp_team_end before adjusting threads_busy, if not nested
1315 afterwards, just set it to 1 non-atomically. Add ialias.
1316 (GOMP_parallel_start): Adjust gomp_team_start caller.
1317 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1318 * testsuite/libgomp.c/affinity-1.c: New test.
1319 * testsuite/libgomp.c/atomic-15.c: New test.
1320 * testsuite/libgomp.c/atomic-16.c: New test.
1321 * testsuite/libgomp.c/atomic-17.c: New test.
1322 * testsuite/libgomp.c/cancel-for-1.c: New test.
1323 * testsuite/libgomp.c/cancel-for-2.c: New test.
1324 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1325 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1326 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1327 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1328 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1329 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1330 * testsuite/libgomp.c/depend-1.c: New test.
1331 * testsuite/libgomp.c/depend-2.c: New test.
1332 * testsuite/libgomp.c/depend-3.c: New test.
1333 * testsuite/libgomp.c/depend-4.c: New test.
1334 * testsuite/libgomp.c/for-1.c: New test.
1335 * testsuite/libgomp.c/for-1.h: New file.
1336 * testsuite/libgomp.c/for-2.c: New test.
1337 * testsuite/libgomp.c/for-2.h: New file.
1338 * testsuite/libgomp.c/for-3.c: New test.
1339 * testsuite/libgomp.c/pr58392.c: New test.
1340 * testsuite/libgomp.c/simd-1.c: New test.
1341 * testsuite/libgomp.c/simd-2.c: New test.
1342 * testsuite/libgomp.c/simd-3.c: New test.
1343 * testsuite/libgomp.c/simd-4.c: New test.
1344 * testsuite/libgomp.c/simd-5.c: New test.
1345 * testsuite/libgomp.c/simd-6.c: New test.
1346 * testsuite/libgomp.c/target-1.c: New test.
1347 * testsuite/libgomp.c/target-2.c: New test.
1348 * testsuite/libgomp.c/target-3.c: New test.
1349 * testsuite/libgomp.c/target-4.c: New test.
1350 * testsuite/libgomp.c/target-5.c: New test.
1351 * testsuite/libgomp.c/target-6.c: New test.
1352 * testsuite/libgomp.c/target-7.c: New test.
1353 * testsuite/libgomp.c/taskgroup-1.c: New test.
1354 * testsuite/libgomp.c/thread-limit-1.c: New test.
1355 * testsuite/libgomp.c/thread-limit-2.c: New test.
1356 * testsuite/libgomp.c/thread-limit-3.c: New test.
1357 * testsuite/libgomp.c/udr-1.c: New test.
1358 * testsuite/libgomp.c/udr-2.c: New test.
1359 * testsuite/libgomp.c/udr-3.c: New test.
1360 * testsuite/libgomp.c++/affinity-1.C: New test.
1361 * testsuite/libgomp.c++/atomic-10.C: New test.
1362 * testsuite/libgomp.c++/atomic-11.C: New test.
1363 * testsuite/libgomp.c++/atomic-12.C: New test.
1364 * testsuite/libgomp.c++/atomic-13.C: New test.
1365 * testsuite/libgomp.c++/atomic-14.C: New test.
1366 * testsuite/libgomp.c++/atomic-15.C: New test.
1367 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1368 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1369 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1370 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1371 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1372 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1373 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1374 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1375 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1376 * testsuite/libgomp.c++/cancel-test.h: New file.
1377 * testsuite/libgomp.c++/for-9.C: New test.
1378 * testsuite/libgomp.c++/for-10.C: New test.
1379 * testsuite/libgomp.c++/for-11.C: New test.
1380 * testsuite/libgomp.c++/simd-1.C: New test.
1381 * testsuite/libgomp.c++/simd-2.C: New test.
1382 * testsuite/libgomp.c++/simd-3.C: New test.
1383 * testsuite/libgomp.c++/simd-4.C: New test.
1384 * testsuite/libgomp.c++/simd-5.C: New test.
1385 * testsuite/libgomp.c++/simd-6.C: New test.
1386 * testsuite/libgomp.c++/simd-7.C: New test.
1387 * testsuite/libgomp.c++/simd-8.C: New test.
1388 * testsuite/libgomp.c++/target-1.C: New test.
1389 * testsuite/libgomp.c++/target-2.C: New test.
1390 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1391 * testsuite/libgomp.c++/target-3.C: New test.
1392 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1393 * testsuite/libgomp.c++/udr-1.C: New test.
1394 * testsuite/libgomp.c++/udr-2.C: New test.
1395 * testsuite/libgomp.c++/udr-3.C: New test.
1396 * testsuite/libgomp.c++/udr-4.C: New test.
1397 * testsuite/libgomp.c++/udr-5.C: New test.
1398 * testsuite/libgomp.c++/udr-6.C: New test.
1399 * testsuite/libgomp.c++/udr-7.C: New test.
1400 * testsuite/libgomp.c++/udr-8.C: New test.
1401 * testsuite/libgomp.c++/udr-9.C: New test.
1403 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1406 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1409 2013-09-20 Alan Modra <amodra@gmail.com>
1411 * configure: Regenerate.
1413 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1415 * testsuite/libgomp.c/sections-2.c: New test.
1417 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1419 * testsuite/libgomp.fortran/strassen.f90:
1420 Add dg-skip-if aarch64_tiny.
1422 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1423 Cesar Philippidis <cesar@codesourcery.com>
1425 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1426 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1427 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1428 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1429 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1430 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1431 Use dg-runtest rather than gfortran-dg-runtest.
1433 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1435 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1436 Linux-based x86 systems to cover all GNU systems.
1437 * testsuite/libgomp.c/lock-3.c: Likewise.
1438 * testsuite/libgomp.c/pr48591.c: Likewise.
1440 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1442 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1443 GNU/Hurd, as done for Linux-based systems.
1445 * config/posix/ptrlock.h: Fix comment.
1447 2013-05-27 Tobias Burnus <burnus@net-b.de>
1450 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1451 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1452 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1453 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1454 omp_destroy_nest_lock): Correct arguments to match the one in
1456 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1457 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1458 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1459 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1461 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1463 * testsuite/libgomp.c/loop-13.c: New test.
1464 * testsuite/libgomp.c/loop-14.c: New test.
1465 * testsuite/libgomp.c/loop-15.c: New test.
1466 * testsuite/libgomp.c++/loop-13.C: New test.
1467 * testsuite/libgomp.c++/loop-14.C: New test.
1468 * testsuite/libgomp.c++/loop-15.C: New test.
1470 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1473 * testsuite/libgomp.c++/pr56217.C: New test.
1475 2013-02-01 Alan Modra <amodra@gmail.com>
1477 * task.c (GOMP_task, GOMP_taskwait): Comment.
1479 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1480 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1483 * config/linux/wait.h (do_spin): Use atomic load for addr.
1484 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1485 for intptr and ptrlock.
1486 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1489 2013-01-22 Alan Modra <amodra@gmail.com>
1493 * task.c (GOMP_task): Revert 2011-12-09 change.
1494 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1495 barrier to read task->children..
1496 (gomp_barrier_handle_tasks): ..and matching atomic store with
1497 release barrier here when setting parent->children to NULL.
1499 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1500 Tobias Burnus <burnus@net-b.de>
1503 * testsuite/libgomp.fortran/fortran.exp: Use
1504 -fintrinsic-modules-path= instead of
1505 -fintrinsic-modules-path.
1507 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1509 Update copyright years.
1511 2012-12-19 Tobias Burnus <burnus@net-b.de>
1513 * testsuite/libgomp.fortran/fortran.exp: Set
1514 -fintrinsic-modules-path.
1516 2012-12-19 Tobias Burnus <burnus@net-b.de>
1518 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1519 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1521 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1524 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1525 if pool had any threads_used.
1527 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1529 * testsuite/libgomp.c++/pr24455.C: Use
1530 -Wl,-undefined,dynamic_lookup on darwin.
1532 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1534 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1536 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1538 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1540 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1541 Jim MacArthur <jim.macarthur@arm.com>
1542 Marcus Shawcroft <marcus.shawcroft@arm.com>
1543 Nigel Stephens <nigel.stephens@arm.com>
1544 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1545 Richard Earnshaw <rearnsha@arm.com>
1546 Sofiane Naci <sofiane.naci@arm.com>
1547 Stephen Thomas <stephen.thomas@arm.com>
1548 Tejas Belagod <tejas.belagod@arm.com>
1549 Yufeng Zhang <yufeng.zhang@arm.com>
1551 * configure.tgt: Add AArch64.
1553 2012-10-04 Jason Merrill <jason@redhat.com>
1555 * testsuite/libgomp.c++/tls-init1.C: New.
1557 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1559 * configure: Regenerated.
1561 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1563 * config/linux/mips/futex.h (sys_futex0): Change to static
1564 function with noinline, nomips16 attributes under MIPS16. Adjust
1565 asm statement to place 'li v0,SYS_futex' immediately before
1568 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1570 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1571 conflict with index.html on case-insensitive file systems.
1573 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1575 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1576 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1578 2012-07-02 Richard Guenther <rguenther@suse.de>
1579 Michael Matz <matz@suse.de>
1580 Tobias Grosser <tobias@grosser.es>
1581 Sebastian Pop <sebpop@gmail.com>
1583 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1584 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1585 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1586 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1588 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1590 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1592 2012-06-22 Richard Guenther <rguenther@suse.de>
1594 Merge from graphite branch
1595 2012-01-13 Tobias Grosser <tobias@grosser.es>
1597 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1598 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1600 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1603 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1604 use GOMP_barrier () call instead.
1605 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1606 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1607 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1608 call GOMP_barrier instead.
1609 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1611 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1614 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1615 argument to memset call.
1617 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1619 * configure: Regenerated.
1621 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1623 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1625 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1628 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1630 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1633 * testsuite/libgomp.c/pr52547.c: New test.
1635 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1637 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1639 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1641 * configure.tgt (mips-sgi-irix6*): Remove.
1643 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1645 * configure.tgt (alpha*-dec-osf*): Remove.
1647 * config/osf/sem.h: Remove.
1648 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1650 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1652 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1654 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1657 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1658 Remove ENABLE_SYMVERS_SOL2.
1659 * configure: Regenerate.
1660 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1661 (PREPROCESS): New variable.
1662 (libgomp.ver): New target.
1663 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1665 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1667 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1668 * Makefile.in: Regenerate.
1670 2012-02-14 Walter Lee <walt@tilera.com>
1672 * configure.tgt: Handle tilegx and tilepro.
1673 * config/linux/tile/futex.h: New file.
1675 2012-02-08 Richard Guenther <rguenther@suse.de>
1677 PR tree-optimization/46886
1678 * testsuite/libgomp.c/pr46886.c: New testcase.
1680 2012-01-25 Matthias Klose <doko@ubuntu.com>
1682 * config/linux/arm: Remove empty directory.
1683 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1685 2011-12-09 Alan Modra <amodra@gmail.com>
1688 * task.c (GOMP_taskwait): Don't access task->children outside of
1689 task_lock mutex region.
1690 (GOMP_task): Likewise.
1692 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1695 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1697 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1698 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1699 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1700 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1701 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1703 2011-12-02 Alan Modra <amodra@gmail.com>
1705 * config/linux/affinity.c: Use atomic rather than sync builtin.
1706 * config/linux/lock.c: Likewise.
1707 * config/linux/ptrlock.h: Likewise.
1708 * config/linux/ptrlock.c: Likewise.
1709 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1710 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1711 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1712 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1713 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1714 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1715 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1716 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1717 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1718 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1720 2011-11-30 Alan Modra <amodra@gmail.com>
1723 * config/linux/bar.h: Use atomic rather than sync builtins.
1724 * config/linux/bar.c: Likewise. Add missing acquire
1725 synchronisation on generation field.
1726 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1729 2011-11-30 Alan Modra <amodra@gmail.com>
1731 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1732 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1733 * config/linux/mutex.h: Use atomic rather than sync builtins.
1734 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1735 * config/linux/omp-lock.h: Comment fix.
1736 * config/linux/arm/mutex.h: Delete.
1737 * config/linux/powerpc/mutex.h: Delete.
1738 * config/linux/ia64/mutex.h: Delete.
1739 * config/linux/mips/mutex.h: Delete.
1741 2011-11-30 Alan Modra <amodra@gmail.com>
1744 * config/linux/sem.h: Rewrite.
1745 * config/linux/sem.c: Rewrite.
1747 2011-11-28 Richard Henderson <rth@redhat.com>
1749 * libgomp.h (enum memmodel): New.
1751 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1753 * configure: Regenerate.
1755 2011-10-10 Matthias Klose <doko@ubuntu.com>
1757 * config/posix95: Remove empty directory.
1759 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1761 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1763 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1766 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1767 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1769 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1771 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1773 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1776 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1778 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1780 * config/linux/proc.h: New.
1781 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1782 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1783 (gomp_init_num_threads): Update call to cpuset_popcount.
1784 (get_num_procs): Ditto.
1785 * config/linux/affinity.c (gomp_init_affinity): Call
1786 gomp_cpuset_popcount.
1788 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1792 * omp.h.in (omp_in_final): New prototype.
1793 * omp_lib.f90.in (omp_in_final): New interface.
1794 (omp_integer_kind, omp_logical_kind): Remove
1795 and replace all its uses in the module with 4.
1796 (openmp_version): Change to 201107.
1797 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1798 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1799 kind for the parameters.
1800 (omp_in_final): New external.
1801 (openmp_version): Change to 201107.
1802 * task.c (omp_in_final): New function.
1803 (gomp_init_task): Initialize final_task.
1804 (GOMP_task): Remove unused attribute from flags. Handle final
1806 (GOMP_taskyield): New function.
1807 (omp_in_final): Return true if if (false) or final (true) task
1808 or descendant of final (true).
1809 * fortran.c (omp_in_final_): New function.
1810 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1811 (GOMP_3.0): Export GOMP_taskyield.
1812 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1814 (parse_unsigned_long_list): New function.
1815 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1816 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1817 even if parse_affinity returned false.
1818 * config/linux/affinity.c (gomp_init_affinity): Handle
1819 gomp_cpu_affinity_len == 0.
1820 * libgomp_g.h (GOMP_taskyield): New prototype.
1821 * libgomp.h (struct gomp_task): Add final_task field.
1822 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1823 * team.c (gomp_team_start): Override new task's nthreads_var icv
1824 if list form OMP_NUM_THREADS has been used and it has value for
1825 the new nesting level.
1827 * testsuite/libgomp.c/atomic-11.c: New test.
1828 * testsuite/libgomp.c/atomic-12.c: New test.
1829 * testsuite/libgomp.c/atomic-13.c: New test.
1830 * testsuite/libgomp.c/atomic-14.c: New test.
1831 * testsuite/libgomp.c/reduction-6.c: New test.
1832 * testsuite/libgomp.c/task-5.c: New test.
1833 * testsuite/libgomp.c++/atomic-2.C: New test.
1834 * testsuite/libgomp.c++/atomic-3.C: New test.
1835 * testsuite/libgomp.c++/atomic-4.C: New test.
1836 * testsuite/libgomp.c++/atomic-5.C: New test.
1837 * testsuite/libgomp.c++/atomic-6.C: New test.
1838 * testsuite/libgomp.c++/atomic-7.C: New test.
1839 * testsuite/libgomp.c++/atomic-8.C: New test.
1840 * testsuite/libgomp.c++/atomic-9.C: New test.
1841 * testsuite/libgomp.c++/task-8.C: New test.
1842 * testsuite/libgomp.c++/reduction-4.C: New test.
1843 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1844 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1845 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1846 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1847 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1848 * testsuite/libgomp.fortran/pointer1.f90: New test.
1849 * testsuite/libgomp.fortran/pointer2.f90: New test.
1850 * testsuite/libgomp.fortran/task4.f90: New test.
1852 2011-08-02 Tobias Burnus <burnus@net-b.de>
1854 * libgomp.texi: Update OpenMP spec references to 3.1.
1855 (omp_in_final,OMP_PROC_BIND): New sections.
1856 (OMP_NUM_THREADS): Document that the value can be now a list.
1857 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1859 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1861 * config/linux/x86/futex.h: Check __x86_64__ instead of
1864 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1868 * testsuite/libgomp.c/pr49897-1.c: New test.
1869 * testsuite/libgomp.c/pr49897-2.c: New test.
1870 * testsuite/libgomp.c/pr49898-1.c: New test.
1871 * testsuite/libgomp.c/pr49898-2.c: New test.
1873 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1875 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1876 for ia32 instead of ilp32.
1878 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1879 * testsuite/libgomp.c/atomic-6.c: Likewise.
1881 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1883 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1884 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1886 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1889 * config/osf/sem.h: New file.
1890 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1892 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1895 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1898 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1900 * config/linux/wait.h (do_spin): New inline, largely copied
1901 from do_wait, just don't do futex_wait here, instead return true if
1903 (do_wait): Implement using do_spin.
1904 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1906 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1907 __sync_bool_compare_and_swap, pass the oldval to
1908 gomp_mutex_lock_slow.
1909 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1910 If all mutex contenders are just spinning and not sleeping, don't
1911 change state to 2 unnecessarily. Optimize the loop when state has
1912 already become 2 to use just one atomic operation per loop instead
1914 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1916 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1917 __sync_bool_compare_and_swap, pass the oldval to
1918 gomp_mutex_lock_slow.
1920 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1923 * iter.c (gomp_iter_static_next): For chunk size 0
1924 only use n ceil/ nthreads size for the first
1925 n % nthreads threads in the team instead of
1926 all threads except for the last few ones which
1927 get less work or none at all.
1928 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1929 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1930 chunk argument, set run_sched_modifier to 0 for static
1931 resp. 1 for other kinds. If chunk argument is 0
1932 and not static, set value to 1.
1934 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1937 * testsuite/libgomp.c++/pr49043.C: New test.
1940 * testsuite/libgomp.c++/pr48869.C: New test.
1942 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1945 * fortran.c: Include limits.h.
1947 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1949 (omp_set_num_threads_8_, omp_set_schedule_8_,
1950 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1951 omp_get_team_size_8_): Use TO_INT macro.
1952 * testsuite/libgomp.fortran/pr48894.f90: New test.
1954 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1957 * testsuite/libgomp.c/pr48591.c: New test.
1959 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1962 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1963 * configure: Regenerate.
1965 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1968 * testsuite/libgomp.fortran/task3.f90: New test.
1970 2011-02-24 Tobias Burnus <burnus@net-b.de>
1972 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1974 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1977 * libgomp.texi (omp_get_wtime): Don't say time in the past
1980 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1983 * testsuite/libgomp.fortran/fortran.exp: Check for both
1984 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1985 but $blddir != "", still append ${blddir}/${lang_library_path}
1988 2011-02-16 Tobias Burnus <burnus@net-b.de>
1991 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1992 of libquadmath.a before adding its libpath to ldflags.
1994 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1997 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1998 to FUTEX_WAIT futex syscall.
1999 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2001 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2003 * configure: Regenerate.
2005 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2008 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2010 2011-01-16 Gerald Pfeifer
2012 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2014 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2017 * libgomp.fortran/allocatable6.f90: New test.
2019 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2021 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2022 * configure: Regenerate.
2024 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2028 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2029 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2030 * aclocal.m4: Regenerate.
2031 * configure: Regenerate.
2032 * Makefile.in: Regenerate.
2033 * testsuite/Makefile.in: Regenerate.
2035 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2038 * libgomp.fortran/pr46753.f90: New test.
2041 * env.c (initialize_env): Default to spin count 300000
2042 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2046 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2047 at the end if sync builtins aren't supported.
2049 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2051 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2053 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2055 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2057 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2059 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2061 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2062 Tobias Burnus <burnus@net-b.de>
2066 * configure: Regenerate.
2068 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2070 * config/linux/futex.h: New.
2071 * config/linux/arm/mutex.h: New.
2072 * configure.tgt (arm*-*-linux*): Add config path.
2074 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2076 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2078 2010-09-23 Tobias Burnus <burnus@net-b.de>
2080 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2081 Change Fortran datatype to LOGICAL.
2082 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2083 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2085 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2087 * configure: Regenerate.
2089 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2091 * libgomp.texi: Add function keyword to a couple of Fortran
2092 interfaces, use integer instead of int for Fortran.
2094 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2096 * libgomp.texi: Fix spelling and pasto problems throughout.
2097 Adjust prototypes to match code.
2099 2010-07-24 Tobias Burnus <burnus@net-b.de>
2101 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2102 silence -fwhole-file warning.
2104 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2106 * configure.tgt (*-*-solaris2.[56]*): Removed.
2108 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2110 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2111 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2112 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2113 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2114 targetting solaris2*.
2115 * configure: Regenerate.
2116 * config.h.in: Regenerate.
2118 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2119 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2120 Add libgomp_version_dep.
2121 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2123 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2124 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2125 * Makefile.in: Regenerate.
2127 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2128 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2129 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2130 to common block, protected by
2131 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2133 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2135 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2137 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2140 * configure: Regenerate.
2142 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2145 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2146 * configure: Regenerate.
2147 * Makefile.in: Regenerate.
2148 * testsuite/Makefile.in: Regenerate.
2150 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2153 * testsuite/libgomp.c/pr43893.c: New test.
2154 * testsuite/libgomp.c++/pr43893.C: New test.
2156 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2159 * testsuite/libgomp.fortran/vla8.f90: New test.
2161 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2164 * config/linux/affinity.c (gomp_init_affinity): Decrease
2165 gomp_available_cpus if affinity mask confines the process to fewer
2167 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2168 non-NULL, just return gomp_available_cpus.
2171 * sections.c (gomp_sections_init): Initialize ws->mode.
2173 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2175 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2176 not unused bar variable.
2177 * configure: Regenerate.
2179 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2181 * Makefile.in: Regenerate.
2182 * aclocal.m4: Regenerate.
2183 * testsuite/Makefile.in: Regenerate.
2185 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2188 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2189 (initialize_env): Adjust callers.
2190 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2191 when the argument is 0.
2193 * testsuite/libgomp.c/pr42942.c: New test.
2195 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2199 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2200 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2202 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2204 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2205 * testsuite/libgomp.c++/task-6.C: Likewise.
2207 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2209 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2211 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2213 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2214 * configure: Regenerate.
2216 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2219 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2221 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2223 * configure.ac: Test for executability of GFORTRAN.
2224 * configure: Regenerate.
2226 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2228 * configure: Regenerate.
2230 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2233 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2235 2010-01-03 Richard Guenther <rguenther@suse.de>
2237 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2239 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2241 * testsuite/libgomp.graphite/pr4118.c: New.
2243 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2245 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2246 for darwin, protect the test with require-effective-target tls_runtime.
2247 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2249 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2252 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2253 link spec %s substitutions for static libraries.
2255 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2258 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2260 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2262 * Makefile.in: Regenerate.
2263 * configure: Regenerate.
2264 * testsuite/Makefile.in: Regenerate.
2266 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2268 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2269 settings for LC_ALL and LANG.
2271 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2274 * testsuite/libgomp.fortran/pr42162.f90: New test.
2276 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2279 * testsuite/libgomp.c/pr42029.c: New test.
2281 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2283 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2284 *s. Accept ld version without text in ()s.
2285 * configure: Regenerated.
2287 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2289 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2291 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2294 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2295 or a hyphen (happens with fortran language disabled).
2296 * configure: Regenerate.
2298 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2300 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2301 use sed script portable to Solaris /bin/sed for extracting ld
2303 * configure: Regenerate.
2305 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2307 * testsuite/libgomp.graphite/bounds.c: New test.
2309 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2311 * Makefile.am (libgomp_la_LINK): New.
2312 * Makefile.in: Regenerate.
2314 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2316 * configure.ac (AC_PREREQ): Bump to 2.64.
2318 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2320 * Makefile.am (install-html, install-pdf): Remove.
2321 * Makefile.in: Regenerate.
2323 * Makefile.in: Regenerate.
2324 * aclocal.m4: Regenerate.
2325 * config.h.in: Regenerate.
2326 * configure: Regenerate.
2327 * testsuite/Makefile.in: Regenerate.
2329 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2331 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2332 * Makefile.in: Regenerate.
2334 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2336 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2337 * Makefile.in: Regenerate.
2339 2009-08-19 Tobias Burnus <burnus@net-b.de>
2342 omp_lib.h.in: Fix -std=f95 errors.
2345 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2347 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2348 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2349 * testsuite/libgomp.graphite/graphite.exp: New.
2351 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2353 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2356 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2358 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2359 needed memory barrier semantics.
2360 * config/linux/mips/mutex.h: New file.
2362 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2364 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2366 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2368 * configure: Regenerate.
2370 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2375 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2376 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2377 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2379 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2381 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2382 options when choosing a multilib.
2384 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2386 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2387 ld_library_path. Use add_path. Add just find_libgcc_s to
2388 ld_library_path, not every libgcc multilib directory.
2389 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2390 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2391 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2393 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2395 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2397 * Makefile.am (LTLDFLAGS): Define.
2399 * Makefile.in: Regenerate.
2401 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2404 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2405 libgfortranbegin, check existence of libgfortran.a instead of
2408 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2411 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2412 (gomp_free_pool_helper): Likewise.
2414 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2415 Jakub Jelinek <jakub@redhat.com>
2418 * testsuite/libgomp.fortran/workshare2.f90: New test.
2420 2009-04-09 Nick Clifton <nickc@redhat.com>
2422 * iter.c: Change copyright header to refer to version 3 of the
2423 GNU General Public License with version 3.1 of the GCC Runtime
2424 Library Exception and to point readers at the COPYING3 and
2425 COPYING3.RUNTIME files and the FSF's license web page.
2426 * alloc.c: Likewise.
2427 * barrier.c: Likewise.
2428 * config/bsd/proc.c: Likewise.
2429 * config/linux/affinity.c: Likewise.
2430 * config/linux/alpha/futex.h: Likewise.
2431 * config/linux/bar.c: Likewise.
2432 * config/linux/bar.h: Likewise.
2433 * config/linux/ia64/futex.h: Likewise.
2434 * config/linux/ia64/mutex.h: Likewise.
2435 * config/linux/lock.c: Likewise.
2436 * config/linux/mips/futex.h: Likewise.
2437 * config/linux/mutex.c: Likewise.
2438 * config/linux/mutex.h: Likewise.
2439 * config/linux/powerpc/futex.h: Likewise.
2440 * config/linux/proc.c: Likewise.
2441 * config/linux/ptrlock.c: Likewise.
2442 * config/linux/ptrlock.h: Likewise.
2443 * config/linux/s390/futex.h: Likewise.
2444 * config/linux/sem.c: Likewise.
2445 * config/linux/sem.h: Likewise.
2446 * config/linux/sparc/futex.h: Likewise.
2447 * config/linux/wait.h: Likewise.
2448 * config/linux/x86/futex.h: Likewise.
2449 * config/mingw32/proc.c: Likewise.
2450 * config/mingw32/time.c: Likewise.
2451 * config/posix/affinity.c: Likewise.
2452 * config/posix/bar.c: Likewise.
2453 * config/posix/bar.h: Likewise.
2454 * config/posix/lock.c: Likewise.
2455 * config/posix/mutex.h: Likewise.
2456 * config/posix/proc.c: Likewise.
2457 * config/posix/ptrlock.h: Likewise.
2458 * config/posix/sem.c: Likewise.
2459 * config/posix/sem.h: Likewise.
2460 * config/posix/time.c: Likewise.
2461 * config/posix95/lock.c: Likewise.
2462 * critical.c: Likewise.
2464 * error.c: Likewise.
2465 * fortran.c: Likewise.
2466 * iter_ull.c: Likewise.
2467 * libgomp.h: Likewise.
2468 * libgomp_f.h.in: Likewise.
2469 * libgomp_g.h: Likewise.
2471 * loop_ull.c: Likewise.
2472 * omp.h.in: Likewise.
2473 * omp_lib.f90.in: Likewise.
2474 * omp_lib.h.in: Likewise.
2475 * ordered.c: Likewise.
2476 * parallel.c: Likewise.
2477 * sections.c: Likewise.
2478 * single.c: Likewise.
2483 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2485 * testsuite/config/default.exp: Change copyright header to refer to
2486 version 3 of the GNU General Public License and to point readers
2487 at the COPYING3 file and the FSF's license web page.
2489 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2492 * libgomp.c++/pr39573.C: New test.
2494 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2497 * testsuite/libgomp.c/pr39591-1.c: New test.
2498 * testsuite/libgomp.c/pr39591-2.c: New test.
2499 * testsuite/libgomp.c/pr39591-3.c: New test.
2501 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2503 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2504 * testsuite/libgomp.c/atomic-6.c: Ditto.
2506 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2509 * testsuite/libgomp.c/loop-12.c: New test.
2510 * testsuite/libgomp.c/loop-11.c: New test.
2511 * testsuite/libgomp.c++/loop-11.C: New test.
2512 * testsuite/libgomp.c++/loop-12.C: New test.
2513 * testsuite/libgomp.c++/for-8.C: New test.
2515 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2517 * configure: Regenerate.
2519 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2522 * testsuite/libgomp.c/pr39154.c: New test.
2524 2009-01-30 Ian Lance Taylor <iant@google.com>
2526 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2527 libgomp_ld_is_gold. Get gold version number.
2528 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2529 * configure: Rebuild.
2531 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2533 * testsuite/lib/libgomp.exp: Add -B option for targets that
2534 use libgfortran.a%s in their specs.
2536 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2539 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2540 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2541 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2542 * configure: Regenerated.
2543 * config.h.in: Likewise.
2545 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2548 * testsuite/libgomp.c/pr38650.c: New test.
2549 * testsuite/libgomp.c++/pr38650.C: New test.
2551 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2553 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2555 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2557 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2559 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2561 * configure: Regenerate.
2563 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2566 * testsuite/libgomp.c/pr36802-1.c: New test.
2567 * testsuite/libgomp.c/pr36802-2.c: New test.
2568 * testsuite/libgomp.c/pr36802-3.c: New test.
2570 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2573 * config/linux/powerpc/mutex.h: New.
2575 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2578 * testsuite/libgomp.c++/for-7.C: New test.
2581 * testsuite/libgomp.c++/for-6.C: New test.
2583 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2586 * testsuite/lib/libgomp.exp: Include new timeout library files.
2587 (libgomp_target_compile): Set timeout value from new proc.
2589 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2592 * config/linux/ia64/mutex.h: New.
2594 2008-11-04 Tobias Burnus <burnus@net-b.de>
2597 * libgomp.texi (Runtime library routines, environment variables):
2598 Update for OpenMP version 3.0.
2600 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2601 Steve Ellcey <sje@cup.hp.com>
2603 * configure: Regenerate for new libtool.
2604 * Makefile.in: Ditto.
2605 * testsuite/Makefile.in: Ditto.
2607 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2608 Andreas Tobler <a.tobler@schweiz.org>
2610 * config/bsd/proc.c: New file.
2611 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2612 * configure.ac: Check for header <sys/sysctl.h>
2613 * configure: Regenerate.
2614 * config.h.in: Likewise.
2616 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2618 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2620 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2622 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2623 * Makefile.in: Regenerated.
2624 * testsuite/Makefile.in: Regenerated.
2626 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2628 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2629 depend on blddir if blddir exists.
2630 (libgomp_target_compile): Likewise.
2631 * testsuite/libgomp.c++/c++.exp: Likewise.
2632 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2634 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2636 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2637 Do not list GPL as Invariant Section.
2639 2008-07-28 Ilie Garbacea <ilie@mips.com>
2640 Chao-ying Fu <fu@mips.com>
2642 * configure.tgt: Enable futex for MIPS.
2643 * config/linux/mips/futex.h: New file.
2645 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2647 * team.c (gomp_team_end): Free team immediately if it has
2650 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2652 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2653 * testsuite/libgomp.fortran/fortran.exp: Same.
2654 * testsuite/libgomp.c/c.exp: Same.
2655 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2656 directory to library path first.
2658 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2660 * env.c (parse_stacksize): Add cast to avoid warning.
2661 (parse_spincount): Likewise.
2663 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2665 * testsuite/libgomp.c/loop-10.c: New test.
2666 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2667 * libgomp.c++/loop-6.C (main): Likewise.
2670 * testsuite/libgomp.c/debug-1.c: New test.
2672 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2674 * testsuite/libgomp.c/nqueens-1.c: New test.
2677 * testsuite/libgomp.c++/task-7.C: New function.
2679 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2681 * configure: Regenerate.
2683 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2685 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2686 mutex when HAVE_SYNC_BUILTINS isn't defined.
2688 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2690 * libgomp.texi (omp_test_lock): Fix typo.
2692 2008-06-12 Tobias Burnus <burnus@net-b.de>
2694 * omp_lib.f90.in: Add "implicit none".
2696 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2699 * testsuite/libgomp.c/reduction-5.c: New test.
2701 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2703 * libgomp.h (struct gomp_task): Add in_tied_task field.
2704 * task.c (gomp_init_task): Initialize it.
2705 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2706 unconditionally. Don't call gomp_team_barrier_wake if
2707 current task is implicit or if(0) from implicit and number of
2708 running tasks is equal to nthreads - 1.
2711 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2712 omp_get_team_size_8): Fix pastos.
2715 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2716 * configure: Regenerated.
2717 * config.h.in: Regenerated.
2718 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2721 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
2724 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2725 (GOMP_loop_ull_dynamic_start): Likewise.
2726 (GOMP_loop_ull_guided_start): Likewise.
2727 (GOMP_loop_ull_ordered_static_start): Likewise.
2728 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2729 (GOMP_loop_ull_ordered_guided_start): Likewise.
2731 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2732 Richard Henderson <rth@redhat.com>
2733 Ulrich Drepper <drepper@redhat.com>
2734 Jakob Blomer <jakob.blomer@ira.uka.de>
2736 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2737 Substitute also OMP_*LOCK_25*.
2738 * configure: Regenerated.
2739 * config.h.in: Regenerated.
2740 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2741 ptrlock.c and task.c.
2742 * Makefile.in: Regenerated.
2743 * testsuite/Makefile.in: Regenerated.
2745 * loop_ull.c: New file.
2746 * iter_ull.c: New file.
2747 * libgomp.h: Include ptrlock.h.
2748 (enum gomp_task_kind): New type.
2749 (struct gomp_team): Add task_lock, task_queue, task_count,
2750 task_running_count, single_count fields. Add
2751 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2752 Remove work_share_lock, generation_mask,
2753 oldest_live_gen, num_live_gen and init_work_shares fields, add
2754 work work_share_list_alloc, work_share_list_free and work_share_chunk
2755 fields. Change work_shares from pointer to pointers into an array.
2756 Change ordered_release field into gomp_sem_t ** from flexible array
2757 member. Add implicit_task and initial_work_shares fields.
2758 Move close to the end of the struct.
2759 (struct gomp_team_state): Add single_count, last_work_share,
2760 active_level and level fields, remove work_share_generation.
2761 (gomp_barrier_handle_tasks): New prototype.
2762 (gomp_finish_task): New inline function.
2763 (struct gomp_work_share): Move chunk_size, end, incr into
2764 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2765 next_ll fields. Reshuffle fields. Add next_alloc,
2766 next_ws, next_free and inline_ordered_team_ids fields, change
2767 ordered_team_ids into pointer from flexible array member.
2768 Add mode field. Put lock and next into a different cache line
2769 from most of the write-once fields.
2770 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2771 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2772 gomp_iter_ull_guided_next): New prototypes.
2773 (gomp_new_icv): New prototype.
2774 (struct gomp_thread): Add thread_pool and task fields.
2775 (struct gomp_thread_pool): New type.
2776 (gomp_new_team): New prototype.
2777 (gomp_team_start): Change type of last argument.
2778 (gomp_new_work_share): Removed.
2779 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2780 (gomp_work_share_init_done): New static inline.
2781 (gomp_throttled_spin_count_var, gomp_available_cpus,
2782 gomp_managed_threads): New extern decls.
2783 (gomp_init_task): New prototype.
2784 (gomp_spin_count_var): New extern var decl.
2785 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2786 or no alias support, or if not PIC.
2787 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2788 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2789 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2790 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2791 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2792 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2793 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2794 gomp_test_nest_lock_25): New prototypes.
2795 (omp_lock_symver, strong_alias): Define.
2796 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2798 (gomp_end_task): New.
2799 (struct gomp_task_icv, gomp_global_icv): New.
2800 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2801 (struct gomp_task): New.
2802 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2803 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2805 (gomp_schedule_type): Reorder enum to match
2807 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2809 (gomp_thread_start): Add gomp_team_barrier_wait call.
2810 For non-nested case remove clearing of docked thread thr fields.
2811 Use pool fields instead of global gomp_* variables. Use
2812 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2813 Create tasks for each member thread.
2814 (free_team): Only destroy team barrier, task_lock here and free it.
2815 (gomp_free_thread): Free last_team if non-NULL.
2816 (gomp_team_end): Call gomp_team_barrier_wait instead of
2817 gomp_barrier_wait. For nested case call one extra
2818 gomp_barrier_wait. Move here some destruction from free_team.
2819 Call free_team on pool->last_team if any, rather than freeing
2820 current team. Destroy work_share_list_free_lock ifndef
2822 (gomp_new_icv): New function.
2823 (gomp_threads, gomp_threads_size, gomp_threads_used,
2824 gomp_threads_dock): Removed.
2825 (gomp_thread_destructor): New variable.
2826 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2828 (gomp_team_start): Create new pool if current thread doesn't have
2829 one. Use pool fields instead of global gomp_* variables.
2830 Initialize thread_pool field for new threads. Clear single_count.
2831 Change last argument from ws to team, don't create
2832 new team, set ts.work_share to &team->work_shares[0] and clear
2833 ts.last_work_share. Don't clear ts.work_share_generation.
2834 If number of threads changed, adjust atomically gomp_managed_threads.
2835 Use gomp_init_task instead of gomp_new_task,
2836 set thr->task to the corresponding implicit_task array entry.
2837 Create tasks for each member thread. Initialize ts.level.
2838 (initialize_team): Call pthread_key_create on
2839 gomp_thread_destructor.
2840 (team_destructor): New function.
2841 (new_team): Removed.
2842 (gomp_new_team): New function.
2843 (free_team): Free gomp_work_share blocks chained through next_alloc,
2844 instead of freeing work_shares and destroying work_share_lock.
2845 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2846 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2847 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2848 of gomp_barrier_wait.
2849 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2850 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2851 if gomp_work_share_start returned true. Don't unlock ws->lock.
2852 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2853 of gomp_barrier_wait.
2854 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2855 gomp_work_share_init_done if gomp_work_share_start returned true.
2856 Don't unlock ws->lock.
2857 * work.c: Include stddef.h.
2858 (free_work_share): Use work_share_list_free_lock instead
2859 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2860 Call gomp_fini_work_share and then either free ws if orphaned, or
2861 put it into work_share_list_free list of the current team.
2862 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2864 (gomp_work_share_start, gomp_work_share_end,
2865 gomp_work_share_end_nowait): Rewritten.
2866 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2867 (openmp_version): Set to 200805.
2868 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2869 omp_sched_guided, omp_sched_auto): New parameters.
2870 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2871 omp_set_max_active_levels, omp_get_max_active_levels,
2872 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2873 omp_get_active_level): New interfaces.
2874 * omp_lib.h.in (openmp_version): Set to 200805.
2875 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2876 omp_sched_guided, omp_sched_auto): New parameters.
2877 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2878 omp_set_max_active_levels, omp_get_max_active_levels,
2879 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2880 omp_get_active_level): New externals.
2881 * loop.c: Include limits.h.
2882 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2884 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2885 Likewise. Use gomp_icv.
2886 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2887 ts.static_trip here.
2888 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2889 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2890 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2891 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2892 don't unlock ws->lock, otherwise lock it.
2893 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2894 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2895 (gomp_parallel_loop_start): Call gomp_new_team instead of
2896 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2897 Adjust gomp_team_start caller. Pass 0 as second argument to
2898 gomp_resolve_num_threads.
2899 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2900 If adding ws->chunk_size nthreads + 1 times after end won't
2901 overflow, set ws->mode to 1.
2902 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2903 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2904 GOMP_loop_ull_ordered_static_start,
2905 GOMP_loop_ull_ordered_dynamic_start,
2906 GOMP_loop_ull_ordered_guided_start,
2907 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2908 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2909 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2910 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2911 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2913 * libgomp.map: Export lock routines also @@OMP_2.0.
2914 (GOMP_loop_ordered_dynamic_first,
2915 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2916 GOMP_loop_ordered_static_first): Remove.
2917 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2918 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2919 GOMP_loop_ull_ordered_dynamic_next,
2920 GOMP_loop_ull_ordered_dynamic_start,
2921 GOMP_loop_ull_ordered_guided_next,
2922 GOMP_loop_ull_ordered_guided_start,
2923 GOMP_loop_ull_ordered_runtime_next,
2924 GOMP_loop_ull_ordered_runtime_start,
2925 GOMP_loop_ull_ordered_static_next,
2926 GOMP_loop_ull_ordered_static_start,
2927 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2928 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2929 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2930 (omp_set_schedule, omp_get_schedule,
2931 omp_get_thread_limit, omp_set_max_active_levels,
2932 omp_get_max_active_levels, omp_get_level,
2933 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2934 omp_set_schedule_, omp_set_schedule_8_,
2935 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2936 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2937 omp_get_max_active_levels_, omp_get_level_,
2938 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2939 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2940 New exports @@OMP_3.0.
2941 * omp.h.in (omp_sched_t): New type.
2942 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2943 omp_set_max_active_levels, omp_get_max_active_levels,
2944 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2945 omp_get_active_level): New prototypes.
2946 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2947 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2948 gomp_thread_limit_var, gomp_remaining_threads_count,
2949 gomp_remaining_threads_lock): New variables.
2950 (parse_spincount): New function.
2951 (initialize_env): Call gomp_init_num_threads unconditionally.
2952 Initialize gomp_available_cpus. Call parse_spincount,
2953 initialize gomp_{,throttled_}spin_count_var
2954 depending on presence and value of OMP_WAIT_POLICY and
2955 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2956 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2957 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2958 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2959 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2960 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2961 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2962 (gomp_global_icv): New.
2963 (parse_schedule): Use it. Parse "auto".
2964 (omp_set_num_threads): Use gomp_icv.
2965 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2967 (omp_get_max_threads): Move from parallel.c.
2968 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2969 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2971 (parse_stacksize, parse_wait_policy): New functions.
2972 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2973 both wrappers for compatibility and new locks.
2974 (omp_set_schedule, omp_get_schedule,
2975 omp_get_thread_limit, omp_set_max_active_levels,
2976 omp_get_max_active_levels, omp_get_level,
2977 omp_get_ancestor_thread_num, omp_get_team_size,
2978 omp_get_active_level): New ialias_redirect.
2979 (omp_set_schedule_, omp_set_schedule_8_,
2980 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2981 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2982 omp_get_max_active_levels_, omp_get_level_,
2983 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2984 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2986 * parallel.c: Include limits.h.
2987 (gomp_resolve_num_threads): Add count argument. Rewritten.
2988 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2989 argument to gomp_team_start. Pass 0 as second argument to
2990 gomp_resolve_num_threads.
2991 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2992 if gomp_thread_limit_var != ULONG_MAX.
2993 (omp_in_parallel): Implement using ts.active_level.
2994 (omp_get_max_threads): Move to env.c.
2995 (omp_get_level, omp_get_ancestor_thread_num,
2996 omp_get_team_size, omp_get_active_level): New functions,
2998 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2999 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3000 gomp_iter_dynamic_next instead of the _locked variant and don't take
3001 lock around it, otherwise acquire it before calling
3002 gomp_iter_dynamic_next_locked.
3003 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3004 gomp_iter_dynamic_next instead of the _locked variant and don't take
3006 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3007 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3008 Adjust gomp_team_start caller. Pass count as second argument to
3009 gomp_resolve_num_threads, don't adjust num_threads after the call.
3011 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3012 ws->chunk_size by incr.
3013 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3015 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3017 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3018 (omp_check_defines): Check even the compat defines.
3019 * config/linux/ptrlock.c: New file.
3020 * config/linux/ptrlock.h: New file.
3021 * config/linux/wait.h: New file.
3022 * config/posix/ptrlock.c: New file.
3023 * config/posix/ptrlock.h: New file.
3024 * config/linux/bar.h (gomp_team_barrier_wait,
3025 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3026 (gomp_team_barrier_set_task_pending,
3027 gomp_team_barrier_clear_task_pending,
3028 gomp_team_barrier_set_waiting_for_tasks,
3029 gomp_team_barrier_waiting_for_tasks,
3030 gomp_team_barrier_done): New inlines.
3031 (gomp_barrier_t): Rewritten.
3032 (gomp_barrier_state_t): New typedef.
3033 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3034 gomp_barrier_wait_start): Rewritten.
3035 (gomp_barrier_wait_end): Change second argument to
3036 gomp_barrier_state_t.
3037 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3039 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3041 (gomp_barrier_wait_end): Rewritten.
3042 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3043 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3044 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3045 (gomp_barrier_state_t): New typedef.
3046 (gomp_team_barrier_wait,
3047 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3048 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3049 into the return value. Return gomp_barrier_state_t.
3050 (gomp_team_barrier_set_task_pending,
3051 gomp_team_barrier_clear_task_pending,
3052 gomp_team_barrier_set_waiting_for_tasks,
3053 gomp_team_barrier_waiting_for_tasks,
3054 gomp_team_barrier_done): New inlines.
3055 (gomp_barrier_wait_end): Change second argument to
3056 gomp_barrier_state_t.
3057 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3059 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3060 (gomp_barrier_wait_end): Change second argument to
3061 gomp_barrier_state_t.
3062 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3063 gomp_team_barrier_wake): New functions.
3064 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3066 (gomp_futex_wake, gomp_futex_wait): New variables.
3067 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3068 * config/linux/lock.c: Rewrite to make locks task owned,
3069 for backwards compatibility provide the old entrypoints
3070 if symbol versioning. Include wait.h instead of libgomp.h and
3072 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3073 * config/posix95/lock.c: Rewrite to make locks task owned,
3074 for backwards compatibility provide the old entrypoints
3075 if symbol versioning.
3076 * config/posix/lock.c: Rewrite to make locks task owned,
3077 for backwards compatibility provide the old entrypoints
3078 if symbol versioning.
3079 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3080 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3081 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3082 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3083 (sys_futex0): Return error code.
3084 (futex_wake, futex_wait): If ENOSYS was returned, clear
3085 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3086 (cpu_relax, atomic_write_barrier): New static inlines.
3087 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3088 (futex_wake, futex_wait): If ENOSYS was returned, clear
3089 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3090 (cpu_relax, atomic_write_barrier): New static inlines.
3091 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3092 (sys_futex0): Return error code.
3093 (futex_wake, futex_wait): If ENOSYS was returned, clear
3094 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3095 (cpu_relax, atomic_write_barrier): New static inlines.
3096 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3097 (sys_futex0): Return error code.
3098 (futex_wake, futex_wait): If ENOSYS was returned, clear
3099 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3100 (cpu_relax, atomic_write_barrier): New static inlines.
3101 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3102 (sys_futex0): Return error code.
3103 (futex_wake, futex_wait): If ENOSYS was returned, clear
3104 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3105 (cpu_relax, atomic_write_barrier): New static inlines.
3106 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3107 (sys_futex0): Return error code.
3108 (futex_wake, futex_wait): If ENOSYS was returned, clear
3109 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3110 (cpu_relax, atomic_write_barrier): New static inlines.
3111 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3113 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3114 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3115 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3117 (omp_nest_lock_t): Change owner into void *, add lock field.
3118 * config/posix95/omp-lock.h: Include semaphore.h.
3119 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3120 (omp_lock_t): Use sem_t instead of mutex if semaphores
3122 (omp_nest_lock_t): Likewise. Change owner to void *.
3123 * config/posix/omp-lock.h: Include semaphore.h.
3124 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3125 (omp_lock_t): Use sem_t instead of mutex if semaphores
3127 (omp_nest_lock_t): Likewise. Add owner field.
3129 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3131 * testsuite/libgomp.c/collapse-1.c: New test.
3132 * testsuite/libgomp.c/collapse-2.c: New test.
3133 * testsuite/libgomp.c/collapse-3.c: New test.
3134 * testsuite/libgomp.c/icv-1.c: New test.
3135 * testsuite/libgomp.c/icv-2.c: New test.
3136 * testsuite/libgomp.c/lib-2.c: New test.
3137 * testsuite/libgomp.c/lock-1.c: New test.
3138 * testsuite/libgomp.c/lock-2.c: New test.
3139 * testsuite/libgomp.c/lock-3.c: New test.
3140 * testsuite/libgomp.c/loop-4.c: New test.
3141 * testsuite/libgomp.c/loop-5.c: New test.
3142 * testsuite/libgomp.c/loop-6.c: New test.
3143 * testsuite/libgomp.c/loop-7.c: New test.
3144 * testsuite/libgomp.c/loop-8.c: New test.
3145 * testsuite/libgomp.c/loop-9.c: New test.
3146 * testsuite/libgomp.c/nested-3.c: New test.
3147 * testsuite/libgomp.c/nestedfn-6.c: New test.
3148 * testsuite/libgomp.c/sort-1.c: New test.
3149 * testsuite/libgomp.c/task-1.c: New test.
3150 * testsuite/libgomp.c/task-2.c: New test.
3151 * testsuite/libgomp.c/task-3.c: New test.
3152 * testsuite/libgomp.c/task-4.c: New test.
3153 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3154 to C++ testsuite default compiler options.
3155 * testsuite/libgomp.c++/collapse-1.C: New test.
3156 * testsuite/libgomp.c++/collapse-2.C: New test.
3157 * testsuite/libgomp.c++/ctor-10.C: New test.
3158 * testsuite/libgomp.c++/for-1.C: New test.
3159 * testsuite/libgomp.c++/for-2.C: New test.
3160 * testsuite/libgomp.c++/for-3.C: New test.
3161 * testsuite/libgomp.c++/for-4.C: New test.
3162 * testsuite/libgomp.c++/for-5.C: New test.
3163 * testsuite/libgomp.c++/loop-8.C: New test.
3164 * testsuite/libgomp.c++/loop-9.C: New test.
3165 * testsuite/libgomp.c++/loop-10.C: New test.
3166 * testsuite/libgomp.c++/task-1.C: New test.
3167 * testsuite/libgomp.c++/task-2.C: New test.
3168 * testsuite/libgomp.c++/task-3.C: New test.
3169 * testsuite/libgomp.c++/task-4.C: New test.
3170 * testsuite/libgomp.c++/task-5.C: New test.
3171 * testsuite/libgomp.c++/task-6.C: New test.
3172 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3173 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3174 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3175 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3176 * testsuite/libgomp.fortran/collapse1.f90: New test.
3177 * testsuite/libgomp.fortran/collapse2.f90: New test.
3178 * testsuite/libgomp.fortran/collapse3.f90: New test.
3179 * testsuite/libgomp.fortran/collapse4.f90: New test.
3180 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3181 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3182 * testsuite/libgomp.fortran/lib4.f90: New test.
3183 * testsuite/libgomp.fortran/lock-1.f90: New test.
3184 * testsuite/libgomp.fortran/lock-2.f90: New test.
3185 * testsuite/libgomp.fortran/nested1.f90: New test.
3186 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3187 * testsuite/libgomp.fortran/strassen.f90: New test.
3188 * testsuite/libgomp.fortran/tabs1.f90: New test.
3189 * testsuite/libgomp.fortran/tabs2.f: New test.
3190 * testsuite/libgomp.fortran/task1.f90: New test.
3191 * testsuite/libgomp.fortran/task2.f90: New test.
3192 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3193 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3194 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3195 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3196 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3198 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3201 * testsuite/libgomp.c++/ctor-11.C: New test.
3202 * testsuite/libgomp.c++/ctor-12.C: New test.
3204 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3206 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3208 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3211 * testsuite/libgomp.c/atomic-5.c: New test.
3212 * testsuite/libgomp.c/atomic-6.c: New test.
3213 * testsuite/libgomp.c/autopar-1.c: New test.
3215 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3217 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3218 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3219 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3220 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3221 * configure: Regenerate.
3222 * Makefile.in, testsuite/Makefile.in: Likewise.
3224 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3227 * aclocal.m4: Regenerate.
3228 * configure: Regenerate.
3230 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3233 * testsuite/libgomp.c/atomic-4.c: New test.
3236 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3237 (gomp_iter_guided_next): Likewise.
3238 * testsuite/libgomp.c/pr35625.c: New test.
3240 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3242 * aclocal.m4: Regenerate.
3243 * configure: Likewise.
3244 * Makefile.in: Likewise.
3245 * testsuite/Makefile.in: Likewise.
3247 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3250 * testsuite/libgomp.c++/pr35185.C: New test.
3252 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3255 * testsuite/libgomp.c/pr35549.c: New test.
3257 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3259 * testsuite/libgomp.c/atomic-3.c: New test.
3261 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3264 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3267 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3270 * configure.ac: Add ACX_HEADER_STRING.
3271 * env.c: Include strings.h.
3272 * aclocal.m4: Regenerate.
3273 * config.h.in: Regenerate.
3274 * configure: Regenerate.
3275 * Makefile.in: Regenerate.
3276 * testsuite/Makefile.in: Regenerate.
3278 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3281 * testsuite/libgomp.c/pr35196.c: New test.
3284 * testsuite/libgomp.fortran/pr35130.f90: New test.
3285 * testsuite/libgomp.c/pr35130.c: New test.
3287 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3290 * testsuite/libgomp.c/pr33880.c: New test.
3291 * testsuite/libgomp.fortran/pr33880.f90: New test.
3293 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3295 * configure: Regenerate.
3297 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3299 * configure.ac: Move futex checking into ../config/futex.m4.
3300 * configure: Rebuilt.
3301 * aclocal.m4: Rebuilt.
3302 * Makefile.in: Rebuilt.
3304 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3305 2007-10-15 ../config/tls.m4 change.
3307 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3310 * testsuite/libgomp.c/pr34513.c: New test.
3311 * testsuite/libgomp.c++/pr34513.C: New test.
3313 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3316 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3318 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3320 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3322 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3324 * testsuite/libgomp.c/private-1.c: New test.
3326 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3327 Paolo Bonzini <bonzini@gnu.org>
3329 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3330 instead of 'VPATH ='.
3331 * Makefile.in: Regenerate.
3333 2007-11-23 Matthias Klose <doko@ubuntu.com>
3335 * configure.ac: Adjust makeinfo version check.
3336 * configure: Regenerate.
3338 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3341 * testsuite/libgomp.fortran/pr34020.f90: New test.
3343 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3346 * testsuite/libgomp.c++/atomic-1.C: New test.
3348 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3351 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3352 Make x and y integers rather than (implicit) reals. Add private (j)
3353 clause to the last omp parallel.
3355 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3357 * configure: Regenerate following changes to ../config/tls.m4.
3359 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3361 * testsuite/libgomp.fortran/stack.f90: New test.
3363 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3365 * config/mingw32/proc.c: New file.
3367 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3369 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3370 (main): Use __get_cpuid to get i386 target fetaures.
3371 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3372 (main): Use __get_cpuid to get x86_64 target fetaures.
3374 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3377 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3378 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3380 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3383 * testsuite/libgomp.fortran/pr32550.f90: New test.
3384 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3386 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3388 * aclocal.m4: Regenerated.
3390 2007-07-05 Tobias Burnus <burnus@net-b.de>
3393 * testsuite/libgomp.fortran/pr32359.f90: New.
3395 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3398 * sections.c (GOMP_parallel_sections_start): Only decrease
3399 number of threads to COUNT if dyn_var is true.
3400 * testsuite/libgomp.c/pr32468.c: New test.
3402 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3405 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3407 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3410 * testsuite/libgomp.c/pr32362-1.c: New test.
3411 * testsuite/libgomp.c/pr32362-2.c: New test.
3412 * testsuite/libgomp.c/pr32362-3.c: New test.
3414 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3416 * team.c (gomp_team_start): Fix setting up thread_attr
3419 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3421 * configure: Regenerate.
3423 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3425 * Makefile.in: Regenerate.
3426 * configure: Regenerate.
3427 * aclocal.m4: Regenerate.
3428 * testsuite/Makefile.in: Regenerate.
3430 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3432 * config/linux/proc.c: New file.
3435 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3437 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3439 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3441 2007-04-16 Matthias Klose <doko@debian.org>
3443 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3444 flags if not building with -m64.
3445 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3446 flag for i?86-*-* targets, if current target matches -m64.
3448 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3450 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3451 * Makefile.in: Regenerate.
3453 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3456 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3458 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3460 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3462 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3464 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3465 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3466 (parse_affinity): New function.
3467 (initialize_env): Call it and gomp_init_affinity.
3468 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3469 create new pthread_attr_t and call gomp_init_thread_affinity
3470 on it for each thread before passing the attribute to pthread_create.
3471 * config/linux/affinity.c: New file.
3472 * config/posix/affinity.c: New file.
3473 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3474 * configure: Rebuilt.
3475 * config.h.in: Rebuilt.
3476 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3477 * Makefile.in: Rebuilt.
3479 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3481 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3483 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3484 and use it if found.
3486 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3488 * testsuite/config/default.exp: New file.
3489 * testsuite/lib/libgomp.exp: New file.
3490 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3491 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3492 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3493 (libgomp_load): Remove.
3494 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3495 always_ld_library_path, not ld_library_path. Set additional_flags
3496 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3497 (target_compile): Do not call libgomp_init. Append lang_library_path
3498 and lang_link_flags to options.
3499 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3500 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3502 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3503 always_ld_library_path. Set LD_LIBRARY_PATH here.
3504 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3505 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3506 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3508 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3509 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3510 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3511 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3512 * testsuite/libgomp.c/atomic-10.c: Ditto.
3514 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3516 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3517 dg-final cleanup-modules line.
3518 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3519 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3520 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3521 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3522 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3523 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3524 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3526 2007-03-18 Andreas Schwab <schwab@suse.de>
3528 * acinclude.m4: Adjust regular expression for ld version
3530 * configure: Regenerate.
3532 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3534 * Makefile.am: Add install-pdf target as copied from
3535 automake v1.10 rules.
3536 * Makefile.in: Regenerate
3538 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3541 * configure: Regenerate.
3544 * testsuite/libgomp.c++/pr30703.C: New test.
3546 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3549 2006-07-05 Eric Christopher <echristo@apple.com>
3550 * configure.ac: Depend addition of -pthread on host OS.
3551 * configure: Regenerate.
3553 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3555 * libgomp.texi: Fix spacing after abbreviations.
3557 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3560 * configure.ac: Add check for makeinfo
3561 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3562 if an appropiate version of makeinfo is found.
3563 * aclocal.m4: Regenerated.
3564 * configure: Regenerated.
3565 * Makefile.in: Regenerated.
3566 * testsuite/Makefile.in: Regenerated.
3568 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3571 * libgomp.texi: More about implementation-dependent settings.
3573 2007-01-26 Tobias Burnus <burnus@net-b.de>
3575 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3577 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3580 * testsuite/libgomp.c/pr30494.c: New test.
3582 2007-01-15 Tom Tromey <tromey@redhat.com>
3584 * configure: Rebuilt.
3585 * configure.ac: Fixed comment.
3587 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3589 * libgomp.texi: Document implementation specific default values of
3590 environment variables.
3592 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3595 * libgomp.texi: New file.
3596 * configure.ac: Add --enable-generated-files-in-srcdir option.
3597 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3599 * Makefile.in: Regenerated.
3600 * config.h.in: Regenerated.
3601 * testsuite/Makefile.in: Regenerated.
3604 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3607 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3609 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3611 * configure: Regenerate.
3613 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3616 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3617 start if there shouldn't be any loop iterations.
3618 (gomp_loop_ordered_static_start): Remove start == end test.
3619 * testsuite/libgomp.c/pr29947-1.c: New test.
3620 * testsuite/libgomp.c/pr29947-2.c: New test.
3622 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3624 * configure.tgt: Force initial-exec TLS model on Linux only.
3626 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3628 * configure: Regenerated.
3630 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3632 * env.c (parse_schedule): Reject out of range values.
3633 (parse_unsigned_long): Reject out of range, negative or zero values.
3635 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3638 * testsuite/libgomp.fortran/pr29629.f90: New test.
3640 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3643 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3644 * config/posix95: New directory.
3645 * config/posix95/omp-lock.h: New file.
3646 * config/posix95/lock.c: Likewise.
3648 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3650 * aclocal.m4: Regenerate.
3651 * configure: Regenerate.
3653 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3655 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3658 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3660 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3662 * configure: Regenerate.
3663 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3665 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3669 * testsuite/libgomp.c/nestedfn-4.c: New test.
3670 * testsuite/libgomp.c/nestedfn-5.c: New test.
3671 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3674 * testsuite/libgomp.fortran/condinc1.f: New test.
3675 * testsuite/libgomp.fortran/condinc2.f: New test.
3676 * testsuite/libgomp.fortran/condinc3.f90: New test.
3677 * testsuite/libgomp.fortran/condinc4.f90: New test.
3678 * testsuite/libgomp.fortran/condinc1.inc: New file.
3680 2006-09-18 Tom Tromey <tromey@redhat.com>
3682 * configure: Rebuilt.
3684 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3687 PR preprocessor/14634
3688 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3690 * configure: Regenerate.
3692 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3694 * testsuite/libgomp.fortran/reduction3.f90: Change
3695 -2147483648 to -huge(i)-1 to avoid overflow.
3696 * testsuite/libgomp.fortran/reduction4.f90: Change
3697 Z'ffffffff' to not(0) to avoid overflow.
3699 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3702 * Makefile.am (libsubincludedir): New.
3703 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3704 * Makefile.in: Regenerate.
3706 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3709 * env.c: Include ctype.h.
3710 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3711 leading and/or trailing whitespace and compare strings case
3714 2006-07-16 Jakub Jelinek <jakub@redhat.com>
3717 * testsuite/libgomp.fortran/pr28390.f: New test.
3719 2006-07-05 Eric Christopher <echristo@apple.com>
3721 * configure.ac: Depend addition of -pthread on host OS.
3722 * configure: Regenerate.
3724 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3726 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3727 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3730 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3734 * configure.ac: If neither --enable-linux-futex nor
3735 --disable-linux-futex is passed, determine the default by checking
3736 for compiling and/or running against NPTL. With --enable-linux-futex,
3737 check if SYS_gettid and SYS_futex are defined.
3738 * configure: Rebuilt.
3740 2006-06-14 Richard Henderson <rth@redhat.com>
3743 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3744 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3746 2006-06-09 Richard Henderson <rth@redhat.com>
3748 * env.c (gomp_nthreads_var): Change to unsigned long.
3749 (gomp_run_sched_chunk): Likewise.
3750 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3751 (initialize_env): Initialize gomp_thread_attr.
3752 * libgomp.h (gomp_nthreads_var): Update decl.
3753 (gomp_run_sched_chunk): Likewise.
3754 (gomp_thread_attr): Declare.
3755 * team.c (gomp_thread_attr): Export.
3756 (initialize_team): Don't initialize it.
3758 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3761 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3762 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3764 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3766 * config/mingw32/time.c: New file.
3767 * configure.tgt: Use it.
3769 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3771 * Makefile.am: Add install-html target. Add install-html to .PHONY
3772 * Makefile.in: Regenerate.
3774 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3777 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3778 * testsuite/libgomp.c/critical-1.c: Likewise.
3779 * testsuite/libgomp.c/loop-1.c: Likewise.
3780 * testsuite/libgomp.c/loop-2.c: Likewise.
3781 * testsuite/libgomp.c/single-1.c: Likewise.
3782 * testsuite/libgomp.c/ordered-1.c: Likewise.
3783 * testsuite/libgomp.c/ordered-2.c: Likewise.
3785 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3788 * libgomp.fortran/pr27416-1.f90: New test.
3790 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3793 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3794 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3796 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3799 * testsuite/libgomp.c/pr26943-1.c: New test.
3800 * testsuite/libgomp.c/pr26943-2.c: New test.
3801 * testsuite/libgomp.c/pr26943-3.c: New test.
3802 * testsuite/libgomp.c/pr26943-4.c: New test.
3803 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3804 * testsuite/libgomp.c++/pr26943.C: New test.
3806 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3809 * testsuite/libgomp.c++/pr27337.C: New test.
3811 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3814 * testsuite/libgomp.c/pr26171.c: New test.
3816 2006-04-25 Richard Henderson <rth@redhat.com>
3819 * configure.ac: Use GCC_CHECK_TLS.
3820 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3821 * Makefile.in, aclocal.m4, configure: Regenerate.
3823 2006-04-10 Matthias Klose <doko@debian.org>
3825 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3826 directory names containing underscores.
3828 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3831 * testsuite/libgomp.c++/pr26691.C: New test.
3833 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3835 * testsuite/libgomp.fortran/retval2.f90: New test.
3837 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3839 * testsuite/libgomp.c++: New directory.
3841 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3843 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3844 * config/posix/sem.c: Implement the above.
3846 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3848 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3849 define HAVE_BROKEN_POSIX_SEMAPHORES.
3850 * configure: Rebuilt.
3851 * config.h.in: Rebuilt.
3853 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3856 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3857 for the other pthread check.
3858 * configure: Regenerate.
3859 * config.h.in: Regenerate.
3861 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3865 * Makefile.am (fincludedir): New variable.
3866 (nodist_include_HEADERS): Remove Fortran files.
3867 (nodist_finclude_HEADERS): New variable.
3868 * Makefile.in: Regenerated.
3870 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3872 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3873 Remove tests for returning assumed character length arrays.
3875 2006-02-12 Roger Sayle <roger@eyesopen.com>
3876 John David Anglin <dave@hiauly1.hia.nrc.ca>
3879 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3881 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3883 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3885 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3887 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3888 part of LD_LIBRARY_PATH manually.
3890 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3893 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3896 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3899 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3900 * configure.ac (PERL): Don't set.
3901 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3902 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3903 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3904 * omp.h.in: Wrap the new configure substitutions with @ characters.
3905 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3906 * aclocal.m4, configure, Makefile.in: Regenerate.
3907 * mkomp_h.pl: Delete.
3909 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3912 * configure.ac: Use GCC_HEADER_STDINT.
3913 * libgomp.h: Include gstdint.h.
3914 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3915 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3917 2006-01-24 Richard Henderson <rth@redhat.com>
3920 * configure.ac: Add AM_MAINTAINER_MODE.
3921 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3923 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3925 * Makefile.in: Regenerate.
3926 * testsuite/Makefile.in: Regenerate.
3927 * aclocal.m4: Regenerate.
3929 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3931 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3933 * configure.ac: Add check for loadavg.h.
3934 (link_gomp): Adjust comment.
3935 * configure: Regenerate.
3936 * config.h.in: Regenerate.
3938 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3941 * configure.ac: Remove check for alloca.h.
3942 * configure: Regenerate.
3943 * config.h.in: Regenerate.
3944 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3945 * team.c: Remove use of alloca.h.
3946 Call gomp_alloca instead of alloca.
3948 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3951 * team.c: Add include of alloca.h.
3952 * configure.ac: Add check for alloca.h.
3953 * configure: Regenerate.
3954 * config.h.in: Regenerate.
3956 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3959 * testsuite/libgomp.fortran/pr25219.f90: New test.
3961 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3963 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3964 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3965 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3966 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3967 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3968 testsuite/libgomp.fortran/threadprivate1.f90,
3969 testsuite/libgomp.fortran/threadprivate2.f90,
3970 testsuite/libgomp.fortran/threadprivate3.f90,
3971 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3972 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3973 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3974 effective-target to TLS runtime.
3976 * testsuite/libgomp.fortran/pr25162.f: Require
3977 effective-target TLS runtime.
3979 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3981 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3982 * testsuite/libgomp.c/nestedfn-3.c: New test.
3984 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3987 * testsuite/libgomp.fortran/pr25162.f: New test.
3989 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3991 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3992 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3994 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3996 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3997 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3998 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3999 single.c, team.c, work.c, config/linux/alpha/futex.h,
4000 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4001 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4002 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4003 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4004 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4005 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4006 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4009 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4011 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4012 to nodist_noinst_HEADERS.
4013 * Makefile.in: Rebuilt.
4015 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4016 add integer count field.
4017 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4018 omp_nest_lock_t type change.
4019 (omp_init_nest_lock): Likewise. Initialize count to 0.
4020 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4022 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4024 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4025 Increment count if successful and return the new nesting level.
4026 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4027 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4028 * testsuite/libgomp.c/lib-1.c: New test.
4029 * testsuite/libgomp.fortran/lib1.f90: New test.
4030 * testsuite/libgomp.fortran/lib2.f: New test.
4031 * testsuite/libgomp.fortran/lib3.f: New test.
4033 2005-11-17 Richard Henderson <rth@redhat.com>
4036 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4037 * configure.ac (link_gomp): New. Substitute it.
4038 (AC_CONFIG_FILES): Add libgomp.spec.
4039 * libgomp.spec.in: New file.
4040 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4041 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4043 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4045 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4046 reduction(-:var) behaving the same as reduction(+:var).
4047 * testsuite/libgomp.c/reduction-4.c: New test.
4049 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4051 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4052 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4053 testsuite/libgomp.c/copyin-3.c,
4054 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4055 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4056 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4057 testsuite/libgomp.c++/pr24455.C,
4058 testsuite/libgomp.fortran/threadprivate1.f90,
4059 testsuite/libgomp.fortran/threadprivate2.f90,
4060 testsuite/libgomp.fortran/threadprivate3.f90,
4061 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4062 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4063 testsuite/libgomp.fortran/omp_parse3.f90: Require
4064 effective-target TLS.
4066 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4070 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4073 * team.c (initialize_team): Pass NULL rather than free as
4074 pthread_key_create destructor. Initialize thread specific data
4075 pointer in initial thread to a static local variable rather than
4078 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4080 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4081 its location to ld_library_path.
4083 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4085 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4087 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4089 * testsuite/libgomp.c: Rename from libgomp.dg.
4091 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4093 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4094 threadprivate variable 'i'.
4096 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4098 * config/linux/s390/futex.h: New file.
4099 * configure.tgt: Use it.
4101 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4102 before the parallel.
4104 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4107 * testsuite/libgomp.c++/master-1.C: New test.
4109 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4111 * testsuite/libgomp.dg/copyin-3.c: New test.
4113 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4115 * testsuite/libgomp.fortran/retval1.f90: New test.
4116 * testsuite/libgomp.fortran/vla7.f90: New test.
4118 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4120 * testsuite/libgomp.fortran/vla2.f90: New test.
4121 * testsuite/libgomp.fortran/vla3.f90: New test.
4122 * testsuite/libgomp.fortran/vla4.f90: New test.
4123 * testsuite/libgomp.fortran/vla5.f90: New test.
4124 * testsuite/libgomp.fortran/vla6.f90: New test.
4126 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4128 * config/linux/sparc/futex.h: New file.
4129 * configure.tgt: Use it.
4130 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4132 * critical.c: Include stdlib.h.
4133 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4134 ignoring return value.
4135 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4136 LIBGOMP_CHECK_SYNC_BUILTINS check.
4137 * configure: Rebuilt.
4139 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4141 * testsuite/libgomp.fortran/vla1.f90: New test.
4143 2005-10-31 Richard Henderson <rth@redhat.com>
4145 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4146 setting 's' in different threads.
4148 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4150 * libgomp.h (attribute_hidden, ialias): Define.
4151 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4152 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4153 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4154 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4155 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4156 omp_test_lock, omp_test_nest_lock): Likewise.
4157 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4158 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4159 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4160 omp_test_lock, omp_test_nest_lock): Likewise.
4161 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4162 omp_get_dynamic, omp_get_nested): Likewise.
4163 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4164 omp_get_thread_num, omp_in_parallel): Likewise.
4165 * fortran.c (ialias_redirect): Define.
4166 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4167 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4168 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4169 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4170 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4171 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4172 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4173 omp_get_wtime): Add ialias_redirect.
4175 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4177 * fortran.c: Include stdlib.h.
4179 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4181 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4182 * Makefile.in: Regenerated.
4184 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4186 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4187 * libgomp_f.h.in (omp_check_defines): New function.
4188 * env.c: Include libgomp_f.h.
4189 (initialize_env): Call omp_check_defines.
4191 * testsuite/libgomp.dg/copyin-2.c: New test.
4192 * testsuite/libgomp.c++/copyin-2.C: New test.
4193 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4195 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4196 * testsuite/libgomp.fortran/sharing2.f90: New test.
4198 * testsuite/libgomp.dg/copyin-1.c: New test.
4199 * testsuite/libgomp.c++/copyin-1.C: New test.
4201 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4203 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4205 * testsuite/libgomp.fortran/workshare1.f90: New test.
4207 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4209 * libgomp.fortran/sharing1.f90: New test.
4211 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4214 * testsuite/libgomp.c++/loop-7.C: New test.
4216 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4218 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4219 * testsuite/libgomp.fortran/reduction6.f90: New test.
4220 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4222 2005-10-23 Richard Henderson <rth@redhat.com>
4224 * testsuite/libgomp.c++/ctor-1.C: New.
4225 * testsuite/libgomp.c++/ctor-2.C: New.
4226 * testsuite/libgomp.c++/ctor-3.C: New.
4227 * testsuite/libgomp.c++/ctor-4.C: New.
4228 * testsuite/libgomp.c++/ctor-5.C: New.
4229 * testsuite/libgomp.c++/ctor-6.C: New.
4230 * testsuite/libgomp.c++/ctor-7.C: New.
4231 * testsuite/libgomp.c++/ctor-8.C: New.
4232 * testsuite/libgomp.c++/ctor-9.C: New.
4234 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4237 * testsuite/libgomp.c++/pr24455-1.C: New test.
4238 * testsuite/libgomp.c++/pr24455.C: New test.
4239 * testsuite/libgomp.dg/pr24455-1.c: New test.
4240 * testsuite/libgomp.dg/pr24455.c: New test.
4242 2005-10-20 Richard Henderson <rth@redhat.com>
4244 * testsuite/libgomp.c++/loop-6.C: New.
4245 * testsuite/libgomp.dg/loop-3.c: New.
4247 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4249 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4251 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4254 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4256 * testsuite/libgomp.fortran/jacobi.f: New test.
4258 2005-10-19 Richard Henderson <rth@redhat.com>
4260 * configure.tgt (i?86-linux): Default to with_arch instead of
4261 CFLAGS. Add -mtune to match target_cpu.
4262 (x86_64-linux): Tune to i686.
4264 * fortran.c (omp_test_nest_lock_): Fix typo.
4266 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4268 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4269 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4270 * testsuite/libgomp.dg/ordered-3.c: New test.
4272 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4273 Remove volatile keyword.
4275 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4276 in COMMON block to avoid warnings on 64-bit targets.
4278 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4280 * testsuite/libgomp.dg/shared-3.c: New test.
4282 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4284 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4285 * testsuite/libgomp.fortran/reduction5.f90: New test.
4287 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4289 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4291 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4292 flush loop now that __sync_synchronize has proper memory barrier.
4293 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4294 Add -ffixed-form to dg-options.
4296 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4298 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4299 from subdirectories.
4300 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4301 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4302 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4303 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4304 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4305 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4306 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4307 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4308 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4309 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4310 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4311 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4312 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4313 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4314 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4315 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4316 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4317 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4318 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4319 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4320 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4321 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4322 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4323 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4324 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4326 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4328 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4329 lang_library_path exists. Use find instead of glob to gather tests.
4330 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4332 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4334 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4335 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4336 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4337 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4338 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4339 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4340 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4341 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4342 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4343 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4344 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4345 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4346 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4348 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4350 * testsuite/libgomp.dg/vla-1.c: New test.
4352 * testsuite/libgomp.fortran/reference2.f90: New test.
4354 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4355 declaration of omp_get_thread_num.
4356 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4359 * testsuite/libgomp.fortran/reduction1.f90: New test.
4360 * testsuite/libgomp.fortran/reduction2.f90: New test.
4361 * testsuite/libgomp.fortran/reduction3.f90: New test.
4362 * testsuite/libgomp.fortran/reduction4.f90: New test.
4364 2005-10-13 Richard Henderson <rth@redhat.com>
4366 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4367 * Makefile.in: Regenerate.
4368 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4369 * libgomp.h: Include bar.h.
4370 (struct gomp_barrier): Remove.
4371 (struct gomp_team): Add barrier. Replace master_barrier with
4372 master_release. Replace threads with ordered_release.
4373 (struct gomp_thread): Replace barrier with release.
4374 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4375 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4376 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4377 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4378 (GOMP_single_copy_end): Likewise.
4379 * team.c (gomp_threads_dock): New.
4380 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4381 (gomp_thread_start): Use gomp_barrier_wait.
4382 (new_team, free_team): Update for gomp_team changes.
4383 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4384 (gomp_team_end): Use gomp_barrier_wait.
4385 (initialize_team): Update for gomp_thread changes.
4386 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4387 (gomp_work_share_end_nowait): Use atomic ops when available.
4388 * config/linux/bar.c, config/linux/bar.h: New files.
4389 * config/posix/bar.c, config/posix/bar.h: New files.
4391 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4393 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4394 * testsuite/libgomp.dg/single-2.c: New test.
4396 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4397 lang_link_flags): Unset, so that they aren't inherited from previously
4400 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4402 2005-10-12 Richard Henderson <rth@redhat.com>
4404 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4405 (libgomp_init): Use lang_test_file, lang_library_path, and
4406 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4408 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4409 (lang_test_file, lang_link_flags): New.
4410 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4412 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4413 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4414 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4415 testsuite/libgomp.c++/parallel-1.C,
4416 testsuite/libgomp.c++/reduction-1.C,
4417 testsuite/libgomp.c++/reduction-2.C,
4418 testsuite/libgomp.c++/reduction-3.C,
4419 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4420 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4421 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4422 New files, largely cribbed from the C testsuite.
4424 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4426 * testsuite/libgomp.fortran/character1.f90: New test.
4427 * testsuite/libgomp.fortran/character2.f90: New test.
4429 * testsuite/libgomp.dg/nested-1.c: New test.
4430 * testsuite/libgomp.dg/nested-2.c: New test.
4431 * testsuite/libgomp.fortran/do1.f90: New test.
4432 * testsuite/libgomp.fortran/do2.f90: New test.
4434 * testsuite/libgomp.fortran/reference1.f90: New test.
4436 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4438 * testsuite/libgomp.dg/reduction-1.c: New test.
4439 * testsuite/libgomp.dg/reduction-2.c: New test.
4440 * testsuite/libgomp.dg/reduction-3.c: New test.
4442 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4444 * testsuite/libgomp.dg/atomic-1.c: New test.
4445 * testsuite/libgomp.dg/atomic-2.c: New test.
4447 2005-10-09 Richard Henderson <rth@redhat.com>
4449 * critical.c (atomic_lock): New.
4450 (initialize_critical): Initialize it.
4451 (GOMP_atomic_start, GOMP_atomic_end): New.
4452 * libgomp.map: Export them.
4453 * libgomp_g.h: Declare them.
4455 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4457 2005-10-02 Richard Henderson <rth@redhat.com>
4459 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4460 to XCFLAGS instead of CFLAGS.
4462 2005-09-30 Richard Henderson <rth@redhat.com>
4464 * configure.ac: Determine whether -pthread or -lpthread is needed.
4465 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4466 * Makefine.in, configure: Rebuild.
4468 2005-09-28 Richard Henderson <rth@redhat.com>
4470 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4471 * testsuite/libgomp.dg/omp-single-3.c: New test.
4473 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4475 * testsuite/libgomp.dg/omp-single-2.c: New test.
4476 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4478 2005-09-27 Richard Henderson <rth@redhat.com>
4480 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4481 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4483 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4485 * testsuite/libgomp.dg/omp-loop03.c: New test.
4487 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4489 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4491 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4493 * testsuite/libgomp.dg/omp-single-1.c: New test.
4494 * testsuite/libgomp.dg/shared-1.c: Return 0.
4495 Add prototype for abort.
4496 * testsuite/libgomp.dg/shared-2.c: Likewise.
4498 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4500 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4503 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4505 * testsuite/libgomp.dg/shared-1.c: New test.
4506 * testsuite/libgomp.dg/shared-2.c: New test.
4508 2005-09-24 Richard Henderson <rth@redhat.com>
4510 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4512 2005-09-24 Richard Henderson <rth@redhat.com>
4514 * iter.c (gomp_iter_static_next): Round up when computing number
4515 of iterations. Don't bother distributing a remainder equally.
4517 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4518 Don't call srand. Zero b before testing.
4521 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4523 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4524 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4526 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4528 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4529 without !$omp end do, followed immediately by subroutine end.
4531 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4533 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4535 2005-09-22 Richard Henderson <rth@redhat.com>
4537 * critical.c (GOMP_critical_name_start): Change argument to void**.
4538 Reuse the pointer space if the mutex fits.
4539 (GOMP_critical_name_end): Likewise.
4540 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4541 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4542 (GOMP_critical_name_end): Likewise.
4543 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4544 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4546 2005-09-20 Richard Henderson <rth@redhat.com>
4548 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4549 (create_lock_lock): New.
4550 (initialize_critical): Initialize it.
4551 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4552 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4554 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4556 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4558 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4560 * testsuite/libgomp.dg/omp-loop01.c: New test.
4561 * testsuite/libgomp.dg/omp-loop02.c: New test.
4563 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4565 * configure.ac (AC_PROG_FC): Add.
4566 (USE_FORTRAN): New automake conditional.
4567 * configure: Rebuilt.
4568 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4569 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4570 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4571 Add rules to build them.
4572 * Makefile.in: Rebuilt.
4573 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4575 * libgomp.map: Add Fortran wrappers.
4576 * libgomp_f.h.in: New file.
4577 * omp_lib.h.in: New file.
4578 * omp_lib.f90.in: New file.
4579 * fortran.c: New file.
4580 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4581 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4582 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4583 libgfortran has been built.
4584 * testsuite/libgomp.fortran/fortran.exp: New file.
4585 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4586 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4587 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4588 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4589 * testsuite/libgomp.fortran/omp_hello.f: New test.
4590 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4591 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4592 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4593 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4594 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4595 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4596 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4597 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4599 2005-08-30 Richard Henderson <rth@redhat.com>
4601 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4602 function for when aliases are not usable.
4603 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4604 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4605 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4606 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4607 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4608 GOMP_loop_ordered_guided_next): Likewise.
4609 * ordered.c (GOMP_ordered_start): Likewise.
4611 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4613 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4614 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4615 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4616 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4617 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4618 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4619 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4620 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4621 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4623 2005-07-07 Eric Christopher <echristo@redhat.com>
4624 Diego Novillo <dnovillo@redhat.com>
4626 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4627 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4629 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4630 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4631 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4632 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4633 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4634 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4635 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4637 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4639 * TOPLEVEL.patch: Remove.
4641 2005-05-16 Richard Henderson <rth@redhat.com>
4643 * configure.ac: Test for clock_gettime.
4644 * config.h.in, configure: Rebuild.
4645 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4646 (omp_get_wtime): Use clock_gettime if available.
4647 (omp_get_wtick): Use clock_getres if available.
4649 2005-05-11 Richard Henderson <rth@redhat.com>
4651 * config/linux/ia64/futex.h: New file.
4652 * configure.tgt: Use it.
4654 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4656 2005-05-07 Richard Henderson <rth@redhat.com>
4658 * config/linux/powerpc/futex.h: New file.
4659 * configure.tgt: Use it.
4661 * config/linux/i486/futex.h: Merge ...
4662 * config/linux/x86_64/futex.h: ... into ...
4663 * config/linux/x86/futex.h: ... here.
4664 * configure.tgt: Update to match.
4666 2005-05-06 Richard Henderson <rth@redhat.com>
4668 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4669 * config/linux/i486/futex.h: Likewise.
4670 * config/linux/x86_64/futex.h: Likewise.
4672 * config/linux/lock.c: New file.
4673 * config/linux/omp-lock.h: New file.
4675 * critical.c, env.h: Don't include omp.h
4676 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4677 * config/posix/time.c: Likewise.
4678 * config/posix/omp-lock.h: New file.
4679 * libgomp.h: Include omp-lock.h and omp.h.
4680 * Makefile.am (nodist_include_HEADERS): New.
4682 * configure.ac (PERL): New.
4683 * mkomp_h.pl: New file.
4684 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4686 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4688 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4689 build directory. Re-add -march=i486 hack.
4691 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4692 (libgomp_link_flags): Remove.
4693 (libgomp_initialized): Remove.
4694 (libgomp_init): Don't protect from reinitialization. Copy code
4695 from libstdc++ for getting the multilib set correctly.
4697 2005-05-05 Richard Henderson <rth@redhat.com>
4699 * config/linux/alpha/futex.h: New file.
4700 * configure.tgt (alpha*-*-linux*): Use it.
4702 * config/posix/mutex.c: New file.
4703 * config/posix/sem.c: Use libgomp.h.
4705 * configure.tgt (x86_64-linux): Also test CC for -m32.
4706 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4708 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4711 * Makefile.am (SUBDIRS): New.
4712 (libgomp_la_LDFLAGS): Add -lpthread.
4713 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4714 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4716 * libgomp_g.h: New file.
4717 * libgomp.h: Split out all public declarations to libgomp_g.h.
4718 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4719 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4720 * config/linux/sem.h: Likewise.
4721 * config/posix/sem.h: Likewise.
4723 * Makefile.am (AM_LDFLAGS): New.
4724 (libgomp_version_script): Split out from ...
4725 (libgomp_la_LDFLAGS): ... here.
4726 (libgomp_version_info): New.
4727 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4728 (LIBGOMP_ENABLE): New.
4729 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4730 (LIBGOMP_ENABLE_SYMVERS): New.
4731 * configure.ac (AC_INIT): Version 1.0.
4732 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4733 (enable-linux-futex): Likewise. Rename from enable-futex.
4734 (libtool_VERSION): New.
4735 (LIBGOMP_ENABLE_SYMVERS): Use it.
4736 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4737 * Makefile.in, aclocal.m4, configure: Rebuild.
4739 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4740 (gomp_mutex_unlock_slow): Fix typo.
4741 * config/linux/sem.c: Similarly.
4742 (gomp_sem_post_slow): Fix typo.
4743 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4744 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4745 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4747 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4748 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4749 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4750 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4751 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4752 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4753 LDFLAGS. Pull enable_futex check to top-level.
4754 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4755 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4757 First attempt at real configury.
4758 * Makefile, config.h: Remove file.
4759 * Makefile.am, Makefile.in: New file.
4760 * acinclude.m4 aclocal.m4: New file.
4761 * configure.ac, configure.tgt, configure: New file.
4763 * config/posix/lock.c: Rename from sys-lock.c.
4764 * config/posix/mutex.h: Rename from sys-mutex.h.
4765 * config/posix/sem.c: Rename from sys-sem.c.
4766 * config/posix/sem.h: Rename from sys-sem.h.
4767 * config/posix/proc.c: Rename from sys-proc.c.
4768 * config/posix/time.c: Rename from sys-proc.c.
4770 * config/linux/mutex.c: New file.
4771 * config/linux/mutex.h: New file.
4772 * config/linux/sem.c: New file.
4773 * config/linux/sem.h: New file.
4774 * config/linux/i486/futex.h: New file.
4775 * config/linux/x86_64/futex.h: New file.
4777 2005-05-04 Richard Henderson <rth@redhat.com>
4779 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4780 * libgomp.h: Declare them.
4781 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4782 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4784 2005-05-04 Richard Henderson <rth@redhat.com>
4786 * libgomp-1 code drop
4788 2005-05-04 Richard Henderson <rth@redhat.com>
4790 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4791 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4792 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4793 (gomp_iter_static_next): Update.
4794 (gomp_ordered_static_next): Update.
4795 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4796 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4797 totally empty range.
4798 (gomp_loop_ordered_static_next): Refine test for calling
4799 gomp_ordered_static_next.
4800 * testsuite/ordered-1.c: Add case for more threads than iterations.
4802 * iter.c (gomp_iter_runtime_next_locked): Remove.
4803 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4804 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4805 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4806 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4807 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4808 gomp_loop_ordered_guided_next): Downcase name, make static, add
4809 an external alias with the old name.
4810 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4811 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4812 switch and call one of the above static functions.
4813 * libgomp.h: Update.
4815 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4816 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4817 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4818 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4819 GOMP_loop_ordered_guided_start): Update to match.
4820 * sections.c (GOMP_sections_start): Likewise.
4821 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4823 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4824 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4825 Use bounds check instead of modulus.
4826 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4827 (gomp_ordered_last): Don't sync with ordered_owner here.
4828 (gomp_ordered_next): Likewise.
4829 (gomp_ordered_static_loop_next): Likewise.
4830 * loop.c, libgomp.h: Update to match.
4832 * libgomp.h (GOMP_barrier): Declare.
4834 * testsuite/barrier-1.c: New file.
4835 * testsuite/critical-1.c: New file.
4836 * testsuite/ordered-2.c: New file.
4837 * testsuite/ordered-1.c: New file.
4838 * testsuite/sections-1.c: New file.
4839 * testsuite/single-1.c: New file.
4840 * testsuite/Makefile (TESTS): Add them.
4842 2005-05-04 Richard Henderson <rth@redhat.com>
4844 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4845 * loop.c (GOMP_loop_static_start): If not the startup thread,
4846 acquire the mutex to wait for initialization complete.
4847 (GOMP_loop_ordered_static_start): Likewise.
4848 (GOMP_loop_ordered_runtime_start): Likewise.
4849 (GOMP_loop_ordered_static_first): Remove.
4850 (GOMP_loop_ordered_dynamic_first): Remove.
4851 (GOMP_loop_ordered_guided_first): Remove.
4852 (GOMP_loop_ordered_runtime_first): Remove.
4853 * ordered.c (gomp_ordered_loop_first): Post to own release when
4854 we're the first thread.
4855 (gomp_ordered_loop_last): Wait on release if not owner.
4856 (gomp_ordered_loop_next): Likewise.
4857 (gomp_ordered_static_loop_init): New.
4858 (gomp_ordered_static_loop_next): Use ordered_owner.
4859 (GOMP_ordered_start): Likewise.
4860 * work.c (gomp_new_work_share): Initialize ordered_owner.
4862 2005-05-03 Richard Henderson <rth@redhat.com>
4864 * Makefile (OPT): New.
4867 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4868 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4869 * libgomp.h, libgomp.map, NOTES: Update to match.
4871 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4872 Add initialized and thr members.
4873 (gomp_thread_start): Pause when initially spawned to wait for
4874 the whole team to be created.
4875 (gomp_team_start): Release team members at the end.
4877 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4878 (f_foo_1): Use GOMP_loop_end.
4879 (f_foo_2): Use GOMP_loop_end_nowait.
4881 * testsuite/loop-2.c: New file.
4882 * testsuite/Makefile (TESTS): Add it.
4884 2005-05-03 Richard Henderson <rth@redhat.com>
4886 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4887 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4888 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4891 * testsuite/Makefile: New file.
4892 * testsuite/loop-1.c: New file.
4894 2005-05-03 Richard Henderson <rth@redhat.com>
4896 Initial implementation and checkin.