1 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
4 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
5 formal parameter. Update all users.
6 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7 Document unused formal parameter.
9 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
11 * oacc-parallel.c: Don't include <alloca.h>.
12 (GOACC_parallel): Use gomp_alloca instead of alloca.
14 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
18 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
19 James Norris <jnorris@codesourcery.com>
20 Tom de Vries <tom@codesourcery.com>
21 Julian Brown <julian@codesourcery.com>
22 Cesar Philippidis <cesar@codesourcery.com>
23 Nathan Sidwell <nathan@codesourcery.com>
24 Tobias Burnus <burnus@net-b.de>
26 * Makefile.am (search_path): Add $(top_srcdir)/../include.
27 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
28 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
29 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
30 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
31 Include $(top_srcdir)/plugin/Makefrag.am.
32 (nodist_libsubinclude_HEADERS): Add openacc.h.
33 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
34 openacc.f90, openacc.mod, openacc_kinds.mod.
35 (omp_lib.mod): Generalize into...
36 (%.mod): ... this new rule.
37 (openacc_kinds.mod, openacc.mod): New rules.
38 * plugin/configfrag.ac: New file.
39 * configure.ac: Move plugin/offloading support into it. Include
40 it. Instantiate testsuite/libgomp-test-support.pt.exp.
41 * plugin/Makefrag.am: New file.
42 * testsuite/Makefile.am (OFFLOAD_TARGETS)
43 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
45 (libgomp-test-support.exp): New rule.
46 (all-local): Depend on it.
47 * Makefile.in: Regenerate.
48 * testsuite/Makefile.in: Regenerate.
49 * config.h.in: Likewise.
50 * configure: Likewise.
51 * configure.tgt: Harden shell syntax.
52 * env.c: Include "oacc-int.h".
53 (parse_acc_device_type): New function.
54 (gomp_debug_var, goacc_device_type, goacc_device_num): New
56 (initialize_env): Initialize those. Call
57 goacc_runtime_initialize.
58 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
59 (gomp_fatal): Call gomp_vfatal.
60 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
61 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
62 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
63 (splay_tree_node, splay_tree, splay_tree_key)
64 (struct target_mem_desc, struct splay_tree_key_s)
65 (struct gomp_memory_mapping, struct acc_dispatch_t)
66 (struct gomp_device_descr, gomp_acc_insert_pointer)
67 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
68 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
69 (gomp_free_memmap, gomp_fini_device): New declarations.
70 (gomp_vdebug, gomp_debug): New macros.
71 Include "splay-tree.h".
72 * libgomp.map (OACC_2.0): New symbol version. Use for
73 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
74 acc_set_device_type_h_, acc_get_device_type,
75 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
76 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
77 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
78 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
79 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
80 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
81 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
82 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
83 acc_copyin_array_h_, acc_present_or_copyin,
84 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
85 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
86 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
87 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
88 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
89 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
90 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
91 acc_update_device, acc_update_device_32_h_,
92 acc_update_device_64_h_, acc_update_device_array_h_,
93 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
94 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
95 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
96 acc_is_present_64_h_, acc_is_present_array_h_,
97 acc_memcpy_to_device, acc_memcpy_from_device,
98 acc_get_current_cuda_device, acc_get_current_cuda_context,
99 acc_get_cuda_stream, acc_set_cuda_stream.
100 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
101 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
102 GOACC_update, GOACC_wait, GOACC_get_thread_num,
103 GOACC_get_num_threads.
104 (GOMP_PLUGIN_1.0): New symbol version. Use for
105 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
106 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
107 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
108 GOMP_PLUGIN_acc_thread.
109 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
110 environment variable.
111 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
112 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
113 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
114 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
115 (splay_tree_remove): New declarations.
116 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
117 (splay_tree_remove, splay_tree_lookup): Move into...
118 * splay-tree.c: ... this new file.
119 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
120 (splay_tree_node, splay_tree, splay_tree_key)
121 (struct target_mem_desc, struct splay_tree_key_s)
122 (struct gomp_device_descr): Don't declare.
123 (num_devices_openmp): New variable.
124 (gomp_get_num_devices ): Use it.
125 (gomp_init_targets_once): New function.
126 (gomp_get_num_devices ): Use it.
127 (get_kind, gomp_copy_from_async, gomp_free_memmap)
128 (gomp_fini_device, gomp_register_image_for_device): New functions.
129 (gomp_map_vars): Add devaddrs parameter.
130 (gomp_update): Add mm parameter.
131 (gomp_init_device): Move most of it into...
132 (gomp_init_tables): ... this new function.
133 (gomp_register_images_for_device): Remove function.
134 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
135 Make them hidden instead of static.
136 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
137 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
138 (GOMP_target_end_data, GOMP_target_update)
139 (gomp_load_plugin_for_device, gomp_target_init): Update for
141 * oacc-async.c: New file.
142 * oacc-cuda.c: Likewise.
143 * oacc-host.c: Likewise.
144 * oacc-init.c: Likewise.
145 * oacc-int.h: Likewise.
146 * oacc-mem.c: Likewise.
147 * oacc-parallel.c: Likewise.
148 * oacc-plugin.c: Likewise.
149 * oacc-plugin.h: Likewise.
150 * oacc-ptx.h: Likewise.
151 * openacc.f90: Likewise.
152 * openacc.h: Likewise.
153 * openacc_lib.h: Likewise.
154 * plugin/plugin-host.c: Likewise.
155 * plugin/plugin-nvptx.c: Likewise.
156 * libgomp-plugin.c: Likewise.
157 * libgomp-plugin.h: Likewise.
158 * libgomp_target.h: Remove file after merging content into the
159 former file. Update all users.
160 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
161 (offload_targets_s, offload_targets_s_openacc): New variables.
162 (check_effective_target_openacc_nvidia_accel_present)
163 (check_effective_target_openacc_nvidia_accel_selected): New
165 (libgomp_init): Update for OpenACC changes.
166 * testsuite/libgomp-test-support.exp.in: New file.
167 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
168 * testsuite/libgomp.oacc-c/c.exp: Likewise.
169 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
176 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
177 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
178 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
179 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
181 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
182 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
183 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
185 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
187 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
188 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
189 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
191 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
193 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
194 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
195 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
196 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
197 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
201 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
203 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
205 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
207 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
208 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
209 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
210 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
211 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
212 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
213 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
214 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
225 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
229 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
242 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
243 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
244 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
245 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
246 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
247 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
251 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
253 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
256 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
285 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
287 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
289 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
293 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
294 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
295 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
296 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
298 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
300 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
301 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
302 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
303 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
304 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
305 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
306 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
308 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
310 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
312 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
313 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
314 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
315 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
316 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
317 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
318 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
319 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
320 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
321 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
322 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
323 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
324 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
325 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
326 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
327 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
328 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
329 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
330 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
331 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
332 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
333 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
334 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
335 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
336 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
337 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
338 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
339 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
340 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
341 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
342 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
343 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
344 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
345 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
346 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
347 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
348 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
349 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
350 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
351 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
352 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
353 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
354 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
355 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
356 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
357 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
358 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
359 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
360 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
361 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
362 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
363 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
364 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
365 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
366 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
367 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
369 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
370 Julian Brown <julian@codesourcery.com>
371 David Malcolm <dmalcolm@redhat.com>
373 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
374 to "GNU Offloading and Multi Processing Runtime Library". Change
376 * configure: Regenerate.
377 * libgomp.texi: Update.
379 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
381 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
383 * configure: Regenerate.
385 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
386 "intelmic" in $offload_targets.
388 2015-01-05 Jakub Jelinek <jakub@redhat.com>
390 Update copyright years.
392 * libgomp.texi: Bump @copying's copyright year.
394 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
396 * testsuite/lib/libgomp.exp: Load target-utils.exp.
397 Move load of target-supportes.exp earlier.
399 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
401 * testsuite/libgomp.c/target-9.c: New test.
403 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
405 * config.h.in: Regenerate.
406 * configure: Regenerate.
407 * configure.ac: Add GCC_CHECK_EMUTLS.
408 * libgomp.h: Add check for USE_EMUTLS: this case
409 is equal to HAVE_TLS.
412 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
414 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
416 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
417 Ilya Verbin <ilya.verbin@intel.com>
419 * testsuite/libgomp.c/target-critical-1.c: New test.
421 2014-11-26 Jakub Jelinek <jakub@redhat.com>
423 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
424 to dg-options unless expensive testing is on.
425 (TESTITERS): Define to N if not defined.
426 (main): Use TESTITERS instead of N.
427 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
428 dg-additional-options depending on whether expensive testing is on.
429 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
430 Decrease N to 100000 and CHUNKSZ to 10000.
432 2014-11-24 Jakub Jelinek <jakub@redhat.com>
435 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
436 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
438 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
440 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
442 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
445 * configure: Regenerated.
447 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
449 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
450 vect_simd_clones effective target.
451 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
453 2014-11-14 Jakub Jelinek <jakub@redhat.com>
455 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
457 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
458 instead of 32 as block_size.
460 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
461 Ilya Verbin <ilya.verbin@intel.com>
463 * Makefile.in: Regenerate.
464 * configure: Regenerate.
465 * configure.ac: Set up offload_additional_options,
466 offload_additional_lib_paths and offload_targets.
467 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
468 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
469 * testsuite/Makefile.in: Regenerate.
470 * testsuite/lib/libgomp.exp (libgomp_init): Append
471 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
472 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
473 build directory to LD_LIBRARY_PATH for intelmic offload targets.
475 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
476 Ilya Verbin <ilya.verbin@intel.com>
477 Kirill Yukhin <kirill.yukhin@intel.com>
478 Ilya Tocar <ilya.tocar@intel.com>
480 * testsuite/lib/libgomp.exp
481 (check_effective_target_offload_device): New.
482 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
483 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
484 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
485 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
486 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
487 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
488 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
489 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
490 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
491 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
492 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
493 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
494 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
495 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
496 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
497 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
498 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
499 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
500 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
501 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
502 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
503 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
504 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
505 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
506 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
507 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
508 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
509 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
510 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
511 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
512 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
513 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
514 * testsuite/libgomp.c/target-7.c: Fix test.
515 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
516 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
517 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
518 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
519 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
520 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
521 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
522 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
523 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
524 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
525 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
526 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
527 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
528 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
529 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
530 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
531 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
532 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
533 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
534 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
535 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
536 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
537 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
538 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
539 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
540 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
541 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
542 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
543 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
544 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
545 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
547 2014-11-13 Jakub Jelinek <jakub@redhat.com>
548 Ilya Verbin <ilya.verbin@intel.com>
549 Thomas Schwinge <thomas@codesourcery.com>
550 Andrey Turetskiy <andrey.turetskiy@intel.com>
552 * libgomp.map (GOMP_4.0.1): New symbol version.
553 Add GOMP_offload_register.
554 * libgomp_target.h: New file.
555 * splay-tree.h: New file.
556 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
557 (gomp_target_init): New forward declaration.
558 (gomp_is_initialized): New static variable.
559 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
560 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
562 (offload_images, num_offload_images, devices, num_devices): New static
564 (splay_compare): New static function.
565 (struct gomp_device_descr): New structure.
566 (gomp_get_num_devices): Call gomp_target_init.
567 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
568 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
569 (GOMP_offload_register): New function.
570 (GOMP_target): Arrange for host callback to be performed in a separate
571 initial thread and contention group, inheriting ICVs from
572 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
573 Add device initialization and lookup for target function in splay tree.
574 (GOMP_target_data): Add device initialization and call gomp_map_vars.
575 (GOMP_target_end_data): Call gomp_unmap_vars.
576 (GOMP_target_update): Add device initialization and call gomp_update.
577 (gomp_load_plugin_for_device, gomp_register_images_for_device)
578 (gomp_target_init): New static functions.
580 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
581 Thomas Schwinge <thomas@codesourcery.com>
582 Ilya Verbin <ilya.verbin@intel.com>
583 Andrey Turetskiy <andrey.turetskiy@intel.com>
585 * config.h.in: Regenerate.
586 * configure: Regenerate.
587 * configure.ac: Check for libdl, required for plugin support.
588 (PLUGIN_SUPPORT): Define if plugins are supported.
589 (enable_offload_targets): Support Intel MIC targets.
590 (OFFLOAD_TARGETS): List of target names suitable for offloading.
592 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
595 * configure: Regenerate.
597 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
599 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
601 2014-10-06 Marek Polacek <polacek@redhat.com>
603 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
604 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
605 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
606 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
608 2014-10-06 Marek Polacek <polacek@redhat.com>
610 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
611 * testsuite/libgomp.c/nqueens-1.c: Likewise.
612 * testsuite/libgomp.c/pr26943-3.c: Likewise.
613 * testsuite/libgomp.c/pr26943-4.c: Likewise.
614 * testsuite/libgomp.c/pr36802-2.c: Likewise.
615 * testsuite/libgomp.c/pr36802-3.c: Likewise.
616 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
617 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
618 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
619 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
620 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
621 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
622 * testsuite/libgomp.c/omp-single-1.c: Likewise.
623 * testsuite/libgomp.c/omp-single-2.c: Likewise.
624 * testsuite/libgomp.c/omp_matvec.c: Likewise.
625 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
626 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
627 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
630 2014-10-03 Jakub Jelinek <jakub@redhat.com>
633 * testsuite/libgomp.c/pr61200.c: New test.
635 2014-09-18 Jakub Jelinek <jakub@redhat.com>
638 * testsuite/libgomp.c++/pr63248.C: New test.
640 2014-08-04 Jakub Jelinek <jakub@redhat.com>
642 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
643 is not zero, but taskgroup->children is NULL and there are
644 any task->children, schedule those instead of waiting.
645 * testsuite/libgomp.c/depend-6.c: New test.
646 * testsuite/libgomp.c/depend-7.c: New test.
647 * testsuite/libgomp.c/depend-8.c: New test.
648 * testsuite/libgomp.c/depend-9.c: New test.
649 * testsuite/libgomp.c/depend-10.c: New test.
651 2014-08-01 Jakub Jelinek <jakub@redhat.com>
653 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
654 (struct gomp_taskwait): New type.
655 (struct gomp_task): Add taskwait and parent_depends_on, remove
656 in_taskwait and taskwait_sem fields.
657 (gomp_finish_task): Don't destroy taskwait_sem.
658 * task.c (gomp_init_task): Don't init in_taskwait, instead init
659 taskwait and parent_depends_on.
660 (GOMP_task): For if (0) tasks with depend clause that depend on
661 earlier tasks don't defer them, instead call
662 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
663 Initialize redundant_out field, for redundant out entries just
664 move them at the end of linked list instead of removing them
665 completely, and set redundant_out flag instead of redundant.
666 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
668 (gomp_task_run_post_handle_dependers): If parent is in
669 gomp_task_maybe_wait_for_dependencies and newly runnable task
670 is not parent_depends_on, queue it in parent->children linked
671 list after all runnable tasks with parent_depends_on set.
672 Adjust for addition of taskwait indirection.
673 (gomp_task_run_post_remove_parent): If parent is in
674 gomp_task_maybe_wait_for_dependencies and task to be removed
675 is parent_depends_on, decrement n_depend and if needed awake
676 parent. Adjust for addition of taskwait indirection.
677 (GOMP_taskwait): Adjust for addition of taskwait indirection.
678 (gomp_task_maybe_wait_for_dependencies): New function.
679 * testsuite/libgomp.c/depend-5.c: New test.
681 2014-07-13 Tobias Burnus <burnus@net-b.de>
683 * testsuite/libgomp.fortran/pr34020.f90: Make compile
684 with TS 18508/Fortran 2015.
686 2014-07-06 Marek Polacek <polacek@redhat.com>
689 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
691 2014-07-03 Jakub Jelinek <jakub@redhat.com>
693 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
694 matches regex $lang_source_re, add $lang_include_flags to options.
695 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
696 * testsuite/libgomp.c++/c++.exp: Likewise.
697 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
698 and lang_include_flags instead of adding -fintrinsic-modules-path= to
700 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
702 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
704 * testsuite/libgomp.fortran/fortran.exp: Explain
705 gfortran-dg-runtest usage.
707 2014-06-25 Jakub Jelinek <jakub@redhat.com>
709 * testsuite/libgomp.fortran/simd5.f90: New test.
710 * testsuite/libgomp.fortran/simd6.f90: New test.
711 * testsuite/libgomp.fortran/simd7.f90: New test.
713 2014-06-24 Jakub Jelinek <jakub@redhat.com>
715 * testsuite/libgomp.c/for-2.c: Define SC to static for
716 #pragma omp for simd testing.
717 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
718 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
720 * testsuite/libgomp.c/simd-14.c: New test.
721 * testsuite/libgomp.c/simd-15.c: New test.
722 * testsuite/libgomp.c/simd-16.c: New test.
723 * testsuite/libgomp.c/simd-17.c: New test.
724 * testsuite/libgomp.c++/for-10.C: Define SC to static for
725 #pragma omp for simd testing.
726 * testsuite/libgomp.c++/simd10.C: New test.
727 * testsuite/libgomp.c++/simd11.C: New test.
728 * testsuite/libgomp.c++/simd12.C: New test.
729 * testsuite/libgomp.c++/simd13.C: New test.
731 * testsuite/libgomp.fortran/aligned1.f03: New test.
732 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
733 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
734 tasks with !$omp parallel !$omp single.
735 * testsuite/libgomp.fortran/target8.f90: New test.
736 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
737 not to use trim in the combiner, instead call elemental function.
738 (fn): New elemental function.
739 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
741 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
743 * testsuite/libgomp.fortran/udr12.f90: New test.
744 * testsuite/libgomp.fortran/udr13.f90: New test.
745 * testsuite/libgomp.fortran/udr14.f90: New test.
746 * testsuite/libgomp.fortran/udr15.f90: New test.
748 2014-06-18 Jakub Jelinek <jakub@redhat.com>
750 * omp_lib.f90.in (openmp_version): Set to 201307.
751 * omp_lib.h.in (openmp_version): Likewise.
752 * testsuite/libgomp.c/target-8.c: New test.
753 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
754 and inbranch clauses.
755 * testsuite/libgomp.fortran/depend-3.f90: New test.
756 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
758 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
759 * testsuite/libgomp.fortran/target1.f90: New test.
760 * testsuite/libgomp.fortran/target2.f90: New test.
761 * testsuite/libgomp.fortran/target3.f90: New test.
762 * testsuite/libgomp.fortran/target4.f90: New test.
763 * testsuite/libgomp.fortran/target5.f90: New test.
764 * testsuite/libgomp.fortran/target6.f90: New test.
765 * testsuite/libgomp.fortran/target7.f90: New test.
767 2014-06-10 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/libgomp.fortran/allocatable9.f90: New test.
771 * testsuite/libgomp.fortran/allocatable10.f90: New test.
772 * testsuite/libgomp.fortran/allocatable11.f90: New test.
773 * testsuite/libgomp.fortran/allocatable12.f90: New test.
774 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
775 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
776 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
777 * testsuite/libgomp.fortran/associate1.f90: New test.
778 * testsuite/libgomp.fortran/associate2.f90: New test.
779 * testsuite/libgomp.fortran/procptr1.f90: New test.
781 2014-06-06 Jakub Jelinek <jakub@redhat.com>
783 * testsuite/libgomp.fortran/simd1.f90: New test.
784 * testsuite/libgomp.fortran/udr1.f90: New test.
785 * testsuite/libgomp.fortran/udr2.f90: New test.
786 * testsuite/libgomp.fortran/udr3.f90: New test.
787 * testsuite/libgomp.fortran/udr4.f90: New test.
788 * testsuite/libgomp.fortran/udr5.f90: New test.
789 * testsuite/libgomp.fortran/udr6.f90: New test.
790 * testsuite/libgomp.fortran/udr7.f90: New test.
791 * testsuite/libgomp.fortran/udr8.f90: New test.
792 * testsuite/libgomp.fortran/udr9.f90: New test.
793 * testsuite/libgomp.fortran/udr10.f90: New test.
794 * testsuite/libgomp.fortran/udr11.f90: New test.
796 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
798 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
799 vect_simd_clones effective target.
800 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
802 2014-05-21 Jakub Jelinek <jakub@redhat.com>
805 * testsuite/libgomp.c++/simd-9.C: New test.
807 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
809 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
810 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
811 texts according to their @menu entry positions.
813 2014-05-11 Jakub Jelinek <jakub@redhat.com>
815 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
816 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
817 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
818 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
819 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
820 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
821 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
822 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
823 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
824 * testsuite/libgomp.fortran/depend-1.f90: New test.
825 * testsuite/libgomp.fortran/depend-2.f90: New test.
826 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
827 * testsuite/libgomp.fortran/simd1.f90: New test.
828 * testsuite/libgomp.fortran/simd2.f90: New test.
829 * testsuite/libgomp.fortran/simd3.f90: New test.
830 * testsuite/libgomp.fortran/simd4.f90: New test.
831 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
833 2014-05-02 Jakub Jelinek <jakub@redhat.com>
835 * testsuite/libgomp.c/simd-10.c: New test.
836 * testsuite/libgomp.c/simd-11.c: New test.
837 * testsuite/libgomp.c/simd-12.c: New test.
838 * testsuite/libgomp.c/simd-13.c: New test.
840 2014-04-24 Jakub Jelinek <jakub@redhat.com>
842 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
843 atomic type clauses in any order and optional comma in between.
844 * testsuite/libgomp.c++/atomic-15.C: Likewise.
845 * testsuite/libgomp.c/atomic-17.c: Likewise.
847 * testsuite/libgomp.c/simd-7.c: New test.
848 * testsuite/libgomp.c/simd-8.c: New test.
849 * testsuite/libgomp.c/simd-9.c: New test.
850 * testsuite/libgomp.c/loop-16.c: New test.
852 2014-04-02 Richard Henderson <rth@redhat.com>
854 * config/linux/futex.h (futex_wait): Get error value from errno.
855 (futex_wake): Likewise.
857 2014-03-25 Jakub Jelinek <jakub@redhat.com>
860 * testsuite/libgomp.c++/udr-11.C: New test.
861 * testsuite/libgomp.c++/udr-12.C: New test.
862 * testsuite/libgomp.c++/udr-13.C: New test.
863 * testsuite/libgomp.c++/udr-14.C: New test.
864 * testsuite/libgomp.c++/udr-15.C: New test.
865 * testsuite/libgomp.c++/udr-16.C: New test.
866 * testsuite/libgomp.c++/udr-17.C: New test.
867 * testsuite/libgomp.c++/udr-18.C: New test.
868 * testsuite/libgomp.c++/udr-19.C: New test.
870 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
872 Update copyright years
874 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
876 * hashtab.h: Use the standard form for the copyright notice.
878 2014-01-02 Tobias Burnus <burnus@net-b.de>
880 * libgomp.texi: Bump @copying's copyright year.
882 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
884 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
885 alloca () with __builtin_alloca ().
886 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
887 * testsuite/libgomp.c/lock-3.c: Likewise.
888 * testsuite/libgomp.c/pr48591.c: Likewise.
890 2013-12-17 Jakub Jelinek <jakub@redhat.com>
893 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
896 2013-12-16 Jakub Jelinek <jakub@redhat.com>
899 * testsuite/libgomp.c/pr58756.c: New test.
901 2013-12-12 Jakub Jelinek <jakub@redhat.com>
904 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
907 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
909 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
911 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
912 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
913 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
914 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
917 * libgomp_g.h: Include <stddef.h> for size_t.
919 * libgomp.spec.in: Update comment about libgomp's dependencies.
920 * configure.ac: Likewise.
921 * configure: Regenerate.
923 2013-10-16 Tobias Burnus <burnus@net-b.de>
925 * libgomp.texi: (Runtime Library Routines): Update references for
926 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
927 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
928 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
929 (Environment Variables): Update references for OpenMP 4.0. Add
930 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
931 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
934 2013-10-14 Jakub Jelinek <jakub@redhat.com>
936 * env.c (parse_bind_var): Initialize value to avoid
937 (false positive) warning.
939 2013-10-12 Jakub Jelinek <jakub@redhat.com>
942 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
944 (gomp_init_num_threads): Move i variable declaration into
945 #ifdef CPU_ALLOC_SIZE block.
946 * config/linux/affinity.c (gomp_affinity_init_level): Test
947 gomp_places_list_len == 0 rather than gomp_places_list == 0
948 when checking for topology reading error.
949 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
950 * env.c (parse_affinity): Add ignore argument, if true, don't populate
951 gomp_places_list, only parse env var and always return false.
952 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
953 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
954 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
955 and either of these variables were parsed correctly into a places
958 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
959 Jakub Jelinek <jakub@redhat.com>
961 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
963 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
964 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
965 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
966 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
967 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
968 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
969 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
970 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
972 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
974 * Makefile.am (omp_lib.mod): Streamline rule.
975 * Makefile.in: Regenerate.
977 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
980 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
981 * testsuite/libgomp.fortran/lib1.f90: Likewise.
982 * testsuite/libgomp.fortran/lib2.f: Likewise.
983 * testsuite/libgomp.fortran/lib3.f: Likewise.
985 * configure.ac: Typo fix.
986 * configure: Regenerate.
988 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
989 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
991 * omp.h.in: Don't touch the user's namespace.
993 2013-10-11 Jakub Jelinek <jakub@redhat.com>
994 Tobias Burnus <burnus@net-b.de>
995 Richard Henderson <rth@redhat.com>
997 * target.c: New file.
998 * Makefile.am (libgomp_la_SOURCES): Add target.c.
999 * Makefile.in: Regenerated.
1000 * libgomp_g.h (GOMP_task): Add depend argument.
1001 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1002 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1003 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1004 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1005 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1006 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1007 GOMP_taskgroup_start, GOMP_taskgroup_end,
1008 GOMP_parallel_sections): New prototypes.
1009 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1010 (omp_is_initial_device_): New function.
1011 (ULP, STR1, STR2, ialias_redirect): Removed.
1012 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1013 omp_set_default_device_8_, omp_get_default_device_,
1014 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1016 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1017 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1018 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1020 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1021 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1022 omp_set_default_device, omp_set_default_device_,
1023 omp_set_default_device_8_, omp_get_default_device,
1024 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1025 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1026 omp_get_team_num_): Export @@OMP_4.0.
1027 * team.c (struct gomp_thread_start_data): Add place field.
1028 (gomp_thread_start): Clear thr->thread_pool and
1029 thr->task before returning. Use gomp_team_barrier_wait_final
1030 instead of gomp_team_barrier_wait. Initialize thr->place.
1031 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1032 team_cancelled and task_queued_count fields.
1033 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1034 before calling pthread_exit.
1035 (gomp_free_thread): No longer static. Use
1036 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1037 (gomp_team_start): Add flags argument. Set
1038 thr->thread_pool->threads_busy to nthreads immediately after creating
1039 new pool. Use gomp_managed_threads_lock instead of
1040 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1041 (gomp_team_end): Use gomp_managed_threads_lock instead of
1042 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1043 of gomp_team_barrier_wait. If team->team_cancelled, call
1044 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1045 rather than thr->ts.work_share.
1046 (initialize_team): Don't call gomp_sem_init here.
1047 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1049 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1050 * env.c (gomp_global_icv): Add default_device_var, target_data and
1051 bind_var initializers.
1052 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1053 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1054 gomp_places_list_len): New variables.
1055 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1056 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1058 (gomp_cancel_var): New global variable.
1059 (parse_int): New function.
1060 (handle_omp_display_env): New function.
1061 (initialize_env): Use it. Initialize default_device_var.
1062 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1063 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1064 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1065 been successfully parsed (and call gomp_init_affinity in that case).
1066 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1067 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1068 omp_get_team_num, omp_is_initial_device): New functions.
1069 * libgomp.h: Include stdlib.h.
1070 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1072 (struct target_mem_desc): Forward declare.
1073 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1074 and thread_limit_var fields.
1075 (gomp_get_num_devices): New prototype.
1076 (gomp_cancel_var): New extern decl.
1077 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1078 team_cancelled and task_queued_count fields. Add comments about
1079 task_{,queued_,running_}count.
1080 (gomp_cancel_kind): New enum.
1081 (gomp_work_share_end_cancel): New prototype.
1082 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1083 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1085 (struct gomp_taskgroup): New type.
1086 (struct gomp_task_depend_entry,
1087 struct gomp_dependers_vec): New types.
1088 (gomp_finish_task): Free depend_hash if non-NULL.
1089 (struct gomp_team_state): Add place_partition_off
1090 and place_partition_len fields.
1091 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1092 gomp_places_list_len): New extern decls.
1093 (struct gomp_thread): Add place field.
1094 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1095 (gomp_init_thread_affinity): Add place argument.
1096 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1097 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1098 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1099 gomp_affinity_init_level, gomp_affinity_print_place): New
1101 (gomp_team_start): Add flags argument.
1102 (gomp_thread_limit_var, gomp_remaining_threads_count,
1103 gomp_remaining_threads_lock): Remove.
1104 (gomp_managed_threads_lock): New variable.
1105 (struct gomp_thread_pool): Add threads_busy field.
1106 (gomp_free_thread): New prototype.
1107 * task.c: Include hashtab.h.
1108 (hash_entry_type): New typedef.
1109 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1110 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1111 copy_ctors_done and taskgroup fields.
1112 (GOMP_task): Add depend argument, handle depend clauses. If
1113 gomp_team_barrier_cancelled or if it's taskgroup has been
1114 cancelled, don't queue or start new tasks. Set copy_ctors_done
1115 field if needed. Initialize taskgroup field. If copy_ctors_done
1116 and already cancelled, don't discard the task. If taskgroup is
1117 non-NULL, enqueue the task into taskgroup queue. Increment
1118 num_children field in taskgroup. Increment task_queued_count.
1119 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1120 gomp_task_run_post_remove_taskgroup): New inline functions.
1121 (gomp_task_run_post_handle_depend_hash,
1122 gomp_task_run_post_handle_dependers,
1123 gomp_task_run_post_handle_depend): New functions.
1124 (GOMP_taskwait): Use them. If more than one new tasks
1125 have been queued, wake other threads if needed.
1126 (gomp_barrier_handle_tasks): Likewise. If
1127 gomp_team_barrier_cancelled, don't start any new tasks, just free
1129 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1131 (omp_proc_bind_kind, omp_proc_bind_false,
1132 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1133 omp_proc_bind_spread): New params.
1134 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1135 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1136 omp_get_team_num, omp_is_initial_device): New interfaces.
1137 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1138 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1139 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1140 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1141 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1142 useless use omp_lib_kinds.
1143 * omp.h.in (omp_proc_bind_t): New typedef.
1144 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1145 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1146 omp_get_team_num, omp_is_initial_device): New prototypes.
1147 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1148 through to gomp_team_start.
1149 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1150 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1151 Adjust gomp_parallel_loop_start callers.
1152 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1153 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1154 GOMP_loop_end_cancel): New functions.
1155 (GOMP_parallel_end): Add ialias_redirect.
1156 * hashtab.h: New file.
1157 * libgomp.texi (Environment Variables): Minor cleanup,
1158 update section refs to OpenMP 4.0rc2.
1159 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1160 environment variables.
1161 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1162 team->work_shares_to_free to thr->ts.work_share before calling
1164 (gomp_work_share_end_cancel): New function.
1165 * config/linux/proc.c: Include errno.h.
1166 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1167 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1168 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1169 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1170 gomp_cpuset_size is sizeof (cpu_set_t).
1171 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1172 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1173 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1174 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1175 contain any logical CPUs.
1176 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1177 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1178 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1179 pthread_getaffinity_np. Check gomp_places_list instead of
1180 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1181 * config/linux/bar.c (gomp_barrier_wait_end,
1182 gomp_barrier_wait_last): Use BAR_* defines.
1183 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1184 from state where needed. Set work_share_cancelled to 0 on last
1186 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1187 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1189 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1190 Add cpusetsize argument.
1191 (gomp_cpuset_size, gomp_cpusetp): Declare.
1192 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1193 (affinity_counter): Remove.
1194 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1195 if CPU_ALLOC_SIZE isn't defined.
1196 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1197 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1198 bind current thread to the first place.
1199 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1200 pthread_setaffinity_np to gomp_places_list[place].
1201 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1202 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1203 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1204 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1205 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1206 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1207 (gomp_barrier_t): Add awaited_final field.
1208 (gomp_barrier_init): Initialize awaited_final field.
1209 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1210 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1212 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1214 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1215 gomp_team_barrier_cancelled): New inline functions.
1216 (gomp_barrier_last_thread,
1217 gomp_team_barrier_set_task_pending,
1218 gomp_team_barrier_clear_task_pending,
1219 gomp_team_barrier_set_waiting_for_tasks,
1220 gomp_team_barrier_waiting_for_tasks,
1221 gomp_team_barrier_done): Use BAR_* defines.
1222 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1223 (gomp_barrier_wait_end): Use BAR_* defines.
1224 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1225 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1227 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1228 gomp_team_barrier_cancel): New functions.
1229 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1231 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1232 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1233 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1234 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1235 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1236 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1237 (gomp_barrier_t): Add cancellable field.
1238 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1239 gomp_team_barrier_cancel): New prototypes.
1240 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1241 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1242 gomp_team_barrier_cancelled): New inline functions.
1243 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1244 gomp_team_barrier_set_task_pending,
1245 gomp_team_barrier_clear_task_pending,
1246 gomp_team_barrier_set_waiting_for_tasks,
1247 gomp_team_barrier_waiting_for_tasks,
1248 gomp_team_barrier_done): Use BAR_* defines.
1249 * barrier.c (GOMP_barrier_cancel): New function.
1250 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1251 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1252 omp_proc_bind_spread): New params.
1253 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1254 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1255 omp_get_team_num, omp_is_initial_device): New externals.
1256 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1258 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1259 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1260 infinity. If not nested, just return minimum of max_num_threads
1261 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1262 to the returned value. Otherwise, don't update atomically
1263 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1264 (GOMP_parallel_end): Adjust for thread_limit now being in
1265 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1266 infinity. Adjust threads_busy in the pool rather than
1267 gomp_remaining_threads_count. Remember team->nthreads and call
1268 gomp_team_end before adjusting threads_busy, if not nested
1269 afterwards, just set it to 1 non-atomically. Add ialias.
1270 (GOMP_parallel_start): Adjust gomp_team_start caller.
1271 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1272 * testsuite/libgomp.c/affinity-1.c: New test.
1273 * testsuite/libgomp.c/atomic-15.c: New test.
1274 * testsuite/libgomp.c/atomic-16.c: New test.
1275 * testsuite/libgomp.c/atomic-17.c: New test.
1276 * testsuite/libgomp.c/cancel-for-1.c: New test.
1277 * testsuite/libgomp.c/cancel-for-2.c: New test.
1278 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1279 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1280 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1281 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1282 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1283 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1284 * testsuite/libgomp.c/depend-1.c: New test.
1285 * testsuite/libgomp.c/depend-2.c: New test.
1286 * testsuite/libgomp.c/depend-3.c: New test.
1287 * testsuite/libgomp.c/depend-4.c: New test.
1288 * testsuite/libgomp.c/for-1.c: New test.
1289 * testsuite/libgomp.c/for-1.h: New file.
1290 * testsuite/libgomp.c/for-2.c: New test.
1291 * testsuite/libgomp.c/for-2.h: New file.
1292 * testsuite/libgomp.c/for-3.c: New test.
1293 * testsuite/libgomp.c/pr58392.c: New test.
1294 * testsuite/libgomp.c/simd-1.c: New test.
1295 * testsuite/libgomp.c/simd-2.c: New test.
1296 * testsuite/libgomp.c/simd-3.c: New test.
1297 * testsuite/libgomp.c/simd-4.c: New test.
1298 * testsuite/libgomp.c/simd-5.c: New test.
1299 * testsuite/libgomp.c/simd-6.c: New test.
1300 * testsuite/libgomp.c/target-1.c: New test.
1301 * testsuite/libgomp.c/target-2.c: New test.
1302 * testsuite/libgomp.c/target-3.c: New test.
1303 * testsuite/libgomp.c/target-4.c: New test.
1304 * testsuite/libgomp.c/target-5.c: New test.
1305 * testsuite/libgomp.c/target-6.c: New test.
1306 * testsuite/libgomp.c/target-7.c: New test.
1307 * testsuite/libgomp.c/taskgroup-1.c: New test.
1308 * testsuite/libgomp.c/thread-limit-1.c: New test.
1309 * testsuite/libgomp.c/thread-limit-2.c: New test.
1310 * testsuite/libgomp.c/thread-limit-3.c: New test.
1311 * testsuite/libgomp.c/udr-1.c: New test.
1312 * testsuite/libgomp.c/udr-2.c: New test.
1313 * testsuite/libgomp.c/udr-3.c: New test.
1314 * testsuite/libgomp.c++/affinity-1.C: New test.
1315 * testsuite/libgomp.c++/atomic-10.C: New test.
1316 * testsuite/libgomp.c++/atomic-11.C: New test.
1317 * testsuite/libgomp.c++/atomic-12.C: New test.
1318 * testsuite/libgomp.c++/atomic-13.C: New test.
1319 * testsuite/libgomp.c++/atomic-14.C: New test.
1320 * testsuite/libgomp.c++/atomic-15.C: New test.
1321 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1322 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1323 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1324 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1325 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1326 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1327 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1328 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1329 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1330 * testsuite/libgomp.c++/cancel-test.h: New file.
1331 * testsuite/libgomp.c++/for-9.C: New test.
1332 * testsuite/libgomp.c++/for-10.C: New test.
1333 * testsuite/libgomp.c++/for-11.C: New test.
1334 * testsuite/libgomp.c++/simd-1.C: New test.
1335 * testsuite/libgomp.c++/simd-2.C: New test.
1336 * testsuite/libgomp.c++/simd-3.C: New test.
1337 * testsuite/libgomp.c++/simd-4.C: New test.
1338 * testsuite/libgomp.c++/simd-5.C: New test.
1339 * testsuite/libgomp.c++/simd-6.C: New test.
1340 * testsuite/libgomp.c++/simd-7.C: New test.
1341 * testsuite/libgomp.c++/simd-8.C: New test.
1342 * testsuite/libgomp.c++/target-1.C: New test.
1343 * testsuite/libgomp.c++/target-2.C: New test.
1344 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1345 * testsuite/libgomp.c++/target-3.C: New test.
1346 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1347 * testsuite/libgomp.c++/udr-1.C: New test.
1348 * testsuite/libgomp.c++/udr-2.C: New test.
1349 * testsuite/libgomp.c++/udr-3.C: New test.
1350 * testsuite/libgomp.c++/udr-4.C: New test.
1351 * testsuite/libgomp.c++/udr-5.C: New test.
1352 * testsuite/libgomp.c++/udr-6.C: New test.
1353 * testsuite/libgomp.c++/udr-7.C: New test.
1354 * testsuite/libgomp.c++/udr-8.C: New test.
1355 * testsuite/libgomp.c++/udr-9.C: New test.
1357 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1360 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1363 2013-09-20 Alan Modra <amodra@gmail.com>
1365 * configure: Regenerate.
1367 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1369 * testsuite/libgomp.c/sections-2.c: New test.
1371 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1373 * testsuite/libgomp.fortran/strassen.f90:
1374 Add dg-skip-if aarch64_tiny.
1376 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1377 Cesar Philippidis <cesar@codesourcery.com>
1379 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1380 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1381 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1382 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1383 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1384 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1385 Use dg-runtest rather than gfortran-dg-runtest.
1387 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1389 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1390 Linux-based x86 systems to cover all GNU systems.
1391 * testsuite/libgomp.c/lock-3.c: Likewise.
1392 * testsuite/libgomp.c/pr48591.c: Likewise.
1394 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1396 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1397 GNU/Hurd, as done for Linux-based systems.
1399 * config/posix/ptrlock.h: Fix comment.
1401 2013-05-27 Tobias Burnus <burnus@net-b.de>
1404 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1405 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1406 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1407 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1408 omp_destroy_nest_lock): Correct arguments to match the one in
1410 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1411 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1412 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1413 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1415 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1417 * testsuite/libgomp.c/loop-13.c: New test.
1418 * testsuite/libgomp.c/loop-14.c: New test.
1419 * testsuite/libgomp.c/loop-15.c: New test.
1420 * testsuite/libgomp.c++/loop-13.C: New test.
1421 * testsuite/libgomp.c++/loop-14.C: New test.
1422 * testsuite/libgomp.c++/loop-15.C: New test.
1424 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1427 * testsuite/libgomp.c++/pr56217.C: New test.
1429 2013-02-01 Alan Modra <amodra@gmail.com>
1431 * task.c (GOMP_task, GOMP_taskwait): Comment.
1433 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1434 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1437 * config/linux/wait.h (do_spin): Use atomic load for addr.
1438 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1439 for intptr and ptrlock.
1440 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1443 2013-01-22 Alan Modra <amodra@gmail.com>
1447 * task.c (GOMP_task): Revert 2011-12-09 change.
1448 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1449 barrier to read task->children..
1450 (gomp_barrier_handle_tasks): ..and matching atomic store with
1451 release barrier here when setting parent->children to NULL.
1453 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1454 Tobias Burnus <burnus@net-b.de>
1457 * testsuite/libgomp.fortran/fortran.exp: Use
1458 -fintrinsic-modules-path= instead of
1459 -fintrinsic-modules-path.
1461 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1463 Update copyright years.
1465 2012-12-19 Tobias Burnus <burnus@net-b.de>
1467 * testsuite/libgomp.fortran/fortran.exp: Set
1468 -fintrinsic-modules-path.
1470 2012-12-19 Tobias Burnus <burnus@net-b.de>
1472 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1473 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1475 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1478 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1479 if pool had any threads_used.
1481 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1483 * testsuite/libgomp.c++/pr24455.C: Use
1484 -Wl,-undefined,dynamic_lookup on darwin.
1486 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1488 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1490 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1492 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1494 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1495 Jim MacArthur <jim.macarthur@arm.com>
1496 Marcus Shawcroft <marcus.shawcroft@arm.com>
1497 Nigel Stephens <nigel.stephens@arm.com>
1498 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1499 Richard Earnshaw <rearnsha@arm.com>
1500 Sofiane Naci <sofiane.naci@arm.com>
1501 Stephen Thomas <stephen.thomas@arm.com>
1502 Tejas Belagod <tejas.belagod@arm.com>
1503 Yufeng Zhang <yufeng.zhang@arm.com>
1505 * configure.tgt: Add AArch64.
1507 2012-10-04 Jason Merrill <jason@redhat.com>
1509 * testsuite/libgomp.c++/tls-init1.C: New.
1511 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1513 * configure: Regenerated.
1515 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1517 * config/linux/mips/futex.h (sys_futex0): Change to static
1518 function with noinline, nomips16 attributes under MIPS16. Adjust
1519 asm statement to place 'li v0,SYS_futex' immediately before
1522 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1524 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1525 conflict with index.html on case-insensitive file systems.
1527 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1529 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1530 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1532 2012-07-02 Richard Guenther <rguenther@suse.de>
1533 Michael Matz <matz@suse.de>
1534 Tobias Grosser <tobias@grosser.es>
1535 Sebastian Pop <sebpop@gmail.com>
1537 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1538 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1539 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1540 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1542 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1544 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1546 2012-06-22 Richard Guenther <rguenther@suse.de>
1548 Merge from graphite branch
1549 2012-01-13 Tobias Grosser <tobias@grosser.es>
1551 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1552 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1554 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1557 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1558 use GOMP_barrier () call instead.
1559 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1560 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1561 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1562 call GOMP_barrier instead.
1563 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1565 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1568 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1569 argument to memset call.
1571 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1573 * configure: Regenerated.
1575 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1577 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1579 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1582 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1584 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.c/pr52547.c: New test.
1589 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1591 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1593 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595 * configure.tgt (mips-sgi-irix6*): Remove.
1597 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1599 * configure.tgt (alpha*-dec-osf*): Remove.
1601 * config/osf/sem.h: Remove.
1602 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1604 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1606 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1608 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1611 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1612 Remove ENABLE_SYMVERS_SOL2.
1613 * configure: Regenerate.
1614 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1615 (PREPROCESS): New variable.
1616 (libgomp.ver): New target.
1617 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1618 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1619 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1621 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1622 * Makefile.in: Regenerate.
1624 2012-02-14 Walter Lee <walt@tilera.com>
1626 * configure.tgt: Handle tilegx and tilepro.
1627 * config/linux/tile/futex.h: New file.
1629 2012-02-08 Richard Guenther <rguenther@suse.de>
1631 PR tree-optimization/46886
1632 * testsuite/libgomp.c/pr46886.c: New testcase.
1634 2012-01-25 Matthias Klose <doko@ubuntu.com>
1636 * config/linux/arm: Remove empty directory.
1637 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1639 2011-12-09 Alan Modra <amodra@gmail.com>
1642 * task.c (GOMP_taskwait): Don't access task->children outside of
1643 task_lock mutex region.
1644 (GOMP_task): Likewise.
1646 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1649 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1651 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1652 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1653 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1654 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1655 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1657 2011-12-02 Alan Modra <amodra@gmail.com>
1659 * config/linux/affinity.c: Use atomic rather than sync builtin.
1660 * config/linux/lock.c: Likewise.
1661 * config/linux/ptrlock.h: Likewise.
1662 * config/linux/ptrlock.c: Likewise.
1663 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1664 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1665 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1666 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1667 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1668 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1669 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1670 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1671 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1672 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1674 2011-11-30 Alan Modra <amodra@gmail.com>
1677 * config/linux/bar.h: Use atomic rather than sync builtins.
1678 * config/linux/bar.c: Likewise. Add missing acquire
1679 synchronisation on generation field.
1680 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1683 2011-11-30 Alan Modra <amodra@gmail.com>
1685 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1686 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1687 * config/linux/mutex.h: Use atomic rather than sync builtins.
1688 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1689 * config/linux/omp-lock.h: Comment fix.
1690 * config/linux/arm/mutex.h: Delete.
1691 * config/linux/powerpc/mutex.h: Delete.
1692 * config/linux/ia64/mutex.h: Delete.
1693 * config/linux/mips/mutex.h: Delete.
1695 2011-11-30 Alan Modra <amodra@gmail.com>
1698 * config/linux/sem.h: Rewrite.
1699 * config/linux/sem.c: Rewrite.
1701 2011-11-28 Richard Henderson <rth@redhat.com>
1703 * libgomp.h (enum memmodel): New.
1705 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1707 * configure: Regenerate.
1709 2011-10-10 Matthias Klose <doko@ubuntu.com>
1711 * config/posix95: Remove empty directory.
1713 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1715 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1717 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1720 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1721 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1723 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1727 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1730 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1732 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1734 * config/linux/proc.h: New.
1735 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1736 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1737 (gomp_init_num_threads): Update call to cpuset_popcount.
1738 (get_num_procs): Ditto.
1739 * config/linux/affinity.c (gomp_init_affinity): Call
1740 gomp_cpuset_popcount.
1742 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1746 * omp.h.in (omp_in_final): New prototype.
1747 * omp_lib.f90.in (omp_in_final): New interface.
1748 (omp_integer_kind, omp_logical_kind): Remove
1749 and replace all its uses in the module with 4.
1750 (openmp_version): Change to 201107.
1751 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1752 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1753 kind for the parameters.
1754 (omp_in_final): New external.
1755 (openmp_version): Change to 201107.
1756 * task.c (omp_in_final): New function.
1757 (gomp_init_task): Initialize final_task.
1758 (GOMP_task): Remove unused attribute from flags. Handle final
1760 (GOMP_taskyield): New function.
1761 (omp_in_final): Return true if if (false) or final (true) task
1762 or descendant of final (true).
1763 * fortran.c (omp_in_final_): New function.
1764 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1765 (GOMP_3.0): Export GOMP_taskyield.
1766 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1768 (parse_unsigned_long_list): New function.
1769 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1770 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1771 even if parse_affinity returned false.
1772 * config/linux/affinity.c (gomp_init_affinity): Handle
1773 gomp_cpu_affinity_len == 0.
1774 * libgomp_g.h (GOMP_taskyield): New prototype.
1775 * libgomp.h (struct gomp_task): Add final_task field.
1776 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1777 * team.c (gomp_team_start): Override new task's nthreads_var icv
1778 if list form OMP_NUM_THREADS has been used and it has value for
1779 the new nesting level.
1781 * testsuite/libgomp.c/atomic-11.c: New test.
1782 * testsuite/libgomp.c/atomic-12.c: New test.
1783 * testsuite/libgomp.c/atomic-13.c: New test.
1784 * testsuite/libgomp.c/atomic-14.c: New test.
1785 * testsuite/libgomp.c/reduction-6.c: New test.
1786 * testsuite/libgomp.c/task-5.c: New test.
1787 * testsuite/libgomp.c++/atomic-2.C: New test.
1788 * testsuite/libgomp.c++/atomic-3.C: New test.
1789 * testsuite/libgomp.c++/atomic-4.C: New test.
1790 * testsuite/libgomp.c++/atomic-5.C: New test.
1791 * testsuite/libgomp.c++/atomic-6.C: New test.
1792 * testsuite/libgomp.c++/atomic-7.C: New test.
1793 * testsuite/libgomp.c++/atomic-8.C: New test.
1794 * testsuite/libgomp.c++/atomic-9.C: New test.
1795 * testsuite/libgomp.c++/task-8.C: New test.
1796 * testsuite/libgomp.c++/reduction-4.C: New test.
1797 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1798 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1799 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1800 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1801 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1802 * testsuite/libgomp.fortran/pointer1.f90: New test.
1803 * testsuite/libgomp.fortran/pointer2.f90: New test.
1804 * testsuite/libgomp.fortran/task4.f90: New test.
1806 2011-08-02 Tobias Burnus <burnus@net-b.de>
1808 * libgomp.texi: Update OpenMP spec references to 3.1.
1809 (omp_in_final,OMP_PROC_BIND): New sections.
1810 (OMP_NUM_THREADS): Document that the value can be now a list.
1811 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1813 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1815 * config/linux/x86/futex.h: Check __x86_64__ instead of
1818 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1822 * testsuite/libgomp.c/pr49897-1.c: New test.
1823 * testsuite/libgomp.c/pr49897-2.c: New test.
1824 * testsuite/libgomp.c/pr49898-1.c: New test.
1825 * testsuite/libgomp.c/pr49898-2.c: New test.
1827 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1829 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1830 for ia32 instead of ilp32.
1832 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1833 * testsuite/libgomp.c/atomic-6.c: Likewise.
1835 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1837 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1838 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1840 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1843 * config/osf/sem.h: New file.
1844 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1846 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1849 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1852 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1854 * config/linux/wait.h (do_spin): New inline, largely copied
1855 from do_wait, just don't do futex_wait here, instead return true if
1857 (do_wait): Implement using do_spin.
1858 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1860 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1861 __sync_bool_compare_and_swap, pass the oldval to
1862 gomp_mutex_lock_slow.
1863 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1864 If all mutex contenders are just spinning and not sleeping, don't
1865 change state to 2 unnecessarily. Optimize the loop when state has
1866 already become 2 to use just one atomic operation per loop instead
1868 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1870 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1871 __sync_bool_compare_and_swap, pass the oldval to
1872 gomp_mutex_lock_slow.
1874 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1877 * iter.c (gomp_iter_static_next): For chunk size 0
1878 only use n ceil/ nthreads size for the first
1879 n % nthreads threads in the team instead of
1880 all threads except for the last few ones which
1881 get less work or none at all.
1882 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1883 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1884 chunk argument, set run_sched_modifier to 0 for static
1885 resp. 1 for other kinds. If chunk argument is 0
1886 and not static, set value to 1.
1888 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1891 * testsuite/libgomp.c++/pr49043.C: New test.
1894 * testsuite/libgomp.c++/pr48869.C: New test.
1896 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1899 * fortran.c: Include limits.h.
1901 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1903 (omp_set_num_threads_8_, omp_set_schedule_8_,
1904 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1905 omp_get_team_size_8_): Use TO_INT macro.
1906 * testsuite/libgomp.fortran/pr48894.f90: New test.
1908 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1911 * testsuite/libgomp.c/pr48591.c: New test.
1913 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1916 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1917 * configure: Regenerate.
1919 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1922 * testsuite/libgomp.fortran/task3.f90: New test.
1924 2011-02-24 Tobias Burnus <burnus@net-b.de>
1926 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1928 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1931 * libgomp.texi (omp_get_wtime): Don't say time in the past
1934 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1937 * testsuite/libgomp.fortran/fortran.exp: Check for both
1938 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1939 but $blddir != "", still append ${blddir}/${lang_library_path}
1942 2011-02-16 Tobias Burnus <burnus@net-b.de>
1945 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1946 of libquadmath.a before adding its libpath to ldflags.
1948 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1951 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1952 to FUTEX_WAIT futex syscall.
1953 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1955 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1957 * configure: Regenerate.
1959 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1962 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1964 2011-01-16 Gerald Pfeifer
1966 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1968 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1971 * libgomp.fortran/allocatable6.f90: New test.
1973 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1975 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1976 * configure: Regenerate.
1978 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1982 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1983 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1984 * aclocal.m4: Regenerate.
1985 * configure: Regenerate.
1986 * Makefile.in: Regenerate.
1987 * testsuite/Makefile.in: Regenerate.
1989 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1992 * libgomp.fortran/pr46753.f90: New test.
1995 * env.c (initialize_env): Default to spin count 300000
1996 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2000 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2001 at the end if sync builtins aren't supported.
2003 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2005 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2007 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2009 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2011 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2013 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2015 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2016 Tobias Burnus <burnus@net-b.de>
2020 * configure: Regenerate.
2022 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2024 * config/linux/futex.h: New.
2025 * config/linux/arm/mutex.h: New.
2026 * configure.tgt (arm*-*-linux*): Add config path.
2028 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2030 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2032 2010-09-23 Tobias Burnus <burnus@net-b.de>
2034 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2035 Change Fortran datatype to LOGICAL.
2036 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2037 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2039 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2041 * configure: Regenerate.
2043 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2045 * libgomp.texi: Add function keyword to a couple of Fortran
2046 interfaces, use integer instead of int for Fortran.
2048 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2050 * libgomp.texi: Fix spelling and pasto problems throughout.
2051 Adjust prototypes to match code.
2053 2010-07-24 Tobias Burnus <burnus@net-b.de>
2055 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2056 silence -fwhole-file warning.
2058 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2060 * configure.tgt (*-*-solaris2.[56]*): Removed.
2062 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2064 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2065 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2066 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2067 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2068 targetting solaris2*.
2069 * configure: Regenerate.
2070 * config.h.in: Regenerate.
2072 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2073 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2074 Add libgomp_version_dep.
2075 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2077 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2078 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2079 * Makefile.in: Regenerate.
2081 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2082 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2083 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2084 to common block, protected by
2085 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2087 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2089 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2091 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2094 * configure: Regenerate.
2096 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2099 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2100 * configure: Regenerate.
2101 * Makefile.in: Regenerate.
2102 * testsuite/Makefile.in: Regenerate.
2104 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2107 * testsuite/libgomp.c/pr43893.c: New test.
2108 * testsuite/libgomp.c++/pr43893.C: New test.
2110 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2113 * testsuite/libgomp.fortran/vla8.f90: New test.
2115 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2118 * config/linux/affinity.c (gomp_init_affinity): Decrease
2119 gomp_available_cpus if affinity mask confines the process to fewer
2121 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2122 non-NULL, just return gomp_available_cpus.
2125 * sections.c (gomp_sections_init): Initialize ws->mode.
2127 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2129 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2130 not unused bar variable.
2131 * configure: Regenerate.
2133 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2135 * Makefile.in: Regenerate.
2136 * aclocal.m4: Regenerate.
2137 * testsuite/Makefile.in: Regenerate.
2139 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2142 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2143 (initialize_env): Adjust callers.
2144 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2145 when the argument is 0.
2147 * testsuite/libgomp.c/pr42942.c: New test.
2149 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2153 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2154 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2156 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2158 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2159 * testsuite/libgomp.c++/task-6.C: Likewise.
2161 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2163 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2165 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2167 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2168 * configure: Regenerate.
2170 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2173 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2175 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2177 * configure.ac: Test for executability of GFORTRAN.
2178 * configure: Regenerate.
2180 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2182 * configure: Regenerate.
2184 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2187 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2189 2010-01-03 Richard Guenther <rguenther@suse.de>
2191 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2193 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2195 * testsuite/libgomp.graphite/pr4118.c: New.
2197 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2199 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2200 for darwin, protect the test with require-effective-target tls_runtime.
2201 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2203 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2206 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2207 link spec %s substitutions for static libraries.
2209 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2212 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2214 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2216 * Makefile.in: Regenerate.
2217 * configure: Regenerate.
2218 * testsuite/Makefile.in: Regenerate.
2220 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2222 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2223 settings for LC_ALL and LANG.
2225 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2228 * testsuite/libgomp.fortran/pr42162.f90: New test.
2230 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2233 * testsuite/libgomp.c/pr42029.c: New test.
2235 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2237 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2238 *s. Accept ld version without text in ()s.
2239 * configure: Regenerated.
2241 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2243 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2245 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2248 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2249 or a hyphen (happens with fortran language disabled).
2250 * configure: Regenerate.
2252 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2254 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2255 use sed script portable to Solaris /bin/sed for extracting ld
2257 * configure: Regenerate.
2259 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2261 * testsuite/libgomp.graphite/bounds.c: New test.
2263 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2265 * Makefile.am (libgomp_la_LINK): New.
2266 * Makefile.in: Regenerate.
2268 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2270 * configure.ac (AC_PREREQ): Bump to 2.64.
2272 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2274 * Makefile.am (install-html, install-pdf): Remove.
2275 * Makefile.in: Regenerate.
2277 * Makefile.in: Regenerate.
2278 * aclocal.m4: Regenerate.
2279 * config.h.in: Regenerate.
2280 * configure: Regenerate.
2281 * testsuite/Makefile.in: Regenerate.
2283 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2285 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2286 * Makefile.in: Regenerate.
2288 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2290 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2291 * Makefile.in: Regenerate.
2293 2009-08-19 Tobias Burnus <burnus@net-b.de>
2296 omp_lib.h.in: Fix -std=f95 errors.
2299 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2301 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2302 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2303 * testsuite/libgomp.graphite/graphite.exp: New.
2305 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2307 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2310 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2312 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2313 needed memory barrier semantics.
2314 * config/linux/mips/mutex.h: New file.
2316 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2318 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2320 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2322 * configure: Regenerate.
2324 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2329 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2330 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2331 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2333 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2335 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2336 options when choosing a multilib.
2338 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2340 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2341 ld_library_path. Use add_path. Add just find_libgcc_s to
2342 ld_library_path, not every libgcc multilib directory.
2343 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2344 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2345 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2347 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2349 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2351 * Makefile.am (LTLDFLAGS): Define.
2353 * Makefile.in: Regenerate.
2355 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2358 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2359 libgfortranbegin, check existence of libgfortran.a instead of
2362 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2365 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2366 (gomp_free_pool_helper): Likewise.
2368 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2369 Jakub Jelinek <jakub@redhat.com>
2372 * testsuite/libgomp.fortran/workshare2.f90: New test.
2374 2009-04-09 Nick Clifton <nickc@redhat.com>
2376 * iter.c: Change copyright header to refer to version 3 of the
2377 GNU General Public License with version 3.1 of the GCC Runtime
2378 Library Exception and to point readers at the COPYING3 and
2379 COPYING3.RUNTIME files and the FSF's license web page.
2380 * alloc.c: Likewise.
2381 * barrier.c: Likewise.
2382 * config/bsd/proc.c: Likewise.
2383 * config/linux/affinity.c: Likewise.
2384 * config/linux/alpha/futex.h: Likewise.
2385 * config/linux/bar.c: Likewise.
2386 * config/linux/bar.h: Likewise.
2387 * config/linux/ia64/futex.h: Likewise.
2388 * config/linux/ia64/mutex.h: Likewise.
2389 * config/linux/lock.c: Likewise.
2390 * config/linux/mips/futex.h: Likewise.
2391 * config/linux/mutex.c: Likewise.
2392 * config/linux/mutex.h: Likewise.
2393 * config/linux/powerpc/futex.h: Likewise.
2394 * config/linux/proc.c: Likewise.
2395 * config/linux/ptrlock.c: Likewise.
2396 * config/linux/ptrlock.h: Likewise.
2397 * config/linux/s390/futex.h: Likewise.
2398 * config/linux/sem.c: Likewise.
2399 * config/linux/sem.h: Likewise.
2400 * config/linux/sparc/futex.h: Likewise.
2401 * config/linux/wait.h: Likewise.
2402 * config/linux/x86/futex.h: Likewise.
2403 * config/mingw32/proc.c: Likewise.
2404 * config/mingw32/time.c: Likewise.
2405 * config/posix/affinity.c: Likewise.
2406 * config/posix/bar.c: Likewise.
2407 * config/posix/bar.h: Likewise.
2408 * config/posix/lock.c: Likewise.
2409 * config/posix/mutex.h: Likewise.
2410 * config/posix/proc.c: Likewise.
2411 * config/posix/ptrlock.h: Likewise.
2412 * config/posix/sem.c: Likewise.
2413 * config/posix/sem.h: Likewise.
2414 * config/posix/time.c: Likewise.
2415 * config/posix95/lock.c: Likewise.
2416 * critical.c: Likewise.
2418 * error.c: Likewise.
2419 * fortran.c: Likewise.
2420 * iter_ull.c: Likewise.
2421 * libgomp.h: Likewise.
2422 * libgomp_f.h.in: Likewise.
2423 * libgomp_g.h: Likewise.
2425 * loop_ull.c: Likewise.
2426 * omp.h.in: Likewise.
2427 * omp_lib.f90.in: Likewise.
2428 * omp_lib.h.in: Likewise.
2429 * ordered.c: Likewise.
2430 * parallel.c: Likewise.
2431 * sections.c: Likewise.
2432 * single.c: Likewise.
2437 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/config/default.exp: Change copyright header to refer to
2440 version 3 of the GNU General Public License and to point readers
2441 at the COPYING3 file and the FSF's license web page.
2443 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2446 * libgomp.c++/pr39573.C: New test.
2448 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2451 * testsuite/libgomp.c/pr39591-1.c: New test.
2452 * testsuite/libgomp.c/pr39591-2.c: New test.
2453 * testsuite/libgomp.c/pr39591-3.c: New test.
2455 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2457 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2458 * testsuite/libgomp.c/atomic-6.c: Ditto.
2460 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2463 * testsuite/libgomp.c/loop-12.c: New test.
2464 * testsuite/libgomp.c/loop-11.c: New test.
2465 * testsuite/libgomp.c++/loop-11.C: New test.
2466 * testsuite/libgomp.c++/loop-12.C: New test.
2467 * testsuite/libgomp.c++/for-8.C: New test.
2469 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2471 * configure: Regenerate.
2473 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2476 * testsuite/libgomp.c/pr39154.c: New test.
2478 2009-01-30 Ian Lance Taylor <iant@google.com>
2480 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2481 libgomp_ld_is_gold. Get gold version number.
2482 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2483 * configure: Rebuild.
2485 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2487 * testsuite/lib/libgomp.exp: Add -B option for targets that
2488 use libgfortran.a%s in their specs.
2490 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2493 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2494 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2495 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2496 * configure: Regenerated.
2497 * config.h.in: Likewise.
2499 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2502 * testsuite/libgomp.c/pr38650.c: New test.
2503 * testsuite/libgomp.c++/pr38650.C: New test.
2505 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2509 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2511 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2513 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2515 * configure: Regenerate.
2517 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2520 * testsuite/libgomp.c/pr36802-1.c: New test.
2521 * testsuite/libgomp.c/pr36802-2.c: New test.
2522 * testsuite/libgomp.c/pr36802-3.c: New test.
2524 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2527 * config/linux/powerpc/mutex.h: New.
2529 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2532 * testsuite/libgomp.c++/for-7.C: New test.
2535 * testsuite/libgomp.c++/for-6.C: New test.
2537 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2540 * testsuite/lib/libgomp.exp: Include new timeout library files.
2541 (libgomp_target_compile): Set timeout value from new proc.
2543 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2546 * config/linux/ia64/mutex.h: New.
2548 2008-11-04 Tobias Burnus <burnus@net-b.de>
2551 * libgomp.texi (Runtime library routines, environment variables):
2552 Update for OpenMP version 3.0.
2554 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2555 Steve Ellcey <sje@cup.hp.com>
2557 * configure: Regenerate for new libtool.
2558 * Makefile.in: Ditto.
2559 * testsuite/Makefile.in: Ditto.
2561 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2562 Andreas Tobler <a.tobler@schweiz.org>
2564 * config/bsd/proc.c: New file.
2565 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2566 * configure.ac: Check for header <sys/sysctl.h>
2567 * configure: Regenerate.
2568 * config.h.in: Likewise.
2570 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2572 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2574 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2576 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2577 * Makefile.in: Regenerated.
2578 * testsuite/Makefile.in: Regenerated.
2580 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2582 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2583 depend on blddir if blddir exists.
2584 (libgomp_target_compile): Likewise.
2585 * testsuite/libgomp.c++/c++.exp: Likewise.
2586 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2588 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2590 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2591 Do not list GPL as Invariant Section.
2593 2008-07-28 Ilie Garbacea <ilie@mips.com>
2594 Chao-ying Fu <fu@mips.com>
2596 * configure.tgt: Enable futex for MIPS.
2597 * config/linux/mips/futex.h: New file.
2599 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2601 * team.c (gomp_team_end): Free team immediately if it has
2604 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2606 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2607 * testsuite/libgomp.fortran/fortran.exp: Same.
2608 * testsuite/libgomp.c/c.exp: Same.
2609 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2610 directory to library path first.
2612 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2614 * env.c (parse_stacksize): Add cast to avoid warning.
2615 (parse_spincount): Likewise.
2617 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2619 * testsuite/libgomp.c/loop-10.c: New test.
2620 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2621 * libgomp.c++/loop-6.C (main): Likewise.
2624 * testsuite/libgomp.c/debug-1.c: New test.
2626 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2628 * testsuite/libgomp.c/nqueens-1.c: New test.
2631 * testsuite/libgomp.c++/task-7.C: New function.
2633 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2635 * configure: Regenerate.
2637 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2639 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2640 mutex when HAVE_SYNC_BUILTINS isn't defined.
2642 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2644 * libgomp.texi (omp_test_lock): Fix typo.
2646 2008-06-12 Tobias Burnus <burnus@net-b.de>
2648 * omp_lib.f90.in: Add "implicit none".
2650 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2653 * testsuite/libgomp.c/reduction-5.c: New test.
2655 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2657 * libgomp.h (struct gomp_task): Add in_tied_task field.
2658 * task.c (gomp_init_task): Initialize it.
2659 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2660 unconditionally. Don't call gomp_team_barrier_wake if
2661 current task is implicit or if(0) from implicit and number of
2662 running tasks is equal to nthreads - 1.
2665 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2666 omp_get_team_size_8): Fix pastos.
2669 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2670 * configure: Regenerated.
2671 * config.h.in: Regenerated.
2672 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2675 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
2678 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2679 (GOMP_loop_ull_dynamic_start): Likewise.
2680 (GOMP_loop_ull_guided_start): Likewise.
2681 (GOMP_loop_ull_ordered_static_start): Likewise.
2682 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2683 (GOMP_loop_ull_ordered_guided_start): Likewise.
2685 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2686 Richard Henderson <rth@redhat.com>
2687 Ulrich Drepper <drepper@redhat.com>
2688 Jakob Blomer <jakob.blomer@ira.uka.de>
2690 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2691 Substitute also OMP_*LOCK_25*.
2692 * configure: Regenerated.
2693 * config.h.in: Regenerated.
2694 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2695 ptrlock.c and task.c.
2696 * Makefile.in: Regenerated.
2697 * testsuite/Makefile.in: Regenerated.
2699 * loop_ull.c: New file.
2700 * iter_ull.c: New file.
2701 * libgomp.h: Include ptrlock.h.
2702 (enum gomp_task_kind): New type.
2703 (struct gomp_team): Add task_lock, task_queue, task_count,
2704 task_running_count, single_count fields. Add
2705 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2706 Remove work_share_lock, generation_mask,
2707 oldest_live_gen, num_live_gen and init_work_shares fields, add
2708 work work_share_list_alloc, work_share_list_free and work_share_chunk
2709 fields. Change work_shares from pointer to pointers into an array.
2710 Change ordered_release field into gomp_sem_t ** from flexible array
2711 member. Add implicit_task and initial_work_shares fields.
2712 Move close to the end of the struct.
2713 (struct gomp_team_state): Add single_count, last_work_share,
2714 active_level and level fields, remove work_share_generation.
2715 (gomp_barrier_handle_tasks): New prototype.
2716 (gomp_finish_task): New inline function.
2717 (struct gomp_work_share): Move chunk_size, end, incr into
2718 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2719 next_ll fields. Reshuffle fields. Add next_alloc,
2720 next_ws, next_free and inline_ordered_team_ids fields, change
2721 ordered_team_ids into pointer from flexible array member.
2722 Add mode field. Put lock and next into a different cache line
2723 from most of the write-once fields.
2724 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2725 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2726 gomp_iter_ull_guided_next): New prototypes.
2727 (gomp_new_icv): New prototype.
2728 (struct gomp_thread): Add thread_pool and task fields.
2729 (struct gomp_thread_pool): New type.
2730 (gomp_new_team): New prototype.
2731 (gomp_team_start): Change type of last argument.
2732 (gomp_new_work_share): Removed.
2733 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2734 (gomp_work_share_init_done): New static inline.
2735 (gomp_throttled_spin_count_var, gomp_available_cpus,
2736 gomp_managed_threads): New extern decls.
2737 (gomp_init_task): New prototype.
2738 (gomp_spin_count_var): New extern var decl.
2739 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2740 or no alias support, or if not PIC.
2741 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2742 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2743 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2744 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2745 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2746 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2747 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2748 gomp_test_nest_lock_25): New prototypes.
2749 (omp_lock_symver, strong_alias): Define.
2750 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2752 (gomp_end_task): New.
2753 (struct gomp_task_icv, gomp_global_icv): New.
2754 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2755 (struct gomp_task): New.
2756 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2757 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2759 (gomp_schedule_type): Reorder enum to match
2761 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2763 (gomp_thread_start): Add gomp_team_barrier_wait call.
2764 For non-nested case remove clearing of docked thread thr fields.
2765 Use pool fields instead of global gomp_* variables. Use
2766 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2767 Create tasks for each member thread.
2768 (free_team): Only destroy team barrier, task_lock here and free it.
2769 (gomp_free_thread): Free last_team if non-NULL.
2770 (gomp_team_end): Call gomp_team_barrier_wait instead of
2771 gomp_barrier_wait. For nested case call one extra
2772 gomp_barrier_wait. Move here some destruction from free_team.
2773 Call free_team on pool->last_team if any, rather than freeing
2774 current team. Destroy work_share_list_free_lock ifndef
2776 (gomp_new_icv): New function.
2777 (gomp_threads, gomp_threads_size, gomp_threads_used,
2778 gomp_threads_dock): Removed.
2779 (gomp_thread_destructor): New variable.
2780 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2782 (gomp_team_start): Create new pool if current thread doesn't have
2783 one. Use pool fields instead of global gomp_* variables.
2784 Initialize thread_pool field for new threads. Clear single_count.
2785 Change last argument from ws to team, don't create
2786 new team, set ts.work_share to &team->work_shares[0] and clear
2787 ts.last_work_share. Don't clear ts.work_share_generation.
2788 If number of threads changed, adjust atomically gomp_managed_threads.
2789 Use gomp_init_task instead of gomp_new_task,
2790 set thr->task to the corresponding implicit_task array entry.
2791 Create tasks for each member thread. Initialize ts.level.
2792 (initialize_team): Call pthread_key_create on
2793 gomp_thread_destructor.
2794 (team_destructor): New function.
2795 (new_team): Removed.
2796 (gomp_new_team): New function.
2797 (free_team): Free gomp_work_share blocks chained through next_alloc,
2798 instead of freeing work_shares and destroying work_share_lock.
2799 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2800 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2801 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2802 of gomp_barrier_wait.
2803 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2804 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2805 if gomp_work_share_start returned true. Don't unlock ws->lock.
2806 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2807 of gomp_barrier_wait.
2808 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2809 gomp_work_share_init_done if gomp_work_share_start returned true.
2810 Don't unlock ws->lock.
2811 * work.c: Include stddef.h.
2812 (free_work_share): Use work_share_list_free_lock instead
2813 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2814 Call gomp_fini_work_share and then either free ws if orphaned, or
2815 put it into work_share_list_free list of the current team.
2816 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2818 (gomp_work_share_start, gomp_work_share_end,
2819 gomp_work_share_end_nowait): Rewritten.
2820 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2821 (openmp_version): Set to 200805.
2822 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2823 omp_sched_guided, omp_sched_auto): New parameters.
2824 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2825 omp_set_max_active_levels, omp_get_max_active_levels,
2826 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2827 omp_get_active_level): New interfaces.
2828 * omp_lib.h.in (openmp_version): Set to 200805.
2829 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2830 omp_sched_guided, omp_sched_auto): New parameters.
2831 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2832 omp_set_max_active_levels, omp_get_max_active_levels,
2833 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2834 omp_get_active_level): New externals.
2835 * loop.c: Include limits.h.
2836 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2838 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2839 Likewise. Use gomp_icv.
2840 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2841 ts.static_trip here.
2842 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2843 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2844 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2845 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2846 don't unlock ws->lock, otherwise lock it.
2847 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2848 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2849 (gomp_parallel_loop_start): Call gomp_new_team instead of
2850 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2851 Adjust gomp_team_start caller. Pass 0 as second argument to
2852 gomp_resolve_num_threads.
2853 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2854 If adding ws->chunk_size nthreads + 1 times after end won't
2855 overflow, set ws->mode to 1.
2856 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2857 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2858 GOMP_loop_ull_ordered_static_start,
2859 GOMP_loop_ull_ordered_dynamic_start,
2860 GOMP_loop_ull_ordered_guided_start,
2861 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2862 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2863 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2864 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2865 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2867 * libgomp.map: Export lock routines also @@OMP_2.0.
2868 (GOMP_loop_ordered_dynamic_first,
2869 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2870 GOMP_loop_ordered_static_first): Remove.
2871 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2872 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2873 GOMP_loop_ull_ordered_dynamic_next,
2874 GOMP_loop_ull_ordered_dynamic_start,
2875 GOMP_loop_ull_ordered_guided_next,
2876 GOMP_loop_ull_ordered_guided_start,
2877 GOMP_loop_ull_ordered_runtime_next,
2878 GOMP_loop_ull_ordered_runtime_start,
2879 GOMP_loop_ull_ordered_static_next,
2880 GOMP_loop_ull_ordered_static_start,
2881 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2882 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2883 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2884 (omp_set_schedule, omp_get_schedule,
2885 omp_get_thread_limit, omp_set_max_active_levels,
2886 omp_get_max_active_levels, omp_get_level,
2887 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2888 omp_set_schedule_, omp_set_schedule_8_,
2889 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2890 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2891 omp_get_max_active_levels_, omp_get_level_,
2892 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2893 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2894 New exports @@OMP_3.0.
2895 * omp.h.in (omp_sched_t): New type.
2896 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2897 omp_set_max_active_levels, omp_get_max_active_levels,
2898 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2899 omp_get_active_level): New prototypes.
2900 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2901 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2902 gomp_thread_limit_var, gomp_remaining_threads_count,
2903 gomp_remaining_threads_lock): New variables.
2904 (parse_spincount): New function.
2905 (initialize_env): Call gomp_init_num_threads unconditionally.
2906 Initialize gomp_available_cpus. Call parse_spincount,
2907 initialize gomp_{,throttled_}spin_count_var
2908 depending on presence and value of OMP_WAIT_POLICY and
2909 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2910 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2911 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2912 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2913 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2914 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2915 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2916 (gomp_global_icv): New.
2917 (parse_schedule): Use it. Parse "auto".
2918 (omp_set_num_threads): Use gomp_icv.
2919 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2921 (omp_get_max_threads): Move from parallel.c.
2922 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2923 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2925 (parse_stacksize, parse_wait_policy): New functions.
2926 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2927 both wrappers for compatibility and new locks.
2928 (omp_set_schedule, omp_get_schedule,
2929 omp_get_thread_limit, omp_set_max_active_levels,
2930 omp_get_max_active_levels, omp_get_level,
2931 omp_get_ancestor_thread_num, omp_get_team_size,
2932 omp_get_active_level): New ialias_redirect.
2933 (omp_set_schedule_, omp_set_schedule_8_,
2934 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2935 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2936 omp_get_max_active_levels_, omp_get_level_,
2937 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2938 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2940 * parallel.c: Include limits.h.
2941 (gomp_resolve_num_threads): Add count argument. Rewritten.
2942 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2943 argument to gomp_team_start. Pass 0 as second argument to
2944 gomp_resolve_num_threads.
2945 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2946 if gomp_thread_limit_var != ULONG_MAX.
2947 (omp_in_parallel): Implement using ts.active_level.
2948 (omp_get_max_threads): Move to env.c.
2949 (omp_get_level, omp_get_ancestor_thread_num,
2950 omp_get_team_size, omp_get_active_level): New functions,
2952 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2953 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2954 gomp_iter_dynamic_next instead of the _locked variant and don't take
2955 lock around it, otherwise acquire it before calling
2956 gomp_iter_dynamic_next_locked.
2957 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2958 gomp_iter_dynamic_next instead of the _locked variant and don't take
2960 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2961 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2962 Adjust gomp_team_start caller. Pass count as second argument to
2963 gomp_resolve_num_threads, don't adjust num_threads after the call.
2965 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2966 ws->chunk_size by incr.
2967 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2969 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2971 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2972 (omp_check_defines): Check even the compat defines.
2973 * config/linux/ptrlock.c: New file.
2974 * config/linux/ptrlock.h: New file.
2975 * config/linux/wait.h: New file.
2976 * config/posix/ptrlock.c: New file.
2977 * config/posix/ptrlock.h: New file.
2978 * config/linux/bar.h (gomp_team_barrier_wait,
2979 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2980 (gomp_team_barrier_set_task_pending,
2981 gomp_team_barrier_clear_task_pending,
2982 gomp_team_barrier_set_waiting_for_tasks,
2983 gomp_team_barrier_waiting_for_tasks,
2984 gomp_team_barrier_done): New inlines.
2985 (gomp_barrier_t): Rewritten.
2986 (gomp_barrier_state_t): New typedef.
2987 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2988 gomp_barrier_wait_start): Rewritten.
2989 (gomp_barrier_wait_end): Change second argument to
2990 gomp_barrier_state_t.
2991 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2993 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2995 (gomp_barrier_wait_end): Rewritten.
2996 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2997 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2998 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2999 (gomp_barrier_state_t): New typedef.
3000 (gomp_team_barrier_wait,
3001 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3002 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3003 into the return value. Return gomp_barrier_state_t.
3004 (gomp_team_barrier_set_task_pending,
3005 gomp_team_barrier_clear_task_pending,
3006 gomp_team_barrier_set_waiting_for_tasks,
3007 gomp_team_barrier_waiting_for_tasks,
3008 gomp_team_barrier_done): New inlines.
3009 (gomp_barrier_wait_end): Change second argument to
3010 gomp_barrier_state_t.
3011 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3013 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3014 (gomp_barrier_wait_end): Change second argument to
3015 gomp_barrier_state_t.
3016 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3017 gomp_team_barrier_wake): New functions.
3018 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3020 (gomp_futex_wake, gomp_futex_wait): New variables.
3021 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3022 * config/linux/lock.c: Rewrite to make locks task owned,
3023 for backwards compatibility provide the old entrypoints
3024 if symbol versioning. Include wait.h instead of libgomp.h and
3026 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3027 * config/posix95/lock.c: Rewrite to make locks task owned,
3028 for backwards compatibility provide the old entrypoints
3029 if symbol versioning.
3030 * config/posix/lock.c: Rewrite to make locks task owned,
3031 for backwards compatibility provide the old entrypoints
3032 if symbol versioning.
3033 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3034 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3035 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3036 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3037 (sys_futex0): Return error code.
3038 (futex_wake, futex_wait): If ENOSYS was returned, clear
3039 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3040 (cpu_relax, atomic_write_barrier): New static inlines.
3041 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3042 (futex_wake, futex_wait): If ENOSYS was returned, clear
3043 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3044 (cpu_relax, atomic_write_barrier): New static inlines.
3045 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3046 (sys_futex0): Return error code.
3047 (futex_wake, futex_wait): If ENOSYS was returned, clear
3048 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3049 (cpu_relax, atomic_write_barrier): New static inlines.
3050 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3051 (sys_futex0): Return error code.
3052 (futex_wake, futex_wait): If ENOSYS was returned, clear
3053 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3054 (cpu_relax, atomic_write_barrier): New static inlines.
3055 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3056 (sys_futex0): Return error code.
3057 (futex_wake, futex_wait): If ENOSYS was returned, clear
3058 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3059 (cpu_relax, atomic_write_barrier): New static inlines.
3060 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3061 (sys_futex0): Return error code.
3062 (futex_wake, futex_wait): If ENOSYS was returned, clear
3063 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3064 (cpu_relax, atomic_write_barrier): New static inlines.
3065 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3067 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3068 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3069 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3071 (omp_nest_lock_t): Change owner into void *, add lock field.
3072 * config/posix95/omp-lock.h: Include semaphore.h.
3073 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3074 (omp_lock_t): Use sem_t instead of mutex if semaphores
3076 (omp_nest_lock_t): Likewise. Change owner to void *.
3077 * config/posix/omp-lock.h: Include semaphore.h.
3078 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3079 (omp_lock_t): Use sem_t instead of mutex if semaphores
3081 (omp_nest_lock_t): Likewise. Add owner field.
3083 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3085 * testsuite/libgomp.c/collapse-1.c: New test.
3086 * testsuite/libgomp.c/collapse-2.c: New test.
3087 * testsuite/libgomp.c/collapse-3.c: New test.
3088 * testsuite/libgomp.c/icv-1.c: New test.
3089 * testsuite/libgomp.c/icv-2.c: New test.
3090 * testsuite/libgomp.c/lib-2.c: New test.
3091 * testsuite/libgomp.c/lock-1.c: New test.
3092 * testsuite/libgomp.c/lock-2.c: New test.
3093 * testsuite/libgomp.c/lock-3.c: New test.
3094 * testsuite/libgomp.c/loop-4.c: New test.
3095 * testsuite/libgomp.c/loop-5.c: New test.
3096 * testsuite/libgomp.c/loop-6.c: New test.
3097 * testsuite/libgomp.c/loop-7.c: New test.
3098 * testsuite/libgomp.c/loop-8.c: New test.
3099 * testsuite/libgomp.c/loop-9.c: New test.
3100 * testsuite/libgomp.c/nested-3.c: New test.
3101 * testsuite/libgomp.c/nestedfn-6.c: New test.
3102 * testsuite/libgomp.c/sort-1.c: New test.
3103 * testsuite/libgomp.c/task-1.c: New test.
3104 * testsuite/libgomp.c/task-2.c: New test.
3105 * testsuite/libgomp.c/task-3.c: New test.
3106 * testsuite/libgomp.c/task-4.c: New test.
3107 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3108 to C++ testsuite default compiler options.
3109 * testsuite/libgomp.c++/collapse-1.C: New test.
3110 * testsuite/libgomp.c++/collapse-2.C: New test.
3111 * testsuite/libgomp.c++/ctor-10.C: New test.
3112 * testsuite/libgomp.c++/for-1.C: New test.
3113 * testsuite/libgomp.c++/for-2.C: New test.
3114 * testsuite/libgomp.c++/for-3.C: New test.
3115 * testsuite/libgomp.c++/for-4.C: New test.
3116 * testsuite/libgomp.c++/for-5.C: New test.
3117 * testsuite/libgomp.c++/loop-8.C: New test.
3118 * testsuite/libgomp.c++/loop-9.C: New test.
3119 * testsuite/libgomp.c++/loop-10.C: New test.
3120 * testsuite/libgomp.c++/task-1.C: New test.
3121 * testsuite/libgomp.c++/task-2.C: New test.
3122 * testsuite/libgomp.c++/task-3.C: New test.
3123 * testsuite/libgomp.c++/task-4.C: New test.
3124 * testsuite/libgomp.c++/task-5.C: New test.
3125 * testsuite/libgomp.c++/task-6.C: New test.
3126 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3127 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3128 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3129 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3130 * testsuite/libgomp.fortran/collapse1.f90: New test.
3131 * testsuite/libgomp.fortran/collapse2.f90: New test.
3132 * testsuite/libgomp.fortran/collapse3.f90: New test.
3133 * testsuite/libgomp.fortran/collapse4.f90: New test.
3134 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3135 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3136 * testsuite/libgomp.fortran/lib4.f90: New test.
3137 * testsuite/libgomp.fortran/lock-1.f90: New test.
3138 * testsuite/libgomp.fortran/lock-2.f90: New test.
3139 * testsuite/libgomp.fortran/nested1.f90: New test.
3140 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3141 * testsuite/libgomp.fortran/strassen.f90: New test.
3142 * testsuite/libgomp.fortran/tabs1.f90: New test.
3143 * testsuite/libgomp.fortran/tabs2.f: New test.
3144 * testsuite/libgomp.fortran/task1.f90: New test.
3145 * testsuite/libgomp.fortran/task2.f90: New test.
3146 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3147 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3148 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3149 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3150 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3152 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3155 * testsuite/libgomp.c++/ctor-11.C: New test.
3156 * testsuite/libgomp.c++/ctor-12.C: New test.
3158 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3160 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3162 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3165 * testsuite/libgomp.c/atomic-5.c: New test.
3166 * testsuite/libgomp.c/atomic-6.c: New test.
3167 * testsuite/libgomp.c/autopar-1.c: New test.
3169 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3171 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3172 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3173 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3174 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3175 * configure: Regenerate.
3176 * Makefile.in, testsuite/Makefile.in: Likewise.
3178 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3181 * aclocal.m4: Regenerate.
3182 * configure: Regenerate.
3184 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3187 * testsuite/libgomp.c/atomic-4.c: New test.
3190 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3191 (gomp_iter_guided_next): Likewise.
3192 * testsuite/libgomp.c/pr35625.c: New test.
3194 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3196 * aclocal.m4: Regenerate.
3197 * configure: Likewise.
3198 * Makefile.in: Likewise.
3199 * testsuite/Makefile.in: Likewise.
3201 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3204 * testsuite/libgomp.c++/pr35185.C: New test.
3206 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3209 * testsuite/libgomp.c/pr35549.c: New test.
3211 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3213 * testsuite/libgomp.c/atomic-3.c: New test.
3215 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3218 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3221 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3224 * configure.ac: Add ACX_HEADER_STRING.
3225 * env.c: Include strings.h.
3226 * aclocal.m4: Regenerate.
3227 * config.h.in: Regenerate.
3228 * configure: Regenerate.
3229 * Makefile.in: Regenerate.
3230 * testsuite/Makefile.in: Regenerate.
3232 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3235 * testsuite/libgomp.c/pr35196.c: New test.
3238 * testsuite/libgomp.fortran/pr35130.f90: New test.
3239 * testsuite/libgomp.c/pr35130.c: New test.
3241 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3244 * testsuite/libgomp.c/pr33880.c: New test.
3245 * testsuite/libgomp.fortran/pr33880.f90: New test.
3247 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3249 * configure: Regenerate.
3251 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3253 * configure.ac: Move futex checking into ../config/futex.m4.
3254 * configure: Rebuilt.
3255 * aclocal.m4: Rebuilt.
3256 * Makefile.in: Rebuilt.
3258 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3259 2007-10-15 ../config/tls.m4 change.
3261 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3264 * testsuite/libgomp.c/pr34513.c: New test.
3265 * testsuite/libgomp.c++/pr34513.C: New test.
3267 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3270 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3272 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3274 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3276 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3278 * testsuite/libgomp.c/private-1.c: New test.
3280 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3281 Paolo Bonzini <bonzini@gnu.org>
3283 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3284 instead of 'VPATH ='.
3285 * Makefile.in: Regenerate.
3287 2007-11-23 Matthias Klose <doko@ubuntu.com>
3289 * configure.ac: Adjust makeinfo version check.
3290 * configure: Regenerate.
3292 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3295 * testsuite/libgomp.fortran/pr34020.f90: New test.
3297 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3300 * testsuite/libgomp.c++/atomic-1.C: New test.
3302 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3305 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3306 Make x and y integers rather than (implicit) reals. Add private (j)
3307 clause to the last omp parallel.
3309 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3311 * configure: Regenerate following changes to ../config/tls.m4.
3313 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3315 * testsuite/libgomp.fortran/stack.f90: New test.
3317 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3319 * config/mingw32/proc.c: New file.
3321 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3323 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3324 (main): Use __get_cpuid to get i386 target fetaures.
3325 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3326 (main): Use __get_cpuid to get x86_64 target fetaures.
3328 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3331 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3332 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3334 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3337 * testsuite/libgomp.fortran/pr32550.f90: New test.
3338 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3340 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3342 * aclocal.m4: Regenerated.
3344 2007-07-05 Tobias Burnus <burnus@net-b.de>
3347 * testsuite/libgomp.fortran/pr32359.f90: New.
3349 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3352 * sections.c (GOMP_parallel_sections_start): Only decrease
3353 number of threads to COUNT if dyn_var is true.
3354 * testsuite/libgomp.c/pr32468.c: New test.
3356 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3359 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3361 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3364 * testsuite/libgomp.c/pr32362-1.c: New test.
3365 * testsuite/libgomp.c/pr32362-2.c: New test.
3366 * testsuite/libgomp.c/pr32362-3.c: New test.
3368 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3370 * team.c (gomp_team_start): Fix setting up thread_attr
3373 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3375 * configure: Regenerate.
3377 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3379 * Makefile.in: Regenerate.
3380 * configure: Regenerate.
3381 * aclocal.m4: Regenerate.
3382 * testsuite/Makefile.in: Regenerate.
3384 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3386 * config/linux/proc.c: New file.
3389 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3391 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3393 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3395 2007-04-16 Matthias Klose <doko@debian.org>
3397 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3398 flags if not building with -m64.
3399 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3400 flag for i?86-*-* targets, if current target matches -m64.
3402 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3404 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3405 * Makefile.in: Regenerate.
3407 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3410 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3412 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3414 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3416 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3418 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3419 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3420 (parse_affinity): New function.
3421 (initialize_env): Call it and gomp_init_affinity.
3422 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3423 create new pthread_attr_t and call gomp_init_thread_affinity
3424 on it for each thread before passing the attribute to pthread_create.
3425 * config/linux/affinity.c: New file.
3426 * config/posix/affinity.c: New file.
3427 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3428 * configure: Rebuilt.
3429 * config.h.in: Rebuilt.
3430 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3431 * Makefile.in: Rebuilt.
3433 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3435 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3437 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3438 and use it if found.
3440 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3442 * testsuite/config/default.exp: New file.
3443 * testsuite/lib/libgomp.exp: New file.
3444 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3445 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3446 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3447 (libgomp_load): Remove.
3448 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3449 always_ld_library_path, not ld_library_path. Set additional_flags
3450 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3451 (target_compile): Do not call libgomp_init. Append lang_library_path
3452 and lang_link_flags to options.
3453 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3454 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3456 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3457 always_ld_library_path. Set LD_LIBRARY_PATH here.
3458 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3459 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3460 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3462 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3463 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3464 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3465 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3466 * testsuite/libgomp.c/atomic-10.c: Ditto.
3468 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3470 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3471 dg-final cleanup-modules line.
3472 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3473 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3474 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3475 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3476 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3477 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3478 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3480 2007-03-18 Andreas Schwab <schwab@suse.de>
3482 * acinclude.m4: Adjust regular expression for ld version
3484 * configure: Regenerate.
3486 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3488 * Makefile.am: Add install-pdf target as copied from
3489 automake v1.10 rules.
3490 * Makefile.in: Regenerate
3492 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3495 * configure: Regenerate.
3498 * testsuite/libgomp.c++/pr30703.C: New test.
3500 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3503 2006-07-05 Eric Christopher <echristo@apple.com>
3504 * configure.ac: Depend addition of -pthread on host OS.
3505 * configure: Regenerate.
3507 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3509 * libgomp.texi: Fix spacing after abbreviations.
3511 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3514 * configure.ac: Add check for makeinfo
3515 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3516 if an appropiate version of makeinfo is found.
3517 * aclocal.m4: Regenerated.
3518 * configure: Regenerated.
3519 * Makefile.in: Regenerated.
3520 * testsuite/Makefile.in: Regenerated.
3522 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3525 * libgomp.texi: More about implementation-dependent settings.
3527 2007-01-26 Tobias Burnus <burnus@net-b.de>
3529 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3531 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3534 * testsuite/libgomp.c/pr30494.c: New test.
3536 2007-01-15 Tom Tromey <tromey@redhat.com>
3538 * configure: Rebuilt.
3539 * configure.ac: Fixed comment.
3541 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3543 * libgomp.texi: Document implementation specific default values of
3544 environment variables.
3546 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3549 * libgomp.texi: New file.
3550 * configure.ac: Add --enable-generated-files-in-srcdir option.
3551 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3553 * Makefile.in: Regenerated.
3554 * config.h.in: Regenerated.
3555 * testsuite/Makefile.in: Regenerated.
3558 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3561 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3563 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3565 * configure: Regenerate.
3567 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3570 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3571 start if there shouldn't be any loop iterations.
3572 (gomp_loop_ordered_static_start): Remove start == end test.
3573 * testsuite/libgomp.c/pr29947-1.c: New test.
3574 * testsuite/libgomp.c/pr29947-2.c: New test.
3576 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3578 * configure.tgt: Force initial-exec TLS model on Linux only.
3580 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3582 * configure: Regenerated.
3584 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3586 * env.c (parse_schedule): Reject out of range values.
3587 (parse_unsigned_long): Reject out of range, negative or zero values.
3589 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3592 * testsuite/libgomp.fortran/pr29629.f90: New test.
3594 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3597 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3598 * config/posix95: New directory.
3599 * config/posix95/omp-lock.h: New file.
3600 * config/posix95/lock.c: Likewise.
3602 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3604 * aclocal.m4: Regenerate.
3605 * configure: Regenerate.
3607 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3609 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3612 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3614 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3616 * configure: Regenerate.
3617 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3619 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3623 * testsuite/libgomp.c/nestedfn-4.c: New test.
3624 * testsuite/libgomp.c/nestedfn-5.c: New test.
3625 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3628 * testsuite/libgomp.fortran/condinc1.f: New test.
3629 * testsuite/libgomp.fortran/condinc2.f: New test.
3630 * testsuite/libgomp.fortran/condinc3.f90: New test.
3631 * testsuite/libgomp.fortran/condinc4.f90: New test.
3632 * testsuite/libgomp.fortran/condinc1.inc: New file.
3634 2006-09-18 Tom Tromey <tromey@redhat.com>
3636 * configure: Rebuilt.
3638 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3641 PR preprocessor/14634
3642 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3644 * configure: Regenerate.
3646 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3648 * testsuite/libgomp.fortran/reduction3.f90: Change
3649 -2147483648 to -huge(i)-1 to avoid overflow.
3650 * testsuite/libgomp.fortran/reduction4.f90: Change
3651 Z'ffffffff' to not(0) to avoid overflow.
3653 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3656 * Makefile.am (libsubincludedir): New.
3657 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3658 * Makefile.in: Regenerate.
3660 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3663 * env.c: Include ctype.h.
3664 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3665 leading and/or trailing whitespace and compare strings case
3668 2006-07-16 Jakub Jelinek <jakub@redhat.com>
3671 * testsuite/libgomp.fortran/pr28390.f: New test.
3673 2006-07-05 Eric Christopher <echristo@apple.com>
3675 * configure.ac: Depend addition of -pthread on host OS.
3676 * configure: Regenerate.
3678 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3680 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3681 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3684 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3688 * configure.ac: If neither --enable-linux-futex nor
3689 --disable-linux-futex is passed, determine the default by checking
3690 for compiling and/or running against NPTL. With --enable-linux-futex,
3691 check if SYS_gettid and SYS_futex are defined.
3692 * configure: Rebuilt.
3694 2006-06-14 Richard Henderson <rth@redhat.com>
3697 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3698 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3700 2006-06-09 Richard Henderson <rth@redhat.com>
3702 * env.c (gomp_nthreads_var): Change to unsigned long.
3703 (gomp_run_sched_chunk): Likewise.
3704 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3705 (initialize_env): Initialize gomp_thread_attr.
3706 * libgomp.h (gomp_nthreads_var): Update decl.
3707 (gomp_run_sched_chunk): Likewise.
3708 (gomp_thread_attr): Declare.
3709 * team.c (gomp_thread_attr): Export.
3710 (initialize_team): Don't initialize it.
3712 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3715 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3716 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3718 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3720 * config/mingw32/time.c: New file.
3721 * configure.tgt: Use it.
3723 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3725 * Makefile.am: Add install-html target. Add install-html to .PHONY
3726 * Makefile.in: Regenerate.
3728 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3731 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3732 * testsuite/libgomp.c/critical-1.c: Likewise.
3733 * testsuite/libgomp.c/loop-1.c: Likewise.
3734 * testsuite/libgomp.c/loop-2.c: Likewise.
3735 * testsuite/libgomp.c/single-1.c: Likewise.
3736 * testsuite/libgomp.c/ordered-1.c: Likewise.
3737 * testsuite/libgomp.c/ordered-2.c: Likewise.
3739 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3742 * libgomp.fortran/pr27416-1.f90: New test.
3744 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3747 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3748 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3750 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3753 * testsuite/libgomp.c/pr26943-1.c: New test.
3754 * testsuite/libgomp.c/pr26943-2.c: New test.
3755 * testsuite/libgomp.c/pr26943-3.c: New test.
3756 * testsuite/libgomp.c/pr26943-4.c: New test.
3757 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3758 * testsuite/libgomp.c++/pr26943.C: New test.
3760 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3763 * testsuite/libgomp.c++/pr27337.C: New test.
3765 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3768 * testsuite/libgomp.c/pr26171.c: New test.
3770 2006-04-25 Richard Henderson <rth@redhat.com>
3773 * configure.ac: Use GCC_CHECK_TLS.
3774 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3775 * Makefile.in, aclocal.m4, configure: Regenerate.
3777 2006-04-10 Matthias Klose <doko@debian.org>
3779 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3780 directory names containing underscores.
3782 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3785 * testsuite/libgomp.c++/pr26691.C: New test.
3787 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3789 * testsuite/libgomp.fortran/retval2.f90: New test.
3791 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3793 * testsuite/libgomp.c++: New directory.
3795 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3797 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3798 * config/posix/sem.c: Implement the above.
3800 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3802 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3803 define HAVE_BROKEN_POSIX_SEMAPHORES.
3804 * configure: Rebuilt.
3805 * config.h.in: Rebuilt.
3807 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3810 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3811 for the other pthread check.
3812 * configure: Regenerate.
3813 * config.h.in: Regenerate.
3815 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3819 * Makefile.am (fincludedir): New variable.
3820 (nodist_include_HEADERS): Remove Fortran files.
3821 (nodist_finclude_HEADERS): New variable.
3822 * Makefile.in: Regenerated.
3824 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3826 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3827 Remove tests for returning assumed character length arrays.
3829 2006-02-12 Roger Sayle <roger@eyesopen.com>
3830 John David Anglin <dave@hiauly1.hia.nrc.ca>
3833 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3835 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3837 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3839 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3841 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3842 part of LD_LIBRARY_PATH manually.
3844 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3847 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3850 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3853 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3854 * configure.ac (PERL): Don't set.
3855 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3856 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3857 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3858 * omp.h.in: Wrap the new configure substitutions with @ characters.
3859 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3860 * aclocal.m4, configure, Makefile.in: Regenerate.
3861 * mkomp_h.pl: Delete.
3863 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3866 * configure.ac: Use GCC_HEADER_STDINT.
3867 * libgomp.h: Include gstdint.h.
3868 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3869 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3871 2006-01-24 Richard Henderson <rth@redhat.com>
3874 * configure.ac: Add AM_MAINTAINER_MODE.
3875 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3877 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3879 * Makefile.in: Regenerate.
3880 * testsuite/Makefile.in: Regenerate.
3881 * aclocal.m4: Regenerate.
3883 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3885 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3887 * configure.ac: Add check for loadavg.h.
3888 (link_gomp): Adjust comment.
3889 * configure: Regenerate.
3890 * config.h.in: Regenerate.
3892 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3895 * configure.ac: Remove check for alloca.h.
3896 * configure: Regenerate.
3897 * config.h.in: Regenerate.
3898 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3899 * team.c: Remove use of alloca.h.
3900 Call gomp_alloca instead of alloca.
3902 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3905 * team.c: Add include of alloca.h.
3906 * configure.ac: Add check for alloca.h.
3907 * configure: Regenerate.
3908 * config.h.in: Regenerate.
3910 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3913 * testsuite/libgomp.fortran/pr25219.f90: New test.
3915 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3917 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3918 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3919 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3920 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3921 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3922 testsuite/libgomp.fortran/threadprivate1.f90,
3923 testsuite/libgomp.fortran/threadprivate2.f90,
3924 testsuite/libgomp.fortran/threadprivate3.f90,
3925 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3926 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3927 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3928 effective-target to TLS runtime.
3930 * testsuite/libgomp.fortran/pr25162.f: Require
3931 effective-target TLS runtime.
3933 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3935 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3936 * testsuite/libgomp.c/nestedfn-3.c: New test.
3938 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3941 * testsuite/libgomp.fortran/pr25162.f: New test.
3943 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3945 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3946 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3948 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3950 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3951 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3952 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3953 single.c, team.c, work.c, config/linux/alpha/futex.h,
3954 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3955 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3956 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3957 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3958 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3959 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3960 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3963 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3965 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3966 to nodist_noinst_HEADERS.
3967 * Makefile.in: Rebuilt.
3969 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3970 add integer count field.
3971 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3972 omp_nest_lock_t type change.
3973 (omp_init_nest_lock): Likewise. Initialize count to 0.
3974 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3976 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3978 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3979 Increment count if successful and return the new nesting level.
3980 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3981 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3982 * testsuite/libgomp.c/lib-1.c: New test.
3983 * testsuite/libgomp.fortran/lib1.f90: New test.
3984 * testsuite/libgomp.fortran/lib2.f: New test.
3985 * testsuite/libgomp.fortran/lib3.f: New test.
3987 2005-11-17 Richard Henderson <rth@redhat.com>
3990 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3991 * configure.ac (link_gomp): New. Substitute it.
3992 (AC_CONFIG_FILES): Add libgomp.spec.
3993 * libgomp.spec.in: New file.
3994 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3995 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3997 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3999 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4000 reduction(-:var) behaving the same as reduction(+:var).
4001 * testsuite/libgomp.c/reduction-4.c: New test.
4003 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4005 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4006 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4007 testsuite/libgomp.c/copyin-3.c,
4008 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4009 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4010 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4011 testsuite/libgomp.c++/pr24455.C,
4012 testsuite/libgomp.fortran/threadprivate1.f90,
4013 testsuite/libgomp.fortran/threadprivate2.f90,
4014 testsuite/libgomp.fortran/threadprivate3.f90,
4015 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4016 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4017 testsuite/libgomp.fortran/omp_parse3.f90: Require
4018 effective-target TLS.
4020 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4024 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4027 * team.c (initialize_team): Pass NULL rather than free as
4028 pthread_key_create destructor. Initialize thread specific data
4029 pointer in initial thread to a static local variable rather than
4032 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4034 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4035 its location to ld_library_path.
4037 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4039 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4041 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4043 * testsuite/libgomp.c: Rename from libgomp.dg.
4045 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4047 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4048 threadprivate variable 'i'.
4050 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4052 * config/linux/s390/futex.h: New file.
4053 * configure.tgt: Use it.
4055 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4056 before the parallel.
4058 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4061 * testsuite/libgomp.c++/master-1.C: New test.
4063 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4065 * testsuite/libgomp.dg/copyin-3.c: New test.
4067 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4069 * testsuite/libgomp.fortran/retval1.f90: New test.
4070 * testsuite/libgomp.fortran/vla7.f90: New test.
4072 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4074 * testsuite/libgomp.fortran/vla2.f90: New test.
4075 * testsuite/libgomp.fortran/vla3.f90: New test.
4076 * testsuite/libgomp.fortran/vla4.f90: New test.
4077 * testsuite/libgomp.fortran/vla5.f90: New test.
4078 * testsuite/libgomp.fortran/vla6.f90: New test.
4080 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4082 * config/linux/sparc/futex.h: New file.
4083 * configure.tgt: Use it.
4084 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4086 * critical.c: Include stdlib.h.
4087 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4088 ignoring return value.
4089 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4090 LIBGOMP_CHECK_SYNC_BUILTINS check.
4091 * configure: Rebuilt.
4093 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4095 * testsuite/libgomp.fortran/vla1.f90: New test.
4097 2005-10-31 Richard Henderson <rth@redhat.com>
4099 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4100 setting 's' in different threads.
4102 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4104 * libgomp.h (attribute_hidden, ialias): Define.
4105 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4106 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4107 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4108 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4109 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4110 omp_test_lock, omp_test_nest_lock): Likewise.
4111 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4112 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4113 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4114 omp_test_lock, omp_test_nest_lock): Likewise.
4115 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4116 omp_get_dynamic, omp_get_nested): Likewise.
4117 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4118 omp_get_thread_num, omp_in_parallel): Likewise.
4119 * fortran.c (ialias_redirect): Define.
4120 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4121 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4122 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4123 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4124 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4125 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4126 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4127 omp_get_wtime): Add ialias_redirect.
4129 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4131 * fortran.c: Include stdlib.h.
4133 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4135 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4136 * Makefile.in: Regenerated.
4138 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4140 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4141 * libgomp_f.h.in (omp_check_defines): New function.
4142 * env.c: Include libgomp_f.h.
4143 (initialize_env): Call omp_check_defines.
4145 * testsuite/libgomp.dg/copyin-2.c: New test.
4146 * testsuite/libgomp.c++/copyin-2.C: New test.
4147 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4149 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4150 * testsuite/libgomp.fortran/sharing2.f90: New test.
4152 * testsuite/libgomp.dg/copyin-1.c: New test.
4153 * testsuite/libgomp.c++/copyin-1.C: New test.
4155 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4157 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4159 * testsuite/libgomp.fortran/workshare1.f90: New test.
4161 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4163 * libgomp.fortran/sharing1.f90: New test.
4165 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4168 * testsuite/libgomp.c++/loop-7.C: New test.
4170 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4172 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4173 * testsuite/libgomp.fortran/reduction6.f90: New test.
4174 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4176 2005-10-23 Richard Henderson <rth@redhat.com>
4178 * testsuite/libgomp.c++/ctor-1.C: New.
4179 * testsuite/libgomp.c++/ctor-2.C: New.
4180 * testsuite/libgomp.c++/ctor-3.C: New.
4181 * testsuite/libgomp.c++/ctor-4.C: New.
4182 * testsuite/libgomp.c++/ctor-5.C: New.
4183 * testsuite/libgomp.c++/ctor-6.C: New.
4184 * testsuite/libgomp.c++/ctor-7.C: New.
4185 * testsuite/libgomp.c++/ctor-8.C: New.
4186 * testsuite/libgomp.c++/ctor-9.C: New.
4188 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4191 * testsuite/libgomp.c++/pr24455-1.C: New test.
4192 * testsuite/libgomp.c++/pr24455.C: New test.
4193 * testsuite/libgomp.dg/pr24455-1.c: New test.
4194 * testsuite/libgomp.dg/pr24455.c: New test.
4196 2005-10-20 Richard Henderson <rth@redhat.com>
4198 * testsuite/libgomp.c++/loop-6.C: New.
4199 * testsuite/libgomp.dg/loop-3.c: New.
4201 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4203 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4205 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4208 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4210 * testsuite/libgomp.fortran/jacobi.f: New test.
4212 2005-10-19 Richard Henderson <rth@redhat.com>
4214 * configure.tgt (i?86-linux): Default to with_arch instead of
4215 CFLAGS. Add -mtune to match target_cpu.
4216 (x86_64-linux): Tune to i686.
4218 * fortran.c (omp_test_nest_lock_): Fix typo.
4220 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4222 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4223 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4224 * testsuite/libgomp.dg/ordered-3.c: New test.
4226 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4227 Remove volatile keyword.
4229 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4230 in COMMON block to avoid warnings on 64-bit targets.
4232 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4234 * testsuite/libgomp.dg/shared-3.c: New test.
4236 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4238 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4239 * testsuite/libgomp.fortran/reduction5.f90: New test.
4241 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4243 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4245 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4246 flush loop now that __sync_synchronize has proper memory barrier.
4247 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4248 Add -ffixed-form to dg-options.
4250 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4252 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4253 from subdirectories.
4254 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4255 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4256 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4257 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4258 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4259 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4260 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4261 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4262 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4263 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4264 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4265 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4266 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4267 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4268 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4269 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4270 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4271 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4272 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4273 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4274 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4275 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4276 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4277 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4278 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4280 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4282 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4283 lang_library_path exists. Use find instead of glob to gather tests.
4284 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4286 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4288 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4289 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4290 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4291 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4292 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4293 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4294 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4295 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4296 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4297 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4298 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4299 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4300 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4302 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4304 * testsuite/libgomp.dg/vla-1.c: New test.
4306 * testsuite/libgomp.fortran/reference2.f90: New test.
4308 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4309 declaration of omp_get_thread_num.
4310 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4313 * testsuite/libgomp.fortran/reduction1.f90: New test.
4314 * testsuite/libgomp.fortran/reduction2.f90: New test.
4315 * testsuite/libgomp.fortran/reduction3.f90: New test.
4316 * testsuite/libgomp.fortran/reduction4.f90: New test.
4318 2005-10-13 Richard Henderson <rth@redhat.com>
4320 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4321 * Makefile.in: Regenerate.
4322 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4323 * libgomp.h: Include bar.h.
4324 (struct gomp_barrier): Remove.
4325 (struct gomp_team): Add barrier. Replace master_barrier with
4326 master_release. Replace threads with ordered_release.
4327 (struct gomp_thread): Replace barrier with release.
4328 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4329 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4330 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4331 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4332 (GOMP_single_copy_end): Likewise.
4333 * team.c (gomp_threads_dock): New.
4334 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4335 (gomp_thread_start): Use gomp_barrier_wait.
4336 (new_team, free_team): Update for gomp_team changes.
4337 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4338 (gomp_team_end): Use gomp_barrier_wait.
4339 (initialize_team): Update for gomp_thread changes.
4340 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4341 (gomp_work_share_end_nowait): Use atomic ops when available.
4342 * config/linux/bar.c, config/linux/bar.h: New files.
4343 * config/posix/bar.c, config/posix/bar.h: New files.
4345 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4347 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4348 * testsuite/libgomp.dg/single-2.c: New test.
4350 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4351 lang_link_flags): Unset, so that they aren't inherited from previously
4354 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4356 2005-10-12 Richard Henderson <rth@redhat.com>
4358 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4359 (libgomp_init): Use lang_test_file, lang_library_path, and
4360 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4362 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4363 (lang_test_file, lang_link_flags): New.
4364 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4366 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4367 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4368 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4369 testsuite/libgomp.c++/parallel-1.C,
4370 testsuite/libgomp.c++/reduction-1.C,
4371 testsuite/libgomp.c++/reduction-2.C,
4372 testsuite/libgomp.c++/reduction-3.C,
4373 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4374 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4375 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4376 New files, largely cribbed from the C testsuite.
4378 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4380 * testsuite/libgomp.fortran/character1.f90: New test.
4381 * testsuite/libgomp.fortran/character2.f90: New test.
4383 * testsuite/libgomp.dg/nested-1.c: New test.
4384 * testsuite/libgomp.dg/nested-2.c: New test.
4385 * testsuite/libgomp.fortran/do1.f90: New test.
4386 * testsuite/libgomp.fortran/do2.f90: New test.
4388 * testsuite/libgomp.fortran/reference1.f90: New test.
4390 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4392 * testsuite/libgomp.dg/reduction-1.c: New test.
4393 * testsuite/libgomp.dg/reduction-2.c: New test.
4394 * testsuite/libgomp.dg/reduction-3.c: New test.
4396 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4398 * testsuite/libgomp.dg/atomic-1.c: New test.
4399 * testsuite/libgomp.dg/atomic-2.c: New test.
4401 2005-10-09 Richard Henderson <rth@redhat.com>
4403 * critical.c (atomic_lock): New.
4404 (initialize_critical): Initialize it.
4405 (GOMP_atomic_start, GOMP_atomic_end): New.
4406 * libgomp.map: Export them.
4407 * libgomp_g.h: Declare them.
4409 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4411 2005-10-02 Richard Henderson <rth@redhat.com>
4413 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4414 to XCFLAGS instead of CFLAGS.
4416 2005-09-30 Richard Henderson <rth@redhat.com>
4418 * configure.ac: Determine whether -pthread or -lpthread is needed.
4419 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4420 * Makefine.in, configure: Rebuild.
4422 2005-09-28 Richard Henderson <rth@redhat.com>
4424 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4425 * testsuite/libgomp.dg/omp-single-3.c: New test.
4427 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4429 * testsuite/libgomp.dg/omp-single-2.c: New test.
4430 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4432 2005-09-27 Richard Henderson <rth@redhat.com>
4434 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4435 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4437 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4439 * testsuite/libgomp.dg/omp-loop03.c: New test.
4441 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4443 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4445 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4447 * testsuite/libgomp.dg/omp-single-1.c: New test.
4448 * testsuite/libgomp.dg/shared-1.c: Return 0.
4449 Add prototype for abort.
4450 * testsuite/libgomp.dg/shared-2.c: Likewise.
4452 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4454 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4457 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4459 * testsuite/libgomp.dg/shared-1.c: New test.
4460 * testsuite/libgomp.dg/shared-2.c: New test.
4462 2005-09-24 Richard Henderson <rth@redhat.com>
4464 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4466 2005-09-24 Richard Henderson <rth@redhat.com>
4468 * iter.c (gomp_iter_static_next): Round up when computing number
4469 of iterations. Don't bother distributing a remainder equally.
4471 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4472 Don't call srand. Zero b before testing.
4475 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4477 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4478 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4480 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4482 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4483 without !$omp end do, followed immediately by subroutine end.
4485 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4487 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4489 2005-09-22 Richard Henderson <rth@redhat.com>
4491 * critical.c (GOMP_critical_name_start): Change argument to void**.
4492 Reuse the pointer space if the mutex fits.
4493 (GOMP_critical_name_end): Likewise.
4494 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4495 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4496 (GOMP_critical_name_end): Likewise.
4497 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4498 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4500 2005-09-20 Richard Henderson <rth@redhat.com>
4502 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4503 (create_lock_lock): New.
4504 (initialize_critical): Initialize it.
4505 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4506 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4508 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4510 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4512 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4514 * testsuite/libgomp.dg/omp-loop01.c: New test.
4515 * testsuite/libgomp.dg/omp-loop02.c: New test.
4517 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4519 * configure.ac (AC_PROG_FC): Add.
4520 (USE_FORTRAN): New automake conditional.
4521 * configure: Rebuilt.
4522 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4523 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4524 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4525 Add rules to build them.
4526 * Makefile.in: Rebuilt.
4527 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4529 * libgomp.map: Add Fortran wrappers.
4530 * libgomp_f.h.in: New file.
4531 * omp_lib.h.in: New file.
4532 * omp_lib.f90.in: New file.
4533 * fortran.c: New file.
4534 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4535 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4536 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4537 libgfortran has been built.
4538 * testsuite/libgomp.fortran/fortran.exp: New file.
4539 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4540 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4541 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4542 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4543 * testsuite/libgomp.fortran/omp_hello.f: New test.
4544 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4545 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4546 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4547 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4548 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4549 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4550 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4551 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4553 2005-08-30 Richard Henderson <rth@redhat.com>
4555 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4556 function for when aliases are not usable.
4557 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4558 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4559 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4560 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4561 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4562 GOMP_loop_ordered_guided_next): Likewise.
4563 * ordered.c (GOMP_ordered_start): Likewise.
4565 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4567 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4568 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4569 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4570 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4571 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4572 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4573 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4574 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4575 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4577 2005-07-07 Eric Christopher <echristo@redhat.com>
4578 Diego Novillo <dnovillo@redhat.com>
4580 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4581 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4583 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4584 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4585 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4586 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4587 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4588 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4589 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4591 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4593 * TOPLEVEL.patch: Remove.
4595 2005-05-16 Richard Henderson <rth@redhat.com>
4597 * configure.ac: Test for clock_gettime.
4598 * config.h.in, configure: Rebuild.
4599 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4600 (omp_get_wtime): Use clock_gettime if available.
4601 (omp_get_wtick): Use clock_getres if available.
4603 2005-05-11 Richard Henderson <rth@redhat.com>
4605 * config/linux/ia64/futex.h: New file.
4606 * configure.tgt: Use it.
4608 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4610 2005-05-07 Richard Henderson <rth@redhat.com>
4612 * config/linux/powerpc/futex.h: New file.
4613 * configure.tgt: Use it.
4615 * config/linux/i486/futex.h: Merge ...
4616 * config/linux/x86_64/futex.h: ... into ...
4617 * config/linux/x86/futex.h: ... here.
4618 * configure.tgt: Update to match.
4620 2005-05-06 Richard Henderson <rth@redhat.com>
4622 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4623 * config/linux/i486/futex.h: Likewise.
4624 * config/linux/x86_64/futex.h: Likewise.
4626 * config/linux/lock.c: New file.
4627 * config/linux/omp-lock.h: New file.
4629 * critical.c, env.h: Don't include omp.h
4630 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4631 * config/posix/time.c: Likewise.
4632 * config/posix/omp-lock.h: New file.
4633 * libgomp.h: Include omp-lock.h and omp.h.
4634 * Makefile.am (nodist_include_HEADERS): New.
4636 * configure.ac (PERL): New.
4637 * mkomp_h.pl: New file.
4638 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4640 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4642 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4643 build directory. Re-add -march=i486 hack.
4645 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4646 (libgomp_link_flags): Remove.
4647 (libgomp_initialized): Remove.
4648 (libgomp_init): Don't protect from reinitialization. Copy code
4649 from libstdc++ for getting the multilib set correctly.
4651 2005-05-05 Richard Henderson <rth@redhat.com>
4653 * config/linux/alpha/futex.h: New file.
4654 * configure.tgt (alpha*-*-linux*): Use it.
4656 * config/posix/mutex.c: New file.
4657 * config/posix/sem.c: Use libgomp.h.
4659 * configure.tgt (x86_64-linux): Also test CC for -m32.
4660 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4662 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4665 * Makefile.am (SUBDIRS): New.
4666 (libgomp_la_LDFLAGS): Add -lpthread.
4667 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4668 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4670 * libgomp_g.h: New file.
4671 * libgomp.h: Split out all public declarations to libgomp_g.h.
4672 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4673 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4674 * config/linux/sem.h: Likewise.
4675 * config/posix/sem.h: Likewise.
4677 * Makefile.am (AM_LDFLAGS): New.
4678 (libgomp_version_script): Split out from ...
4679 (libgomp_la_LDFLAGS): ... here.
4680 (libgomp_version_info): New.
4681 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4682 (LIBGOMP_ENABLE): New.
4683 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4684 (LIBGOMP_ENABLE_SYMVERS): New.
4685 * configure.ac (AC_INIT): Version 1.0.
4686 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4687 (enable-linux-futex): Likewise. Rename from enable-futex.
4688 (libtool_VERSION): New.
4689 (LIBGOMP_ENABLE_SYMVERS): Use it.
4690 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4691 * Makefile.in, aclocal.m4, configure: Rebuild.
4693 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4694 (gomp_mutex_unlock_slow): Fix typo.
4695 * config/linux/sem.c: Similarly.
4696 (gomp_sem_post_slow): Fix typo.
4697 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4698 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4699 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4701 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4702 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4703 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4704 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4705 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4706 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4707 LDFLAGS. Pull enable_futex check to top-level.
4708 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4709 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4711 First attempt at real configury.
4712 * Makefile, config.h: Remove file.
4713 * Makefile.am, Makefile.in: New file.
4714 * acinclude.m4 aclocal.m4: New file.
4715 * configure.ac, configure.tgt, configure: New file.
4717 * config/posix/lock.c: Rename from sys-lock.c.
4718 * config/posix/mutex.h: Rename from sys-mutex.h.
4719 * config/posix/sem.c: Rename from sys-sem.c.
4720 * config/posix/sem.h: Rename from sys-sem.h.
4721 * config/posix/proc.c: Rename from sys-proc.c.
4722 * config/posix/time.c: Rename from sys-proc.c.
4724 * config/linux/mutex.c: New file.
4725 * config/linux/mutex.h: New file.
4726 * config/linux/sem.c: New file.
4727 * config/linux/sem.h: New file.
4728 * config/linux/i486/futex.h: New file.
4729 * config/linux/x86_64/futex.h: New file.
4731 2005-05-04 Richard Henderson <rth@redhat.com>
4733 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4734 * libgomp.h: Declare them.
4735 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4736 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4738 2005-05-04 Richard Henderson <rth@redhat.com>
4740 * libgomp-1 code drop
4742 2005-05-04 Richard Henderson <rth@redhat.com>
4744 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4745 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4746 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4747 (gomp_iter_static_next): Update.
4748 (gomp_ordered_static_next): Update.
4749 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4750 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4751 totally empty range.
4752 (gomp_loop_ordered_static_next): Refine test for calling
4753 gomp_ordered_static_next.
4754 * testsuite/ordered-1.c: Add case for more threads than iterations.
4756 * iter.c (gomp_iter_runtime_next_locked): Remove.
4757 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4758 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4759 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4760 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4761 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4762 gomp_loop_ordered_guided_next): Downcase name, make static, add
4763 an external alias with the old name.
4764 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4765 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4766 switch and call one of the above static functions.
4767 * libgomp.h: Update.
4769 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4770 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4771 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4772 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4773 GOMP_loop_ordered_guided_start): Update to match.
4774 * sections.c (GOMP_sections_start): Likewise.
4775 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4777 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4778 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4779 Use bounds check instead of modulus.
4780 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4781 (gomp_ordered_last): Don't sync with ordered_owner here.
4782 (gomp_ordered_next): Likewise.
4783 (gomp_ordered_static_loop_next): Likewise.
4784 * loop.c, libgomp.h: Update to match.
4786 * libgomp.h (GOMP_barrier): Declare.
4788 * testsuite/barrier-1.c: New file.
4789 * testsuite/critical-1.c: New file.
4790 * testsuite/ordered-2.c: New file.
4791 * testsuite/ordered-1.c: New file.
4792 * testsuite/sections-1.c: New file.
4793 * testsuite/single-1.c: New file.
4794 * testsuite/Makefile (TESTS): Add them.
4796 2005-05-04 Richard Henderson <rth@redhat.com>
4798 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4799 * loop.c (GOMP_loop_static_start): If not the startup thread,
4800 acquire the mutex to wait for initialization complete.
4801 (GOMP_loop_ordered_static_start): Likewise.
4802 (GOMP_loop_ordered_runtime_start): Likewise.
4803 (GOMP_loop_ordered_static_first): Remove.
4804 (GOMP_loop_ordered_dynamic_first): Remove.
4805 (GOMP_loop_ordered_guided_first): Remove.
4806 (GOMP_loop_ordered_runtime_first): Remove.
4807 * ordered.c (gomp_ordered_loop_first): Post to own release when
4808 we're the first thread.
4809 (gomp_ordered_loop_last): Wait on release if not owner.
4810 (gomp_ordered_loop_next): Likewise.
4811 (gomp_ordered_static_loop_init): New.
4812 (gomp_ordered_static_loop_next): Use ordered_owner.
4813 (GOMP_ordered_start): Likewise.
4814 * work.c (gomp_new_work_share): Initialize ordered_owner.
4816 2005-05-03 Richard Henderson <rth@redhat.com>
4818 * Makefile (OPT): New.
4821 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4822 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4823 * libgomp.h, libgomp.map, NOTES: Update to match.
4825 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4826 Add initialized and thr members.
4827 (gomp_thread_start): Pause when initially spawned to wait for
4828 the whole team to be created.
4829 (gomp_team_start): Release team members at the end.
4831 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4832 (f_foo_1): Use GOMP_loop_end.
4833 (f_foo_2): Use GOMP_loop_end_nowait.
4835 * testsuite/loop-2.c: New file.
4836 * testsuite/Makefile (TESTS): Add it.
4838 2005-05-03 Richard Henderson <rth@redhat.com>
4840 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4841 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4842 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4845 * testsuite/Makefile: New file.
4846 * testsuite/loop-1.c: New file.
4848 2005-05-03 Richard Henderson <rth@redhat.com>
4850 Initial implementation and checkin.