1 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
3 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
5 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6 James Norris <jnorris@codesourcery.com>
7 Tom de Vries <tom@codesourcery.com>
8 Julian Brown <julian@codesourcery.com>
9 Cesar Philippidis <cesar@codesourcery.com>
10 Nathan Sidwell <nathan@codesourcery.com>
11 Tobias Burnus <burnus@net-b.de>
13 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
17 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
18 Include $(top_srcdir)/plugin/Makefrag.am.
19 (nodist_libsubinclude_HEADERS): Add openacc.h.
20 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
21 openacc.f90, openacc.mod, openacc_kinds.mod.
22 (omp_lib.mod): Generalize into...
23 (%.mod): ... this new rule.
24 (openacc_kinds.mod, openacc.mod): New rules.
25 * plugin/configfrag.ac: New file.
26 * configure.ac: Move plugin/offloading support into it. Include
27 it. Instantiate testsuite/libgomp-test-support.pt.exp.
28 * plugin/Makefrag.am: New file.
29 * testsuite/Makefile.am (OFFLOAD_TARGETS)
30 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
32 (libgomp-test-support.exp): New rule.
33 (all-local): Depend on it.
34 * Makefile.in: Regenerate.
35 * testsuite/Makefile.in: Regenerate.
36 * config.h.in: Likewise.
37 * configure: Likewise.
38 * configure.tgt: Harden shell syntax.
39 * env.c: Include "oacc-int.h".
40 (parse_acc_device_type): New function.
41 (gomp_debug_var, goacc_device_type, goacc_device_num): New
43 (initialize_env): Initialize those. Call
44 goacc_runtime_initialize.
45 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
46 (gomp_fatal): Call gomp_vfatal.
47 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
48 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
49 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
50 (splay_tree_node, splay_tree, splay_tree_key)
51 (struct target_mem_desc, struct splay_tree_key_s)
52 (struct gomp_memory_mapping, struct acc_dispatch_t)
53 (struct gomp_device_descr, gomp_acc_insert_pointer)
54 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
55 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
56 (gomp_free_memmap, gomp_fini_device): New declarations.
57 (gomp_vdebug, gomp_debug): New macros.
58 Include "splay-tree.h".
59 * libgomp.map (OACC_2.0): New symbol version. Use for
60 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
61 acc_set_device_type_h_, acc_get_device_type,
62 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
63 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
64 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
65 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
66 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
67 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
68 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
69 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
70 acc_copyin_array_h_, acc_present_or_copyin,
71 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
72 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
73 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
74 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
75 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
76 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
77 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
78 acc_update_device, acc_update_device_32_h_,
79 acc_update_device_64_h_, acc_update_device_array_h_,
80 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
81 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
82 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
83 acc_is_present_64_h_, acc_is_present_array_h_,
84 acc_memcpy_to_device, acc_memcpy_from_device,
85 acc_get_current_cuda_device, acc_get_current_cuda_context,
86 acc_get_cuda_stream, acc_set_cuda_stream.
87 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
88 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
89 GOACC_update, GOACC_wait, GOACC_get_thread_num,
90 GOACC_get_num_threads.
91 (GOMP_PLUGIN_1.0): New symbol version. Use for
92 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
93 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
94 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
95 GOMP_PLUGIN_acc_thread.
96 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
98 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
99 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
100 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
101 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
102 (splay_tree_remove): New declarations.
103 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
104 (splay_tree_remove, splay_tree_lookup): Move into...
105 * splay-tree.c: ... this new file.
106 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
107 (splay_tree_node, splay_tree, splay_tree_key)
108 (struct target_mem_desc, struct splay_tree_key_s)
109 (struct gomp_device_descr): Don't declare.
110 (num_devices_openmp): New variable.
111 (gomp_get_num_devices ): Use it.
112 (gomp_init_targets_once): New function.
113 (gomp_get_num_devices ): Use it.
114 (get_kind, gomp_copy_from_async, gomp_free_memmap)
115 (gomp_fini_device, gomp_register_image_for_device): New functions.
116 (gomp_map_vars): Add devaddrs parameter.
117 (gomp_update): Add mm parameter.
118 (gomp_init_device): Move most of it into...
119 (gomp_init_tables): ... this new function.
120 (gomp_register_images_for_device): Remove function.
121 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
122 Make them hidden instead of static.
123 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
124 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
125 (GOMP_target_end_data, GOMP_target_update)
126 (gomp_load_plugin_for_device, gomp_target_init): Update for
128 * oacc-async.c: New file.
129 * oacc-cuda.c: Likewise.
130 * oacc-host.c: Likewise.
131 * oacc-init.c: Likewise.
132 * oacc-int.h: Likewise.
133 * oacc-mem.c: Likewise.
134 * oacc-parallel.c: Likewise.
135 * oacc-plugin.c: Likewise.
136 * oacc-plugin.h: Likewise.
137 * oacc-ptx.h: Likewise.
138 * openacc.f90: Likewise.
139 * openacc.h: Likewise.
140 * openacc_lib.h: Likewise.
141 * plugin/plugin-host.c: Likewise.
142 * plugin/plugin-nvptx.c: Likewise.
143 * libgomp-plugin.c: Likewise.
144 * libgomp-plugin.h: Likewise.
145 * libgomp_target.h: Remove file after merging content into the
146 former file. Update all users.
147 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
148 (offload_targets_s, offload_targets_s_openacc): New variables.
149 (check_effective_target_openacc_nvidia_accel_present)
150 (check_effective_target_openacc_nvidia_accel_selected): New
152 (libgomp_init): Update for OpenACC changes.
153 * testsuite/libgomp-test-support.exp.in: New file.
154 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
155 * testsuite/libgomp.oacc-c/c.exp: Likewise.
156 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
157 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
158 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
163 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
165 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
167 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
169 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
176 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
177 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
178 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
179 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
181 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
182 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
183 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
185 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
187 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
188 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
189 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
191 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
193 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
194 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
195 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
196 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
197 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
201 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
203 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
205 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
207 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
208 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
209 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
210 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
211 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
212 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
213 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
214 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
225 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
229 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
242 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
243 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
244 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
245 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
246 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
247 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
251 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
253 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
256 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
285 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
287 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
289 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
293 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
295 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
296 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
298 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
300 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
301 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
302 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
303 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
304 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
305 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
306 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
307 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
308 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
309 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
310 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
311 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
312 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
313 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
314 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
315 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
316 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
317 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
318 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
319 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
320 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
321 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
322 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
323 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
324 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
325 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
326 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
327 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
328 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
329 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
330 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
331 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
332 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
333 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
334 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
335 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
336 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
337 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
338 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
339 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
340 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
341 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
342 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
343 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
344 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
345 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
346 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
347 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
348 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
349 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
350 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
351 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
352 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
353 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
354 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
356 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
357 Julian Brown <julian@codesourcery.com>
358 David Malcolm <dmalcolm@redhat.com>
360 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
361 to "GNU Offloading and Multi Processing Runtime Library". Change
363 * configure: Regenerate.
364 * libgomp.texi: Update.
366 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
368 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
370 * configure: Regenerate.
372 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
373 "intelmic" in $offload_targets.
375 2015-01-05 Jakub Jelinek <jakub@redhat.com>
377 Update copyright years.
379 * libgomp.texi: Bump @copying's copyright year.
381 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
383 * testsuite/lib/libgomp.exp: Load target-utils.exp.
384 Move load of target-supportes.exp earlier.
386 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
388 * testsuite/libgomp.c/target-9.c: New test.
390 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
392 * config.h.in: Regenerate.
393 * configure: Regenerate.
394 * configure.ac: Add GCC_CHECK_EMUTLS.
395 * libgomp.h: Add check for USE_EMUTLS: this case
396 is equal to HAVE_TLS.
399 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
401 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
403 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
404 Ilya Verbin <ilya.verbin@intel.com>
406 * testsuite/libgomp.c/target-critical-1.c: New test.
408 2014-11-26 Jakub Jelinek <jakub@redhat.com>
410 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
411 to dg-options unless expensive testing is on.
412 (TESTITERS): Define to N if not defined.
413 (main): Use TESTITERS instead of N.
414 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
415 dg-additional-options depending on whether expensive testing is on.
416 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
417 Decrease N to 100000 and CHUNKSZ to 10000.
419 2014-11-24 Jakub Jelinek <jakub@redhat.com>
422 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
423 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
425 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
427 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
429 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
432 * configure: Regenerated.
434 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
436 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
437 vect_simd_clones effective target.
438 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
440 2014-11-14 Jakub Jelinek <jakub@redhat.com>
442 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
444 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
445 instead of 32 as block_size.
447 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
448 Ilya Verbin <ilya.verbin@intel.com>
450 * Makefile.in: Regenerate.
451 * configure: Regenerate.
452 * configure.ac: Set up offload_additional_options,
453 offload_additional_lib_paths and offload_targets.
454 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
455 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
456 * testsuite/Makefile.in: Regenerate.
457 * testsuite/lib/libgomp.exp (libgomp_init): Append
458 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
459 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
460 build directory to LD_LIBRARY_PATH for intelmic offload targets.
462 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
463 Ilya Verbin <ilya.verbin@intel.com>
464 Kirill Yukhin <kirill.yukhin@intel.com>
465 Ilya Tocar <ilya.tocar@intel.com>
467 * testsuite/lib/libgomp.exp
468 (check_effective_target_offload_device): New.
469 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
470 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
471 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
472 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
473 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
474 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
475 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
476 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
477 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
478 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
479 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
480 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
481 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
482 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
483 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
484 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
485 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
486 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
487 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
488 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
489 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
490 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
491 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
492 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
493 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
494 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
495 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
496 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
497 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
498 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
499 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
500 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
501 * testsuite/libgomp.c/target-7.c: Fix test.
502 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
503 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
504 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
505 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
506 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
507 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
508 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
509 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
510 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
511 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
512 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
513 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
514 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
515 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
516 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
517 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
518 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
519 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
520 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
521 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
522 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
523 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
524 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
525 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
526 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
527 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
528 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
529 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
530 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
531 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
532 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
534 2014-11-13 Jakub Jelinek <jakub@redhat.com>
535 Ilya Verbin <ilya.verbin@intel.com>
536 Thomas Schwinge <thomas@codesourcery.com>
537 Andrey Turetskiy <andrey.turetskiy@intel.com>
539 * libgomp.map (GOMP_4.0.1): New symbol version.
540 Add GOMP_offload_register.
541 * libgomp_target.h: New file.
542 * splay-tree.h: New file.
543 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
544 (gomp_target_init): New forward declaration.
545 (gomp_is_initialized): New static variable.
546 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
547 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
549 (offload_images, num_offload_images, devices, num_devices): New static
551 (splay_compare): New static function.
552 (struct gomp_device_descr): New structure.
553 (gomp_get_num_devices): Call gomp_target_init.
554 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
555 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
556 (GOMP_offload_register): New function.
557 (GOMP_target): Arrange for host callback to be performed in a separate
558 initial thread and contention group, inheriting ICVs from
559 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
560 Add device initialization and lookup for target function in splay tree.
561 (GOMP_target_data): Add device initialization and call gomp_map_vars.
562 (GOMP_target_end_data): Call gomp_unmap_vars.
563 (GOMP_target_update): Add device initialization and call gomp_update.
564 (gomp_load_plugin_for_device, gomp_register_images_for_device)
565 (gomp_target_init): New static functions.
567 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
568 Thomas Schwinge <thomas@codesourcery.com>
569 Ilya Verbin <ilya.verbin@intel.com>
570 Andrey Turetskiy <andrey.turetskiy@intel.com>
572 * config.h.in: Regenerate.
573 * configure: Regenerate.
574 * configure.ac: Check for libdl, required for plugin support.
575 (PLUGIN_SUPPORT): Define if plugins are supported.
576 (enable_offload_targets): Support Intel MIC targets.
577 (OFFLOAD_TARGETS): List of target names suitable for offloading.
579 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
582 * configure: Regenerate.
584 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
588 2014-10-06 Marek Polacek <polacek@redhat.com>
590 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
591 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
592 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
593 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
595 2014-10-06 Marek Polacek <polacek@redhat.com>
597 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
598 * testsuite/libgomp.c/nqueens-1.c: Likewise.
599 * testsuite/libgomp.c/pr26943-3.c: Likewise.
600 * testsuite/libgomp.c/pr26943-4.c: Likewise.
601 * testsuite/libgomp.c/pr36802-2.c: Likewise.
602 * testsuite/libgomp.c/pr36802-3.c: Likewise.
603 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
604 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
605 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
606 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
607 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
608 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
609 * testsuite/libgomp.c/omp-single-1.c: Likewise.
610 * testsuite/libgomp.c/omp-single-2.c: Likewise.
611 * testsuite/libgomp.c/omp_matvec.c: Likewise.
612 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
613 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
614 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
617 2014-10-03 Jakub Jelinek <jakub@redhat.com>
620 * testsuite/libgomp.c/pr61200.c: New test.
622 2014-09-18 Jakub Jelinek <jakub@redhat.com>
625 * testsuite/libgomp.c++/pr63248.C: New test.
627 2014-08-04 Jakub Jelinek <jakub@redhat.com>
629 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
630 is not zero, but taskgroup->children is NULL and there are
631 any task->children, schedule those instead of waiting.
632 * testsuite/libgomp.c/depend-6.c: New test.
633 * testsuite/libgomp.c/depend-7.c: New test.
634 * testsuite/libgomp.c/depend-8.c: New test.
635 * testsuite/libgomp.c/depend-9.c: New test.
636 * testsuite/libgomp.c/depend-10.c: New test.
638 2014-08-01 Jakub Jelinek <jakub@redhat.com>
640 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
641 (struct gomp_taskwait): New type.
642 (struct gomp_task): Add taskwait and parent_depends_on, remove
643 in_taskwait and taskwait_sem fields.
644 (gomp_finish_task): Don't destroy taskwait_sem.
645 * task.c (gomp_init_task): Don't init in_taskwait, instead init
646 taskwait and parent_depends_on.
647 (GOMP_task): For if (0) tasks with depend clause that depend on
648 earlier tasks don't defer them, instead call
649 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
650 Initialize redundant_out field, for redundant out entries just
651 move them at the end of linked list instead of removing them
652 completely, and set redundant_out flag instead of redundant.
653 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
655 (gomp_task_run_post_handle_dependers): If parent is in
656 gomp_task_maybe_wait_for_dependencies and newly runnable task
657 is not parent_depends_on, queue it in parent->children linked
658 list after all runnable tasks with parent_depends_on set.
659 Adjust for addition of taskwait indirection.
660 (gomp_task_run_post_remove_parent): If parent is in
661 gomp_task_maybe_wait_for_dependencies and task to be removed
662 is parent_depends_on, decrement n_depend and if needed awake
663 parent. Adjust for addition of taskwait indirection.
664 (GOMP_taskwait): Adjust for addition of taskwait indirection.
665 (gomp_task_maybe_wait_for_dependencies): New function.
666 * testsuite/libgomp.c/depend-5.c: New test.
668 2014-07-13 Tobias Burnus <burnus@net-b.de>
670 * testsuite/libgomp.fortran/pr34020.f90: Make compile
671 with TS 18508/Fortran 2015.
673 2014-07-06 Marek Polacek <polacek@redhat.com>
676 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
678 2014-07-03 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
681 matches regex $lang_source_re, add $lang_include_flags to options.
682 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
683 * testsuite/libgomp.c++/c++.exp: Likewise.
684 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
685 and lang_include_flags instead of adding -fintrinsic-modules-path= to
687 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
689 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
691 * testsuite/libgomp.fortran/fortran.exp: Explain
692 gfortran-dg-runtest usage.
694 2014-06-25 Jakub Jelinek <jakub@redhat.com>
696 * testsuite/libgomp.fortran/simd5.f90: New test.
697 * testsuite/libgomp.fortran/simd6.f90: New test.
698 * testsuite/libgomp.fortran/simd7.f90: New test.
700 2014-06-24 Jakub Jelinek <jakub@redhat.com>
702 * testsuite/libgomp.c/for-2.c: Define SC to static for
703 #pragma omp for simd testing.
704 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
705 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
707 * testsuite/libgomp.c/simd-14.c: New test.
708 * testsuite/libgomp.c/simd-15.c: New test.
709 * testsuite/libgomp.c/simd-16.c: New test.
710 * testsuite/libgomp.c/simd-17.c: New test.
711 * testsuite/libgomp.c++/for-10.C: Define SC to static for
712 #pragma omp for simd testing.
713 * testsuite/libgomp.c++/simd10.C: New test.
714 * testsuite/libgomp.c++/simd11.C: New test.
715 * testsuite/libgomp.c++/simd12.C: New test.
716 * testsuite/libgomp.c++/simd13.C: New test.
718 * testsuite/libgomp.fortran/aligned1.f03: New test.
719 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
720 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
721 tasks with !$omp parallel !$omp single.
722 * testsuite/libgomp.fortran/target8.f90: New test.
723 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
724 not to use trim in the combiner, instead call elemental function.
725 (fn): New elemental function.
726 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
728 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
730 * testsuite/libgomp.fortran/udr12.f90: New test.
731 * testsuite/libgomp.fortran/udr13.f90: New test.
732 * testsuite/libgomp.fortran/udr14.f90: New test.
733 * testsuite/libgomp.fortran/udr15.f90: New test.
735 2014-06-18 Jakub Jelinek <jakub@redhat.com>
737 * omp_lib.f90.in (openmp_version): Set to 201307.
738 * omp_lib.h.in (openmp_version): Likewise.
739 * testsuite/libgomp.c/target-8.c: New test.
740 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
741 and inbranch clauses.
742 * testsuite/libgomp.fortran/depend-3.f90: New test.
743 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
745 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
746 * testsuite/libgomp.fortran/target1.f90: New test.
747 * testsuite/libgomp.fortran/target2.f90: New test.
748 * testsuite/libgomp.fortran/target3.f90: New test.
749 * testsuite/libgomp.fortran/target4.f90: New test.
750 * testsuite/libgomp.fortran/target5.f90: New test.
751 * testsuite/libgomp.fortran/target6.f90: New test.
752 * testsuite/libgomp.fortran/target7.f90: New test.
754 2014-06-10 Jakub Jelinek <jakub@redhat.com>
757 * testsuite/libgomp.fortran/allocatable9.f90: New test.
758 * testsuite/libgomp.fortran/allocatable10.f90: New test.
759 * testsuite/libgomp.fortran/allocatable11.f90: New test.
760 * testsuite/libgomp.fortran/allocatable12.f90: New test.
761 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
762 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
763 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
764 * testsuite/libgomp.fortran/associate1.f90: New test.
765 * testsuite/libgomp.fortran/associate2.f90: New test.
766 * testsuite/libgomp.fortran/procptr1.f90: New test.
768 2014-06-06 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/libgomp.fortran/simd1.f90: New test.
771 * testsuite/libgomp.fortran/udr1.f90: New test.
772 * testsuite/libgomp.fortran/udr2.f90: New test.
773 * testsuite/libgomp.fortran/udr3.f90: New test.
774 * testsuite/libgomp.fortran/udr4.f90: New test.
775 * testsuite/libgomp.fortran/udr5.f90: New test.
776 * testsuite/libgomp.fortran/udr6.f90: New test.
777 * testsuite/libgomp.fortran/udr7.f90: New test.
778 * testsuite/libgomp.fortran/udr8.f90: New test.
779 * testsuite/libgomp.fortran/udr9.f90: New test.
780 * testsuite/libgomp.fortran/udr10.f90: New test.
781 * testsuite/libgomp.fortran/udr11.f90: New test.
783 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
785 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
786 vect_simd_clones effective target.
787 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
789 2014-05-21 Jakub Jelinek <jakub@redhat.com>
792 * testsuite/libgomp.c++/simd-9.C: New test.
794 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
796 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
797 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
798 texts according to their @menu entry positions.
800 2014-05-11 Jakub Jelinek <jakub@redhat.com>
802 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
803 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
804 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
805 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
806 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
807 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
808 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
809 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
810 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
811 * testsuite/libgomp.fortran/depend-1.f90: New test.
812 * testsuite/libgomp.fortran/depend-2.f90: New test.
813 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
814 * testsuite/libgomp.fortran/simd1.f90: New test.
815 * testsuite/libgomp.fortran/simd2.f90: New test.
816 * testsuite/libgomp.fortran/simd3.f90: New test.
817 * testsuite/libgomp.fortran/simd4.f90: New test.
818 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
820 2014-05-02 Jakub Jelinek <jakub@redhat.com>
822 * testsuite/libgomp.c/simd-10.c: New test.
823 * testsuite/libgomp.c/simd-11.c: New test.
824 * testsuite/libgomp.c/simd-12.c: New test.
825 * testsuite/libgomp.c/simd-13.c: New test.
827 2014-04-24 Jakub Jelinek <jakub@redhat.com>
829 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
830 atomic type clauses in any order and optional comma in between.
831 * testsuite/libgomp.c++/atomic-15.C: Likewise.
832 * testsuite/libgomp.c/atomic-17.c: Likewise.
834 * testsuite/libgomp.c/simd-7.c: New test.
835 * testsuite/libgomp.c/simd-8.c: New test.
836 * testsuite/libgomp.c/simd-9.c: New test.
837 * testsuite/libgomp.c/loop-16.c: New test.
839 2014-04-02 Richard Henderson <rth@redhat.com>
841 * config/linux/futex.h (futex_wait): Get error value from errno.
842 (futex_wake): Likewise.
844 2014-03-25 Jakub Jelinek <jakub@redhat.com>
847 * testsuite/libgomp.c++/udr-11.C: New test.
848 * testsuite/libgomp.c++/udr-12.C: New test.
849 * testsuite/libgomp.c++/udr-13.C: New test.
850 * testsuite/libgomp.c++/udr-14.C: New test.
851 * testsuite/libgomp.c++/udr-15.C: New test.
852 * testsuite/libgomp.c++/udr-16.C: New test.
853 * testsuite/libgomp.c++/udr-17.C: New test.
854 * testsuite/libgomp.c++/udr-18.C: New test.
855 * testsuite/libgomp.c++/udr-19.C: New test.
857 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
859 Update copyright years
861 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
863 * hashtab.h: Use the standard form for the copyright notice.
865 2014-01-02 Tobias Burnus <burnus@net-b.de>
867 * libgomp.texi: Bump @copying's copyright year.
869 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
871 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
872 alloca () with __builtin_alloca ().
873 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
874 * testsuite/libgomp.c/lock-3.c: Likewise.
875 * testsuite/libgomp.c/pr48591.c: Likewise.
877 2013-12-17 Jakub Jelinek <jakub@redhat.com>
880 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
883 2013-12-16 Jakub Jelinek <jakub@redhat.com>
886 * testsuite/libgomp.c/pr58756.c: New test.
888 2013-12-12 Jakub Jelinek <jakub@redhat.com>
891 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
894 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
896 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
898 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
899 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
900 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
901 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
904 * libgomp_g.h: Include <stddef.h> for size_t.
906 * libgomp.spec.in: Update comment about libgomp's dependencies.
907 * configure.ac: Likewise.
908 * configure: Regenerate.
910 2013-10-16 Tobias Burnus <burnus@net-b.de>
912 * libgomp.texi: (Runtime Library Routines): Update references for
913 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
914 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
915 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
916 (Environment Variables): Update references for OpenMP 4.0. Add
917 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
918 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
921 2013-10-14 Jakub Jelinek <jakub@redhat.com>
923 * env.c (parse_bind_var): Initialize value to avoid
924 (false positive) warning.
926 2013-10-12 Jakub Jelinek <jakub@redhat.com>
929 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
931 (gomp_init_num_threads): Move i variable declaration into
932 #ifdef CPU_ALLOC_SIZE block.
933 * config/linux/affinity.c (gomp_affinity_init_level): Test
934 gomp_places_list_len == 0 rather than gomp_places_list == 0
935 when checking for topology reading error.
936 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
937 * env.c (parse_affinity): Add ignore argument, if true, don't populate
938 gomp_places_list, only parse env var and always return false.
939 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
940 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
941 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
942 and either of these variables were parsed correctly into a places
945 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
946 Jakub Jelinek <jakub@redhat.com>
948 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
950 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
951 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
952 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
953 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
954 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
955 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
956 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
957 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
959 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
961 * Makefile.am (omp_lib.mod): Streamline rule.
962 * Makefile.in: Regenerate.
964 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
967 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
968 * testsuite/libgomp.fortran/lib1.f90: Likewise.
969 * testsuite/libgomp.fortran/lib2.f: Likewise.
970 * testsuite/libgomp.fortran/lib3.f: Likewise.
972 * configure.ac: Typo fix.
973 * configure: Regenerate.
975 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
976 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
978 * omp.h.in: Don't touch the user's namespace.
980 2013-10-11 Jakub Jelinek <jakub@redhat.com>
981 Tobias Burnus <burnus@net-b.de>
982 Richard Henderson <rth@redhat.com>
984 * target.c: New file.
985 * Makefile.am (libgomp_la_SOURCES): Add target.c.
986 * Makefile.in: Regenerated.
987 * libgomp_g.h (GOMP_task): Add depend argument.
988 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
989 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
990 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
991 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
992 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
993 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
994 GOMP_taskgroup_start, GOMP_taskgroup_end,
995 GOMP_parallel_sections): New prototypes.
996 * fortran.c (omp_is_initial_device): Add ialias_redirect.
997 (omp_is_initial_device_): New function.
998 (ULP, STR1, STR2, ialias_redirect): Removed.
999 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1000 omp_set_default_device_8_, omp_get_default_device_,
1001 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1003 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1004 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1005 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1007 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1008 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1009 omp_set_default_device, omp_set_default_device_,
1010 omp_set_default_device_8_, omp_get_default_device,
1011 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1012 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1013 omp_get_team_num_): Export @@OMP_4.0.
1014 * team.c (struct gomp_thread_start_data): Add place field.
1015 (gomp_thread_start): Clear thr->thread_pool and
1016 thr->task before returning. Use gomp_team_barrier_wait_final
1017 instead of gomp_team_barrier_wait. Initialize thr->place.
1018 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1019 team_cancelled and task_queued_count fields.
1020 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1021 before calling pthread_exit.
1022 (gomp_free_thread): No longer static. Use
1023 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1024 (gomp_team_start): Add flags argument. Set
1025 thr->thread_pool->threads_busy to nthreads immediately after creating
1026 new pool. Use gomp_managed_threads_lock instead of
1027 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1028 (gomp_team_end): Use gomp_managed_threads_lock instead of
1029 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1030 of gomp_team_barrier_wait. If team->team_cancelled, call
1031 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1032 rather than thr->ts.work_share.
1033 (initialize_team): Don't call gomp_sem_init here.
1034 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1036 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1037 * env.c (gomp_global_icv): Add default_device_var, target_data and
1038 bind_var initializers.
1039 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1040 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1041 gomp_places_list_len): New variables.
1042 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1043 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1045 (gomp_cancel_var): New global variable.
1046 (parse_int): New function.
1047 (handle_omp_display_env): New function.
1048 (initialize_env): Use it. Initialize default_device_var.
1049 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1050 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1051 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1052 been successfully parsed (and call gomp_init_affinity in that case).
1053 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1054 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1055 omp_get_team_num, omp_is_initial_device): New functions.
1056 * libgomp.h: Include stdlib.h.
1057 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1059 (struct target_mem_desc): Forward declare.
1060 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1061 and thread_limit_var fields.
1062 (gomp_get_num_devices): New prototype.
1063 (gomp_cancel_var): New extern decl.
1064 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1065 team_cancelled and task_queued_count fields. Add comments about
1066 task_{,queued_,running_}count.
1067 (gomp_cancel_kind): New enum.
1068 (gomp_work_share_end_cancel): New prototype.
1069 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1070 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1072 (struct gomp_taskgroup): New type.
1073 (struct gomp_task_depend_entry,
1074 struct gomp_dependers_vec): New types.
1075 (gomp_finish_task): Free depend_hash if non-NULL.
1076 (struct gomp_team_state): Add place_partition_off
1077 and place_partition_len fields.
1078 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1079 gomp_places_list_len): New extern decls.
1080 (struct gomp_thread): Add place field.
1081 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1082 (gomp_init_thread_affinity): Add place argument.
1083 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1084 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1085 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1086 gomp_affinity_init_level, gomp_affinity_print_place): New
1088 (gomp_team_start): Add flags argument.
1089 (gomp_thread_limit_var, gomp_remaining_threads_count,
1090 gomp_remaining_threads_lock): Remove.
1091 (gomp_managed_threads_lock): New variable.
1092 (struct gomp_thread_pool): Add threads_busy field.
1093 (gomp_free_thread): New prototype.
1094 * task.c: Include hashtab.h.
1095 (hash_entry_type): New typedef.
1096 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1097 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1098 copy_ctors_done and taskgroup fields.
1099 (GOMP_task): Add depend argument, handle depend clauses. If
1100 gomp_team_barrier_cancelled or if it's taskgroup has been
1101 cancelled, don't queue or start new tasks. Set copy_ctors_done
1102 field if needed. Initialize taskgroup field. If copy_ctors_done
1103 and already cancelled, don't discard the task. If taskgroup is
1104 non-NULL, enqueue the task into taskgroup queue. Increment
1105 num_children field in taskgroup. Increment task_queued_count.
1106 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1107 gomp_task_run_post_remove_taskgroup): New inline functions.
1108 (gomp_task_run_post_handle_depend_hash,
1109 gomp_task_run_post_handle_dependers,
1110 gomp_task_run_post_handle_depend): New functions.
1111 (GOMP_taskwait): Use them. If more than one new tasks
1112 have been queued, wake other threads if needed.
1113 (gomp_barrier_handle_tasks): Likewise. If
1114 gomp_team_barrier_cancelled, don't start any new tasks, just free
1116 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1118 (omp_proc_bind_kind, omp_proc_bind_false,
1119 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1120 omp_proc_bind_spread): New params.
1121 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1122 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1123 omp_get_team_num, omp_is_initial_device): New interfaces.
1124 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1125 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1126 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1127 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1128 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1129 useless use omp_lib_kinds.
1130 * omp.h.in (omp_proc_bind_t): New typedef.
1131 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1132 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1133 omp_get_team_num, omp_is_initial_device): New prototypes.
1134 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1135 through to gomp_team_start.
1136 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1137 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1138 Adjust gomp_parallel_loop_start callers.
1139 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1140 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1141 GOMP_loop_end_cancel): New functions.
1142 (GOMP_parallel_end): Add ialias_redirect.
1143 * hashtab.h: New file.
1144 * libgomp.texi (Environment Variables): Minor cleanup,
1145 update section refs to OpenMP 4.0rc2.
1146 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1147 environment variables.
1148 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1149 team->work_shares_to_free to thr->ts.work_share before calling
1151 (gomp_work_share_end_cancel): New function.
1152 * config/linux/proc.c: Include errno.h.
1153 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1154 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1155 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1156 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1157 gomp_cpuset_size is sizeof (cpu_set_t).
1158 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1159 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1160 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1161 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1162 contain any logical CPUs.
1163 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1164 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1165 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1166 pthread_getaffinity_np. Check gomp_places_list instead of
1167 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1168 * config/linux/bar.c (gomp_barrier_wait_end,
1169 gomp_barrier_wait_last): Use BAR_* defines.
1170 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1171 from state where needed. Set work_share_cancelled to 0 on last
1173 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1174 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1176 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1177 Add cpusetsize argument.
1178 (gomp_cpuset_size, gomp_cpusetp): Declare.
1179 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1180 (affinity_counter): Remove.
1181 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1182 if CPU_ALLOC_SIZE isn't defined.
1183 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1184 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1185 bind current thread to the first place.
1186 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1187 pthread_setaffinity_np to gomp_places_list[place].
1188 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1189 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1190 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1191 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1192 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1193 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1194 (gomp_barrier_t): Add awaited_final field.
1195 (gomp_barrier_init): Initialize awaited_final field.
1196 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1197 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1199 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1201 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1202 gomp_team_barrier_cancelled): New inline functions.
1203 (gomp_barrier_last_thread,
1204 gomp_team_barrier_set_task_pending,
1205 gomp_team_barrier_clear_task_pending,
1206 gomp_team_barrier_set_waiting_for_tasks,
1207 gomp_team_barrier_waiting_for_tasks,
1208 gomp_team_barrier_done): Use BAR_* defines.
1209 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1210 (gomp_barrier_wait_end): Use BAR_* defines.
1211 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1212 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1214 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1215 gomp_team_barrier_cancel): New functions.
1216 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1218 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1219 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1220 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1221 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1222 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1223 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1224 (gomp_barrier_t): Add cancellable field.
1225 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1226 gomp_team_barrier_cancel): New prototypes.
1227 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1228 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1229 gomp_team_barrier_cancelled): New inline functions.
1230 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1231 gomp_team_barrier_set_task_pending,
1232 gomp_team_barrier_clear_task_pending,
1233 gomp_team_barrier_set_waiting_for_tasks,
1234 gomp_team_barrier_waiting_for_tasks,
1235 gomp_team_barrier_done): Use BAR_* defines.
1236 * barrier.c (GOMP_barrier_cancel): New function.
1237 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1238 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1239 omp_proc_bind_spread): New params.
1240 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1241 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1242 omp_get_team_num, omp_is_initial_device): New externals.
1243 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1245 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1246 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1247 infinity. If not nested, just return minimum of max_num_threads
1248 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1249 to the returned value. Otherwise, don't update atomically
1250 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1251 (GOMP_parallel_end): Adjust for thread_limit now being in
1252 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1253 infinity. Adjust threads_busy in the pool rather than
1254 gomp_remaining_threads_count. Remember team->nthreads and call
1255 gomp_team_end before adjusting threads_busy, if not nested
1256 afterwards, just set it to 1 non-atomically. Add ialias.
1257 (GOMP_parallel_start): Adjust gomp_team_start caller.
1258 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1259 * testsuite/libgomp.c/affinity-1.c: New test.
1260 * testsuite/libgomp.c/atomic-15.c: New test.
1261 * testsuite/libgomp.c/atomic-16.c: New test.
1262 * testsuite/libgomp.c/atomic-17.c: New test.
1263 * testsuite/libgomp.c/cancel-for-1.c: New test.
1264 * testsuite/libgomp.c/cancel-for-2.c: New test.
1265 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1266 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1267 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1268 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1269 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1270 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1271 * testsuite/libgomp.c/depend-1.c: New test.
1272 * testsuite/libgomp.c/depend-2.c: New test.
1273 * testsuite/libgomp.c/depend-3.c: New test.
1274 * testsuite/libgomp.c/depend-4.c: New test.
1275 * testsuite/libgomp.c/for-1.c: New test.
1276 * testsuite/libgomp.c/for-1.h: New file.
1277 * testsuite/libgomp.c/for-2.c: New test.
1278 * testsuite/libgomp.c/for-2.h: New file.
1279 * testsuite/libgomp.c/for-3.c: New test.
1280 * testsuite/libgomp.c/pr58392.c: New test.
1281 * testsuite/libgomp.c/simd-1.c: New test.
1282 * testsuite/libgomp.c/simd-2.c: New test.
1283 * testsuite/libgomp.c/simd-3.c: New test.
1284 * testsuite/libgomp.c/simd-4.c: New test.
1285 * testsuite/libgomp.c/simd-5.c: New test.
1286 * testsuite/libgomp.c/simd-6.c: New test.
1287 * testsuite/libgomp.c/target-1.c: New test.
1288 * testsuite/libgomp.c/target-2.c: New test.
1289 * testsuite/libgomp.c/target-3.c: New test.
1290 * testsuite/libgomp.c/target-4.c: New test.
1291 * testsuite/libgomp.c/target-5.c: New test.
1292 * testsuite/libgomp.c/target-6.c: New test.
1293 * testsuite/libgomp.c/target-7.c: New test.
1294 * testsuite/libgomp.c/taskgroup-1.c: New test.
1295 * testsuite/libgomp.c/thread-limit-1.c: New test.
1296 * testsuite/libgomp.c/thread-limit-2.c: New test.
1297 * testsuite/libgomp.c/thread-limit-3.c: New test.
1298 * testsuite/libgomp.c/udr-1.c: New test.
1299 * testsuite/libgomp.c/udr-2.c: New test.
1300 * testsuite/libgomp.c/udr-3.c: New test.
1301 * testsuite/libgomp.c++/affinity-1.C: New test.
1302 * testsuite/libgomp.c++/atomic-10.C: New test.
1303 * testsuite/libgomp.c++/atomic-11.C: New test.
1304 * testsuite/libgomp.c++/atomic-12.C: New test.
1305 * testsuite/libgomp.c++/atomic-13.C: New test.
1306 * testsuite/libgomp.c++/atomic-14.C: New test.
1307 * testsuite/libgomp.c++/atomic-15.C: New test.
1308 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1309 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1310 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1311 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1312 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1313 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1314 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1315 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1316 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1317 * testsuite/libgomp.c++/cancel-test.h: New file.
1318 * testsuite/libgomp.c++/for-9.C: New test.
1319 * testsuite/libgomp.c++/for-10.C: New test.
1320 * testsuite/libgomp.c++/for-11.C: New test.
1321 * testsuite/libgomp.c++/simd-1.C: New test.
1322 * testsuite/libgomp.c++/simd-2.C: New test.
1323 * testsuite/libgomp.c++/simd-3.C: New test.
1324 * testsuite/libgomp.c++/simd-4.C: New test.
1325 * testsuite/libgomp.c++/simd-5.C: New test.
1326 * testsuite/libgomp.c++/simd-6.C: New test.
1327 * testsuite/libgomp.c++/simd-7.C: New test.
1328 * testsuite/libgomp.c++/simd-8.C: New test.
1329 * testsuite/libgomp.c++/target-1.C: New test.
1330 * testsuite/libgomp.c++/target-2.C: New test.
1331 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1332 * testsuite/libgomp.c++/target-3.C: New test.
1333 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1334 * testsuite/libgomp.c++/udr-1.C: New test.
1335 * testsuite/libgomp.c++/udr-2.C: New test.
1336 * testsuite/libgomp.c++/udr-3.C: New test.
1337 * testsuite/libgomp.c++/udr-4.C: New test.
1338 * testsuite/libgomp.c++/udr-5.C: New test.
1339 * testsuite/libgomp.c++/udr-6.C: New test.
1340 * testsuite/libgomp.c++/udr-7.C: New test.
1341 * testsuite/libgomp.c++/udr-8.C: New test.
1342 * testsuite/libgomp.c++/udr-9.C: New test.
1344 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1347 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1350 2013-09-20 Alan Modra <amodra@gmail.com>
1352 * configure: Regenerate.
1354 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1356 * testsuite/libgomp.c/sections-2.c: New test.
1358 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1360 * testsuite/libgomp.fortran/strassen.f90:
1361 Add dg-skip-if aarch64_tiny.
1363 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1364 Cesar Philippidis <cesar@codesourcery.com>
1366 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1367 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1368 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1369 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1370 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1371 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1372 Use dg-runtest rather than gfortran-dg-runtest.
1374 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1376 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1377 Linux-based x86 systems to cover all GNU systems.
1378 * testsuite/libgomp.c/lock-3.c: Likewise.
1379 * testsuite/libgomp.c/pr48591.c: Likewise.
1381 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1383 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1384 GNU/Hurd, as done for Linux-based systems.
1386 * config/posix/ptrlock.h: Fix comment.
1388 2013-05-27 Tobias Burnus <burnus@net-b.de>
1391 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1392 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1393 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1394 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1395 omp_destroy_nest_lock): Correct arguments to match the one in
1397 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1398 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1399 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1400 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1402 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1404 * testsuite/libgomp.c/loop-13.c: New test.
1405 * testsuite/libgomp.c/loop-14.c: New test.
1406 * testsuite/libgomp.c/loop-15.c: New test.
1407 * testsuite/libgomp.c++/loop-13.C: New test.
1408 * testsuite/libgomp.c++/loop-14.C: New test.
1409 * testsuite/libgomp.c++/loop-15.C: New test.
1411 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1414 * testsuite/libgomp.c++/pr56217.C: New test.
1416 2013-02-01 Alan Modra <amodra@gmail.com>
1418 * task.c (GOMP_task, GOMP_taskwait): Comment.
1420 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1421 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1424 * config/linux/wait.h (do_spin): Use atomic load for addr.
1425 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1426 for intptr and ptrlock.
1427 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1430 2013-01-22 Alan Modra <amodra@gmail.com>
1434 * task.c (GOMP_task): Revert 2011-12-09 change.
1435 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1436 barrier to read task->children..
1437 (gomp_barrier_handle_tasks): ..and matching atomic store with
1438 release barrier here when setting parent->children to NULL.
1440 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1441 Tobias Burnus <burnus@net-b.de>
1444 * testsuite/libgomp.fortran/fortran.exp: Use
1445 -fintrinsic-modules-path= instead of
1446 -fintrinsic-modules-path.
1448 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1450 Update copyright years.
1452 2012-12-19 Tobias Burnus <burnus@net-b.de>
1454 * testsuite/libgomp.fortran/fortran.exp: Set
1455 -fintrinsic-modules-path.
1457 2012-12-19 Tobias Burnus <burnus@net-b.de>
1459 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1460 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1462 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1465 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1466 if pool had any threads_used.
1468 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1470 * testsuite/libgomp.c++/pr24455.C: Use
1471 -Wl,-undefined,dynamic_lookup on darwin.
1473 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1475 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1477 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1479 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1481 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1482 Jim MacArthur <jim.macarthur@arm.com>
1483 Marcus Shawcroft <marcus.shawcroft@arm.com>
1484 Nigel Stephens <nigel.stephens@arm.com>
1485 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1486 Richard Earnshaw <rearnsha@arm.com>
1487 Sofiane Naci <sofiane.naci@arm.com>
1488 Stephen Thomas <stephen.thomas@arm.com>
1489 Tejas Belagod <tejas.belagod@arm.com>
1490 Yufeng Zhang <yufeng.zhang@arm.com>
1492 * configure.tgt: Add AArch64.
1494 2012-10-04 Jason Merrill <jason@redhat.com>
1496 * testsuite/libgomp.c++/tls-init1.C: New.
1498 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1500 * configure: Regenerated.
1502 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1504 * config/linux/mips/futex.h (sys_futex0): Change to static
1505 function with noinline, nomips16 attributes under MIPS16. Adjust
1506 asm statement to place 'li v0,SYS_futex' immediately before
1509 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1511 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1512 conflict with index.html on case-insensitive file systems.
1514 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1516 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1517 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1519 2012-07-02 Richard Guenther <rguenther@suse.de>
1520 Michael Matz <matz@suse.de>
1521 Tobias Grosser <tobias@grosser.es>
1522 Sebastian Pop <sebpop@gmail.com>
1524 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1525 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1526 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1527 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1529 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1531 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1533 2012-06-22 Richard Guenther <rguenther@suse.de>
1535 Merge from graphite branch
1536 2012-01-13 Tobias Grosser <tobias@grosser.es>
1538 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1539 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1541 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1544 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1545 use GOMP_barrier () call instead.
1546 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1547 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1548 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1549 call GOMP_barrier instead.
1550 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1552 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1555 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1556 argument to memset call.
1558 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1560 * configure: Regenerated.
1562 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1564 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1566 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1569 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1571 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1574 * testsuite/libgomp.c/pr52547.c: New test.
1576 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1578 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1580 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582 * configure.tgt (mips-sgi-irix6*): Remove.
1584 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1586 * configure.tgt (alpha*-dec-osf*): Remove.
1588 * config/osf/sem.h: Remove.
1589 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1591 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1593 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1595 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1598 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1599 Remove ENABLE_SYMVERS_SOL2.
1600 * configure: Regenerate.
1601 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1602 (PREPROCESS): New variable.
1603 (libgomp.ver): New target.
1604 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1605 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1606 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1608 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1609 * Makefile.in: Regenerate.
1611 2012-02-14 Walter Lee <walt@tilera.com>
1613 * configure.tgt: Handle tilegx and tilepro.
1614 * config/linux/tile/futex.h: New file.
1616 2012-02-08 Richard Guenther <rguenther@suse.de>
1618 PR tree-optimization/46886
1619 * testsuite/libgomp.c/pr46886.c: New testcase.
1621 2012-01-25 Matthias Klose <doko@ubuntu.com>
1623 * config/linux/arm: Remove empty directory.
1624 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1626 2011-12-09 Alan Modra <amodra@gmail.com>
1629 * task.c (GOMP_taskwait): Don't access task->children outside of
1630 task_lock mutex region.
1631 (GOMP_task): Likewise.
1633 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1636 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1638 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1639 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1640 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1641 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1642 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1644 2011-12-02 Alan Modra <amodra@gmail.com>
1646 * config/linux/affinity.c: Use atomic rather than sync builtin.
1647 * config/linux/lock.c: Likewise.
1648 * config/linux/ptrlock.h: Likewise.
1649 * config/linux/ptrlock.c: Likewise.
1650 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1651 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1652 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1653 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1654 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1655 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1656 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1657 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1658 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1659 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1661 2011-11-30 Alan Modra <amodra@gmail.com>
1664 * config/linux/bar.h: Use atomic rather than sync builtins.
1665 * config/linux/bar.c: Likewise. Add missing acquire
1666 synchronisation on generation field.
1667 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1670 2011-11-30 Alan Modra <amodra@gmail.com>
1672 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1673 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1674 * config/linux/mutex.h: Use atomic rather than sync builtins.
1675 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1676 * config/linux/omp-lock.h: Comment fix.
1677 * config/linux/arm/mutex.h: Delete.
1678 * config/linux/powerpc/mutex.h: Delete.
1679 * config/linux/ia64/mutex.h: Delete.
1680 * config/linux/mips/mutex.h: Delete.
1682 2011-11-30 Alan Modra <amodra@gmail.com>
1685 * config/linux/sem.h: Rewrite.
1686 * config/linux/sem.c: Rewrite.
1688 2011-11-28 Richard Henderson <rth@redhat.com>
1690 * libgomp.h (enum memmodel): New.
1692 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1694 * configure: Regenerate.
1696 2011-10-10 Matthias Klose <doko@ubuntu.com>
1698 * config/posix95: Remove empty directory.
1700 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1702 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1704 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1707 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1708 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1710 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1712 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1714 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1717 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1719 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1721 * config/linux/proc.h: New.
1722 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1723 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1724 (gomp_init_num_threads): Update call to cpuset_popcount.
1725 (get_num_procs): Ditto.
1726 * config/linux/affinity.c (gomp_init_affinity): Call
1727 gomp_cpuset_popcount.
1729 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1733 * omp.h.in (omp_in_final): New prototype.
1734 * omp_lib.f90.in (omp_in_final): New interface.
1735 (omp_integer_kind, omp_logical_kind): Remove
1736 and replace all its uses in the module with 4.
1737 (openmp_version): Change to 201107.
1738 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1739 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1740 kind for the parameters.
1741 (omp_in_final): New external.
1742 (openmp_version): Change to 201107.
1743 * task.c (omp_in_final): New function.
1744 (gomp_init_task): Initialize final_task.
1745 (GOMP_task): Remove unused attribute from flags. Handle final
1747 (GOMP_taskyield): New function.
1748 (omp_in_final): Return true if if (false) or final (true) task
1749 or descendant of final (true).
1750 * fortran.c (omp_in_final_): New function.
1751 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1752 (GOMP_3.0): Export GOMP_taskyield.
1753 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1755 (parse_unsigned_long_list): New function.
1756 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1757 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1758 even if parse_affinity returned false.
1759 * config/linux/affinity.c (gomp_init_affinity): Handle
1760 gomp_cpu_affinity_len == 0.
1761 * libgomp_g.h (GOMP_taskyield): New prototype.
1762 * libgomp.h (struct gomp_task): Add final_task field.
1763 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1764 * team.c (gomp_team_start): Override new task's nthreads_var icv
1765 if list form OMP_NUM_THREADS has been used and it has value for
1766 the new nesting level.
1768 * testsuite/libgomp.c/atomic-11.c: New test.
1769 * testsuite/libgomp.c/atomic-12.c: New test.
1770 * testsuite/libgomp.c/atomic-13.c: New test.
1771 * testsuite/libgomp.c/atomic-14.c: New test.
1772 * testsuite/libgomp.c/reduction-6.c: New test.
1773 * testsuite/libgomp.c/task-5.c: New test.
1774 * testsuite/libgomp.c++/atomic-2.C: New test.
1775 * testsuite/libgomp.c++/atomic-3.C: New test.
1776 * testsuite/libgomp.c++/atomic-4.C: New test.
1777 * testsuite/libgomp.c++/atomic-5.C: New test.
1778 * testsuite/libgomp.c++/atomic-6.C: New test.
1779 * testsuite/libgomp.c++/atomic-7.C: New test.
1780 * testsuite/libgomp.c++/atomic-8.C: New test.
1781 * testsuite/libgomp.c++/atomic-9.C: New test.
1782 * testsuite/libgomp.c++/task-8.C: New test.
1783 * testsuite/libgomp.c++/reduction-4.C: New test.
1784 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1785 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1786 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1787 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1788 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1789 * testsuite/libgomp.fortran/pointer1.f90: New test.
1790 * testsuite/libgomp.fortran/pointer2.f90: New test.
1791 * testsuite/libgomp.fortran/task4.f90: New test.
1793 2011-08-02 Tobias Burnus <burnus@net-b.de>
1795 * libgomp.texi: Update OpenMP spec references to 3.1.
1796 (omp_in_final,OMP_PROC_BIND): New sections.
1797 (OMP_NUM_THREADS): Document that the value can be now a list.
1798 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1800 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1802 * config/linux/x86/futex.h: Check __x86_64__ instead of
1805 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1809 * testsuite/libgomp.c/pr49897-1.c: New test.
1810 * testsuite/libgomp.c/pr49897-2.c: New test.
1811 * testsuite/libgomp.c/pr49898-1.c: New test.
1812 * testsuite/libgomp.c/pr49898-2.c: New test.
1814 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1816 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1817 for ia32 instead of ilp32.
1819 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1820 * testsuite/libgomp.c/atomic-6.c: Likewise.
1822 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1824 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1825 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1827 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1830 * config/osf/sem.h: New file.
1831 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1833 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1836 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1839 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1841 * config/linux/wait.h (do_spin): New inline, largely copied
1842 from do_wait, just don't do futex_wait here, instead return true if
1844 (do_wait): Implement using do_spin.
1845 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1847 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1848 __sync_bool_compare_and_swap, pass the oldval to
1849 gomp_mutex_lock_slow.
1850 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1851 If all mutex contenders are just spinning and not sleeping, don't
1852 change state to 2 unnecessarily. Optimize the loop when state has
1853 already become 2 to use just one atomic operation per loop instead
1855 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1857 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1858 __sync_bool_compare_and_swap, pass the oldval to
1859 gomp_mutex_lock_slow.
1861 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1864 * iter.c (gomp_iter_static_next): For chunk size 0
1865 only use n ceil/ nthreads size for the first
1866 n % nthreads threads in the team instead of
1867 all threads except for the last few ones which
1868 get less work or none at all.
1869 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1870 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1871 chunk argument, set run_sched_modifier to 0 for static
1872 resp. 1 for other kinds. If chunk argument is 0
1873 and not static, set value to 1.
1875 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1878 * testsuite/libgomp.c++/pr49043.C: New test.
1881 * testsuite/libgomp.c++/pr48869.C: New test.
1883 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1886 * fortran.c: Include limits.h.
1888 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1890 (omp_set_num_threads_8_, omp_set_schedule_8_,
1891 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1892 omp_get_team_size_8_): Use TO_INT macro.
1893 * testsuite/libgomp.fortran/pr48894.f90: New test.
1895 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1898 * testsuite/libgomp.c/pr48591.c: New test.
1900 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1903 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1904 * configure: Regenerate.
1906 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1909 * testsuite/libgomp.fortran/task3.f90: New test.
1911 2011-02-24 Tobias Burnus <burnus@net-b.de>
1913 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1915 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1918 * libgomp.texi (omp_get_wtime): Don't say time in the past
1921 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1924 * testsuite/libgomp.fortran/fortran.exp: Check for both
1925 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1926 but $blddir != "", still append ${blddir}/${lang_library_path}
1929 2011-02-16 Tobias Burnus <burnus@net-b.de>
1932 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1933 of libquadmath.a before adding its libpath to ldflags.
1935 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1938 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1939 to FUTEX_WAIT futex syscall.
1940 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1942 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1944 * configure: Regenerate.
1946 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1949 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1951 2011-01-16 Gerald Pfeifer
1953 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1955 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1958 * libgomp.fortran/allocatable6.f90: New test.
1960 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1962 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1963 * configure: Regenerate.
1965 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1969 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1970 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1971 * aclocal.m4: Regenerate.
1972 * configure: Regenerate.
1973 * Makefile.in: Regenerate.
1974 * testsuite/Makefile.in: Regenerate.
1976 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1979 * libgomp.fortran/pr46753.f90: New test.
1982 * env.c (initialize_env): Default to spin count 300000
1983 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1987 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1988 at the end if sync builtins aren't supported.
1990 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1992 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1994 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1996 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1998 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2000 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2002 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2003 Tobias Burnus <burnus@net-b.de>
2007 * configure: Regenerate.
2009 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2011 * config/linux/futex.h: New.
2012 * config/linux/arm/mutex.h: New.
2013 * configure.tgt (arm*-*-linux*): Add config path.
2015 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2017 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2019 2010-09-23 Tobias Burnus <burnus@net-b.de>
2021 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2022 Change Fortran datatype to LOGICAL.
2023 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2024 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2026 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2028 * configure: Regenerate.
2030 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2032 * libgomp.texi: Add function keyword to a couple of Fortran
2033 interfaces, use integer instead of int for Fortran.
2035 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2037 * libgomp.texi: Fix spelling and pasto problems throughout.
2038 Adjust prototypes to match code.
2040 2010-07-24 Tobias Burnus <burnus@net-b.de>
2042 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2043 silence -fwhole-file warning.
2045 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2047 * configure.tgt (*-*-solaris2.[56]*): Removed.
2049 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2051 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2052 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2053 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2054 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2055 targetting solaris2*.
2056 * configure: Regenerate.
2057 * config.h.in: Regenerate.
2059 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2060 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2061 Add libgomp_version_dep.
2062 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2064 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2065 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2066 * Makefile.in: Regenerate.
2068 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2069 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2070 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2071 to common block, protected by
2072 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2074 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2076 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2078 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2081 * configure: Regenerate.
2083 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2086 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2087 * configure: Regenerate.
2088 * Makefile.in: Regenerate.
2089 * testsuite/Makefile.in: Regenerate.
2091 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2094 * testsuite/libgomp.c/pr43893.c: New test.
2095 * testsuite/libgomp.c++/pr43893.C: New test.
2097 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2100 * testsuite/libgomp.fortran/vla8.f90: New test.
2102 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2105 * config/linux/affinity.c (gomp_init_affinity): Decrease
2106 gomp_available_cpus if affinity mask confines the process to fewer
2108 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2109 non-NULL, just return gomp_available_cpus.
2112 * sections.c (gomp_sections_init): Initialize ws->mode.
2114 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2116 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2117 not unused bar variable.
2118 * configure: Regenerate.
2120 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2122 * Makefile.in: Regenerate.
2123 * aclocal.m4: Regenerate.
2124 * testsuite/Makefile.in: Regenerate.
2126 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2129 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2130 (initialize_env): Adjust callers.
2131 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2132 when the argument is 0.
2134 * testsuite/libgomp.c/pr42942.c: New test.
2136 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2140 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2141 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2143 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2146 * testsuite/libgomp.c++/task-6.C: Likewise.
2148 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2150 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2152 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2154 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2155 * configure: Regenerate.
2157 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2160 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2162 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2164 * configure.ac: Test for executability of GFORTRAN.
2165 * configure: Regenerate.
2167 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2169 * configure: Regenerate.
2171 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2174 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2176 2010-01-03 Richard Guenther <rguenther@suse.de>
2178 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2180 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2182 * testsuite/libgomp.graphite/pr4118.c: New.
2184 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2186 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2187 for darwin, protect the test with require-effective-target tls_runtime.
2188 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2190 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2193 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2194 link spec %s substitutions for static libraries.
2196 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2199 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2201 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2203 * Makefile.in: Regenerate.
2204 * configure: Regenerate.
2205 * testsuite/Makefile.in: Regenerate.
2207 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2209 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2210 settings for LC_ALL and LANG.
2212 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2215 * testsuite/libgomp.fortran/pr42162.f90: New test.
2217 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2220 * testsuite/libgomp.c/pr42029.c: New test.
2222 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2224 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2225 *s. Accept ld version without text in ()s.
2226 * configure: Regenerated.
2228 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2230 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2232 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2235 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2236 or a hyphen (happens with fortran language disabled).
2237 * configure: Regenerate.
2239 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2241 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2242 use sed script portable to Solaris /bin/sed for extracting ld
2244 * configure: Regenerate.
2246 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2248 * testsuite/libgomp.graphite/bounds.c: New test.
2250 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2252 * Makefile.am (libgomp_la_LINK): New.
2253 * Makefile.in: Regenerate.
2255 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2257 * configure.ac (AC_PREREQ): Bump to 2.64.
2259 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2261 * Makefile.am (install-html, install-pdf): Remove.
2262 * Makefile.in: Regenerate.
2264 * Makefile.in: Regenerate.
2265 * aclocal.m4: Regenerate.
2266 * config.h.in: Regenerate.
2267 * configure: Regenerate.
2268 * testsuite/Makefile.in: Regenerate.
2270 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2272 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2273 * Makefile.in: Regenerate.
2275 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2277 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2278 * Makefile.in: Regenerate.
2280 2009-08-19 Tobias Burnus <burnus@net-b.de>
2283 omp_lib.h.in: Fix -std=f95 errors.
2286 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2288 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2289 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2290 * testsuite/libgomp.graphite/graphite.exp: New.
2292 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2294 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2297 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2299 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2300 needed memory barrier semantics.
2301 * config/linux/mips/mutex.h: New file.
2303 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2305 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2307 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2309 * configure: Regenerate.
2311 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2316 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2317 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2318 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2320 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2322 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2323 options when choosing a multilib.
2325 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2327 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2328 ld_library_path. Use add_path. Add just find_libgcc_s to
2329 ld_library_path, not every libgcc multilib directory.
2330 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2331 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2332 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2334 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2336 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2338 * Makefile.am (LTLDFLAGS): Define.
2340 * Makefile.in: Regenerate.
2342 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2345 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2346 libgfortranbegin, check existence of libgfortran.a instead of
2349 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2352 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2353 (gomp_free_pool_helper): Likewise.
2355 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2356 Jakub Jelinek <jakub@redhat.com>
2359 * testsuite/libgomp.fortran/workshare2.f90: New test.
2361 2009-04-09 Nick Clifton <nickc@redhat.com>
2363 * iter.c: Change copyright header to refer to version 3 of the
2364 GNU General Public License with version 3.1 of the GCC Runtime
2365 Library Exception and to point readers at the COPYING3 and
2366 COPYING3.RUNTIME files and the FSF's license web page.
2367 * alloc.c: Likewise.
2368 * barrier.c: Likewise.
2369 * config/bsd/proc.c: Likewise.
2370 * config/linux/affinity.c: Likewise.
2371 * config/linux/alpha/futex.h: Likewise.
2372 * config/linux/bar.c: Likewise.
2373 * config/linux/bar.h: Likewise.
2374 * config/linux/ia64/futex.h: Likewise.
2375 * config/linux/ia64/mutex.h: Likewise.
2376 * config/linux/lock.c: Likewise.
2377 * config/linux/mips/futex.h: Likewise.
2378 * config/linux/mutex.c: Likewise.
2379 * config/linux/mutex.h: Likewise.
2380 * config/linux/powerpc/futex.h: Likewise.
2381 * config/linux/proc.c: Likewise.
2382 * config/linux/ptrlock.c: Likewise.
2383 * config/linux/ptrlock.h: Likewise.
2384 * config/linux/s390/futex.h: Likewise.
2385 * config/linux/sem.c: Likewise.
2386 * config/linux/sem.h: Likewise.
2387 * config/linux/sparc/futex.h: Likewise.
2388 * config/linux/wait.h: Likewise.
2389 * config/linux/x86/futex.h: Likewise.
2390 * config/mingw32/proc.c: Likewise.
2391 * config/mingw32/time.c: Likewise.
2392 * config/posix/affinity.c: Likewise.
2393 * config/posix/bar.c: Likewise.
2394 * config/posix/bar.h: Likewise.
2395 * config/posix/lock.c: Likewise.
2396 * config/posix/mutex.h: Likewise.
2397 * config/posix/proc.c: Likewise.
2398 * config/posix/ptrlock.h: Likewise.
2399 * config/posix/sem.c: Likewise.
2400 * config/posix/sem.h: Likewise.
2401 * config/posix/time.c: Likewise.
2402 * config/posix95/lock.c: Likewise.
2403 * critical.c: Likewise.
2405 * error.c: Likewise.
2406 * fortran.c: Likewise.
2407 * iter_ull.c: Likewise.
2408 * libgomp.h: Likewise.
2409 * libgomp_f.h.in: Likewise.
2410 * libgomp_g.h: Likewise.
2412 * loop_ull.c: Likewise.
2413 * omp.h.in: Likewise.
2414 * omp_lib.f90.in: Likewise.
2415 * omp_lib.h.in: Likewise.
2416 * ordered.c: Likewise.
2417 * parallel.c: Likewise.
2418 * sections.c: Likewise.
2419 * single.c: Likewise.
2424 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2426 * testsuite/config/default.exp: Change copyright header to refer to
2427 version 3 of the GNU General Public License and to point readers
2428 at the COPYING3 file and the FSF's license web page.
2430 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2433 * libgomp.c++/pr39573.C: New test.
2435 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2438 * testsuite/libgomp.c/pr39591-1.c: New test.
2439 * testsuite/libgomp.c/pr39591-2.c: New test.
2440 * testsuite/libgomp.c/pr39591-3.c: New test.
2442 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2444 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2445 * testsuite/libgomp.c/atomic-6.c: Ditto.
2447 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2450 * testsuite/libgomp.c/loop-12.c: New test.
2451 * testsuite/libgomp.c/loop-11.c: New test.
2452 * testsuite/libgomp.c++/loop-11.C: New test.
2453 * testsuite/libgomp.c++/loop-12.C: New test.
2454 * testsuite/libgomp.c++/for-8.C: New test.
2456 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2458 * configure: Regenerate.
2460 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2463 * testsuite/libgomp.c/pr39154.c: New test.
2465 2009-01-30 Ian Lance Taylor <iant@google.com>
2467 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2468 libgomp_ld_is_gold. Get gold version number.
2469 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2470 * configure: Rebuild.
2472 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2474 * testsuite/lib/libgomp.exp: Add -B option for targets that
2475 use libgfortran.a%s in their specs.
2477 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2480 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2481 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2482 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2483 * configure: Regenerated.
2484 * config.h.in: Likewise.
2486 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2489 * testsuite/libgomp.c/pr38650.c: New test.
2490 * testsuite/libgomp.c++/pr38650.C: New test.
2492 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2494 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2496 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2498 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2500 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2502 * configure: Regenerate.
2504 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.c/pr36802-1.c: New test.
2508 * testsuite/libgomp.c/pr36802-2.c: New test.
2509 * testsuite/libgomp.c/pr36802-3.c: New test.
2511 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2514 * config/linux/powerpc/mutex.h: New.
2516 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2519 * testsuite/libgomp.c++/for-7.C: New test.
2522 * testsuite/libgomp.c++/for-6.C: New test.
2524 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2527 * testsuite/lib/libgomp.exp: Include new timeout library files.
2528 (libgomp_target_compile): Set timeout value from new proc.
2530 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2533 * config/linux/ia64/mutex.h: New.
2535 2008-11-04 Tobias Burnus <burnus@net-b.de>
2538 * libgomp.texi (Runtime library routines, environment variables):
2539 Update for OpenMP version 3.0.
2541 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2542 Steve Ellcey <sje@cup.hp.com>
2544 * configure: Regenerate for new libtool.
2545 * Makefile.in: Ditto.
2546 * testsuite/Makefile.in: Ditto.
2548 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2549 Andreas Tobler <a.tobler@schweiz.org>
2551 * config/bsd/proc.c: New file.
2552 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2553 * configure.ac: Check for header <sys/sysctl.h>
2554 * configure: Regenerate.
2555 * config.h.in: Likewise.
2557 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2559 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2561 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2563 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2564 * Makefile.in: Regenerated.
2565 * testsuite/Makefile.in: Regenerated.
2567 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2569 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2570 depend on blddir if blddir exists.
2571 (libgomp_target_compile): Likewise.
2572 * testsuite/libgomp.c++/c++.exp: Likewise.
2573 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2575 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2577 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2578 Do not list GPL as Invariant Section.
2580 2008-07-28 Ilie Garbacea <ilie@mips.com>
2581 Chao-ying Fu <fu@mips.com>
2583 * configure.tgt: Enable futex for MIPS.
2584 * config/linux/mips/futex.h: New file.
2586 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2588 * team.c (gomp_team_end): Free team immediately if it has
2591 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2593 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2594 * testsuite/libgomp.fortran/fortran.exp: Same.
2595 * testsuite/libgomp.c/c.exp: Same.
2596 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2597 directory to library path first.
2599 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2601 * env.c (parse_stacksize): Add cast to avoid warning.
2602 (parse_spincount): Likewise.
2604 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2606 * testsuite/libgomp.c/loop-10.c: New test.
2607 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2608 * libgomp.c++/loop-6.C (main): Likewise.
2611 * testsuite/libgomp.c/debug-1.c: New test.
2613 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2615 * testsuite/libgomp.c/nqueens-1.c: New test.
2618 * testsuite/libgomp.c++/task-7.C: New function.
2620 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2622 * configure: Regenerate.
2624 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2626 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2627 mutex when HAVE_SYNC_BUILTINS isn't defined.
2629 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2631 * libgomp.texi (omp_test_lock): Fix typo.
2633 2008-06-12 Tobias Burnus <burnus@net-b.de>
2635 * omp_lib.f90.in: Add "implicit none".
2637 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2640 * testsuite/libgomp.c/reduction-5.c: New test.
2642 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2644 * libgomp.h (struct gomp_task): Add in_tied_task field.
2645 * task.c (gomp_init_task): Initialize it.
2646 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2647 unconditionally. Don't call gomp_team_barrier_wake if
2648 current task is implicit or if(0) from implicit and number of
2649 running tasks is equal to nthreads - 1.
2652 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2653 omp_get_team_size_8): Fix pastos.
2656 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2657 * configure: Regenerated.
2658 * config.h.in: Regenerated.
2659 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2662 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
2665 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2666 (GOMP_loop_ull_dynamic_start): Likewise.
2667 (GOMP_loop_ull_guided_start): Likewise.
2668 (GOMP_loop_ull_ordered_static_start): Likewise.
2669 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2670 (GOMP_loop_ull_ordered_guided_start): Likewise.
2672 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2673 Richard Henderson <rth@redhat.com>
2674 Ulrich Drepper <drepper@redhat.com>
2675 Jakob Blomer <jakob.blomer@ira.uka.de>
2677 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2678 Substitute also OMP_*LOCK_25*.
2679 * configure: Regenerated.
2680 * config.h.in: Regenerated.
2681 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2682 ptrlock.c and task.c.
2683 * Makefile.in: Regenerated.
2684 * testsuite/Makefile.in: Regenerated.
2686 * loop_ull.c: New file.
2687 * iter_ull.c: New file.
2688 * libgomp.h: Include ptrlock.h.
2689 (enum gomp_task_kind): New type.
2690 (struct gomp_team): Add task_lock, task_queue, task_count,
2691 task_running_count, single_count fields. Add
2692 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2693 Remove work_share_lock, generation_mask,
2694 oldest_live_gen, num_live_gen and init_work_shares fields, add
2695 work work_share_list_alloc, work_share_list_free and work_share_chunk
2696 fields. Change work_shares from pointer to pointers into an array.
2697 Change ordered_release field into gomp_sem_t ** from flexible array
2698 member. Add implicit_task and initial_work_shares fields.
2699 Move close to the end of the struct.
2700 (struct gomp_team_state): Add single_count, last_work_share,
2701 active_level and level fields, remove work_share_generation.
2702 (gomp_barrier_handle_tasks): New prototype.
2703 (gomp_finish_task): New inline function.
2704 (struct gomp_work_share): Move chunk_size, end, incr into
2705 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2706 next_ll fields. Reshuffle fields. Add next_alloc,
2707 next_ws, next_free and inline_ordered_team_ids fields, change
2708 ordered_team_ids into pointer from flexible array member.
2709 Add mode field. Put lock and next into a different cache line
2710 from most of the write-once fields.
2711 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2712 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2713 gomp_iter_ull_guided_next): New prototypes.
2714 (gomp_new_icv): New prototype.
2715 (struct gomp_thread): Add thread_pool and task fields.
2716 (struct gomp_thread_pool): New type.
2717 (gomp_new_team): New prototype.
2718 (gomp_team_start): Change type of last argument.
2719 (gomp_new_work_share): Removed.
2720 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2721 (gomp_work_share_init_done): New static inline.
2722 (gomp_throttled_spin_count_var, gomp_available_cpus,
2723 gomp_managed_threads): New extern decls.
2724 (gomp_init_task): New prototype.
2725 (gomp_spin_count_var): New extern var decl.
2726 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2727 or no alias support, or if not PIC.
2728 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2729 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2730 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2731 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2732 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2733 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2734 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2735 gomp_test_nest_lock_25): New prototypes.
2736 (omp_lock_symver, strong_alias): Define.
2737 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2739 (gomp_end_task): New.
2740 (struct gomp_task_icv, gomp_global_icv): New.
2741 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2742 (struct gomp_task): New.
2743 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2744 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2746 (gomp_schedule_type): Reorder enum to match
2748 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2750 (gomp_thread_start): Add gomp_team_barrier_wait call.
2751 For non-nested case remove clearing of docked thread thr fields.
2752 Use pool fields instead of global gomp_* variables. Use
2753 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2754 Create tasks for each member thread.
2755 (free_team): Only destroy team barrier, task_lock here and free it.
2756 (gomp_free_thread): Free last_team if non-NULL.
2757 (gomp_team_end): Call gomp_team_barrier_wait instead of
2758 gomp_barrier_wait. For nested case call one extra
2759 gomp_barrier_wait. Move here some destruction from free_team.
2760 Call free_team on pool->last_team if any, rather than freeing
2761 current team. Destroy work_share_list_free_lock ifndef
2763 (gomp_new_icv): New function.
2764 (gomp_threads, gomp_threads_size, gomp_threads_used,
2765 gomp_threads_dock): Removed.
2766 (gomp_thread_destructor): New variable.
2767 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2769 (gomp_team_start): Create new pool if current thread doesn't have
2770 one. Use pool fields instead of global gomp_* variables.
2771 Initialize thread_pool field for new threads. Clear single_count.
2772 Change last argument from ws to team, don't create
2773 new team, set ts.work_share to &team->work_shares[0] and clear
2774 ts.last_work_share. Don't clear ts.work_share_generation.
2775 If number of threads changed, adjust atomically gomp_managed_threads.
2776 Use gomp_init_task instead of gomp_new_task,
2777 set thr->task to the corresponding implicit_task array entry.
2778 Create tasks for each member thread. Initialize ts.level.
2779 (initialize_team): Call pthread_key_create on
2780 gomp_thread_destructor.
2781 (team_destructor): New function.
2782 (new_team): Removed.
2783 (gomp_new_team): New function.
2784 (free_team): Free gomp_work_share blocks chained through next_alloc,
2785 instead of freeing work_shares and destroying work_share_lock.
2786 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2787 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2788 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2789 of gomp_barrier_wait.
2790 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2791 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2792 if gomp_work_share_start returned true. Don't unlock ws->lock.
2793 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2794 of gomp_barrier_wait.
2795 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2796 gomp_work_share_init_done if gomp_work_share_start returned true.
2797 Don't unlock ws->lock.
2798 * work.c: Include stddef.h.
2799 (free_work_share): Use work_share_list_free_lock instead
2800 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2801 Call gomp_fini_work_share and then either free ws if orphaned, or
2802 put it into work_share_list_free list of the current team.
2803 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2805 (gomp_work_share_start, gomp_work_share_end,
2806 gomp_work_share_end_nowait): Rewritten.
2807 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2808 (openmp_version): Set to 200805.
2809 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2810 omp_sched_guided, omp_sched_auto): New parameters.
2811 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2812 omp_set_max_active_levels, omp_get_max_active_levels,
2813 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2814 omp_get_active_level): New interfaces.
2815 * omp_lib.h.in (openmp_version): Set to 200805.
2816 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2817 omp_sched_guided, omp_sched_auto): New parameters.
2818 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2819 omp_set_max_active_levels, omp_get_max_active_levels,
2820 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2821 omp_get_active_level): New externals.
2822 * loop.c: Include limits.h.
2823 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2825 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2826 Likewise. Use gomp_icv.
2827 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2828 ts.static_trip here.
2829 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2830 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2831 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2832 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2833 don't unlock ws->lock, otherwise lock it.
2834 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2835 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2836 (gomp_parallel_loop_start): Call gomp_new_team instead of
2837 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2838 Adjust gomp_team_start caller. Pass 0 as second argument to
2839 gomp_resolve_num_threads.
2840 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2841 If adding ws->chunk_size nthreads + 1 times after end won't
2842 overflow, set ws->mode to 1.
2843 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2844 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2845 GOMP_loop_ull_ordered_static_start,
2846 GOMP_loop_ull_ordered_dynamic_start,
2847 GOMP_loop_ull_ordered_guided_start,
2848 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2849 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2850 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2851 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2852 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2854 * libgomp.map: Export lock routines also @@OMP_2.0.
2855 (GOMP_loop_ordered_dynamic_first,
2856 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2857 GOMP_loop_ordered_static_first): Remove.
2858 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2859 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2860 GOMP_loop_ull_ordered_dynamic_next,
2861 GOMP_loop_ull_ordered_dynamic_start,
2862 GOMP_loop_ull_ordered_guided_next,
2863 GOMP_loop_ull_ordered_guided_start,
2864 GOMP_loop_ull_ordered_runtime_next,
2865 GOMP_loop_ull_ordered_runtime_start,
2866 GOMP_loop_ull_ordered_static_next,
2867 GOMP_loop_ull_ordered_static_start,
2868 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2869 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2870 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2871 (omp_set_schedule, omp_get_schedule,
2872 omp_get_thread_limit, omp_set_max_active_levels,
2873 omp_get_max_active_levels, omp_get_level,
2874 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2875 omp_set_schedule_, omp_set_schedule_8_,
2876 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2877 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2878 omp_get_max_active_levels_, omp_get_level_,
2879 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2880 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2881 New exports @@OMP_3.0.
2882 * omp.h.in (omp_sched_t): New type.
2883 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2884 omp_set_max_active_levels, omp_get_max_active_levels,
2885 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2886 omp_get_active_level): New prototypes.
2887 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2888 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2889 gomp_thread_limit_var, gomp_remaining_threads_count,
2890 gomp_remaining_threads_lock): New variables.
2891 (parse_spincount): New function.
2892 (initialize_env): Call gomp_init_num_threads unconditionally.
2893 Initialize gomp_available_cpus. Call parse_spincount,
2894 initialize gomp_{,throttled_}spin_count_var
2895 depending on presence and value of OMP_WAIT_POLICY and
2896 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2897 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2898 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2899 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2900 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2901 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2902 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2903 (gomp_global_icv): New.
2904 (parse_schedule): Use it. Parse "auto".
2905 (omp_set_num_threads): Use gomp_icv.
2906 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2908 (omp_get_max_threads): Move from parallel.c.
2909 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2910 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2912 (parse_stacksize, parse_wait_policy): New functions.
2913 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2914 both wrappers for compatibility and new locks.
2915 (omp_set_schedule, omp_get_schedule,
2916 omp_get_thread_limit, omp_set_max_active_levels,
2917 omp_get_max_active_levels, omp_get_level,
2918 omp_get_ancestor_thread_num, omp_get_team_size,
2919 omp_get_active_level): New ialias_redirect.
2920 (omp_set_schedule_, omp_set_schedule_8_,
2921 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2922 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2923 omp_get_max_active_levels_, omp_get_level_,
2924 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2925 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2927 * parallel.c: Include limits.h.
2928 (gomp_resolve_num_threads): Add count argument. Rewritten.
2929 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2930 argument to gomp_team_start. Pass 0 as second argument to
2931 gomp_resolve_num_threads.
2932 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2933 if gomp_thread_limit_var != ULONG_MAX.
2934 (omp_in_parallel): Implement using ts.active_level.
2935 (omp_get_max_threads): Move to env.c.
2936 (omp_get_level, omp_get_ancestor_thread_num,
2937 omp_get_team_size, omp_get_active_level): New functions,
2939 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2940 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2941 gomp_iter_dynamic_next instead of the _locked variant and don't take
2942 lock around it, otherwise acquire it before calling
2943 gomp_iter_dynamic_next_locked.
2944 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2945 gomp_iter_dynamic_next instead of the _locked variant and don't take
2947 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2948 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2949 Adjust gomp_team_start caller. Pass count as second argument to
2950 gomp_resolve_num_threads, don't adjust num_threads after the call.
2952 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2953 ws->chunk_size by incr.
2954 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2956 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2958 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2959 (omp_check_defines): Check even the compat defines.
2960 * config/linux/ptrlock.c: New file.
2961 * config/linux/ptrlock.h: New file.
2962 * config/linux/wait.h: New file.
2963 * config/posix/ptrlock.c: New file.
2964 * config/posix/ptrlock.h: New file.
2965 * config/linux/bar.h (gomp_team_barrier_wait,
2966 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2967 (gomp_team_barrier_set_task_pending,
2968 gomp_team_barrier_clear_task_pending,
2969 gomp_team_barrier_set_waiting_for_tasks,
2970 gomp_team_barrier_waiting_for_tasks,
2971 gomp_team_barrier_done): New inlines.
2972 (gomp_barrier_t): Rewritten.
2973 (gomp_barrier_state_t): New typedef.
2974 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2975 gomp_barrier_wait_start): Rewritten.
2976 (gomp_barrier_wait_end): Change second argument to
2977 gomp_barrier_state_t.
2978 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2980 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2982 (gomp_barrier_wait_end): Rewritten.
2983 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2984 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2985 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2986 (gomp_barrier_state_t): New typedef.
2987 (gomp_team_barrier_wait,
2988 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2989 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2990 into the return value. Return gomp_barrier_state_t.
2991 (gomp_team_barrier_set_task_pending,
2992 gomp_team_barrier_clear_task_pending,
2993 gomp_team_barrier_set_waiting_for_tasks,
2994 gomp_team_barrier_waiting_for_tasks,
2995 gomp_team_barrier_done): New inlines.
2996 (gomp_barrier_wait_end): Change second argument to
2997 gomp_barrier_state_t.
2998 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3000 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3001 (gomp_barrier_wait_end): Change second argument to
3002 gomp_barrier_state_t.
3003 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3004 gomp_team_barrier_wake): New functions.
3005 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3007 (gomp_futex_wake, gomp_futex_wait): New variables.
3008 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3009 * config/linux/lock.c: Rewrite to make locks task owned,
3010 for backwards compatibility provide the old entrypoints
3011 if symbol versioning. Include wait.h instead of libgomp.h and
3013 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3014 * config/posix95/lock.c: Rewrite to make locks task owned,
3015 for backwards compatibility provide the old entrypoints
3016 if symbol versioning.
3017 * config/posix/lock.c: Rewrite to make locks task owned,
3018 for backwards compatibility provide the old entrypoints
3019 if symbol versioning.
3020 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3021 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3022 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3023 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3024 (sys_futex0): Return error code.
3025 (futex_wake, futex_wait): If ENOSYS was returned, clear
3026 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3027 (cpu_relax, atomic_write_barrier): New static inlines.
3028 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3029 (futex_wake, futex_wait): If ENOSYS was returned, clear
3030 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3031 (cpu_relax, atomic_write_barrier): New static inlines.
3032 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3033 (sys_futex0): Return error code.
3034 (futex_wake, futex_wait): If ENOSYS was returned, clear
3035 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3036 (cpu_relax, atomic_write_barrier): New static inlines.
3037 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3038 (sys_futex0): Return error code.
3039 (futex_wake, futex_wait): If ENOSYS was returned, clear
3040 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3041 (cpu_relax, atomic_write_barrier): New static inlines.
3042 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3043 (sys_futex0): Return error code.
3044 (futex_wake, futex_wait): If ENOSYS was returned, clear
3045 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3046 (cpu_relax, atomic_write_barrier): New static inlines.
3047 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3048 (sys_futex0): Return error code.
3049 (futex_wake, futex_wait): If ENOSYS was returned, clear
3050 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3051 (cpu_relax, atomic_write_barrier): New static inlines.
3052 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3054 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3055 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3056 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3058 (omp_nest_lock_t): Change owner into void *, add lock field.
3059 * config/posix95/omp-lock.h: Include semaphore.h.
3060 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3061 (omp_lock_t): Use sem_t instead of mutex if semaphores
3063 (omp_nest_lock_t): Likewise. Change owner to void *.
3064 * config/posix/omp-lock.h: Include semaphore.h.
3065 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3066 (omp_lock_t): Use sem_t instead of mutex if semaphores
3068 (omp_nest_lock_t): Likewise. Add owner field.
3070 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3072 * testsuite/libgomp.c/collapse-1.c: New test.
3073 * testsuite/libgomp.c/collapse-2.c: New test.
3074 * testsuite/libgomp.c/collapse-3.c: New test.
3075 * testsuite/libgomp.c/icv-1.c: New test.
3076 * testsuite/libgomp.c/icv-2.c: New test.
3077 * testsuite/libgomp.c/lib-2.c: New test.
3078 * testsuite/libgomp.c/lock-1.c: New test.
3079 * testsuite/libgomp.c/lock-2.c: New test.
3080 * testsuite/libgomp.c/lock-3.c: New test.
3081 * testsuite/libgomp.c/loop-4.c: New test.
3082 * testsuite/libgomp.c/loop-5.c: New test.
3083 * testsuite/libgomp.c/loop-6.c: New test.
3084 * testsuite/libgomp.c/loop-7.c: New test.
3085 * testsuite/libgomp.c/loop-8.c: New test.
3086 * testsuite/libgomp.c/loop-9.c: New test.
3087 * testsuite/libgomp.c/nested-3.c: New test.
3088 * testsuite/libgomp.c/nestedfn-6.c: New test.
3089 * testsuite/libgomp.c/sort-1.c: New test.
3090 * testsuite/libgomp.c/task-1.c: New test.
3091 * testsuite/libgomp.c/task-2.c: New test.
3092 * testsuite/libgomp.c/task-3.c: New test.
3093 * testsuite/libgomp.c/task-4.c: New test.
3094 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3095 to C++ testsuite default compiler options.
3096 * testsuite/libgomp.c++/collapse-1.C: New test.
3097 * testsuite/libgomp.c++/collapse-2.C: New test.
3098 * testsuite/libgomp.c++/ctor-10.C: New test.
3099 * testsuite/libgomp.c++/for-1.C: New test.
3100 * testsuite/libgomp.c++/for-2.C: New test.
3101 * testsuite/libgomp.c++/for-3.C: New test.
3102 * testsuite/libgomp.c++/for-4.C: New test.
3103 * testsuite/libgomp.c++/for-5.C: New test.
3104 * testsuite/libgomp.c++/loop-8.C: New test.
3105 * testsuite/libgomp.c++/loop-9.C: New test.
3106 * testsuite/libgomp.c++/loop-10.C: New test.
3107 * testsuite/libgomp.c++/task-1.C: New test.
3108 * testsuite/libgomp.c++/task-2.C: New test.
3109 * testsuite/libgomp.c++/task-3.C: New test.
3110 * testsuite/libgomp.c++/task-4.C: New test.
3111 * testsuite/libgomp.c++/task-5.C: New test.
3112 * testsuite/libgomp.c++/task-6.C: New test.
3113 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3114 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3115 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3116 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3117 * testsuite/libgomp.fortran/collapse1.f90: New test.
3118 * testsuite/libgomp.fortran/collapse2.f90: New test.
3119 * testsuite/libgomp.fortran/collapse3.f90: New test.
3120 * testsuite/libgomp.fortran/collapse4.f90: New test.
3121 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3122 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3123 * testsuite/libgomp.fortran/lib4.f90: New test.
3124 * testsuite/libgomp.fortran/lock-1.f90: New test.
3125 * testsuite/libgomp.fortran/lock-2.f90: New test.
3126 * testsuite/libgomp.fortran/nested1.f90: New test.
3127 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3128 * testsuite/libgomp.fortran/strassen.f90: New test.
3129 * testsuite/libgomp.fortran/tabs1.f90: New test.
3130 * testsuite/libgomp.fortran/tabs2.f: New test.
3131 * testsuite/libgomp.fortran/task1.f90: New test.
3132 * testsuite/libgomp.fortran/task2.f90: New test.
3133 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3134 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3135 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3136 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3137 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3139 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3142 * testsuite/libgomp.c++/ctor-11.C: New test.
3143 * testsuite/libgomp.c++/ctor-12.C: New test.
3145 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3147 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3149 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3152 * testsuite/libgomp.c/atomic-5.c: New test.
3153 * testsuite/libgomp.c/atomic-6.c: New test.
3154 * testsuite/libgomp.c/autopar-1.c: New test.
3156 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3158 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3159 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3160 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3161 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3162 * configure: Regenerate.
3163 * Makefile.in, testsuite/Makefile.in: Likewise.
3165 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3168 * aclocal.m4: Regenerate.
3169 * configure: Regenerate.
3171 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3174 * testsuite/libgomp.c/atomic-4.c: New test.
3177 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3178 (gomp_iter_guided_next): Likewise.
3179 * testsuite/libgomp.c/pr35625.c: New test.
3181 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3183 * aclocal.m4: Regenerate.
3184 * configure: Likewise.
3185 * Makefile.in: Likewise.
3186 * testsuite/Makefile.in: Likewise.
3188 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3191 * testsuite/libgomp.c++/pr35185.C: New test.
3193 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3196 * testsuite/libgomp.c/pr35549.c: New test.
3198 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3200 * testsuite/libgomp.c/atomic-3.c: New test.
3202 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3205 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3208 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3211 * configure.ac: Add ACX_HEADER_STRING.
3212 * env.c: Include strings.h.
3213 * aclocal.m4: Regenerate.
3214 * config.h.in: Regenerate.
3215 * configure: Regenerate.
3216 * Makefile.in: Regenerate.
3217 * testsuite/Makefile.in: Regenerate.
3219 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3222 * testsuite/libgomp.c/pr35196.c: New test.
3225 * testsuite/libgomp.fortran/pr35130.f90: New test.
3226 * testsuite/libgomp.c/pr35130.c: New test.
3228 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3231 * testsuite/libgomp.c/pr33880.c: New test.
3232 * testsuite/libgomp.fortran/pr33880.f90: New test.
3234 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3236 * configure: Regenerate.
3238 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3240 * configure.ac: Move futex checking into ../config/futex.m4.
3241 * configure: Rebuilt.
3242 * aclocal.m4: Rebuilt.
3243 * Makefile.in: Rebuilt.
3245 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3246 2007-10-15 ../config/tls.m4 change.
3248 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3251 * testsuite/libgomp.c/pr34513.c: New test.
3252 * testsuite/libgomp.c++/pr34513.C: New test.
3254 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3257 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3259 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3261 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3263 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3265 * testsuite/libgomp.c/private-1.c: New test.
3267 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3268 Paolo Bonzini <bonzini@gnu.org>
3270 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3271 instead of 'VPATH ='.
3272 * Makefile.in: Regenerate.
3274 2007-11-23 Matthias Klose <doko@ubuntu.com>
3276 * configure.ac: Adjust makeinfo version check.
3277 * configure: Regenerate.
3279 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3282 * testsuite/libgomp.fortran/pr34020.f90: New test.
3284 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3287 * testsuite/libgomp.c++/atomic-1.C: New test.
3289 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3292 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3293 Make x and y integers rather than (implicit) reals. Add private (j)
3294 clause to the last omp parallel.
3296 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3298 * configure: Regenerate following changes to ../config/tls.m4.
3300 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3302 * testsuite/libgomp.fortran/stack.f90: New test.
3304 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3306 * config/mingw32/proc.c: New file.
3308 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3310 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3311 (main): Use __get_cpuid to get i386 target fetaures.
3312 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3313 (main): Use __get_cpuid to get x86_64 target fetaures.
3315 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3318 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3319 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3321 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3324 * testsuite/libgomp.fortran/pr32550.f90: New test.
3325 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3327 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3329 * aclocal.m4: Regenerated.
3331 2007-07-05 Tobias Burnus <burnus@net-b.de>
3334 * testsuite/libgomp.fortran/pr32359.f90: New.
3336 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3339 * sections.c (GOMP_parallel_sections_start): Only decrease
3340 number of threads to COUNT if dyn_var is true.
3341 * testsuite/libgomp.c/pr32468.c: New test.
3343 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3346 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3348 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3351 * testsuite/libgomp.c/pr32362-1.c: New test.
3352 * testsuite/libgomp.c/pr32362-2.c: New test.
3353 * testsuite/libgomp.c/pr32362-3.c: New test.
3355 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3357 * team.c (gomp_team_start): Fix setting up thread_attr
3360 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3362 * configure: Regenerate.
3364 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3366 * Makefile.in: Regenerate.
3367 * configure: Regenerate.
3368 * aclocal.m4: Regenerate.
3369 * testsuite/Makefile.in: Regenerate.
3371 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3373 * config/linux/proc.c: New file.
3376 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3378 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3380 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3382 2007-04-16 Matthias Klose <doko@debian.org>
3384 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3385 flags if not building with -m64.
3386 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3387 flag for i?86-*-* targets, if current target matches -m64.
3389 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3391 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3392 * Makefile.in: Regenerate.
3394 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3397 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3399 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3401 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3403 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3405 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3406 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3407 (parse_affinity): New function.
3408 (initialize_env): Call it and gomp_init_affinity.
3409 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3410 create new pthread_attr_t and call gomp_init_thread_affinity
3411 on it for each thread before passing the attribute to pthread_create.
3412 * config/linux/affinity.c: New file.
3413 * config/posix/affinity.c: New file.
3414 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3415 * configure: Rebuilt.
3416 * config.h.in: Rebuilt.
3417 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3418 * Makefile.in: Rebuilt.
3420 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3422 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3424 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3425 and use it if found.
3427 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3429 * testsuite/config/default.exp: New file.
3430 * testsuite/lib/libgomp.exp: New file.
3431 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3432 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3433 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3434 (libgomp_load): Remove.
3435 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3436 always_ld_library_path, not ld_library_path. Set additional_flags
3437 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3438 (target_compile): Do not call libgomp_init. Append lang_library_path
3439 and lang_link_flags to options.
3440 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3441 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3443 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3444 always_ld_library_path. Set LD_LIBRARY_PATH here.
3445 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3446 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3447 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3449 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3450 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3451 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3452 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3453 * testsuite/libgomp.c/atomic-10.c: Ditto.
3455 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3457 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3458 dg-final cleanup-modules line.
3459 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3460 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3461 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3462 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3463 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3464 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3465 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3467 2007-03-18 Andreas Schwab <schwab@suse.de>
3469 * acinclude.m4: Adjust regular expression for ld version
3471 * configure: Regenerate.
3473 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3475 * Makefile.am: Add install-pdf target as copied from
3476 automake v1.10 rules.
3477 * Makefile.in: Regenerate
3479 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3482 * configure: Regenerate.
3485 * testsuite/libgomp.c++/pr30703.C: New test.
3487 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3490 2006-07-05 Eric Christopher <echristo@apple.com>
3491 * configure.ac: Depend addition of -pthread on host OS.
3492 * configure: Regenerate.
3494 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3496 * libgomp.texi: Fix spacing after abbreviations.
3498 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3501 * configure.ac: Add check for makeinfo
3502 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3503 if an appropiate version of makeinfo is found.
3504 * aclocal.m4: Regenerated.
3505 * configure: Regenerated.
3506 * Makefile.in: Regenerated.
3507 * testsuite/Makefile.in: Regenerated.
3509 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3512 * libgomp.texi: More about implementation-dependent settings.
3514 2007-01-26 Tobias Burnus <burnus@net-b.de>
3516 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3518 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3521 * testsuite/libgomp.c/pr30494.c: New test.
3523 2007-01-15 Tom Tromey <tromey@redhat.com>
3525 * configure: Rebuilt.
3526 * configure.ac: Fixed comment.
3528 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3530 * libgomp.texi: Document implementation specific default values of
3531 environment variables.
3533 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3536 * libgomp.texi: New file.
3537 * configure.ac: Add --enable-generated-files-in-srcdir option.
3538 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3540 * Makefile.in: Regenerated.
3541 * config.h.in: Regenerated.
3542 * testsuite/Makefile.in: Regenerated.
3545 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3548 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3550 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3552 * configure: Regenerate.
3554 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3557 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3558 start if there shouldn't be any loop iterations.
3559 (gomp_loop_ordered_static_start): Remove start == end test.
3560 * testsuite/libgomp.c/pr29947-1.c: New test.
3561 * testsuite/libgomp.c/pr29947-2.c: New test.
3563 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3565 * configure.tgt: Force initial-exec TLS model on Linux only.
3567 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3569 * configure: Regenerated.
3571 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3573 * env.c (parse_schedule): Reject out of range values.
3574 (parse_unsigned_long): Reject out of range, negative or zero values.
3576 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3579 * testsuite/libgomp.fortran/pr29629.f90: New test.
3581 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3584 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3585 * config/posix95: New directory.
3586 * config/posix95/omp-lock.h: New file.
3587 * config/posix95/lock.c: Likewise.
3589 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3591 * aclocal.m4: Regenerate.
3592 * configure: Regenerate.
3594 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3596 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3599 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3601 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3603 * configure: Regenerate.
3604 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3606 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3610 * testsuite/libgomp.c/nestedfn-4.c: New test.
3611 * testsuite/libgomp.c/nestedfn-5.c: New test.
3612 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3615 * testsuite/libgomp.fortran/condinc1.f: New test.
3616 * testsuite/libgomp.fortran/condinc2.f: New test.
3617 * testsuite/libgomp.fortran/condinc3.f90: New test.
3618 * testsuite/libgomp.fortran/condinc4.f90: New test.
3619 * testsuite/libgomp.fortran/condinc1.inc: New file.
3621 2006-09-18 Tom Tromey <tromey@redhat.com>
3623 * configure: Rebuilt.
3625 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3628 PR preprocessor/14634
3629 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3631 * configure: Regenerate.
3633 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3635 * testsuite/libgomp.fortran/reduction3.f90: Change
3636 -2147483648 to -huge(i)-1 to avoid overflow.
3637 * testsuite/libgomp.fortran/reduction4.f90: Change
3638 Z'ffffffff' to not(0) to avoid overflow.
3640 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3643 * Makefile.am (libsubincludedir): New.
3644 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3645 * Makefile.in: Regenerate.
3647 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3650 * env.c: Include ctype.h.
3651 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3652 leading and/or trailing whitespace and compare strings case
3655 2006-07-16 Jakub Jelinek <jakub@redhat.com>
3658 * testsuite/libgomp.fortran/pr28390.f: New test.
3660 2006-07-05 Eric Christopher <echristo@apple.com>
3662 * configure.ac: Depend addition of -pthread on host OS.
3663 * configure: Regenerate.
3665 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3667 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3668 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3671 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3675 * configure.ac: If neither --enable-linux-futex nor
3676 --disable-linux-futex is passed, determine the default by checking
3677 for compiling and/or running against NPTL. With --enable-linux-futex,
3678 check if SYS_gettid and SYS_futex are defined.
3679 * configure: Rebuilt.
3681 2006-06-14 Richard Henderson <rth@redhat.com>
3684 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3685 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3687 2006-06-09 Richard Henderson <rth@redhat.com>
3689 * env.c (gomp_nthreads_var): Change to unsigned long.
3690 (gomp_run_sched_chunk): Likewise.
3691 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3692 (initialize_env): Initialize gomp_thread_attr.
3693 * libgomp.h (gomp_nthreads_var): Update decl.
3694 (gomp_run_sched_chunk): Likewise.
3695 (gomp_thread_attr): Declare.
3696 * team.c (gomp_thread_attr): Export.
3697 (initialize_team): Don't initialize it.
3699 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3702 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3703 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3705 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3707 * config/mingw32/time.c: New file.
3708 * configure.tgt: Use it.
3710 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3712 * Makefile.am: Add install-html target. Add install-html to .PHONY
3713 * Makefile.in: Regenerate.
3715 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3718 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3719 * testsuite/libgomp.c/critical-1.c: Likewise.
3720 * testsuite/libgomp.c/loop-1.c: Likewise.
3721 * testsuite/libgomp.c/loop-2.c: Likewise.
3722 * testsuite/libgomp.c/single-1.c: Likewise.
3723 * testsuite/libgomp.c/ordered-1.c: Likewise.
3724 * testsuite/libgomp.c/ordered-2.c: Likewise.
3726 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3729 * libgomp.fortran/pr27416-1.f90: New test.
3731 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3734 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3735 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3737 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3740 * testsuite/libgomp.c/pr26943-1.c: New test.
3741 * testsuite/libgomp.c/pr26943-2.c: New test.
3742 * testsuite/libgomp.c/pr26943-3.c: New test.
3743 * testsuite/libgomp.c/pr26943-4.c: New test.
3744 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3745 * testsuite/libgomp.c++/pr26943.C: New test.
3747 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3750 * testsuite/libgomp.c++/pr27337.C: New test.
3752 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3755 * testsuite/libgomp.c/pr26171.c: New test.
3757 2006-04-25 Richard Henderson <rth@redhat.com>
3760 * configure.ac: Use GCC_CHECK_TLS.
3761 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3762 * Makefile.in, aclocal.m4, configure: Regenerate.
3764 2006-04-10 Matthias Klose <doko@debian.org>
3766 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3767 directory names containing underscores.
3769 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3772 * testsuite/libgomp.c++/pr26691.C: New test.
3774 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3776 * testsuite/libgomp.fortran/retval2.f90: New test.
3778 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3780 * testsuite/libgomp.c++: New directory.
3782 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3784 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3785 * config/posix/sem.c: Implement the above.
3787 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3789 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3790 define HAVE_BROKEN_POSIX_SEMAPHORES.
3791 * configure: Rebuilt.
3792 * config.h.in: Rebuilt.
3794 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3797 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3798 for the other pthread check.
3799 * configure: Regenerate.
3800 * config.h.in: Regenerate.
3802 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3806 * Makefile.am (fincludedir): New variable.
3807 (nodist_include_HEADERS): Remove Fortran files.
3808 (nodist_finclude_HEADERS): New variable.
3809 * Makefile.in: Regenerated.
3811 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3813 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3814 Remove tests for returning assumed character length arrays.
3816 2006-02-12 Roger Sayle <roger@eyesopen.com>
3817 John David Anglin <dave@hiauly1.hia.nrc.ca>
3820 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3822 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3824 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3826 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3828 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3829 part of LD_LIBRARY_PATH manually.
3831 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3834 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3837 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3840 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3841 * configure.ac (PERL): Don't set.
3842 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3843 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3844 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3845 * omp.h.in: Wrap the new configure substitutions with @ characters.
3846 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3847 * aclocal.m4, configure, Makefile.in: Regenerate.
3848 * mkomp_h.pl: Delete.
3850 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3853 * configure.ac: Use GCC_HEADER_STDINT.
3854 * libgomp.h: Include gstdint.h.
3855 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3856 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3858 2006-01-24 Richard Henderson <rth@redhat.com>
3861 * configure.ac: Add AM_MAINTAINER_MODE.
3862 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3864 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3866 * Makefile.in: Regenerate.
3867 * testsuite/Makefile.in: Regenerate.
3868 * aclocal.m4: Regenerate.
3870 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3872 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3874 * configure.ac: Add check for loadavg.h.
3875 (link_gomp): Adjust comment.
3876 * configure: Regenerate.
3877 * config.h.in: Regenerate.
3879 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3882 * configure.ac: Remove check for alloca.h.
3883 * configure: Regenerate.
3884 * config.h.in: Regenerate.
3885 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3886 * team.c: Remove use of alloca.h.
3887 Call gomp_alloca instead of alloca.
3889 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3892 * team.c: Add include of alloca.h.
3893 * configure.ac: Add check for alloca.h.
3894 * configure: Regenerate.
3895 * config.h.in: Regenerate.
3897 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3900 * testsuite/libgomp.fortran/pr25219.f90: New test.
3902 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3904 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3905 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3906 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3907 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3908 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3909 testsuite/libgomp.fortran/threadprivate1.f90,
3910 testsuite/libgomp.fortran/threadprivate2.f90,
3911 testsuite/libgomp.fortran/threadprivate3.f90,
3912 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3913 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3914 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3915 effective-target to TLS runtime.
3917 * testsuite/libgomp.fortran/pr25162.f: Require
3918 effective-target TLS runtime.
3920 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3922 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3923 * testsuite/libgomp.c/nestedfn-3.c: New test.
3925 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3928 * testsuite/libgomp.fortran/pr25162.f: New test.
3930 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3932 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3933 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3935 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3937 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3938 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3939 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3940 single.c, team.c, work.c, config/linux/alpha/futex.h,
3941 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3942 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3943 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3944 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3945 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3946 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3947 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3950 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3952 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3953 to nodist_noinst_HEADERS.
3954 * Makefile.in: Rebuilt.
3956 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3957 add integer count field.
3958 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3959 omp_nest_lock_t type change.
3960 (omp_init_nest_lock): Likewise. Initialize count to 0.
3961 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3963 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3965 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3966 Increment count if successful and return the new nesting level.
3967 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3968 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3969 * testsuite/libgomp.c/lib-1.c: New test.
3970 * testsuite/libgomp.fortran/lib1.f90: New test.
3971 * testsuite/libgomp.fortran/lib2.f: New test.
3972 * testsuite/libgomp.fortran/lib3.f: New test.
3974 2005-11-17 Richard Henderson <rth@redhat.com>
3977 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3978 * configure.ac (link_gomp): New. Substitute it.
3979 (AC_CONFIG_FILES): Add libgomp.spec.
3980 * libgomp.spec.in: New file.
3981 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3982 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3984 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3986 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3987 reduction(-:var) behaving the same as reduction(+:var).
3988 * testsuite/libgomp.c/reduction-4.c: New test.
3990 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3992 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3993 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3994 testsuite/libgomp.c/copyin-3.c,
3995 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3996 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3997 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3998 testsuite/libgomp.c++/pr24455.C,
3999 testsuite/libgomp.fortran/threadprivate1.f90,
4000 testsuite/libgomp.fortran/threadprivate2.f90,
4001 testsuite/libgomp.fortran/threadprivate3.f90,
4002 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4003 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4004 testsuite/libgomp.fortran/omp_parse3.f90: Require
4005 effective-target TLS.
4007 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4011 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4014 * team.c (initialize_team): Pass NULL rather than free as
4015 pthread_key_create destructor. Initialize thread specific data
4016 pointer in initial thread to a static local variable rather than
4019 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4021 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4022 its location to ld_library_path.
4024 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4026 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4028 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4030 * testsuite/libgomp.c: Rename from libgomp.dg.
4032 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4034 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4035 threadprivate variable 'i'.
4037 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4039 * config/linux/s390/futex.h: New file.
4040 * configure.tgt: Use it.
4042 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4043 before the parallel.
4045 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4048 * testsuite/libgomp.c++/master-1.C: New test.
4050 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4052 * testsuite/libgomp.dg/copyin-3.c: New test.
4054 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4056 * testsuite/libgomp.fortran/retval1.f90: New test.
4057 * testsuite/libgomp.fortran/vla7.f90: New test.
4059 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4061 * testsuite/libgomp.fortran/vla2.f90: New test.
4062 * testsuite/libgomp.fortran/vla3.f90: New test.
4063 * testsuite/libgomp.fortran/vla4.f90: New test.
4064 * testsuite/libgomp.fortran/vla5.f90: New test.
4065 * testsuite/libgomp.fortran/vla6.f90: New test.
4067 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4069 * config/linux/sparc/futex.h: New file.
4070 * configure.tgt: Use it.
4071 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4073 * critical.c: Include stdlib.h.
4074 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4075 ignoring return value.
4076 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4077 LIBGOMP_CHECK_SYNC_BUILTINS check.
4078 * configure: Rebuilt.
4080 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4082 * testsuite/libgomp.fortran/vla1.f90: New test.
4084 2005-10-31 Richard Henderson <rth@redhat.com>
4086 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4087 setting 's' in different threads.
4089 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4091 * libgomp.h (attribute_hidden, ialias): Define.
4092 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4093 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4094 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4095 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4096 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4097 omp_test_lock, omp_test_nest_lock): Likewise.
4098 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4099 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4100 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4101 omp_test_lock, omp_test_nest_lock): Likewise.
4102 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4103 omp_get_dynamic, omp_get_nested): Likewise.
4104 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4105 omp_get_thread_num, omp_in_parallel): Likewise.
4106 * fortran.c (ialias_redirect): Define.
4107 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4108 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4109 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4110 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4111 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4112 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4113 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4114 omp_get_wtime): Add ialias_redirect.
4116 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4118 * fortran.c: Include stdlib.h.
4120 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4122 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4123 * Makefile.in: Regenerated.
4125 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4127 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4128 * libgomp_f.h.in (omp_check_defines): New function.
4129 * env.c: Include libgomp_f.h.
4130 (initialize_env): Call omp_check_defines.
4132 * testsuite/libgomp.dg/copyin-2.c: New test.
4133 * testsuite/libgomp.c++/copyin-2.C: New test.
4134 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4136 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4137 * testsuite/libgomp.fortran/sharing2.f90: New test.
4139 * testsuite/libgomp.dg/copyin-1.c: New test.
4140 * testsuite/libgomp.c++/copyin-1.C: New test.
4142 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4144 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4146 * testsuite/libgomp.fortran/workshare1.f90: New test.
4148 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4150 * libgomp.fortran/sharing1.f90: New test.
4152 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4155 * testsuite/libgomp.c++/loop-7.C: New test.
4157 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4159 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4160 * testsuite/libgomp.fortran/reduction6.f90: New test.
4161 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4163 2005-10-23 Richard Henderson <rth@redhat.com>
4165 * testsuite/libgomp.c++/ctor-1.C: New.
4166 * testsuite/libgomp.c++/ctor-2.C: New.
4167 * testsuite/libgomp.c++/ctor-3.C: New.
4168 * testsuite/libgomp.c++/ctor-4.C: New.
4169 * testsuite/libgomp.c++/ctor-5.C: New.
4170 * testsuite/libgomp.c++/ctor-6.C: New.
4171 * testsuite/libgomp.c++/ctor-7.C: New.
4172 * testsuite/libgomp.c++/ctor-8.C: New.
4173 * testsuite/libgomp.c++/ctor-9.C: New.
4175 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4178 * testsuite/libgomp.c++/pr24455-1.C: New test.
4179 * testsuite/libgomp.c++/pr24455.C: New test.
4180 * testsuite/libgomp.dg/pr24455-1.c: New test.
4181 * testsuite/libgomp.dg/pr24455.c: New test.
4183 2005-10-20 Richard Henderson <rth@redhat.com>
4185 * testsuite/libgomp.c++/loop-6.C: New.
4186 * testsuite/libgomp.dg/loop-3.c: New.
4188 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4190 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4192 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4195 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4197 * testsuite/libgomp.fortran/jacobi.f: New test.
4199 2005-10-19 Richard Henderson <rth@redhat.com>
4201 * configure.tgt (i?86-linux): Default to with_arch instead of
4202 CFLAGS. Add -mtune to match target_cpu.
4203 (x86_64-linux): Tune to i686.
4205 * fortran.c (omp_test_nest_lock_): Fix typo.
4207 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4209 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4210 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4211 * testsuite/libgomp.dg/ordered-3.c: New test.
4213 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4214 Remove volatile keyword.
4216 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4217 in COMMON block to avoid warnings on 64-bit targets.
4219 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4221 * testsuite/libgomp.dg/shared-3.c: New test.
4223 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4225 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4226 * testsuite/libgomp.fortran/reduction5.f90: New test.
4228 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4230 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4232 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4233 flush loop now that __sync_synchronize has proper memory barrier.
4234 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4235 Add -ffixed-form to dg-options.
4237 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4239 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4240 from subdirectories.
4241 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4242 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4243 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4244 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4245 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4246 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4247 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4248 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4249 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4250 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4251 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4252 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4253 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4254 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4255 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4256 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4257 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4258 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4259 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4260 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4261 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4262 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4263 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4264 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4265 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4267 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4269 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4270 lang_library_path exists. Use find instead of glob to gather tests.
4271 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4273 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4275 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4276 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4277 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4278 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4279 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4280 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4281 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4282 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4283 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4284 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4285 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4286 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4287 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4289 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4291 * testsuite/libgomp.dg/vla-1.c: New test.
4293 * testsuite/libgomp.fortran/reference2.f90: New test.
4295 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4296 declaration of omp_get_thread_num.
4297 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4300 * testsuite/libgomp.fortran/reduction1.f90: New test.
4301 * testsuite/libgomp.fortran/reduction2.f90: New test.
4302 * testsuite/libgomp.fortran/reduction3.f90: New test.
4303 * testsuite/libgomp.fortran/reduction4.f90: New test.
4305 2005-10-13 Richard Henderson <rth@redhat.com>
4307 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4308 * Makefile.in: Regenerate.
4309 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4310 * libgomp.h: Include bar.h.
4311 (struct gomp_barrier): Remove.
4312 (struct gomp_team): Add barrier. Replace master_barrier with
4313 master_release. Replace threads with ordered_release.
4314 (struct gomp_thread): Replace barrier with release.
4315 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4316 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4317 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4318 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4319 (GOMP_single_copy_end): Likewise.
4320 * team.c (gomp_threads_dock): New.
4321 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4322 (gomp_thread_start): Use gomp_barrier_wait.
4323 (new_team, free_team): Update for gomp_team changes.
4324 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4325 (gomp_team_end): Use gomp_barrier_wait.
4326 (initialize_team): Update for gomp_thread changes.
4327 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4328 (gomp_work_share_end_nowait): Use atomic ops when available.
4329 * config/linux/bar.c, config/linux/bar.h: New files.
4330 * config/posix/bar.c, config/posix/bar.h: New files.
4332 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4334 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4335 * testsuite/libgomp.dg/single-2.c: New test.
4337 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4338 lang_link_flags): Unset, so that they aren't inherited from previously
4341 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4343 2005-10-12 Richard Henderson <rth@redhat.com>
4345 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4346 (libgomp_init): Use lang_test_file, lang_library_path, and
4347 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4349 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4350 (lang_test_file, lang_link_flags): New.
4351 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4353 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4354 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4355 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4356 testsuite/libgomp.c++/parallel-1.C,
4357 testsuite/libgomp.c++/reduction-1.C,
4358 testsuite/libgomp.c++/reduction-2.C,
4359 testsuite/libgomp.c++/reduction-3.C,
4360 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4361 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4362 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4363 New files, largely cribbed from the C testsuite.
4365 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4367 * testsuite/libgomp.fortran/character1.f90: New test.
4368 * testsuite/libgomp.fortran/character2.f90: New test.
4370 * testsuite/libgomp.dg/nested-1.c: New test.
4371 * testsuite/libgomp.dg/nested-2.c: New test.
4372 * testsuite/libgomp.fortran/do1.f90: New test.
4373 * testsuite/libgomp.fortran/do2.f90: New test.
4375 * testsuite/libgomp.fortran/reference1.f90: New test.
4377 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4379 * testsuite/libgomp.dg/reduction-1.c: New test.
4380 * testsuite/libgomp.dg/reduction-2.c: New test.
4381 * testsuite/libgomp.dg/reduction-3.c: New test.
4383 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4385 * testsuite/libgomp.dg/atomic-1.c: New test.
4386 * testsuite/libgomp.dg/atomic-2.c: New test.
4388 2005-10-09 Richard Henderson <rth@redhat.com>
4390 * critical.c (atomic_lock): New.
4391 (initialize_critical): Initialize it.
4392 (GOMP_atomic_start, GOMP_atomic_end): New.
4393 * libgomp.map: Export them.
4394 * libgomp_g.h: Declare them.
4396 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4398 2005-10-02 Richard Henderson <rth@redhat.com>
4400 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4401 to XCFLAGS instead of CFLAGS.
4403 2005-09-30 Richard Henderson <rth@redhat.com>
4405 * configure.ac: Determine whether -pthread or -lpthread is needed.
4406 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4407 * Makefine.in, configure: Rebuild.
4409 2005-09-28 Richard Henderson <rth@redhat.com>
4411 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4412 * testsuite/libgomp.dg/omp-single-3.c: New test.
4414 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4416 * testsuite/libgomp.dg/omp-single-2.c: New test.
4417 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4419 2005-09-27 Richard Henderson <rth@redhat.com>
4421 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4422 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4424 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4426 * testsuite/libgomp.dg/omp-loop03.c: New test.
4428 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4430 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4432 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4434 * testsuite/libgomp.dg/omp-single-1.c: New test.
4435 * testsuite/libgomp.dg/shared-1.c: Return 0.
4436 Add prototype for abort.
4437 * testsuite/libgomp.dg/shared-2.c: Likewise.
4439 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4441 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4444 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4446 * testsuite/libgomp.dg/shared-1.c: New test.
4447 * testsuite/libgomp.dg/shared-2.c: New test.
4449 2005-09-24 Richard Henderson <rth@redhat.com>
4451 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4453 2005-09-24 Richard Henderson <rth@redhat.com>
4455 * iter.c (gomp_iter_static_next): Round up when computing number
4456 of iterations. Don't bother distributing a remainder equally.
4458 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4459 Don't call srand. Zero b before testing.
4462 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4464 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4465 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4467 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4469 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4470 without !$omp end do, followed immediately by subroutine end.
4472 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4474 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4476 2005-09-22 Richard Henderson <rth@redhat.com>
4478 * critical.c (GOMP_critical_name_start): Change argument to void**.
4479 Reuse the pointer space if the mutex fits.
4480 (GOMP_critical_name_end): Likewise.
4481 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4482 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4483 (GOMP_critical_name_end): Likewise.
4484 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4485 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4487 2005-09-20 Richard Henderson <rth@redhat.com>
4489 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4490 (create_lock_lock): New.
4491 (initialize_critical): Initialize it.
4492 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4493 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4495 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4497 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4499 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4501 * testsuite/libgomp.dg/omp-loop01.c: New test.
4502 * testsuite/libgomp.dg/omp-loop02.c: New test.
4504 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4506 * configure.ac (AC_PROG_FC): Add.
4507 (USE_FORTRAN): New automake conditional.
4508 * configure: Rebuilt.
4509 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4510 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4511 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4512 Add rules to build them.
4513 * Makefile.in: Rebuilt.
4514 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4516 * libgomp.map: Add Fortran wrappers.
4517 * libgomp_f.h.in: New file.
4518 * omp_lib.h.in: New file.
4519 * omp_lib.f90.in: New file.
4520 * fortran.c: New file.
4521 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4522 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4523 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4524 libgfortran has been built.
4525 * testsuite/libgomp.fortran/fortran.exp: New file.
4526 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4527 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4528 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4529 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4530 * testsuite/libgomp.fortran/omp_hello.f: New test.
4531 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4532 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4533 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4534 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4535 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4536 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4537 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4538 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4540 2005-08-30 Richard Henderson <rth@redhat.com>
4542 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4543 function for when aliases are not usable.
4544 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4545 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4546 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4547 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4548 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4549 GOMP_loop_ordered_guided_next): Likewise.
4550 * ordered.c (GOMP_ordered_start): Likewise.
4552 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4554 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4555 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4556 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4557 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4558 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4559 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4560 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4561 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4562 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4564 2005-07-07 Eric Christopher <echristo@redhat.com>
4565 Diego Novillo <dnovillo@redhat.com>
4567 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4568 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4570 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4571 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4572 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4573 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4574 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4575 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4576 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4578 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4580 * TOPLEVEL.patch: Remove.
4582 2005-05-16 Richard Henderson <rth@redhat.com>
4584 * configure.ac: Test for clock_gettime.
4585 * config.h.in, configure: Rebuild.
4586 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4587 (omp_get_wtime): Use clock_gettime if available.
4588 (omp_get_wtick): Use clock_getres if available.
4590 2005-05-11 Richard Henderson <rth@redhat.com>
4592 * config/linux/ia64/futex.h: New file.
4593 * configure.tgt: Use it.
4595 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4597 2005-05-07 Richard Henderson <rth@redhat.com>
4599 * config/linux/powerpc/futex.h: New file.
4600 * configure.tgt: Use it.
4602 * config/linux/i486/futex.h: Merge ...
4603 * config/linux/x86_64/futex.h: ... into ...
4604 * config/linux/x86/futex.h: ... here.
4605 * configure.tgt: Update to match.
4607 2005-05-06 Richard Henderson <rth@redhat.com>
4609 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4610 * config/linux/i486/futex.h: Likewise.
4611 * config/linux/x86_64/futex.h: Likewise.
4613 * config/linux/lock.c: New file.
4614 * config/linux/omp-lock.h: New file.
4616 * critical.c, env.h: Don't include omp.h
4617 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4618 * config/posix/time.c: Likewise.
4619 * config/posix/omp-lock.h: New file.
4620 * libgomp.h: Include omp-lock.h and omp.h.
4621 * Makefile.am (nodist_include_HEADERS): New.
4623 * configure.ac (PERL): New.
4624 * mkomp_h.pl: New file.
4625 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4627 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4629 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4630 build directory. Re-add -march=i486 hack.
4632 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4633 (libgomp_link_flags): Remove.
4634 (libgomp_initialized): Remove.
4635 (libgomp_init): Don't protect from reinitialization. Copy code
4636 from libstdc++ for getting the multilib set correctly.
4638 2005-05-05 Richard Henderson <rth@redhat.com>
4640 * config/linux/alpha/futex.h: New file.
4641 * configure.tgt (alpha*-*-linux*): Use it.
4643 * config/posix/mutex.c: New file.
4644 * config/posix/sem.c: Use libgomp.h.
4646 * configure.tgt (x86_64-linux): Also test CC for -m32.
4647 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4649 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4652 * Makefile.am (SUBDIRS): New.
4653 (libgomp_la_LDFLAGS): Add -lpthread.
4654 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4655 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4657 * libgomp_g.h: New file.
4658 * libgomp.h: Split out all public declarations to libgomp_g.h.
4659 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4660 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4661 * config/linux/sem.h: Likewise.
4662 * config/posix/sem.h: Likewise.
4664 * Makefile.am (AM_LDFLAGS): New.
4665 (libgomp_version_script): Split out from ...
4666 (libgomp_la_LDFLAGS): ... here.
4667 (libgomp_version_info): New.
4668 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4669 (LIBGOMP_ENABLE): New.
4670 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4671 (LIBGOMP_ENABLE_SYMVERS): New.
4672 * configure.ac (AC_INIT): Version 1.0.
4673 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4674 (enable-linux-futex): Likewise. Rename from enable-futex.
4675 (libtool_VERSION): New.
4676 (LIBGOMP_ENABLE_SYMVERS): Use it.
4677 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4678 * Makefile.in, aclocal.m4, configure: Rebuild.
4680 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4681 (gomp_mutex_unlock_slow): Fix typo.
4682 * config/linux/sem.c: Similarly.
4683 (gomp_sem_post_slow): Fix typo.
4684 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4685 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4686 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4688 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4689 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4690 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4691 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4692 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4693 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4694 LDFLAGS. Pull enable_futex check to top-level.
4695 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4696 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4698 First attempt at real configury.
4699 * Makefile, config.h: Remove file.
4700 * Makefile.am, Makefile.in: New file.
4701 * acinclude.m4 aclocal.m4: New file.
4702 * configure.ac, configure.tgt, configure: New file.
4704 * config/posix/lock.c: Rename from sys-lock.c.
4705 * config/posix/mutex.h: Rename from sys-mutex.h.
4706 * config/posix/sem.c: Rename from sys-sem.c.
4707 * config/posix/sem.h: Rename from sys-sem.h.
4708 * config/posix/proc.c: Rename from sys-proc.c.
4709 * config/posix/time.c: Rename from sys-proc.c.
4711 * config/linux/mutex.c: New file.
4712 * config/linux/mutex.h: New file.
4713 * config/linux/sem.c: New file.
4714 * config/linux/sem.h: New file.
4715 * config/linux/i486/futex.h: New file.
4716 * config/linux/x86_64/futex.h: New file.
4718 2005-05-04 Richard Henderson <rth@redhat.com>
4720 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4721 * libgomp.h: Declare them.
4722 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4723 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4725 2005-05-04 Richard Henderson <rth@redhat.com>
4727 * libgomp-1 code drop
4729 2005-05-04 Richard Henderson <rth@redhat.com>
4731 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4732 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4733 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4734 (gomp_iter_static_next): Update.
4735 (gomp_ordered_static_next): Update.
4736 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4737 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4738 totally empty range.
4739 (gomp_loop_ordered_static_next): Refine test for calling
4740 gomp_ordered_static_next.
4741 * testsuite/ordered-1.c: Add case for more threads than iterations.
4743 * iter.c (gomp_iter_runtime_next_locked): Remove.
4744 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4745 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4746 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4747 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4748 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4749 gomp_loop_ordered_guided_next): Downcase name, make static, add
4750 an external alias with the old name.
4751 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4752 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4753 switch and call one of the above static functions.
4754 * libgomp.h: Update.
4756 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4757 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4758 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4759 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4760 GOMP_loop_ordered_guided_start): Update to match.
4761 * sections.c (GOMP_sections_start): Likewise.
4762 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4764 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4765 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4766 Use bounds check instead of modulus.
4767 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4768 (gomp_ordered_last): Don't sync with ordered_owner here.
4769 (gomp_ordered_next): Likewise.
4770 (gomp_ordered_static_loop_next): Likewise.
4771 * loop.c, libgomp.h: Update to match.
4773 * libgomp.h (GOMP_barrier): Declare.
4775 * testsuite/barrier-1.c: New file.
4776 * testsuite/critical-1.c: New file.
4777 * testsuite/ordered-2.c: New file.
4778 * testsuite/ordered-1.c: New file.
4779 * testsuite/sections-1.c: New file.
4780 * testsuite/single-1.c: New file.
4781 * testsuite/Makefile (TESTS): Add them.
4783 2005-05-04 Richard Henderson <rth@redhat.com>
4785 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4786 * loop.c (GOMP_loop_static_start): If not the startup thread,
4787 acquire the mutex to wait for initialization complete.
4788 (GOMP_loop_ordered_static_start): Likewise.
4789 (GOMP_loop_ordered_runtime_start): Likewise.
4790 (GOMP_loop_ordered_static_first): Remove.
4791 (GOMP_loop_ordered_dynamic_first): Remove.
4792 (GOMP_loop_ordered_guided_first): Remove.
4793 (GOMP_loop_ordered_runtime_first): Remove.
4794 * ordered.c (gomp_ordered_loop_first): Post to own release when
4795 we're the first thread.
4796 (gomp_ordered_loop_last): Wait on release if not owner.
4797 (gomp_ordered_loop_next): Likewise.
4798 (gomp_ordered_static_loop_init): New.
4799 (gomp_ordered_static_loop_next): Use ordered_owner.
4800 (GOMP_ordered_start): Likewise.
4801 * work.c (gomp_new_work_share): Initialize ordered_owner.
4803 2005-05-03 Richard Henderson <rth@redhat.com>
4805 * Makefile (OPT): New.
4808 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4809 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4810 * libgomp.h, libgomp.map, NOTES: Update to match.
4812 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4813 Add initialized and thr members.
4814 (gomp_thread_start): Pause when initially spawned to wait for
4815 the whole team to be created.
4816 (gomp_team_start): Release team members at the end.
4818 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4819 (f_foo_1): Use GOMP_loop_end.
4820 (f_foo_2): Use GOMP_loop_end_nowait.
4822 * testsuite/loop-2.c: New file.
4823 * testsuite/Makefile (TESTS): Add it.
4825 2005-05-03 Richard Henderson <rth@redhat.com>
4827 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4828 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4829 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4832 * testsuite/Makefile: New file.
4833 * testsuite/loop-1.c: New file.
4835 2005-05-03 Richard Henderson <rth@redhat.com>
4837 Initial implementation and checkin.