]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
ea023bcf
UB
12015-05-27 Uros Bizjak <ubizjak@gmail.com>
2
8ed501f1
UB
3 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
4
52015-05-27 Uros Bizjak <ubizjak@gmail.com>
6
7 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8 Declare as int.
9 (FUTEX_PRIVATE_FLAG): Remove L suffix.
10 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11 Declare as int.
12
132015-05-27 Uros Bizjak <ubizjak@gmail.com>
14
15 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove
16 sys_futex0 function.
ea023bcf 17
1716efeb
CLT
182015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
19
20 * target.c (gomp_map_pointer): New function abstracting out
21 GOMP_MAP_POINTER handling.
22 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
23 gomp_map_pointer().
24
41b37d5e
JJ
252015-05-19 Jakub Jelinek <jakub@redhat.com>
26
27 PR middle-end/66199
28 * testsuite/libgomp.c/pr66199-1.c: New test.
29 * testsuite/libgomp.c/pr66199-2.c: New test.
30 * testsuite/libgomp.c++/pr66199-1.C: New test.
31 * testsuite/libgomp.c++/pr66199-2.C: New test.
32 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
33 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
34
c8319826
JB
352015-05-19 Julian Brown <julian@codesourcery.com>
36
37 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
38 on cuInit failure.
39
b37dddbc
JJ
402015-05-13 Jakub Jelinek <jakub@redhat.com>
41
42 PR middle-end/66133
43 * testsuite/libgomp.c/pr66133.c: New test.
44
55fba601
MH
452015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
46
47 * Makefile.in: Regenerated with automake-1.11.6.
48 * aclocal.m4: Likewise.
49 * config.h.in: Likewise.
50 * configure: Likewise.
51 * testsuite/Makefile.in: Likewise.
52
1be0899d
JM
532015-05-08 Jason Merrill <jason@redhat.com>
54
55 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
56 _Complex.
57
58 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
59
d2463960
JB
602015-05-06 Julian Brown <julian@codesourcery.com>
61
62 * oacc-init.c (acc_device_lock): Add explanatory comment.
63 (resolve_device): Add comment about locking requirement.
64 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
65 gomp_init_device and gomp_fini_device calls.
66 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
67 (acc_get_device_num, acc_set_device_num): Add locking around
68 resolve_device and gomp_init_device calls.
69
e38fdba4
JB
702015-05-06 Julian Brown <julian@codesourcery.com>
71
72 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
73 goacc_thread_lock on error paths.
74 * oacc-mem.c (lookup_host): Remove locking from function. Note
75 locking requirement for caller in function comment.
76 (lookup_dev): Likewise.
77 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
78 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
79 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
80 Add locking.
81
ae8ffbbb
TS
822015-05-05 Thomas Schwinge <thomas@codesourcery.com>
83
84 PR testsuite/65205
85 PR libgomp/65993
86 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
87 don't expect "0x" prefix for "%p" format specifier, don't expect
88 "(nil)" for NULL pointer.
89 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
90 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
91 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
92 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
93 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
94 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
95 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
96 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
97 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
99 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
101 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
102 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
103 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
104 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
105 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
106 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
107 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
108 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
109 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
110 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
111 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
112 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
113 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
114 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
115 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
116 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
117 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
118 accurately specify what we're looking for.
119 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
120 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
121 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
122 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
123 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
124
1309f1d2
JN
1252015-04-30 James Norris <jnorris@codesourcery.com>
126
127 PR testsuite/65205
128 * testsuite/lib/libgomp.exp
129 (check_effective_target_openacc_host_selected)
130 (check_effective_target_openacc_host_nonshm_selected): New
131 procedures.
132 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
133 dg-shouldfail.
134 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
135 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
136 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
137 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
138 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
139 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
140 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
141 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
142 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
143 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
144 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
145 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
146 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
147 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
148 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
149 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
150 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
151 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
152 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
153 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
154 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
155 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
156 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
157 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
158 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
163 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
165 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
167 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
169 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
176 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
177
d93bdab5
JB
1782015-04-08 Julian Brown <julian@codesourcery.com>
179
180 * libgomp.h (target_mem_desc: Remove mem_map field.
181 (acc_dispatch_t): Remove open_device_func, close_device_func,
182 get_device_num_func, set_device_num_func, target_data members.
183 Change create_thread_data_func argument to device number instead of
184 generic pointer.
185 * oacc-async.c (assert.h): Include.
186 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
187 (acc_wait_all, acc_wait_all_async): Use current host thread's
188 active device, not base_dev.
189 * oacc-cuda.c (acc_get_current_cuda_device)
190 (acc_get_current_cuda_context, acc_get_cuda_stream)
191 (acc_set_cuda_stream): Likewise.
192 * oacc-host.c (host_dispatch): Don't set open_device_func,
193 close_device_func, get_device_num_func or set_device_num_func.
194 * oacc-init.c (base_dev, init_key): Remove.
195 (cached_base_dev): New.
196 (name_of_acc_device_t): New.
197 (acc_init_1): Initialise default-numbered device, not zeroth.
198 (acc_shutdown_1): Close all devices of a given type.
199 (goacc_destroy_thread): Don't use base_dev.
200 (lazy_open, lazy_init, lazy_init_and_open): Remove.
201 (goacc_attach_host_thread_to_device): New.
202 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
203 (acc_get_num_devices): Don't use base_dev.
204 (acc_set_device_type): Reimplement.
205 (acc_get_device_type): Don't use base_dev.
206 (acc_get_device_num): Tweak logic.
207 (acc_set_device_num): Likewise.
208 (acc_on_device): Use acc_get_device_type.
209 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
210 (goacc_lazy_initialize): Reimplement with acc_init and
211 goacc_attach_host_thread_to_device.
212 * oacc-int.h (goacc_thread): Add base_dev field.
213 (base_dev): Remove extern declaration.
214 (goacc_attach_host_thread_to_device): Add prototype.
215 * oacc-mem.c (acc_malloc): Use current thread's device instead of
216 base_dev.
217 (acc_free): Likewise.
218 (acc_memcpy_to_device): Likewise.
219 (acc_memcpy_from_device): Likewise.
220 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
221 goacc_lazy_initialize (throughout).
222 (GOACC_parallel): Use tgt_offset to locate target functions.
223 * target.c (gomp_map_vars): Don't set tgt->mem_map.
224 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
225 (gomp_load_plugin_for_device): Remove open_device, close_device,
226 get_device_num, set_device_num openacc hook initialisation. Don't set
227 openacc.target_data.
228 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
229 (GOMP_OFFLOAD_openacc_close_device)
230 (GOMP_OFFLOAD_openacc_get_device_num)
231 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
232 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
233 to int.
234 * plugin/plugin-nvptx.c (ptx_inited): Remove.
235 (instantiated_devices, ptx_dev_lock): New.
236 (struct ptx_image_data): New.
237 (ptx_devices, ptx_images, ptx_image_lock): New.
238 (fini_streams_for_device): Reorder cuStreamDestroy call.
239 (nvptx_get_num_devices): Remove forward declaration.
240 (nvptx_init): Change return type to bool.
241 (nvptx_fini): Remove.
242 (nvptx_attach_host_thread_to_device): New.
243 (nvptx_open_device): Return struct ptx_device* instead of void*.
244 (nvptx_close_device): Change argument type to struct ptx_device*,
245 return type to void.
246 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
247 (kernel_target_data, kernel_host_table): Remove static globals.
248 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
249 (GOMP_OFFLOAD_init_device): Reimplement.
250 (GOMP_OFFLOAD_fini_device): Likewise.
251 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
252 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
253 (GOMP_OFFLOAD_host2dev): Use ORD argument.
254 (GOMP_OFFLOAD_openacc_open_device)
255 (GOMP_OFFLOAD_openacc_close_device)
256 (GOMP_OFFLOAD_openacc_set_device_num)
257 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
258 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
259 (device number).
260
261 testsuite/
262 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
263
a51df54e
IV
2642015-04-06 Ilya Verbin <ilya.verbin@intel.com>
265
266 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
267 * libgomp.h (struct gomp_memory_mapping): Remove.
268 (struct target_mem_desc): Change type of mem_map from
269 gomp_memory_mapping * to splay_tree_s *.
270 (struct gomp_device_descr): Remove register_image_func, get_table_func.
271 Add load_image_func, unload_image_func.
272 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
273 Remove offload_regions_registered.
274 (gomp_init_tables): Remove.
275 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
276 to splay_tree_s *.
277 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
278 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
279 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
280 offload_regions_registered.
281 Initialize load_image_func, unload_image_func, mem_map.root.
282 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
283 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
284 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
285 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
286 gomp_memory_mapping *. Use dev's lock and splay_tree.
287 (lookup_dev): Use dev's lock.
288 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
289 (acc_is_present): Likewise.
290 (acc_map_data): Likewise.
291 (acc_unmap_data): Likewise. Use dev's lock.
292 (present_create_copy): Likewise.
293 (delete_copyout): Pass dev to lookup_host instead of mem_map.
294 (update_dev_host): Likewise.
295 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
296 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
297 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
298 (GOMP_OFFLOAD_get_table): Remove
299 (GOMP_OFFLOAD_load_image): New function.
300 (GOMP_OFFLOAD_unload_image): New function.
301 * target.c (register_lock): New mutex for offload image registration.
302 (num_devices): Do not guard with PLUGIN_SUPPORT.
303 (gomp_realloc_unlock): New static function.
304 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
305 before gomp_fatal.
306 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
307 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
308 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
309 mem_map's.
310 (gomp_unmap_vars): Likewise.
311 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
312 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
313 (gomp_offload_image_to_device): New static function.
314 (GOMP_offload_register): Add mutex lock.
315 Call gomp_offload_image_to_device for all initialized devices.
316 Replace gomp_realloc with gomp_realloc_unlock.
317 (GOMP_offload_unregister): New function.
318 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
319 get_table_func from the plugin with calls to init_device_func and
320 gomp_offload_image_to_device.
321 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
322 to splay_tree_s *.
323 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
324 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
325 (GOMP_target_data): Do not call gomp_init_tables.
326 (GOMP_target_update): Likewise. Remove argument from gomp_update.
327 (gomp_load_plugin_for_device): Replace register_image and get_table
328 with load_image and unload_image in DLSYM ().
329 (gomp_register_images_for_device): Remove function.
330 (gomp_target_init): Do not initialize current_device.mem_map.*,
331 current_device.offload_regions_registered.
332 Remove call to gomp_register_images_for_device.
333 Do not free offload_images and num_offload_images.
334
6c384511
JJ
3352015-03-30 Jakub Jelinek <jakub@redhat.com>
336
337 PR fortran/65597
338 * testsuite/libgomp.fortran/pr65597.f90: New test.
339
3e8165a5
TV
3402015-03-27 Tom de Vries <tom@codesourcery.com>
341
342 PR testsuite/65594
343 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
344 (init, check): New function.
345 (foo): Change return type to void.
346 (main): Call init and check.
347
4d688c9a
TV
3482015-03-27 Tom de Vries <tom@codesourcery.com>
349
350 PR testsuite/65594
351 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
352 (foo): Use M for non-inner loops to scale down test-case.
353
01c0b3b0
KT
3542015-03-25 Kai Tietz <ktietz@redhat.com>
355
356 PR libgomp/64972
357 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
358 (GOACC_data_start): Likewise.
359 * target.c (gomp_map_vars): Likewise.
360
844d9a76
JDA
3612015-03-21 John David Anglin <danglin@gcc.gnu.org>
362
363 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
364 hppa*-*-hpux*.
365
9b65e171
JJ
3662015-03-19 Jakub Jelinek <jakub@redhat.com>
367
368 * testsuite/libgomp.c/target-10.c: New test.
369 * testsuite/libgomp.c++/target-4.C: New test.
370
db397e2e
IV
3712015-03-13 Ilya Verbin <ilya.verbin@intel.com>
372
373 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
374 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
375
cd93945d
SH
3762015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
377
378 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
379 * configure.ac (*-*-rtems*): Assume Pthread is supported.
380 (pthread.h): Check for this header file.
381 * configure: Regenerate.
382
05deba9f
TV
3832015-02-25 Tom de Vries <tom@codesourcery.com>
384
385 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
386 (check_reduction_op, check_reduction_macro, max, min):
387 Declare.
388 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
389 function.
390 (main): Use new functions.
391
196904d8
IT
3922015-02-18 Ilya Tocar <ilya.tocar@intel.com>
393
394 * target.c (gomp_load_plugin_for_device): Use const char * instead of
395 char * for variables holding dlerror return values.
396 (DLSYM_OPT): Ditto.
397
a2818955
TS
3982015-02-17 Thomas Schwinge <thomas@codesourcery.com>
399
400 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
401
26f93312
TS
4022015-02-17 Thomas Schwinge <thomas@codesourcery.com>
403 Cesar Philippidis <cesar@codesourcery.com>
404
405 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
406 GOACC_ctaid, and GOACC_nctaid routines.
407
fa01ffcc
JJ
4082015-02-11 Jakub Jelinek <jakub@redhat.com>
409
410 PR c/64824
411 * testsuite/libgomp.c/atomic-18.c: New test.
412 * testsuite/libgomp.c++/atomic-16.C: New test.
413
4886ec8e
JJ
4142015-02-04 Jakub Jelinek <jakub@redhat.com>
415
416 PR c/64824
417 PR c/64868
418 * testsuite/libgomp.c/pr64824.c: New test.
419 * testsuite/libgomp.c/pr64868.c: New test.
420 * testsuite/libgomp.c++/pr64824.C: New test.
421 * testsuite/libgomp.c++/pr64868.C: New test.
422
02d3e45e
DE
4232015-02-01 David Edelsohn <dje.gcc@gmail.com>
424
425 PR libgomp/64635
426 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
427 Link with -lpthread.
428 * config/aix/plugin-suffix.h: Delete.
429
b5f7a6ca
JH
4302015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
431
432 PR libgomp/64635
433 * configure.tgt (*-*-aix*): Use config_path "aix posix".
434 (*-*-darwin*): Use config_path "bsd darwin posix".
435 (*-*-hpux*): Use config_path "hpux posix".
436 * target.c: Add include of plugin-suffix.h and use
437 SONAME_SUFFIX macro.
438 * config/aix/plugin-suffix.h: New file.
439 * config/darwin/plugin-suffix.h: New file.
440 * config/hpux/plugin-suffix.h: New file.
441 * config/posix/plugin-suffix.h: New file.
442
b8910447
JJ
4432015-01-23 Jakub Jelinek <jakub@redhat.com>
444
445 PR middle-end/64734
446 * libgomp.c/pr64734.c: New test.
447
a0c88d06
TV
4482015-01-23 Tom de Vries <tom@codesourcery.com>
449
450 PR libgomp/64672
451 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
452
1506ae0e
TV
4532015-01-23 Tom de Vries <tom@codesourcery.com>
454
455 PR libgomp/64707
456 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
457 dg-options.
458
128b26dc
TS
4592015-01-19 Thomas Schwinge <thomas@codesourcery.com>
460
bed62c21 461 PR libgomp/64625
128b26dc
TS
462 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
463 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
464 formal parameter. Update all users.
465 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
466 Document unused formal parameter.
467
6e36114c
TS
4682015-01-16 Thomas Schwinge <thomas@codesourcery.com>
469
470 * oacc-parallel.c: Don't include <alloca.h>.
471 (GOACC_parallel): Use gomp_alloca instead of alloca.
472
973e9808
GP
4732015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
474
475 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
476
41dbbb37
TS
4772015-01-15 Thomas Schwinge <thomas@codesourcery.com>
478 James Norris <jnorris@codesourcery.com>
479 Tom de Vries <tom@codesourcery.com>
480 Julian Brown <julian@codesourcery.com>
481 Cesar Philippidis <cesar@codesourcery.com>
482 Nathan Sidwell <nathan@codesourcery.com>
483 Tobias Burnus <burnus@net-b.de>
484
485 * Makefile.am (search_path): Add $(top_srcdir)/../include.
486 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
487 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
488 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
489 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
490 Include $(top_srcdir)/plugin/Makefrag.am.
491 (nodist_libsubinclude_HEADERS): Add openacc.h.
492 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
493 openacc.f90, openacc.mod, openacc_kinds.mod.
494 (omp_lib.mod): Generalize into...
495 (%.mod): ... this new rule.
496 (openacc_kinds.mod, openacc.mod): New rules.
497 * plugin/configfrag.ac: New file.
498 * configure.ac: Move plugin/offloading support into it. Include
499 it. Instantiate testsuite/libgomp-test-support.pt.exp.
500 * plugin/Makefrag.am: New file.
501 * testsuite/Makefile.am (OFFLOAD_TARGETS)
502 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
503 export.
504 (libgomp-test-support.exp): New rule.
505 (all-local): Depend on it.
506 * Makefile.in: Regenerate.
507 * testsuite/Makefile.in: Regenerate.
508 * config.h.in: Likewise.
509 * configure: Likewise.
510 * configure.tgt: Harden shell syntax.
511 * env.c: Include "oacc-int.h".
512 (parse_acc_device_type): New function.
513 (gomp_debug_var, goacc_device_type, goacc_device_num): New
514 variables.
515 (initialize_env): Initialize those. Call
516 goacc_runtime_initialize.
517 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
518 (gomp_fatal): Call gomp_vfatal.
519 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
520 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
521 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
522 (splay_tree_node, splay_tree, splay_tree_key)
523 (struct target_mem_desc, struct splay_tree_key_s)
524 (struct gomp_memory_mapping, struct acc_dispatch_t)
525 (struct gomp_device_descr, gomp_acc_insert_pointer)
526 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
527 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
528 (gomp_free_memmap, gomp_fini_device): New declarations.
529 (gomp_vdebug, gomp_debug): New macros.
530 Include "splay-tree.h".
531 * libgomp.map (OACC_2.0): New symbol version. Use for
532 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
533 acc_set_device_type_h_, acc_get_device_type,
534 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
535 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
536 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
537 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
538 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
539 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
540 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
541 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
542 acc_copyin_array_h_, acc_present_or_copyin,
543 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
544 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
545 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
546 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
547 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
548 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
549 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
550 acc_update_device, acc_update_device_32_h_,
551 acc_update_device_64_h_, acc_update_device_array_h_,
552 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
553 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
554 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
555 acc_is_present_64_h_, acc_is_present_array_h_,
556 acc_memcpy_to_device, acc_memcpy_from_device,
557 acc_get_current_cuda_device, acc_get_current_cuda_context,
558 acc_get_cuda_stream, acc_set_cuda_stream.
559 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
560 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
561 GOACC_update, GOACC_wait, GOACC_get_thread_num,
562 GOACC_get_num_threads.
563 (GOMP_PLUGIN_1.0): New symbol version. Use for
564 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
565 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
566 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
567 GOMP_PLUGIN_acc_thread.
568 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
569 environment variable.
570 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
571 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
572 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
573 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
574 (splay_tree_remove): New declarations.
575 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
576 (splay_tree_remove, splay_tree_lookup): Move into...
577 * splay-tree.c: ... this new file.
578 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
579 (splay_tree_node, splay_tree, splay_tree_key)
580 (struct target_mem_desc, struct splay_tree_key_s)
581 (struct gomp_device_descr): Don't declare.
582 (num_devices_openmp): New variable.
583 (gomp_get_num_devices ): Use it.
584 (gomp_init_targets_once): New function.
585 (gomp_get_num_devices ): Use it.
586 (get_kind, gomp_copy_from_async, gomp_free_memmap)
587 (gomp_fini_device, gomp_register_image_for_device): New functions.
588 (gomp_map_vars): Add devaddrs parameter.
589 (gomp_update): Add mm parameter.
590 (gomp_init_device): Move most of it into...
591 (gomp_init_tables): ... this new function.
592 (gomp_register_images_for_device): Remove function.
593 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
594 Make them hidden instead of static.
595 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
596 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
597 (GOMP_target_end_data, GOMP_target_update)
598 (gomp_load_plugin_for_device, gomp_target_init): Update for
599 OpenACC changes.
600 * oacc-async.c: New file.
601 * oacc-cuda.c: Likewise.
602 * oacc-host.c: Likewise.
603 * oacc-init.c: Likewise.
604 * oacc-int.h: Likewise.
605 * oacc-mem.c: Likewise.
606 * oacc-parallel.c: Likewise.
607 * oacc-plugin.c: Likewise.
608 * oacc-plugin.h: Likewise.
609 * oacc-ptx.h: Likewise.
610 * openacc.f90: Likewise.
611 * openacc.h: Likewise.
612 * openacc_lib.h: Likewise.
613 * plugin/plugin-host.c: Likewise.
614 * plugin/plugin-nvptx.c: Likewise.
615 * libgomp-plugin.c: Likewise.
616 * libgomp-plugin.h: Likewise.
617 * libgomp_target.h: Remove file after merging content into the
618 former file. Update all users.
619 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
620 (offload_targets_s, offload_targets_s_openacc): New variables.
621 (check_effective_target_openacc_nvidia_accel_present)
622 (check_effective_target_openacc_nvidia_accel_selected): New
623 procedures.
624 (libgomp_init): Update for OpenACC changes.
625 * testsuite/libgomp-test-support.exp.in: New file.
626 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
627 * testsuite/libgomp.oacc-c/c.exp: Likewise.
628 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
648 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
649 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
652 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
653 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
654 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
656 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
658 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
659 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
660 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
661 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
662 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
663 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
664 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
665 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
666 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
667 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
668 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
669 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
670 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
671 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
672 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
673 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
674 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
676 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
677 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
678 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
679 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
680 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
681 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
682 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
683 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
684 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
685 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
686 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
687 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
689 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
690 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
691 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
692 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
693 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
694 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
695 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
696 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
697 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
698 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
699 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
701 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
703 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
705 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
706 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
707 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
708 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
711 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
712 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
713 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
714 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
715 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
716 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
717 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
718 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
719 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
720 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
721 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
722 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
724 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
726 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
728 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
733 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
736 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
737 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
738 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
739 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
740 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
741 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
742 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
743 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
744 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
745 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
746 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
747 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
748 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
749 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
750 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
751 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
752 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
753 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
754 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
755 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
757 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
758 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
759 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
760 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
761 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
762 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
763 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
764 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
765 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
766 Likewise.
767 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
768 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
769 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
771 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
772 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
773 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
774 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
775 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
776 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
777 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
778 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
779 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
780 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
781 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
782 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
783 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
784 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
785 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
786 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
787 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
788 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
789 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
790 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
791 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
792 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
793 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
794 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
795 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
796 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
797 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
798 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
799 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
800 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
801 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
802 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
803 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
804 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
805 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
806 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
807 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
808 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
809 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
810 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
811 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
812 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
813 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
814 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
815 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
816 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
817 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
818 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
819 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
820 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
821 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
822 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
823 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
824 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
825 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
826 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
827
f1f3453e
TS
8282015-01-10 Thomas Schwinge <thomas@codesourcery.com>
829 Julian Brown <julian@codesourcery.com>
830 David Malcolm <dmalcolm@redhat.com>
831
832 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
833 to "GNU Offloading and Multi Processing Runtime Library". Change
834 all users.
835 * configure: Regenerate.
836 * libgomp.texi: Update.
837
f9a0eca4
TS
8382015-01-08 Thomas Schwinge <thomas@codesourcery.com>
839
b335ef4e
TS
840 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
841 "$tgt_dir/lib32".
842 * configure: Regenerate.
843
f9a0eca4
TS
844 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
845 "intelmic" in $offload_targets.
846
b67cd4e3
JJ
8472015-01-05 Jakub Jelinek <jakub@redhat.com>
848
5624e564
JJ
849 Update copyright years.
850
b67cd4e3
JJ
851 * libgomp.texi: Bump @copying's copyright year.
852
3b41b583
KT
8532014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
854
855 * testsuite/lib/libgomp.exp: Load target-utils.exp.
856 Move load of target-supportes.exp earlier.
857
2354caec
IV
8582014-12-10 Ilya Verbin <ilya.verbin@intel.com>
859
860 * testsuite/libgomp.c/target-9.c: New test.
861
f50eecba
VR
8622014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
863
864 * config.h.in: Regenerate.
865 * configure: Regenerate.
866 * configure.ac: Add GCC_CHECK_EMUTLS.
867 * libgomp.h: Add check for USE_EMUTLS: this case
868 is equal to HAVE_TLS.
869 * team.c: Likewise.
870
68bc9270
UB
8712014-12-03 Uros Bizjak <ubizjak@gmail.com>
872
873 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
874
476ff787
AT
8752014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
876 Ilya Verbin <ilya.verbin@intel.com>
877
878 * testsuite/libgomp.c/target-critical-1.c: New test.
879
31a30e62
JJ
8802014-11-26 Jakub Jelinek <jakub@redhat.com>
881
882 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 883 to dg-options unless expensive testing is on.
31a30e62
JJ
884 (TESTITERS): Define to N if not defined.
885 (main): Use TESTITERS instead of N.
886 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
887 dg-additional-options depending on whether expensive testing is on.
888 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
889 Decrease N to 100000 and CHUNKSZ to 10000.
890
3f9e8f13
JJ
8912014-11-24 Jakub Jelinek <jakub@redhat.com>
892
893 PR fortran/63938
31a30e62
JJ
894 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
895 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 896
c8451a46
SE
8972014-11-21 Steve Ellcey <sellcey@imgtec.com>
898
899 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
900
a699d672
L
9012014-11-21 H.J. Lu <hongjiu.lu@intel.com>
902
903 PR bootstrap/63784
904 * configure: Regenerated.
905
4a19f719
UB
9062014-11-19 Uros Bizjak <ubizjak@gmail.com>
907
908 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
909 vect_simd_clones effective target.
910 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
911
b1bf6c52
JJ
9122014-11-14 Jakub Jelinek <jakub@redhat.com>
913
914 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
915 of 32 as block_size.
916 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
917 instead of 32 as block_size.
918
d64ae614
AT
9192014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
920 Ilya Verbin <ilya.verbin@intel.com>
921
922 * Makefile.in: Regenerate.
923 * configure: Regenerate.
924 * configure.ac: Set up offload_additional_options,
925 offload_additional_lib_paths and offload_targets.
926 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
927 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
928 * testsuite/Makefile.in: Regenerate.
929 * testsuite/lib/libgomp.exp (libgomp_init): Append
930 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
931 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
932 build directory to LD_LIBRARY_PATH for intelmic offload targets.
933
122d7303
AT
9342014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
935 Ilya Verbin <ilya.verbin@intel.com>
936 Kirill Yukhin <kirill.yukhin@intel.com>
937 Ilya Tocar <ilya.tocar@intel.com>
938
939 * testsuite/lib/libgomp.exp
940 (check_effective_target_offload_device): New.
941 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
942 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
943 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
944 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
945 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
946 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
947 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
948 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
949 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
950 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
951 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
952 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
953 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
954 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
955 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
956 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
957 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
958 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
959 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
960 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
961 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
962 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
963 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
964 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
965 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
966 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
967 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
968 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
969 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
970 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
971 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
972 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
973 * testsuite/libgomp.c/target-7.c: Fix test.
974 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
975 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
976 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
977 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
978 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
979 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
980 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
981 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
982 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
983 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
984 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
985 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
986 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
987 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
988 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
989 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
990 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
991 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
992 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
993 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
994 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
995 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
996 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
997 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
998 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
999 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1000 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1001 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1002 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1003 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1004 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1005
1df3f842
JJ
10062014-11-13 Jakub Jelinek <jakub@redhat.com>
1007 Ilya Verbin <ilya.verbin@intel.com>
1008 Thomas Schwinge <thomas@codesourcery.com>
1009 Andrey Turetskiy <andrey.turetskiy@intel.com>
1010
1011 * libgomp.map (GOMP_4.0.1): New symbol version.
1012 Add GOMP_offload_register.
1013 * libgomp_target.h: New file.
1014 * splay-tree.h: New file.
1015 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1016 (gomp_target_init): New forward declaration.
1017 (gomp_is_initialized): New static variable.
1018 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1019 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1020 New structures.
1021 (offload_images, num_offload_images, devices, num_devices): New static
1022 variables.
1023 (splay_compare): New static function.
1024 (struct gomp_device_descr): New structure.
1025 (gomp_get_num_devices): Call gomp_target_init.
1026 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1027 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1028 (GOMP_offload_register): New function.
1029 (GOMP_target): Arrange for host callback to be performed in a separate
1030 initial thread and contention group, inheriting ICVs from
1031 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1032 Add device initialization and lookup for target function in splay tree.
1033 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1034 (GOMP_target_end_data): Call gomp_unmap_vars.
1035 (GOMP_target_update): Add device initialization and call gomp_update.
1036 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1037 (gomp_target_init): New static functions.
1038
85c64bbe
BS
10392014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1040 Thomas Schwinge <thomas@codesourcery.com>
1041 Ilya Verbin <ilya.verbin@intel.com>
1042 Andrey Turetskiy <andrey.turetskiy@intel.com>
1043
1044 * config.h.in: Regenerate.
1045 * configure: Regenerate.
1046 * configure.ac: Check for libdl, required for plugin support.
1047 (PLUGIN_SUPPORT): Define if plugins are supported.
1048 (enable_offload_targets): Support Intel MIC targets.
1049 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1050
ebf6d33b
FXC
10512014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1052
1053 PR target/63610
1054 * configure: Regenerate.
1055
8c768629
RO
10562014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1057
1058 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1059
c1d62412
MP
10602014-10-06 Marek Polacek <polacek@redhat.com>
1061
1062 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1063 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1064 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1065 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1066
44a0c6cb
MP
10672014-10-06 Marek Polacek <polacek@redhat.com>
1068
1069 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1070 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1071 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1072 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1073 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1074 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1075 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1076 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1077 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1078 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1079 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1080 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1081 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1082 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1083 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1084 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1085 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1086 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1087 declarations.
1088
5771c391
JJ
10892014-10-03 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR libgomp/61200
1092 * testsuite/libgomp.c/pr61200.c: New test.
1093
bce16b88
JJ
10942014-09-18 Jakub Jelinek <jakub@redhat.com>
1095
1096 PR c++/63248
1097 * testsuite/libgomp.c++/pr63248.C: New test.
1098
3696163c
JJ
10992014-08-04 Jakub Jelinek <jakub@redhat.com>
1100
1101 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1102 is not zero, but taskgroup->children is NULL and there are
1103 any task->children, schedule those instead of waiting.
1104 * testsuite/libgomp.c/depend-6.c: New test.
1105 * testsuite/libgomp.c/depend-7.c: New test.
1106 * testsuite/libgomp.c/depend-8.c: New test.
1107 * testsuite/libgomp.c/depend-9.c: New test.
1108 * testsuite/libgomp.c/depend-10.c: New test.
1109
0494285a
JJ
11102014-08-01 Jakub Jelinek <jakub@redhat.com>
1111
1112 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1113 (struct gomp_taskwait): New type.
1114 (struct gomp_task): Add taskwait and parent_depends_on, remove
1115 in_taskwait and taskwait_sem fields.
1116 (gomp_finish_task): Don't destroy taskwait_sem.
1117 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1118 taskwait and parent_depends_on.
1119 (GOMP_task): For if (0) tasks with depend clause that depend on
1120 earlier tasks don't defer them, instead call
1121 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1122 Initialize redundant_out field, for redundant out entries just
1123 move them at the end of linked list instead of removing them
1124 completely, and set redundant_out flag instead of redundant.
1125 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1126 that task.
1127 (gomp_task_run_post_handle_dependers): If parent is in
1128 gomp_task_maybe_wait_for_dependencies and newly runnable task
1129 is not parent_depends_on, queue it in parent->children linked
1130 list after all runnable tasks with parent_depends_on set.
1131 Adjust for addition of taskwait indirection.
1132 (gomp_task_run_post_remove_parent): If parent is in
1133 gomp_task_maybe_wait_for_dependencies and task to be removed
1134 is parent_depends_on, decrement n_depend and if needed awake
1135 parent. Adjust for addition of taskwait indirection.
1136 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1137 (gomp_task_maybe_wait_for_dependencies): New function.
1138 * testsuite/libgomp.c/depend-5.c: New test.
1139
60ab4b44
TB
11402014-07-13 Tobias Burnus <burnus@net-b.de>
1141
1142 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 1143 with TS 18508/Fortran 2015.
60ab4b44 1144
773ec47f
MP
11452014-07-06 Marek Polacek <polacek@redhat.com>
1146
1147 PR c/6940
1148 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1149
f707da16
JJ
11502014-07-03 Jakub Jelinek <jakub@redhat.com>
1151
1152 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1153 matches regex $lang_source_re, add $lang_include_flags to options.
1154 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1155 * testsuite/libgomp.c++/c++.exp: Likewise.
1156 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1157 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1158 ALWAYS_CFLAGS.
1159 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1160
07b6c044
TS
11612014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1162
1163 * testsuite/libgomp.fortran/fortran.exp: Explain
1164 gfortran-dg-runtest usage.
1165
da6f124d
JJ
11662014-06-25 Jakub Jelinek <jakub@redhat.com>
1167
1168 * testsuite/libgomp.fortran/simd5.f90: New test.
1169 * testsuite/libgomp.fortran/simd6.f90: New test.
1170 * testsuite/libgomp.fortran/simd7.f90: New test.
1171
b46ebd6c
JJ
11722014-06-24 Jakub Jelinek <jakub@redhat.com>
1173
56ad0e38
JJ
1174 * testsuite/libgomp.c/for-2.c: Define SC to static for
1175 #pragma omp for simd testing.
1176 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1177 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1178 SC macro.
1179 * testsuite/libgomp.c/simd-14.c: New test.
1180 * testsuite/libgomp.c/simd-15.c: New test.
1181 * testsuite/libgomp.c/simd-16.c: New test.
1182 * testsuite/libgomp.c/simd-17.c: New test.
1183 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1184 #pragma omp for simd testing.
1185 * testsuite/libgomp.c++/simd10.C: New test.
1186 * testsuite/libgomp.c++/simd11.C: New test.
1187 * testsuite/libgomp.c++/simd12.C: New test.
1188 * testsuite/libgomp.c++/simd13.C: New test.
1189
b46ebd6c
JJ
1190 * testsuite/libgomp.fortran/aligned1.f03: New test.
1191 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1192 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1193 tasks with !$omp parallel !$omp single.
1194 * testsuite/libgomp.fortran/target8.f90: New test.
1195 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1196 not to use trim in the combiner, instead call elemental function.
1197 (fn): New elemental function.
1198 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1199 Make elemental.
1200 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1201 omp_in): Likewise.
1202 * testsuite/libgomp.fortran/udr12.f90: New test.
1203 * testsuite/libgomp.fortran/udr13.f90: New test.
1204 * testsuite/libgomp.fortran/udr14.f90: New test.
1205 * testsuite/libgomp.fortran/udr15.f90: New test.
1206
f014c653
JJ
12072014-06-18 Jakub Jelinek <jakub@redhat.com>
1208
1209 * omp_lib.f90.in (openmp_version): Set to 201307.
1210 * omp_lib.h.in (openmp_version): Likewise.
1211 * testsuite/libgomp.c/target-8.c: New test.
1212 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1213 and inbranch clauses.
1214 * testsuite/libgomp.fortran/depend-3.f90: New test.
1215 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1216 openmp_version.
1217 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1218 * testsuite/libgomp.fortran/target1.f90: New test.
1219 * testsuite/libgomp.fortran/target2.f90: New test.
1220 * testsuite/libgomp.fortran/target3.f90: New test.
1221 * testsuite/libgomp.fortran/target4.f90: New test.
1222 * testsuite/libgomp.fortran/target5.f90: New test.
1223 * testsuite/libgomp.fortran/target6.f90: New test.
1224 * testsuite/libgomp.fortran/target7.f90: New test.
1225
92d28cbb
JJ
12262014-06-10 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR fortran/60928
1229 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1230 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1231 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1232 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1233 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1234 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1235 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1236 * testsuite/libgomp.fortran/associate1.f90: New test.
1237 * testsuite/libgomp.fortran/associate2.f90: New test.
1238 * testsuite/libgomp.fortran/procptr1.f90: New test.
1239
5f23671d
JJ
12402014-06-06 Jakub Jelinek <jakub@redhat.com>
1241
1242 * testsuite/libgomp.fortran/simd1.f90: New test.
1243 * testsuite/libgomp.fortran/udr1.f90: New test.
1244 * testsuite/libgomp.fortran/udr2.f90: New test.
1245 * testsuite/libgomp.fortran/udr3.f90: New test.
1246 * testsuite/libgomp.fortran/udr4.f90: New test.
1247 * testsuite/libgomp.fortran/udr5.f90: New test.
1248 * testsuite/libgomp.fortran/udr6.f90: New test.
1249 * testsuite/libgomp.fortran/udr7.f90: New test.
1250 * testsuite/libgomp.fortran/udr8.f90: New test.
1251 * testsuite/libgomp.fortran/udr9.f90: New test.
1252 * testsuite/libgomp.fortran/udr10.f90: New test.
1253 * testsuite/libgomp.fortran/udr11.f90: New test.
1254
0389fbb5
UB
12552014-05-27 Uros Bizjak <ubizjak@gmail.com>
1256
1257 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1258 vect_simd_clones effective target.
1259 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1260
decaaec8
JJ
12612014-05-21 Jakub Jelinek <jakub@redhat.com>
1262
1263 PR middle-end/61252
1264 * testsuite/libgomp.c++/simd-9.C: New test.
1265
72832460
UB
12662014-05-18 Uros Bizjak <ubizjak@gmail.com>
1267
1268 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1269 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1270 texts according to their @menu entry positions.
1271
dd2fc525
JJ
12722014-05-11 Jakub Jelinek <jakub@redhat.com>
1273
1274 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1275 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1276 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1277 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1278 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1279 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1280 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1281 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1282 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1283 * testsuite/libgomp.fortran/depend-1.f90: New test.
1284 * testsuite/libgomp.fortran/depend-2.f90: New test.
1285 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1286 * testsuite/libgomp.fortran/simd1.f90: New test.
1287 * testsuite/libgomp.fortran/simd2.f90: New test.
1288 * testsuite/libgomp.fortran/simd3.f90: New test.
1289 * testsuite/libgomp.fortran/simd4.f90: New test.
1290 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1291
95782571
JJ
12922014-05-02 Jakub Jelinek <jakub@redhat.com>
1293
1294 * testsuite/libgomp.c/simd-10.c: New test.
1295 * testsuite/libgomp.c/simd-11.c: New test.
1296 * testsuite/libgomp.c/simd-12.c: New test.
1297 * testsuite/libgomp.c/simd-13.c: New test.
1298
f7468577
JJ
12992014-04-24 Jakub Jelinek <jakub@redhat.com>
1300
42056eac
JJ
1301 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1302 atomic type clauses in any order and optional comma in between.
1303 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1304 * testsuite/libgomp.c/atomic-17.c: Likewise.
1305
f7468577
JJ
1306 * testsuite/libgomp.c/simd-7.c: New test.
1307 * testsuite/libgomp.c/simd-8.c: New test.
1308 * testsuite/libgomp.c/simd-9.c: New test.
1309 * testsuite/libgomp.c/loop-16.c: New test.
1310
ab18f2f5
RH
13112014-04-02 Richard Henderson <rth@redhat.com>
1312
1313 * config/linux/futex.h (futex_wait): Get error value from errno.
1314 (futex_wake): Likewise.
1315
8bcc90b0
JJ
13162014-03-25 Jakub Jelinek <jakub@redhat.com>
1317
1318 PR c++/60331
1319 * testsuite/libgomp.c++/udr-11.C: New test.
1320 * testsuite/libgomp.c++/udr-12.C: New test.
1321 * testsuite/libgomp.c++/udr-13.C: New test.
1322 * testsuite/libgomp.c++/udr-14.C: New test.
1323 * testsuite/libgomp.c++/udr-15.C: New test.
1324 * testsuite/libgomp.c++/udr-16.C: New test.
1325 * testsuite/libgomp.c++/udr-17.C: New test.
1326 * testsuite/libgomp.c++/udr-18.C: New test.
1327 * testsuite/libgomp.c++/udr-19.C: New test.
1328
18d73c7f
RS
13292014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1330
1331 Update copyright years
1332
f9030485
RS
13332014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1334
1335 * hashtab.h: Use the standard form for the copyright notice.
1336
98db73df
TB
13372014-01-02 Tobias Burnus <burnus@net-b.de>
1338
1339 * libgomp.texi: Bump @copying's copyright year.
1340
ae246f7f
AT
13412013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1342
1343 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1344 alloca () with __builtin_alloca ().
1345 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1346 * testsuite/libgomp.c/lock-3.c: Likewise.
1347 * testsuite/libgomp.c/pr48591.c: Likewise.
1348
fa00a5fe
JJ
13492013-12-17 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR testsuite/59534
1352 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1353 comparisons.
1354
e9792e1d
JJ
13552013-12-16 Jakub Jelinek <jakub@redhat.com>
1356
1357 PR libgomp/58756
1358 * testsuite/libgomp.c/pr58756.c: New test.
1359
cab37c89
JJ
13602013-12-12 Jakub Jelinek <jakub@redhat.com>
1361
1362 PR libgomp/59467
1363 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1364 !$omp parallel.
1365
de14871c
TS
13662013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1367
1707a5de
TS
1368 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1369 ALWAYS_CFLAGS.
1370 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1371 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1372 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1373 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1374 Likewise.
1375
70f05c43
TS
1376 * libgomp_g.h: Include <stddef.h> for size_t.
1377
de14871c
TS
1378 * libgomp.spec.in: Update comment about libgomp's dependencies.
1379 * configure.ac: Likewise.
1380 * configure: Regenerate.
1381
83fd6c5b
TB
13822013-10-16 Tobias Burnus <burnus@net-b.de>
1383
1384 * libgomp.texi: (Runtime Library Routines): Update references for
1385 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1386 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1387 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1388 (Environment Variables): Update references for OpenMP 4.0. Add
1389 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1390 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1391 order.
1392
c8673881
JJ
13932013-10-14 Jakub Jelinek <jakub@redhat.com>
1394
1395 * env.c (parse_bind_var): Initialize value to avoid
1396 (false positive) warning.
1397
f89163fd
JJ
13982013-10-12 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR libgomp/58691
1401 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1402 to check variable.
1403 (gomp_init_num_threads): Move i variable declaration into
1404 #ifdef CPU_ALLOC_SIZE block.
1405 * config/linux/affinity.c (gomp_affinity_init_level): Test
1406 gomp_places_list_len == 0 rather than gomp_places_list == 0
1407 when checking for topology reading error.
1408 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1409 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1410 gomp_places_list, only parse env var and always return false.
1411 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1412 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1413 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1414 and either of these variables were parsed correctly into a places
1415 list.
1416
1d340638
TS
14172013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1418 Jakub Jelinek <jakub@redhat.com>
1419
1420 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1421 of 5 loopfn matches.
1422 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1423 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1424 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1425 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1426 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1427 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1428 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1429 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1430
71a81c21
TS
14312013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1432
bd87f731
TS
1433 * Makefile.am (omp_lib.mod): Streamline rule.
1434 * Makefile.in: Regenerate.
1435
f5745bed
TS
1436 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1437 exceptions.
1438
b5512c66
TS
1439 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1440 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1441 * testsuite/libgomp.fortran/lib2.f: Likewise.
1442 * testsuite/libgomp.fortran/lib3.f: Likewise.
1443
451c19c4
TS
1444 * configure.ac: Typo fix.
1445 * configure: Regenerate.
1446
86a6016d
TS
1447 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1448 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1449
71a81c21
TS
1450 * omp.h.in: Don't touch the user's namespace.
1451
acf0174b
JJ
14522013-10-11 Jakub Jelinek <jakub@redhat.com>
1453 Tobias Burnus <burnus@net-b.de>
1454 Richard Henderson <rth@redhat.com>
1455
1456 * target.c: New file.
1457 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1458 * Makefile.in: Regenerated.
1459 * libgomp_g.h (GOMP_task): Add depend argument.
1460 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1461 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1462 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1463 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1464 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1465 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1466 GOMP_taskgroup_start, GOMP_taskgroup_end,
1467 GOMP_parallel_sections): New prototypes.
1468 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1469 (omp_is_initial_device_): New function.
1470 (ULP, STR1, STR2, ialias_redirect): Removed.
1471 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1472 omp_set_default_device_8_, omp_get_default_device_,
1473 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1474 functions.
1475 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1476 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1477 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1478 @@GOMP_4.0.
1479 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1480 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1481 omp_set_default_device, omp_set_default_device_,
1482 omp_set_default_device_8_, omp_get_default_device,
1483 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1484 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1485 omp_get_team_num_): Export @@OMP_4.0.
1486 * team.c (struct gomp_thread_start_data): Add place field.
1487 (gomp_thread_start): Clear thr->thread_pool and
1488 thr->task before returning. Use gomp_team_barrier_wait_final
1489 instead of gomp_team_barrier_wait. Initialize thr->place.
1490 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1491 team_cancelled and task_queued_count fields.
1492 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1493 before calling pthread_exit.
1494 (gomp_free_thread): No longer static. Use
1495 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1496 (gomp_team_start): Add flags argument. Set
1497 thr->thread_pool->threads_busy to nthreads immediately after creating
1498 new pool. Use gomp_managed_threads_lock instead of
1499 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1500 (gomp_team_end): Use gomp_managed_threads_lock instead of
1501 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1502 of gomp_team_barrier_wait. If team->team_cancelled, call
1503 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1504 rather than thr->ts.work_share.
1505 (initialize_team): Don't call gomp_sem_init here.
1506 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1507 caller.
1508 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1509 * env.c (gomp_global_icv): Add default_device_var, target_data and
1510 bind_var initializers.
1511 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1512 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1513 gomp_places_list_len): New variables.
1514 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1515 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1516 sized places.
1517 (gomp_cancel_var): New global variable.
1518 (parse_int): New function.
1519 (handle_omp_display_env): New function.
1520 (initialize_env): Use it. Initialize default_device_var.
1521 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1522 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1523 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1524 been successfully parsed (and call gomp_init_affinity in that case).
1525 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1526 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1527 omp_get_team_num, omp_is_initial_device): New functions.
1528 * libgomp.h: Include stdlib.h.
1529 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1530 Define.
1531 (struct target_mem_desc): Forward declare.
1532 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1533 and thread_limit_var fields.
1534 (gomp_get_num_devices): New prototype.
1535 (gomp_cancel_var): New extern decl.
1536 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1537 team_cancelled and task_queued_count fields. Add comments about
1538 task_{,queued_,running_}count.
1539 (gomp_cancel_kind): New enum.
1540 (gomp_work_share_end_cancel): New prototype.
1541 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1542 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1543 and depend fields.
1544 (struct gomp_taskgroup): New type.
1545 (struct gomp_task_depend_entry,
1546 struct gomp_dependers_vec): New types.
1547 (gomp_finish_task): Free depend_hash if non-NULL.
1548 (struct gomp_team_state): Add place_partition_off
1549 and place_partition_len fields.
1550 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1551 gomp_places_list_len): New extern decls.
1552 (struct gomp_thread): Add place field.
1553 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1554 (gomp_init_thread_affinity): Add place argument.
1555 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1556 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1557 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1558 gomp_affinity_init_level, gomp_affinity_print_place): New
1559 prototypes.
1560 (gomp_team_start): Add flags argument.
1561 (gomp_thread_limit_var, gomp_remaining_threads_count,
1562 gomp_remaining_threads_lock): Remove.
1563 (gomp_managed_threads_lock): New variable.
1564 (struct gomp_thread_pool): Add threads_busy field.
1565 (gomp_free_thread): New prototype.
1566 * task.c: Include hashtab.h.
1567 (hash_entry_type): New typedef.
1568 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1569 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1570 copy_ctors_done and taskgroup fields.
1571 (GOMP_task): Add depend argument, handle depend clauses. If
1572 gomp_team_barrier_cancelled or if it's taskgroup has been
1573 cancelled, don't queue or start new tasks. Set copy_ctors_done
1574 field if needed. Initialize taskgroup field. If copy_ctors_done
1575 and already cancelled, don't discard the task. If taskgroup is
1576 non-NULL, enqueue the task into taskgroup queue. Increment
1577 num_children field in taskgroup. Increment task_queued_count.
1578 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1579 gomp_task_run_post_remove_taskgroup): New inline functions.
1580 (gomp_task_run_post_handle_depend_hash,
1581 gomp_task_run_post_handle_dependers,
1582 gomp_task_run_post_handle_depend): New functions.
1583 (GOMP_taskwait): Use them. If more than one new tasks
1584 have been queued, wake other threads if needed.
1585 (gomp_barrier_handle_tasks): Likewise. If
1586 gomp_team_barrier_cancelled, don't start any new tasks, just free
1587 all tasks.
1588 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1589 * omp_lib.f90.in
1590 (omp_proc_bind_kind, omp_proc_bind_false,
1591 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1592 omp_proc_bind_spread): New params.
1593 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1594 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1595 omp_get_team_num, omp_is_initial_device): New interfaces.
1596 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1597 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1598 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1599 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1600 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1601 useless use omp_lib_kinds.
1602 * omp.h.in (omp_proc_bind_t): New typedef.
1603 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1604 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1605 omp_get_team_num, omp_is_initial_device): New prototypes.
1606 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1607 through to gomp_team_start.
1608 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1609 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1610 Adjust gomp_parallel_loop_start callers.
1611 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1612 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1613 GOMP_loop_end_cancel): New functions.
1614 (GOMP_parallel_end): Add ialias_redirect.
1615 * hashtab.h: New file.
1616 * libgomp.texi (Environment Variables): Minor cleanup,
1617 update section refs to OpenMP 4.0rc2.
1618 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1619 environment variables.
1620 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1621 team->work_shares_to_free to thr->ts.work_share before calling
1622 free_work_share.
1623 (gomp_work_share_end_cancel): New function.
1624 * config/linux/proc.c: Include errno.h.
1625 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1626 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1627 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1628 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1629 gomp_cpuset_size is sizeof (cpu_set_t).
1630 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1631 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1632 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1633 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1634 contain any logical CPUs.
1635 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1636 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1637 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1638 pthread_getaffinity_np. Check gomp_places_list instead of
1639 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1640 * config/linux/bar.c (gomp_barrier_wait_end,
1641 gomp_barrier_wait_last): Use BAR_* defines.
1642 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1643 from state where needed. Set work_share_cancelled to 0 on last
1644 thread.
1645 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1646 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1647 functions.
1648 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1649 Add cpusetsize argument.
1650 (gomp_cpuset_size, gomp_cpusetp): Declare.
1651 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1652 (affinity_counter): Remove.
1653 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1654 if CPU_ALLOC_SIZE isn't defined.
1655 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1656 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1657 bind current thread to the first place.
1658 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1659 pthread_setaffinity_np to gomp_places_list[place].
1660 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1661 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1662 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1663 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1664 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1665 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1666 (gomp_barrier_t): Add awaited_final field.
1667 (gomp_barrier_init): Initialize awaited_final field.
1668 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1669 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1670 prototypes.
1671 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1672 defines.
1673 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1674 gomp_team_barrier_cancelled): New inline functions.
1675 (gomp_barrier_last_thread,
1676 gomp_team_barrier_set_task_pending,
1677 gomp_team_barrier_clear_task_pending,
1678 gomp_team_barrier_set_waiting_for_tasks,
1679 gomp_team_barrier_waiting_for_tasks,
1680 gomp_team_barrier_done): Use BAR_* defines.
1681 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1682 (gomp_barrier_wait_end): Use BAR_* defines.
1683 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1684 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1685 Use BAR_* defines.
1686 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1687 gomp_team_barrier_cancel): New functions.
1688 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1689 argument.
1690 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1691 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1692 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1693 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1694 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1695 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1696 (gomp_barrier_t): Add cancellable field.
1697 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1698 gomp_team_barrier_cancel): New prototypes.
1699 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1700 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1701 gomp_team_barrier_cancelled): New inline functions.
1702 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1703 gomp_team_barrier_set_task_pending,
1704 gomp_team_barrier_clear_task_pending,
1705 gomp_team_barrier_set_waiting_for_tasks,
1706 gomp_team_barrier_waiting_for_tasks,
1707 gomp_team_barrier_done): Use BAR_* defines.
1708 * barrier.c (GOMP_barrier_cancel): New function.
1709 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1710 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1711 omp_proc_bind_spread): New params.
1712 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1713 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1714 omp_get_team_num, omp_is_initial_device): New externals.
1715 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1716 New functions.
1717 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1718 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1719 infinity. If not nested, just return minimum of max_num_threads
1720 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1721 to the returned value. Otherwise, don't update atomically
1722 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1723 (GOMP_parallel_end): Adjust for thread_limit now being in
1724 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1725 infinity. Adjust threads_busy in the pool rather than
1726 gomp_remaining_threads_count. Remember team->nthreads and call
1727 gomp_team_end before adjusting threads_busy, if not nested
1728 afterwards, just set it to 1 non-atomically. Add ialias.
1729 (GOMP_parallel_start): Adjust gomp_team_start caller.
1730 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1731 * testsuite/libgomp.c/affinity-1.c: New test.
1732 * testsuite/libgomp.c/atomic-15.c: New test.
1733 * testsuite/libgomp.c/atomic-16.c: New test.
1734 * testsuite/libgomp.c/atomic-17.c: New test.
1735 * testsuite/libgomp.c/cancel-for-1.c: New test.
1736 * testsuite/libgomp.c/cancel-for-2.c: New test.
1737 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1738 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1739 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1740 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1741 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1742 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1743 * testsuite/libgomp.c/depend-1.c: New test.
1744 * testsuite/libgomp.c/depend-2.c: New test.
1745 * testsuite/libgomp.c/depend-3.c: New test.
1746 * testsuite/libgomp.c/depend-4.c: New test.
1747 * testsuite/libgomp.c/for-1.c: New test.
1748 * testsuite/libgomp.c/for-1.h: New file.
1749 * testsuite/libgomp.c/for-2.c: New test.
1750 * testsuite/libgomp.c/for-2.h: New file.
1751 * testsuite/libgomp.c/for-3.c: New test.
1752 * testsuite/libgomp.c/pr58392.c: New test.
1753 * testsuite/libgomp.c/simd-1.c: New test.
1754 * testsuite/libgomp.c/simd-2.c: New test.
1755 * testsuite/libgomp.c/simd-3.c: New test.
1756 * testsuite/libgomp.c/simd-4.c: New test.
1757 * testsuite/libgomp.c/simd-5.c: New test.
1758 * testsuite/libgomp.c/simd-6.c: New test.
1759 * testsuite/libgomp.c/target-1.c: New test.
1760 * testsuite/libgomp.c/target-2.c: New test.
1761 * testsuite/libgomp.c/target-3.c: New test.
1762 * testsuite/libgomp.c/target-4.c: New test.
1763 * testsuite/libgomp.c/target-5.c: New test.
1764 * testsuite/libgomp.c/target-6.c: New test.
1765 * testsuite/libgomp.c/target-7.c: New test.
1766 * testsuite/libgomp.c/taskgroup-1.c: New test.
1767 * testsuite/libgomp.c/thread-limit-1.c: New test.
1768 * testsuite/libgomp.c/thread-limit-2.c: New test.
1769 * testsuite/libgomp.c/thread-limit-3.c: New test.
1770 * testsuite/libgomp.c/udr-1.c: New test.
1771 * testsuite/libgomp.c/udr-2.c: New test.
1772 * testsuite/libgomp.c/udr-3.c: New test.
1773 * testsuite/libgomp.c++/affinity-1.C: New test.
1774 * testsuite/libgomp.c++/atomic-10.C: New test.
1775 * testsuite/libgomp.c++/atomic-11.C: New test.
1776 * testsuite/libgomp.c++/atomic-12.C: New test.
1777 * testsuite/libgomp.c++/atomic-13.C: New test.
1778 * testsuite/libgomp.c++/atomic-14.C: New test.
1779 * testsuite/libgomp.c++/atomic-15.C: New test.
1780 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1781 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1782 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1783 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1784 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1785 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1786 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1787 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1788 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1789 * testsuite/libgomp.c++/cancel-test.h: New file.
1790 * testsuite/libgomp.c++/for-9.C: New test.
1791 * testsuite/libgomp.c++/for-10.C: New test.
1792 * testsuite/libgomp.c++/for-11.C: New test.
1793 * testsuite/libgomp.c++/simd-1.C: New test.
1794 * testsuite/libgomp.c++/simd-2.C: New test.
1795 * testsuite/libgomp.c++/simd-3.C: New test.
1796 * testsuite/libgomp.c++/simd-4.C: New test.
1797 * testsuite/libgomp.c++/simd-5.C: New test.
1798 * testsuite/libgomp.c++/simd-6.C: New test.
1799 * testsuite/libgomp.c++/simd-7.C: New test.
1800 * testsuite/libgomp.c++/simd-8.C: New test.
1801 * testsuite/libgomp.c++/target-1.C: New test.
1802 * testsuite/libgomp.c++/target-2.C: New test.
1803 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1804 * testsuite/libgomp.c++/target-3.C: New test.
1805 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1806 * testsuite/libgomp.c++/udr-1.C: New test.
1807 * testsuite/libgomp.c++/udr-2.C: New test.
1808 * testsuite/libgomp.c++/udr-3.C: New test.
1809 * testsuite/libgomp.c++/udr-4.C: New test.
1810 * testsuite/libgomp.c++/udr-5.C: New test.
1811 * testsuite/libgomp.c++/udr-6.C: New test.
1812 * testsuite/libgomp.c++/udr-7.C: New test.
1813 * testsuite/libgomp.c++/udr-8.C: New test.
1814 * testsuite/libgomp.c++/udr-9.C: New test.
1815
bd599dea
JJ
18162013-09-20 Jakub Jelinek <jakub@redhat.com>
1817
1818 PR testsuite/57605
1819 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1820 ALWAYS_CFLAGS.
1821
3cbe17f7
AM
18222013-09-20 Alan Modra <amodra@gmail.com>
1823
1824 * configure: Regenerate.
1825
4befd127
JJ
18262013-09-19 Jakub Jelinek <jakub@redhat.com>
1827
1828 * testsuite/libgomp.c/sections-2.c: New test.
1829
946c8f7b
MS
18302013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1831
1832 * testsuite/libgomp.fortran/strassen.f90:
1833 Add dg-skip-if aarch64_tiny.
1834
1ef3b58e
IS
18352013-06-20 Iain Sandoe <iain@codesourcery.com>
1836 Cesar Philippidis <cesar@codesourcery.com>
1837
1838 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1839 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1840 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1841 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1842 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1843 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1844 Use dg-runtest rather than gfortran-dg-runtest.
1845
9275f73a
TS
18462013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1847
1848 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1849 Linux-based x86 systems to cover all GNU systems.
1850 * testsuite/libgomp.c/lock-3.c: Likewise.
1851 * testsuite/libgomp.c/pr48591.c: Likewise.
1852
492992e2
TS
18532013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1854
48df3acb
TS
1855 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1856 GNU/Hurd, as done for Linux-based systems.
1857
492992e2
TS
1858 * config/posix/ptrlock.h: Fix comment.
1859
4fed6b25
TB
18602013-05-27 Tobias Burnus <burnus@net-b.de>
1861
1862 PR fortran/57423
1863 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1864 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1865 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1866 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1867 omp_destroy_nest_lock): Correct arguments to match the one in
1868 the OpenMP spec.
1869 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1870 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1871 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1872 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1873
5a0f4dd3
JJ
18742013-05-16 Jakub Jelinek <jakub@redhat.com>
1875
1876 * testsuite/libgomp.c/loop-13.c: New test.
1877 * testsuite/libgomp.c/loop-14.c: New test.
1878 * testsuite/libgomp.c/loop-15.c: New test.
1879 * testsuite/libgomp.c++/loop-13.C: New test.
1880 * testsuite/libgomp.c++/loop-14.C: New test.
1881 * testsuite/libgomp.c++/loop-15.C: New test.
1882
6d840d99
JJ
18832013-02-06 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR middle-end/56217
1886 * testsuite/libgomp.c++/pr56217.C: New test.
1887
bed8d8a6
AM
18882013-02-01 Alan Modra <amodra@gmail.com>
1889
1890 * task.c (GOMP_task, GOMP_taskwait): Comment.
1891
3b35cd04
DV
18922013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1893 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1894
1895 PR libgomp/55561
1896 * config/linux/wait.h (do_spin): Use atomic load for addr.
1897 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1898 for intptr and ptrlock.
1899 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1900 for ptrlock.
1901
9a647288
AM
19022013-01-22 Alan Modra <amodra@gmail.com>
1903
1904 PR libgomp/51376
1905 PR libgomp/56073
1906 * task.c (GOMP_task): Revert 2011-12-09 change.
1907 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1908 barrier to read task->children..
1909 (gomp_barrier_handle_tasks): ..and matching atomic store with
1910 release barrier here when setting parent->children to NULL.
1911
f34dea03
JJ
19122013-01-16 Jakub Jelinek <jakub@redhat.com>
1913 Tobias Burnus <burnus@net-b.de>
1914
1915 PR driver/55884
1916 * testsuite/libgomp.fortran/fortran.exp: Use
1917 -fintrinsic-modules-path= instead of
1918 -fintrinsic-modules-path.
1919
8129609c
RS
19202013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1921
1922 Update copyright years.
1923
aa86bf1e
TB
19242012-12-19 Tobias Burnus <burnus@net-b.de>
1925
1926 * testsuite/libgomp.fortran/fortran.exp: Set
1927 -fintrinsic-modules-path.
1928
2865ea66
TB
19292012-12-19 Tobias Burnus <burnus@net-b.de>
1930
1931 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1932 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1933
4c5ba8d0
JJ
19342012-11-21 Jakub Jelinek <jakub@redhat.com>
1935
1936 PR libgomp/55411
1937 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1938 if pool had any threads_used.
1939
e9f958c2
JH
19402012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1941
1942 * testsuite/libgomp.c++/pr24455.C: Use
1943 -Wl,-undefined,dynamic_lookup on darwin.
1944
a57d75dc
DE
19452012-11-07 David Edelsohn <dje.gcc@gmail.com>
1946
1947 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1948
c6c08485
DH
19492012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1950
1951 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1952
c1f37c00
IB
19532012-10-23 Ian Bolton <ian.bolton@arm.com>
1954 Jim MacArthur <jim.macarthur@arm.com>
1955 Marcus Shawcroft <marcus.shawcroft@arm.com>
1956 Nigel Stephens <nigel.stephens@arm.com>
1957 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1958 Richard Earnshaw <rearnsha@arm.com>
1959 Sofiane Naci <sofiane.naci@arm.com>
1960 Stephen Thomas <stephen.thomas@arm.com>
1961 Tejas Belagod <tejas.belagod@arm.com>
1962 Yufeng Zhang <yufeng.zhang@arm.com>
1963
1964 * configure.tgt: Add AArch64.
1965
7c424acd
JM
19662012-10-04 Jason Merrill <jason@redhat.com>
1967
1968 * testsuite/libgomp.c++/tls-init1.C: New.
1969
6608378b
DE
19702012-09-14 David Edelsohn <dje.gcc@gmail.com>
1971
1972 * configure: Regenerated.
1973
c24dbebb
CLT
19742012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1975
1976 * config/linux/mips/futex.h (sys_futex0): Change to static
1977 function with noinline, nomips16 attributes under MIPS16. Adjust
1978 asm statement to place 'li v0,SYS_futex' immediately before
1979 syscall insn.
1980
3d3949df
SL
19812012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1982
1983 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1984 conflict with index.html on case-insensitive file systems.
1985
68a12ef3
UB
19862012-07-03 Uros Bizjak <ubizjak@gmail.com>
1987
1988 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1989 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1990
33ad93b9 19912012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
1992 Michael Matz <matz@suse.de>
1993 Tobias Grosser <tobias@grosser.es>
1994 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
1995
1996 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1997 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1998 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1999 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2000
e6fdc918
AS
20012012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2002
2003 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2004
62e0a1ed
RG
20052012-06-22 Richard Guenther <rguenther@suse.de>
2006
2007 Merge from graphite branch
2008 2012-01-13 Tobias Grosser <tobias@grosser.es>
2009
2010 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2011 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2012
26127932
JJ
20132012-06-07 Jakub Jelinek <jakub@redhat.com>
2014
2015 PR middle-end/53580
2016 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2017 use GOMP_barrier () call instead.
2018 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2019 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2020 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2021 call GOMP_barrier instead.
2022 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2023
43fa5db5
JJ
20242012-06-06 Jakub Jelinek <jakub@redhat.com>
2025
2026 PR libgomp/52993
2027 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2028 argument to memset call.
2029
e6d5f8c9
L
20302012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2031
2032 * configure: Regenerated.
2033
559d990c
MLI
20342012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2035
2036 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2037
b9c23a61
L
20382012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2039
2040 PR bootstrap/52812
2041 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2042
c140ddf3
JJ
20432012-03-22 Jakub Jelinek <jakub@redhat.com>
2044
2045 PR middle-end/52547
2046 * testsuite/libgomp.c/pr52547.c: New test.
2047
6a26a74d
BRF
20482012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2049
2050 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2051
b24513a1
RO
20522012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2053
2054 * configure.tgt (mips-sgi-irix6*): Remove.
2055
5c30094f
RO
20562012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057
2058 * configure.tgt (alpha*-dec-osf*): Remove.
2059
2060 * config/osf/sem.h: Remove.
2061 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2062
a339c9d6
EB
20632012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2064
2065 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2066
cc2de92d
RO
20672012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2068
2069 PR libstdc++/52188
2070 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2071 Remove ENABLE_SYMVERS_SOL2.
2072 * configure: Regenerate.
2073 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2074 (PREPROCESS): New variable.
2075 (libgomp.ver): New target.
2076 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2077 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2078 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2079 Use libgomp.ver.
2080 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2081 * Makefile.in: Regenerate.
2082
dd552284
WL
20832012-02-14 Walter Lee <walt@tilera.com>
2084
2085 * configure.tgt: Handle tilegx and tilepro.
2086 * config/linux/tile/futex.h: New file.
2087
31432e21
RG
20882012-02-08 Richard Guenther <rguenther@suse.de>
2089
2090 PR tree-optimization/46886
2091 * testsuite/libgomp.c/pr46886.c: New testcase.
2092
b9264b5f
MK
20932012-01-25 Matthias Klose <doko@ubuntu.com>
2094
2095 * config/linux/arm: Remove empty directory.
2096 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2097
fbf7be80
AM
20982011-12-09 Alan Modra <amodra@gmail.com>
2099
2100 PR libgomp/51376
2101 * task.c (GOMP_taskwait): Don't access task->children outside of
2102 task_lock mutex region.
2103 (GOMP_task): Likewise.
2104
5de62d00
JJ
21052011-12-06 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR libgomp/51132
2108 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2109 to file scope.
2110 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2111 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2112 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2113 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2114 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2115
45608a43
AM
21162011-12-02 Alan Modra <amodra@gmail.com>
2117
2118 * config/linux/affinity.c: Use atomic rather than sync builtin.
2119 * config/linux/lock.c: Likewise.
2120 * config/linux/ptrlock.h: Likewise.
2121 * config/linux/ptrlock.c: Likewise.
2122 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2123 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2124 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2125 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2126 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2127 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2128 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2129 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2130 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2131 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2132
ab6dd406
AM
21332011-11-30 Alan Modra <amodra@gmail.com>
2134
2135 PR libgomp/51298
2136 * config/linux/bar.h: Use atomic rather than sync builtins.
2137 * config/linux/bar.c: Likewise. Add missing acquire
2138 synchronisation on generation field.
2139 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2140 double unlock.
2141
b40c885f
AM
21422011-11-30 Alan Modra <amodra@gmail.com>
2143
2144 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2145 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2146 * config/linux/mutex.h: Use atomic rather than sync builtins.
2147 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2148 * config/linux/omp-lock.h: Comment fix.
2149 * config/linux/arm/mutex.h: Delete.
2150 * config/linux/powerpc/mutex.h: Delete.
2151 * config/linux/ia64/mutex.h: Delete.
2152 * config/linux/mips/mutex.h: Delete.
2153
3e348fcc
AM
21542011-11-30 Alan Modra <amodra@gmail.com>
2155
2156 PR libgomp/51249
2157 * config/linux/sem.h: Rewrite.
2158 * config/linux/sem.c: Rewrite.
2159
cef86eb2
RH
21602011-11-28 Richard Henderson <rth@redhat.com>
2161
2162 * libgomp.h (enum memmodel): New.
2163
c6084f68
AT
21642011-11-21 Andreas Tobler <andreast@fgznet.ch>
2165
2166 * configure: Regenerate.
2167
06fe026c
MK
21682011-10-10 Matthias Klose <doko@ubuntu.com>
2169
2170 * config/posix95: Remove empty directory.
2171
a6c975bd
JJ
21722011-08-26 Jakub Jelinek <jakub@redhat.com>
2173
2174 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2175
c26dffff
JJ
21762011-08-19 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR fortran/49792
2179 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2180 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2181
ddaad3c8
RO
21822011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2183
2184 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2185
98d03683
RO
21862011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2187
2188 PR libgomp/49965
2189 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2190
e0b23d9f
UB
21912011-08-03 Uros Bizjak <ubizjak@gmail.com>
2192
2193 * config/linux/proc.h: New.
2194 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2195 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2196 (gomp_init_num_threads): Update call to cpuset_popcount.
2197 (get_num_procs): Ditto.
2198 * config/linux/affinity.c (gomp_init_affinity): Call
2199 gomp_cpuset_popcount.
2200
20906c66
JJ
22012011-08-02 Jakub Jelinek <jakub@redhat.com>
2202
2203 PR fortran/42041
2204 PR fortran/46752
2205 * omp.h.in (omp_in_final): New prototype.
2206 * omp_lib.f90.in (omp_in_final): New interface.
2207 (omp_integer_kind, omp_logical_kind): Remove
2208 and replace all its uses in the module with 4.
2209 (openmp_version): Change to 201107.
2210 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2211 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2212 kind for the parameters.
2213 (omp_in_final): New external.
2214 (openmp_version): Change to 201107.
2215 * task.c (omp_in_final): New function.
2216 (gomp_init_task): Initialize final_task.
2217 (GOMP_task): Remove unused attribute from flags. Handle final
2218 tasks.
2219 (GOMP_taskyield): New function.
2220 (omp_in_final): Return true if if (false) or final (true) task
2221 or descendant of final (true).
2222 * fortran.c (omp_in_final_): New function.
2223 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2224 (GOMP_3.0): Export GOMP_taskyield.
2225 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2226 variables.
2227 (parse_unsigned_long_list): New function.
2228 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2229 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2230 even if parse_affinity returned false.
2231 * config/linux/affinity.c (gomp_init_affinity): Handle
2232 gomp_cpu_affinity_len == 0.
2233 * libgomp_g.h (GOMP_taskyield): New prototype.
2234 * libgomp.h (struct gomp_task): Add final_task field.
2235 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2236 * team.c (gomp_team_start): Override new task's nthreads_var icv
2237 if list form OMP_NUM_THREADS has been used and it has value for
2238 the new nesting level.
2239
2240 * testsuite/libgomp.c/atomic-11.c: New test.
2241 * testsuite/libgomp.c/atomic-12.c: New test.
2242 * testsuite/libgomp.c/atomic-13.c: New test.
2243 * testsuite/libgomp.c/atomic-14.c: New test.
2244 * testsuite/libgomp.c/reduction-6.c: New test.
2245 * testsuite/libgomp.c/task-5.c: New test.
2246 * testsuite/libgomp.c++/atomic-2.C: New test.
2247 * testsuite/libgomp.c++/atomic-3.C: New test.
2248 * testsuite/libgomp.c++/atomic-4.C: New test.
2249 * testsuite/libgomp.c++/atomic-5.C: New test.
2250 * testsuite/libgomp.c++/atomic-6.C: New test.
2251 * testsuite/libgomp.c++/atomic-7.C: New test.
2252 * testsuite/libgomp.c++/atomic-8.C: New test.
2253 * testsuite/libgomp.c++/atomic-9.C: New test.
2254 * testsuite/libgomp.c++/task-8.C: New test.
2255 * testsuite/libgomp.c++/reduction-4.C: New test.
2256 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2257 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2258 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2259 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2260 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2261 * testsuite/libgomp.fortran/pointer1.f90: New test.
2262 * testsuite/libgomp.fortran/pointer2.f90: New test.
2263 * testsuite/libgomp.fortran/task4.f90: New test.
2264
22652011-08-02 Tobias Burnus <burnus@net-b.de>
2266
2267 * libgomp.texi: Update OpenMP spec references to 3.1.
2268 (omp_in_final,OMP_PROC_BIND): New sections.
2269 (OMP_NUM_THREADS): Document that the value can be now a list.
2270 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2271
c01ecafc
L
22722011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2273
2274 * config/linux/x86/futex.h: Check __x86_64__ instead of
2275 __LP64__.
2276
25142650
JJ
22772011-07-29 Jakub Jelinek <jakub@redhat.com>
2278
2279 PR middle-end/49897
2280 PR middle-end/49898
2281 * testsuite/libgomp.c/pr49897-1.c: New test.
2282 * testsuite/libgomp.c/pr49897-2.c: New test.
2283 * testsuite/libgomp.c/pr49898-1.c: New test.
2284 * testsuite/libgomp.c/pr49898-2.c: New test.
2285
f53d712f
L
22862011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2287
2288 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2289 for ia32 instead of ilp32.
2290
2291 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2292 * testsuite/libgomp.c/atomic-6.c: Likewise.
2293
3689198d
SP
22942011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2295
2296 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2297 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2298
1a79cb73
RO
22992011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2300
2301 PR libgomp/45351
2302 * config/osf/sem.h: New file.
2303 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2304
c1f51484
RO
23052011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2306
2307 PR target/49541
2308 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2309 ldflags.
2310
bfee0724
JJ
23112011-07-15 Jakub Jelinek <jakub@redhat.com>
2312
2313 * config/linux/wait.h (do_spin): New inline, largely copied
2314 from do_wait, just don't do futex_wait here, instead return true if
2315 it should be done.
2316 (do_wait): Implement using do_spin.
2317 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2318 to prototype.
2319 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2320 __sync_bool_compare_and_swap, pass the oldval to
2321 gomp_mutex_lock_slow.
2322 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2323 If all mutex contenders are just spinning and not sleeping, don't
2324 change state to 2 unnecessarily. Optimize the loop when state has
2325 already become 2 to use just one atomic operation per loop instead
2326 of two.
2327 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2328 to prototype.
2329 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2330 __sync_bool_compare_and_swap, pass the oldval to
2331 gomp_mutex_lock_slow.
2332
fb79f500
JJ
23332011-06-22 Jakub Jelinek <jakub@redhat.com>
2334
2335 PR libgomp/49490
2336 * iter.c (gomp_iter_static_next): For chunk size 0
2337 only use n ceil/ nthreads size for the first
2338 n % nthreads threads in the team instead of
2339 all threads except for the last few ones which
2340 get less work or none at all.
2341 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2342 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2343 chunk argument, set run_sched_modifier to 0 for static
2344 resp. 1 for other kinds. If chunk argument is 0
2345 and not static, set value to 1.
2346
4577f730
JJ
23472011-05-19 Jakub Jelinek <jakub@redhat.com>
2348
ea93a47b
JJ
2349 PR c++/49043
2350 * testsuite/libgomp.c++/pr49043.C: New test.
2351
4577f730
JJ
2352 PR c++/48869
2353 * testsuite/libgomp.c++/pr48869.C: New test.
2354
e7385332
JJ
23552011-05-06 Jakub Jelinek <jakub@redhat.com>
2356
2357 PR fortran/48894
2358 * fortran.c: Include limits.h.
2359 (TO_INT): Define.
2360 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2361 *set.
2362 (omp_set_num_threads_8_, omp_set_schedule_8_,
2363 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2364 omp_get_team_size_8_): Use TO_INT macro.
2365 * testsuite/libgomp.fortran/pr48894.f90: New test.
2366
20790697
JJ
23672011-04-13 Jakub Jelinek <jakub@redhat.com>
2368
2369 PR middle-end/48591
2370 * testsuite/libgomp.c/pr48591.c: New test.
2371
bf382f5f
RO
23722011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2373
2374 PR bootstrap/48135
2375 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2376 * configure: Regenerate.
2377
113a53c1
JJ
23782011-02-27 Jakub Jelinek <jakub@redhat.com>
2379
2380 PR fortran/47886
2381 * testsuite/libgomp.fortran/task3.f90: New test.
2382
0024f1af
TB
23832011-02-24 Tobias Burnus <burnus@net-b.de>
2384
2385 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2386
21e1e594
JJ
23872011-02-23 Jakub Jelinek <jakub@redhat.com>
2388
2389 PR libgomp/47854
2390 * libgomp.texi (omp_get_wtime): Don't say time in the past
2391 must be Unix Epoch.
2392
67962076
JJ
23932011-02-18 Jakub Jelinek <jakub@redhat.com>
2394
2395 PR libgomp/47804
2396 * testsuite/libgomp.fortran/fortran.exp: Check for both
2397 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2398 but $blddir != "", still append ${blddir}/${lang_library_path}
2399 to ld_library_path.
2400
3808007c
TB
24012011-02-16 Tobias Burnus <burnus@net-b.de>
2402
2403 PR libgomp/47758
2404 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2405 of libquadmath.a before adding its libpath to ldflags.
2406
53b4d41d
JJ
24072011-02-14 Jakub Jelinek <jakub@redhat.com>
2408
2409 PR libgomp/47731
2410 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2411 to FUTEX_WAIT futex syscall.
2412 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2413
029c8f3e
RW
24142011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2415
2416 * configure: Regenerate.
2417
bddd6626
BK
24182011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2419
2420 PR libstdc++/36104
2421 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2422
f1d4ab26
GP
24232011-01-16 Gerald Pfeifer
2424
2425 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2426
2b503136
JJ
24272010-12-14 Jakub Jelinek <jakub@redhat.com>
2428
2429 PR fortran/46874
2430 * libgomp.fortran/allocatable6.f90: New test.
2431
c0f9d583
RO
24322010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2433
2434 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2435 * configure: Regenerate.
2436
7de6ba7a
DK
24372010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2438
2439 PR target/40125
2440 PR lto/46695
2441 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2442 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2443 * aclocal.m4: Regenerate.
2444 * configure: Regenerate.
2445 * Makefile.in: Regenerate.
2446 * testsuite/Makefile.in: Regenerate.
2447
b7516041
JJ
24482010-12-02 Jakub Jelinek <jakub@redhat.com>
2449
edaadf74
JJ
2450 PR fortran/46753
2451 * libgomp.fortran/pr46753.f90: New test.
2452
4c698cf8
JJ
2453 PR libgomp/43706
2454 * env.c (initialize_env): Default to spin count 300000
2455 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2456 is specified.
2457
b7516041
JJ
2458 PR libgomp/45240
2459 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2460 at the end if sync builtins aren't supported.
2461
6b43a34c
RO
24622010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2463
2464 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2465
950691fa
RO
24662010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2467
2468 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2469
fb9041ea
IS
24702010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2471
2472 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2473
1ec601bf
FXC
24742010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2475 Tobias Burnus <burnus@net-b.de>
2476
2477 PR fortran/32049
3e348fcc 2478 * configure.ac:
1ec601bf
FXC
2479 * configure: Regenerate.
2480
d213e92e
MS
24812010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2482
2483 * config/linux/futex.h: New.
2484 * config/linux/arm/mutex.h: New.
2485 * configure.tgt (arm*-*-linux*): Add config path.
2486
89d5c66f
SP
24872010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2488
2489 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2490
87350d4a
TB
24912010-09-23 Tobias Burnus <burnus@net-b.de>
2492
2493 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2494 Change Fortran datatype to LOGICAL.
2495 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2496 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2497
75bc9e5e
RW
24982010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2499
2500 * configure: Regenerate.
2501
acb5c916
JJ
25022010-07-26 Jakub Jelinek <jakub@redhat.com>
2503
2504 * libgomp.texi: Add function keyword to a couple of Fortran
2505 interfaces, use integer instead of int for Fortran.
2506
6a2ba183
AH
25072010-07-26 Aldy Hernandez <aldyh@redhat.com>
2508
2509 * libgomp.texi: Fix spelling and pasto problems throughout.
2510 Adjust prototypes to match code.
2511
df161b69
TB
25122010-07-24 Tobias Burnus <burnus@net-b.de>
2513
2514 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2515 silence -fwhole-file warning.
2516
16c9d3b1
RO
25172010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2518
2519 * configure.tgt (*-*-solaris2.[56]*): Removed.
2520
6d28b933
RO
25212010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2522
2523 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2524 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2525 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2526 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2527 targetting solaris2*.
2528 * configure: Regenerate.
2529 * config.h.in: Regenerate.
2530
2531 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2532 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2533 Add libgomp_version_dep.
2534 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2535 versioning.
2536 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2537 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2538 * Makefile.in: Regenerate.
2539
2540 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2541 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2542 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2543 to common block, protected by
2544 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2545
07a67d6a
GP
25462010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2547
2548 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2549
dbd34b89
IS
25502010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2551
2552 PR bootstrap/43170
2553 * configure: Regenerate.
2554
13917ae3
RW
25552010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2556
2557 PR other/43620
2558 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2559 * configure: Regenerate.
2560 * Makefile.in: Regenerate.
2561 * testsuite/Makefile.in: Regenerate.
2562
b83a701b
JJ
25632010-04-26 Jakub Jelinek <jakub@redhat.com>
2564
2565 PR c/43893
2566 * testsuite/libgomp.c/pr43893.c: New test.
2567 * testsuite/libgomp.c++/pr43893.C: New test.
2568
78db7d92
JJ
25692010-04-21 Jakub Jelinek <jakub@redhat.com>
2570
2571 PR middle-end/43570
2572 * testsuite/libgomp.fortran/vla8.f90: New test.
2573
5221d7a9
JJ
25742010-04-20 Jakub Jelinek <jakub@redhat.com>
2575
e4ba7a60
JJ
2576 PR libgomp/43706
2577 * config/linux/affinity.c (gomp_init_affinity): Decrease
2578 gomp_available_cpus if affinity mask confines the process to fewer
2579 CPUs.
2580 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2581 non-NULL, just return gomp_available_cpus.
2582
5221d7a9
JJ
2583 PR libgomp/43569
2584 * sections.c (gomp_sections_init): Initialize ws->mode.
2585
289a9f86
UB
25862010-04-14 Uros Bizjak <ubizjak@gmail.com>
2587
2588 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2589 not unused bar variable.
2590 * configure: Regenerate.
2591
4d9e8446
RW
25922010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2593
2594 * Makefile.in: Regenerate.
2595 * aclocal.m4: Regenerate.
2596 * testsuite/Makefile.in: Regenerate.
2597
80f046cc
JJ
25982010-03-22 Jakub Jelinek <jakub@redhat.com>
2599
2600 PR libgomp/42942
2601 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2602 (initialize_env): Adjust callers.
2603 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2604 when the argument is 0.
2605
2606 * testsuite/libgomp.c/pr42942.c: New test.
2607
b58543c3
SP
26082010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2609
2610 PR middle-end/42644
2611 PR middle-end/42130
2612 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2613 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2614
41d1138f
RO
26152010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2616
2617 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2618 * testsuite/libgomp.c++/task-6.C: Likewise.
2619
6684eb28
SE
26202010-01-28 Steve Ellcey <sje@cup.hp.com>
2621
2622 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2623
2122aa97
PB
26242010-01-26 Paolo Bonzini <bonzini@gnu.org>
2625
2626 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2627 * configure: Regenerate.
2628
057dd91d
JJ
26292010-01-26 Jakub Jelinek <jakub@redhat.com>
2630
2631 PR fortran/42866
2632 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2633
d0709b6a
PB
26342010-01-20 Paolo Bonzini <bonzini@gnu.org>
2635
2636 * configure.ac: Test for executability of GFORTRAN.
2637 * configure: Regenerate.
2638
b9497ab5
RO
26392010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2640
2641 * configure: Regenerate.
2642
45de5648
L
26432010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2644
2645 PR libgomp/42602
2646 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2647
e74003a1
RG
26482010-01-03 Richard Guenther <rguenther@suse.de>
2649
2650 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2651
1b3abda8
SP
26522009-12-23 Sebastian Pop <sebpop@gmail.com>
2653
2654 * testsuite/libgomp.graphite/pr4118.c: New.
2655
e19977d3
IS
26562009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2657
2658 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2659 for darwin, protect the test with require-effective-target tls_runtime.
2660 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2661
1d32a772
IS
26622009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2663
2664 PR target/41605
2665 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2666 link spec %s substitutions for static libraries.
2667
deb109b2
JH
26682009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2669
2670 PR testsuite/42135
2671 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2672
43e02a8a
RW
26732009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2674
2675 * Makefile.in: Regenerate.
2676 * configure: Regenerate.
2677 * testsuite/Makefile.in: Regenerate.
2678
17f35e23
DK
26792009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2680
2681 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2682 settings for LC_ALL and LANG.
2683
281e33e1
JJ
26842009-11-25 Jakub Jelinek <jakub@redhat.com>
2685
2686 PR fortran/42162
2687 * testsuite/libgomp.fortran/pr42162.f90: New test.
2688
2b32c27d
JJ
26892009-11-13 Jakub Jelinek <jakub@redhat.com>
2690
2691 PR middle-end/42029
281e33e1 2692 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 2693
89c74f4a
JJ
26942009-10-26 Jakub Jelinek <jakub@redhat.com>
2695
2696 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2697 *s. Accept ld version without text in ()s.
2698 * configure: Regenerated.
2699
7e06c3d6
EB
27002009-10-22 Razya Ladelsky <razya@il.ibm.com>
2701
2702 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2703
0046b1a7
RW
27042009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2705
2706 PR libgomp/41418
2707 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2708 or a hyphen (happens with fortran language disabled).
2709 * configure: Regenerate.
2710
c82852f7
RW
27112009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2712
2713 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2714 use sed script portable to Solaris /bin/sed for extracting ld
2715 version.
2716 * configure: Regenerate.
2717
98f3eb1f
AM
27182009-09-17 Alexander Monakov <amonakov@ispras.ru>
2719
2720 * testsuite/libgomp.graphite/bounds.c: New test.
2721
878f62e5
RW
27222009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2723
2724 * Makefile.am (libgomp_la_LINK): New.
2725 * Makefile.in: Regenerate.
2726
df58e648
RW
27272009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2728
2729 * configure.ac (AC_PREREQ): Bump to 2.64.
2730
5213506e
RW
27312009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2732
70fa0efa
RW
2733 * Makefile.am (install-html, install-pdf): Remove.
2734 * Makefile.in: Regenerate.
2735
5213506e
RW
2736 * Makefile.in: Regenerate.
2737 * aclocal.m4: Regenerate.
2738 * config.h.in: Regenerate.
2739 * configure: Regenerate.
2740 * testsuite/Makefile.in: Regenerate.
2741
84fec8a5
RW
27422009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2743
2744 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2745 * Makefile.in: Regenerate.
2746
197c68cc
DK
27472009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2748
2749 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2750 * Makefile.in: Regenerate.
2751
693d54f2
TB
27522009-08-19 Tobias Burnus <burnus@net-b.de>
2753
2754 PR fortran/41102
2755 omp_lib.h.in: Fix -std=f95 errors.
2756
2757
8cac884c
DE
27582009-08-14 David Edelsohn <edelsohn@gnu.org>
2759
2760 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2761 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2762 * testsuite/libgomp.graphite/graphite.exp: New.
2763
78729ee2
AT
27642009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2765
2766 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2767 only build.
2768
b13b7f39
DD
27692009-08-04 David Daney <ddaney@caviumnetworks.com>
2770
2771 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2772 needed memory barrier semantics.
2773 * config/linux/mips/mutex.h: New file.
2774
1b3b24c2
RW
27752009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2776
2777 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2778
396b7fa4
JM
27792009-07-16 Joseph Myers <joseph@codesourcery.com>
2780
2781 * configure: Regenerate.
2782
33cde516
RS
27832009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2784
2785 PR testsuite/40699
2786 PR testsuite/40707
2787 PR testsuite/40709
2788 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2789 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2790 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2791
bc21bfa5
RS
27922009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2793
2794 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2795 options when choosing a multilib.
2796
b30bfd40
RS
27972009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2798
2799 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2800 ld_library_path. Use add_path. Add just find_libgcc_s to
2801 ld_library_path, not every libgcc multilib directory.
2802 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2803 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2804 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2805 Use add_path.
2806 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2807
479c15c2
NF
28082009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2809
2810 * Makefile.am (LTLDFLAGS): Define.
2811 (LINK): Define.
2812 * Makefile.in: Regenerate.
2813
667e6f89
JB
28142009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2815
2816 PR fortran/39718
2817 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2818 libgfortranbegin, check existence of libgfortran.a instead of
2819 libgfortranbegin.a.
2820
6dea8e99
JJ
28212009-05-20 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR libgomp/40174
2824 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2825 (gomp_free_pool_helper): Likewise.
2826
34d01e1d
VL
28272009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2828 Jakub Jelinek <jakub@redhat.com>
2829
2830 PR fortran/35423
2831 * testsuite/libgomp.fortran/workshare2.f90: New test.
2832
748086b7
JJ
28332009-04-09 Nick Clifton <nickc@redhat.com>
2834
2835 * iter.c: Change copyright header to refer to version 3 of the
2836 GNU General Public License with version 3.1 of the GCC Runtime
2837 Library Exception and to point readers at the COPYING3 and
2838 COPYING3.RUNTIME files and the FSF's license web page.
2839 * alloc.c: Likewise.
2840 * barrier.c: Likewise.
2841 * config/bsd/proc.c: Likewise.
2842 * config/linux/affinity.c: Likewise.
2843 * config/linux/alpha/futex.h: Likewise.
2844 * config/linux/bar.c: Likewise.
2845 * config/linux/bar.h: Likewise.
2846 * config/linux/ia64/futex.h: Likewise.
2847 * config/linux/ia64/mutex.h: Likewise.
2848 * config/linux/lock.c: Likewise.
2849 * config/linux/mips/futex.h: Likewise.
2850 * config/linux/mutex.c: Likewise.
2851 * config/linux/mutex.h: Likewise.
2852 * config/linux/powerpc/futex.h: Likewise.
2853 * config/linux/proc.c: Likewise.
2854 * config/linux/ptrlock.c: Likewise.
2855 * config/linux/ptrlock.h: Likewise.
2856 * config/linux/s390/futex.h: Likewise.
2857 * config/linux/sem.c: Likewise.
2858 * config/linux/sem.h: Likewise.
2859 * config/linux/sparc/futex.h: Likewise.
2860 * config/linux/wait.h: Likewise.
2861 * config/linux/x86/futex.h: Likewise.
2862 * config/mingw32/proc.c: Likewise.
2863 * config/mingw32/time.c: Likewise.
2864 * config/posix/affinity.c: Likewise.
2865 * config/posix/bar.c: Likewise.
2866 * config/posix/bar.h: Likewise.
2867 * config/posix/lock.c: Likewise.
2868 * config/posix/mutex.h: Likewise.
2869 * config/posix/proc.c: Likewise.
2870 * config/posix/ptrlock.h: Likewise.
2871 * config/posix/sem.c: Likewise.
2872 * config/posix/sem.h: Likewise.
2873 * config/posix/time.c: Likewise.
2874 * config/posix95/lock.c: Likewise.
2875 * critical.c: Likewise.
2876 * env.c: Likewise.
2877 * error.c: Likewise.
2878 * fortran.c: Likewise.
2879 * iter_ull.c: Likewise.
2880 * libgomp.h: Likewise.
2881 * libgomp_f.h.in: Likewise.
2882 * libgomp_g.h: Likewise.
2883 * loop.c: Likewise.
2884 * loop_ull.c: Likewise.
2885 * omp.h.in: Likewise.
2886 * omp_lib.f90.in: Likewise.
2887 * omp_lib.h.in: Likewise.
2888 * ordered.c: Likewise.
2889 * parallel.c: Likewise.
2890 * sections.c: Likewise.
2891 * single.c: Likewise.
2892 * task.c: Likewise.
2893 * team.c: Likewise.
2894 * work.c: Likewise.
2895
28962009-04-09 Jakub Jelinek <jakub@redhat.com>
2897
2898 * testsuite/config/default.exp: Change copyright header to refer to
2899 version 3 of the GNU General Public License and to point readers
2900 at the COPYING3 file and the FSF's license web page.
2901
4f0ae266
JJ
29022009-04-08 Jakub Jelinek <jakub@redhat.com>
2903
2904 PR middle-end/39573
2905 * libgomp.c++/pr39573.C: New test.
2906
03742a9b
JJ
29072009-04-01 Jakub Jelinek <jakub@redhat.com>
2908
2909 PR other/39591
2910 * testsuite/libgomp.c/pr39591-1.c: New test.
2911 * testsuite/libgomp.c/pr39591-2.c: New test.
2912 * testsuite/libgomp.c/pr39591-3.c: New test.
2913
e50ea10b
UB
29142009-03-25 Uros Bizjak <ubizjak@gmail.com>
2915
2916 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2917 * testsuite/libgomp.c/atomic-6.c: Ditto.
2918
c5cdb03f
JJ
29192009-03-23 Jakub Jelinek <jakub@redhat.com>
2920
2921 PR c/39495
2922 * testsuite/libgomp.c/loop-12.c: New test.
2923 * testsuite/libgomp.c/loop-11.c: New test.
2924 * testsuite/libgomp.c++/loop-11.C: New test.
2925 * testsuite/libgomp.c++/loop-12.C: New test.
2926 * testsuite/libgomp.c++/for-8.C: New test.
2927
7a9d3fe8
RW
29282009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2929
2930 * configure: Regenerate.
2931
3ad6b266
JJ
29322009-02-11 Jakub Jelinek <jakub@redhat.com>
2933
2934 PR middle-end/39154
2935 * testsuite/libgomp.c/pr39154.c: New test.
2936
b39dea08
ILT
29372009-01-30 Ian Lance Taylor <iant@google.com>
2938
2939 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2940 libgomp_ld_is_gold. Get gold version number.
2941 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2942 * configure: Rebuild.
2943
72c66596
IS
29442009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2945
e50ea10b 2946 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
2947 use libgfortran.a%s in their specs.
2948
876080ff
JJ
29492009-01-07 Jakub Jelinek <jakub@redhat.com>
2950
2951 PR libgomp/38086
2952 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2953 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2954 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2955 * configure: Regenerated.
2956 * config.h.in: Likewise.
2957
e4ebaef3
JJ
29582008-12-28 Jakub Jelinek <jakub@redhat.com>
2959
2960 PR c++/38650
2961 * testsuite/libgomp.c/pr38650.c: New test.
2962 * testsuite/libgomp.c++/pr38650.C: New test.
2963
382017a6
JJ
29642008-12-27 Jakub Jelinek <jakub@redhat.com>
2965
2966 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2967
79644b27
UB
29682008-12-26 Uros Bizjak <ubizjak@gmail.com>
2969
2970 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2971
baafc534
RW
29722008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2973
2974 * configure: Regenerate.
2975
d9c194cb
JJ
29762008-12-08 Jakub Jelinek <jakub@redhat.com>
2977
2978 PR middle-end/36802
2979 * testsuite/libgomp.c/pr36802-1.c: New test.
2980 * testsuite/libgomp.c/pr36802-2.c: New test.
2981 * testsuite/libgomp.c/pr36802-3.c: New test.
2982
86a182bf
JJ
29832008-12-01 Janis Johnson <janis187@us.ibm.com>
2984
2985 PR libgomp/38270
2986 * config/linux/powerpc/mutex.h: New.
2987
956adfaf
JJ
29882008-12-01 Jakub Jelinek <jakub@redhat.com>
2989
a2d4cdc9
JJ
2990 PR c++/38257
2991 * testsuite/libgomp.c++/for-7.C: New test.
2992
956adfaf
JJ
2993 PR c++/38348
2994 * testsuite/libgomp.c++/for-6.C: New test.
2995
d4038ca2
JJ
29962008-11-26 Janis Johnson <janis187@us.ibm.com>
2997
2998 PR testsuite/28870
2999 * testsuite/lib/libgomp.exp: Include new timeout library files.
3000 (libgomp_target_compile): Set timeout value from new proc.
3001
8b159eea
SE
30022008-11-13 Steve Ellcey <sje@cup.hp.com>
3003
3004 PR libgomp/37938
3005 * config/linux/ia64/mutex.h: New.
3006
5c6ed53a
TB
30072008-11-04 Tobias Burnus <burnus@net-b.de>
3008
3009 PR libgomp/37935
3010 * libgomp.texi (Runtime library routines, environment variables):
3011 Update for OpenMP version 3.0.
3012
6b4a97ed
PG
30132008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3014 Steve Ellcey <sje@cup.hp.com>
3015
3016 * configure: Regenerate for new libtool.
3017 * Makefile.in: Ditto.
3018 * testsuite/Makefile.in: Ditto.
3019
e2b34106
JJ
30202008-09-19 Jakub Jelinek <jakub@redhat.com>
3021 Andreas Tobler <a.tobler@schweiz.org>
3022
3023 * config/bsd/proc.c: New file.
8c3b3600 3024 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
3025 * configure.ac: Check for header <sys/sysctl.h>
3026 * configure: Regenerate.
3027 * config.h.in: Likewise.
3028
3606b8bf
JJ
30292008-09-05 Janis Johnson <janis187@us.ibm.com>
3030
3031 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3032
6528b88d
AL
30332008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3034
3035 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3036 * Makefile.in: Regenerated.
3037 * testsuite/Makefile.in: Regenerated.
3038
d9b14b12 30392008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 3040
a16b68bb 3041 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
3042 depend on blddir if blddir exists.
3043 (libgomp_target_compile): Likewise.
3044 * testsuite/libgomp.c++/c++.exp: Likewise.
3045 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3046
70b1e376
RW
30472008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3048
3049 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3050 Do not list GPL as Invariant Section.
3051
318e8c3f
IG
30522008-07-28 Ilie Garbacea <ilie@mips.com>
3053 Chao-ying Fu <fu@mips.com>
3054
3055 * configure.tgt: Enable futex for MIPS.
3056 * config/linux/mips/futex.h: New file.
3057
4db72361
JJ
30582008-07-16 Jakub Jelinek <jakub@redhat.com>
3059
3060 * team.c (gomp_team_end): Free team immediately if it has
3061 just one thread.
3062
87bd23b8
DE
30632008-07-08 David Edelsohn <edelsohn@gnu.org>
3064
3065 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3066 * testsuite/libgomp.fortran/fortran.exp: Same.
3067 * testsuite/libgomp.c/c.exp: Same.
3068 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3069 directory to library path first.
3070
323ff903
KW
30712008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3072
3073 * env.c (parse_stacksize): Add cast to avoid warning.
3074 (parse_spincount): Likewise.
3075
b357f682
JJ
30762008-06-27 Jakub Jelinek <jakub@redhat.com>
3077
ca2b1311
JJ
3078 * testsuite/libgomp.c/loop-10.c: New test.
3079 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3080 * libgomp.c++/loop-6.C (main): Likewise.
3081
b357f682
JJ
3082 PR debug/36617
3083 * testsuite/libgomp.c/debug-1.c: New test.
3084
09a46078
JJ
30852008-06-19 Jakub Jelinek <jakub@redhat.com>
3086
3087 * testsuite/libgomp.c/nqueens-1.c: New test.
3088
2368a460
JJ
3089 PR c++/36523
3090 * testsuite/libgomp.c++/task-7.C: New function.
3091
18c04407
RW
30922008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3093
3094 * configure: Regenerate.
3095
9c4e59e0
JDA
30962008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3097
3098 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3099 mutex when HAVE_SYNC_BUILTINS isn't defined.
3100
6ccde948
RW
31012008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3102
3103 * libgomp.texi (omp_test_lock): Fix typo.
3104
b896f9fd
TB
31052008-06-12 Tobias Burnus <burnus@net-b.de>
3106
3107 * omp_lib.f90.in: Add "implicit none".
3108
c34938a8
JJ
31092008-06-12 Jakub Jelinek <jakub@redhat.com>
3110
3111 PR middle-end/36506
3112 * testsuite/libgomp.c/reduction-5.c: New test.
3113
976e44e3
JJ
31142008-06-11 Jakub Jelinek <jakub@redhat.com>
3115
5f836cbb
JJ
3116 * libgomp.h (struct gomp_task): Add in_tied_task field.
3117 * task.c (gomp_init_task): Initialize it.
3118 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3119 unconditionally. Don't call gomp_team_barrier_wake if
3120 current task is implicit or if(0) from implicit and number of
3121 running tasks is equal to nthreads - 1.
3122
01501fc8
JJ
3123 PR libgomp/36471
3124 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3125 omp_get_team_size_8): Fix pastos.
3126
976e44e3
JJ
3127 PR libgomp/36469
3128 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3129 * configure: Regenerated.
3130 * config.h.in: Regenerated.
3131 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3132 defined.
3133
e919209b
AT
31342008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3135
3136 PR bootstrap/36452
3137 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3138 (GOMP_loop_ull_dynamic_start): Likewise.
3139 (GOMP_loop_ull_guided_start): Likewise.
3140 (GOMP_loop_ull_ordered_static_start): Likewise.
3141 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3142 (GOMP_loop_ull_ordered_guided_start): Likewise.
3143
a68ab351
JJ
31442008-06-06 Jakub Jelinek <jakub@redhat.com>
3145 Richard Henderson <rth@redhat.com>
3146 Ulrich Drepper <drepper@redhat.com>
3147 Jakob Blomer <jakob.blomer@ira.uka.de>
3148
3149 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3150 Substitute also OMP_*LOCK_25*.
3151 * configure: Regenerated.
3152 * config.h.in: Regenerated.
3153 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3154 ptrlock.c and task.c.
3155 * Makefile.in: Regenerated.
3156 * testsuite/Makefile.in: Regenerated.
3157 * task.c: New file.
3158 * loop_ull.c: New file.
3159 * iter_ull.c: New file.
3160 * libgomp.h: Include ptrlock.h.
3161 (enum gomp_task_kind): New type.
3162 (struct gomp_team): Add task_lock, task_queue, task_count,
3163 task_running_count, single_count fields. Add
3164 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3165 Remove work_share_lock, generation_mask,
3166 oldest_live_gen, num_live_gen and init_work_shares fields, add
3167 work work_share_list_alloc, work_share_list_free and work_share_chunk
3168 fields. Change work_shares from pointer to pointers into an array.
3169 Change ordered_release field into gomp_sem_t ** from flexible array
3170 member. Add implicit_task and initial_work_shares fields.
3171 Move close to the end of the struct.
3172 (struct gomp_team_state): Add single_count, last_work_share,
3173 active_level and level fields, remove work_share_generation.
3174 (gomp_barrier_handle_tasks): New prototype.
3175 (gomp_finish_task): New inline function.
3176 (struct gomp_work_share): Move chunk_size, end, incr into
3177 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3178 next_ll fields. Reshuffle fields. Add next_alloc,
3179 next_ws, next_free and inline_ordered_team_ids fields, change
3180 ordered_team_ids into pointer from flexible array member.
3181 Add mode field. Put lock and next into a different cache line
3182 from most of the write-once fields.
3183 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3184 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3185 gomp_iter_ull_guided_next): New prototypes.
3186 (gomp_new_icv): New prototype.
3187 (struct gomp_thread): Add thread_pool and task fields.
3188 (struct gomp_thread_pool): New type.
3189 (gomp_new_team): New prototype.
3190 (gomp_team_start): Change type of last argument.
3191 (gomp_new_work_share): Removed.
3192 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3193 (gomp_work_share_init_done): New static inline.
3194 (gomp_throttled_spin_count_var, gomp_available_cpus,
3195 gomp_managed_threads): New extern decls.
3196 (gomp_init_task): New prototype.
3197 (gomp_spin_count_var): New extern var decl.
3198 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3199 or no alias support, or if not PIC.
3200 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3201 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3202 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3203 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3204 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3205 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3206 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3207 gomp_test_nest_lock_25): New prototypes.
3208 (omp_lock_symver, strong_alias): Define.
3209 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3210 decls.
3211 (gomp_end_task): New.
3212 (struct gomp_task_icv, gomp_global_icv): New.
3213 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3214 (struct gomp_task): New.
3215 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3216 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3217 (gomp_icv): New.
3218 (gomp_schedule_type): Reorder enum to match
3219 omp_sched_t.
3220 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3221 fields.
3222 (gomp_thread_start): Add gomp_team_barrier_wait call.
3223 For non-nested case remove clearing of docked thread thr fields.
3224 Use pool fields instead of global gomp_* variables. Use
3225 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3226 Create tasks for each member thread.
3227 (free_team): Only destroy team barrier, task_lock here and free it.
3228 (gomp_free_thread): Free last_team if non-NULL.
3229 (gomp_team_end): Call gomp_team_barrier_wait instead of
3230 gomp_barrier_wait. For nested case call one extra
3231 gomp_barrier_wait. Move here some destruction from free_team.
3232 Call free_team on pool->last_team if any, rather than freeing
3233 current team. Destroy work_share_list_free_lock ifndef
3234 HAVE_SYNC_BUILTINS.
3235 (gomp_new_icv): New function.
3236 (gomp_threads, gomp_threads_size, gomp_threads_used,
3237 gomp_threads_dock): Removed.
3238 (gomp_thread_destructor): New variable.
3239 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3240 functions.
3241 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 3242 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
3243 Initialize thread_pool field for new threads. Clear single_count.
3244 Change last argument from ws to team, don't create
3245 new team, set ts.work_share to &team->work_shares[0] and clear
3246 ts.last_work_share. Don't clear ts.work_share_generation.
3247 If number of threads changed, adjust atomically gomp_managed_threads.
3248 Use gomp_init_task instead of gomp_new_task,
3249 set thr->task to the corresponding implicit_task array entry.
3250 Create tasks for each member thread. Initialize ts.level.
3251 (initialize_team): Call pthread_key_create on
3252 gomp_thread_destructor.
3253 (team_destructor): New function.
3254 (new_team): Removed.
3255 (gomp_new_team): New function.
3256 (free_team): Free gomp_work_share blocks chained through next_alloc,
3257 instead of freeing work_shares and destroying work_share_lock.
3258 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3259 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3260 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3261 of gomp_barrier_wait.
3262 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3263 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3264 if gomp_work_share_start returned true. Don't unlock ws->lock.
3265 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3266 of gomp_barrier_wait.
3267 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3268 gomp_work_share_init_done if gomp_work_share_start returned true.
3269 Don't unlock ws->lock.
3270 * work.c: Include stddef.h.
3271 (free_work_share): Use work_share_list_free_lock instead
3272 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3273 Call gomp_fini_work_share and then either free ws if orphaned, or
3274 put it into work_share_list_free list of the current team.
3275 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3276 functions.
3277 (gomp_work_share_start, gomp_work_share_end,
3278 gomp_work_share_end_nowait): Rewritten.
3279 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3280 (openmp_version): Set to 200805.
3281 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3282 omp_sched_guided, omp_sched_auto): New parameters.
3283 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3284 omp_set_max_active_levels, omp_get_max_active_levels,
3285 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3286 omp_get_active_level): New interfaces.
3287 * omp_lib.h.in (openmp_version): Set to 200805.
3288 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3289 omp_sched_guided, omp_sched_auto): New parameters.
3290 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3291 omp_set_max_active_levels, omp_get_max_active_levels,
3292 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3293 omp_get_active_level): New externals.
3294 * loop.c: Include limits.h.
3295 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3296 GFS_AUTO.
3297 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3298 Likewise. Use gomp_icv.
3299 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3300 ts.static_trip here.
3301 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3302 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3303 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3304 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3305 don't unlock ws->lock, otherwise lock it.
3306 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3307 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3308 (gomp_parallel_loop_start): Call gomp_new_team instead of
3309 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3310 Adjust gomp_team_start caller. Pass 0 as second argument to
3311 gomp_resolve_num_threads.
3312 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3313 If adding ws->chunk_size nthreads + 1 times after end won't
3314 overflow, set ws->mode to 1.
3315 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3316 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3317 GOMP_loop_ull_ordered_static_start,
3318 GOMP_loop_ull_ordered_dynamic_start,
3319 GOMP_loop_ull_ordered_guided_start,
3320 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3321 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3322 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3323 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3324 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3325 prototypes.
3326 * libgomp.map: Export lock routines also @@OMP_2.0.
3327 (GOMP_loop_ordered_dynamic_first,
3328 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3329 GOMP_loop_ordered_static_first): Remove.
3330 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3331 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3332 GOMP_loop_ull_ordered_dynamic_next,
3333 GOMP_loop_ull_ordered_dynamic_start,
3334 GOMP_loop_ull_ordered_guided_next,
3335 GOMP_loop_ull_ordered_guided_start,
3336 GOMP_loop_ull_ordered_runtime_next,
3337 GOMP_loop_ull_ordered_runtime_start,
3338 GOMP_loop_ull_ordered_static_next,
3339 GOMP_loop_ull_ordered_static_start,
3340 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3341 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3342 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3343 (omp_set_schedule, omp_get_schedule,
3344 omp_get_thread_limit, omp_set_max_active_levels,
3345 omp_get_max_active_levels, omp_get_level,
3346 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3347 omp_set_schedule_, omp_set_schedule_8_,
3348 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3349 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3350 omp_get_max_active_levels_, omp_get_level_,
3351 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3352 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3353 New exports @@OMP_3.0.
3354 * omp.h.in (omp_sched_t): New type.
3355 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3356 omp_set_max_active_levels, omp_get_max_active_levels,
3357 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3358 omp_get_active_level): New prototypes.
3359 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3360 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3361 gomp_thread_limit_var, gomp_remaining_threads_count,
3362 gomp_remaining_threads_lock): New variables.
3363 (parse_spincount): New function.
3364 (initialize_env): Call gomp_init_num_threads unconditionally.
3365 Initialize gomp_available_cpus. Call parse_spincount,
3366 initialize gomp_{,throttled_}spin_count_var
3367 depending on presence and value of OMP_WAIT_POLICY and
3368 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3369 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3370 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3371 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3372 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3373 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3374 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3375 (gomp_global_icv): New.
3376 (parse_schedule): Use it. Parse "auto".
3377 (omp_set_num_threads): Use gomp_icv.
3378 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3379 Likewise.
3380 (omp_get_max_threads): Move from parallel.c.
3381 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3382 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3383 add ialias.
3384 (parse_stacksize, parse_wait_policy): New functions.
3385 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3386 both wrappers for compatibility and new locks.
3387 (omp_set_schedule, omp_get_schedule,
3388 omp_get_thread_limit, omp_set_max_active_levels,
3389 omp_get_max_active_levels, omp_get_level,
3390 omp_get_ancestor_thread_num, omp_get_team_size,
3391 omp_get_active_level): New ialias_redirect.
3392 (omp_set_schedule_, omp_set_schedule_8_,
3393 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3394 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3395 omp_get_max_active_levels_, omp_get_level_,
3396 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3397 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3398 New functions.
3399 * parallel.c: Include limits.h.
3400 (gomp_resolve_num_threads): Add count argument. Rewritten.
3401 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3402 argument to gomp_team_start. Pass 0 as second argument to
3403 gomp_resolve_num_threads.
3404 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3405 if gomp_thread_limit_var != ULONG_MAX.
3406 (omp_in_parallel): Implement using ts.active_level.
3407 (omp_get_max_threads): Move to env.c.
3408 (omp_get_level, omp_get_ancestor_thread_num,
3409 omp_get_team_size, omp_get_active_level): New functions,
3410 add ialias.
3411 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3412 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3413 gomp_iter_dynamic_next instead of the _locked variant and don't take
3414 lock around it, otherwise acquire it before calling
3415 gomp_iter_dynamic_next_locked.
3416 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3417 gomp_iter_dynamic_next instead of the _locked variant and don't take
3418 lock around it.
3419 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3420 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3421 Adjust gomp_team_start caller. Pass count as second argument to
3422 gomp_resolve_num_threads, don't adjust num_threads after the call.
3423 Use gomp_icv.
3424 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3425 ws->chunk_size by incr.
3426 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3427 code.
3428 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3429 types.
3430 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3431 (omp_check_defines): Check even the compat defines.
3432 * config/linux/ptrlock.c: New file.
3433 * config/linux/ptrlock.h: New file.
3434 * config/linux/wait.h: New file.
3435 * config/posix/ptrlock.c: New file.
3436 * config/posix/ptrlock.h: New file.
3437 * config/linux/bar.h (gomp_team_barrier_wait,
3438 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3439 (gomp_team_barrier_set_task_pending,
3440 gomp_team_barrier_clear_task_pending,
3441 gomp_team_barrier_set_waiting_for_tasks,
3442 gomp_team_barrier_waiting_for_tasks,
3443 gomp_team_barrier_done): New inlines.
3444 (gomp_barrier_t): Rewritten.
3445 (gomp_barrier_state_t): New typedef.
3446 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3447 gomp_barrier_wait_start): Rewritten.
3448 (gomp_barrier_wait_end): Change second argument to
3449 gomp_barrier_state_t.
3450 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3451 inlines.
3452 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3453 futex.h.
3454 (gomp_barrier_wait_end): Rewritten.
3455 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3456 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3457 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3458 (gomp_barrier_state_t): New typedef.
3459 (gomp_team_barrier_wait,
3460 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3461 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3462 into the return value. Return gomp_barrier_state_t.
3463 (gomp_team_barrier_set_task_pending,
3464 gomp_team_barrier_clear_task_pending,
3465 gomp_team_barrier_set_waiting_for_tasks,
3466 gomp_team_barrier_waiting_for_tasks,
3467 gomp_team_barrier_done): New inlines.
3468 (gomp_barrier_wait_end): Change second argument to
3469 gomp_barrier_state_t.
3470 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3471 inlines.
3472 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3473 (gomp_barrier_wait_end): Change second argument to
3e348fcc 3474 gomp_barrier_state_t.
a68ab351
JJ
3475 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3476 gomp_team_barrier_wake): New functions.
3477 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3478 futex.h.
3479 (gomp_futex_wake, gomp_futex_wait): New variables.
3480 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3481 * config/linux/lock.c: Rewrite to make locks task owned,
3482 for backwards compatibility provide the old entrypoints
3483 if symbol versioning. Include wait.h instead of libgomp.h and
3484 futex.h.
3485 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3486 * config/posix95/lock.c: Rewrite to make locks task owned,
3487 for backwards compatibility provide the old entrypoints
3488 if symbol versioning.
3489 * config/posix/lock.c: Rewrite to make locks task owned,
3490 for backwards compatibility provide the old entrypoints
3491 if symbol versioning.
3492 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3493 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3494 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3495 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3496 (sys_futex0): Return error code.
3497 (futex_wake, futex_wait): If ENOSYS was returned, clear
3498 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3499 (cpu_relax, atomic_write_barrier): New static inlines.
3500 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3501 (futex_wake, futex_wait): If ENOSYS was returned, clear
3502 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3503 (cpu_relax, atomic_write_barrier): New static inlines.
3504 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3505 (sys_futex0): Return error code.
3506 (futex_wake, futex_wait): If ENOSYS was returned, clear
3507 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3508 (cpu_relax, atomic_write_barrier): New static inlines.
3509 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3510 (sys_futex0): Return error code.
3511 (futex_wake, futex_wait): If ENOSYS was returned, clear
3512 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3513 (cpu_relax, atomic_write_barrier): New static inlines.
3514 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3515 (sys_futex0): Return error code.
3516 (futex_wake, futex_wait): If ENOSYS was returned, clear
3517 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3518 (cpu_relax, atomic_write_barrier): New static inlines.
3519 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3520 (sys_futex0): Return error code.
3521 (futex_wake, futex_wait): If ENOSYS was returned, clear
3522 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3523 (cpu_relax, atomic_write_barrier): New static inlines.
3524 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3525 futex.h.
3526 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3527 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3528 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3529 types.
3530 (omp_nest_lock_t): Change owner into void *, add lock field.
3531 * config/posix95/omp-lock.h: Include semaphore.h.
3532 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3533 (omp_lock_t): Use sem_t instead of mutex if semaphores
3534 aren't broken.
3535 (omp_nest_lock_t): Likewise. Change owner to void *.
3536 * config/posix/omp-lock.h: Include semaphore.h.
3537 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3538 (omp_lock_t): Use sem_t instead of mutex if semaphores
3539 aren't broken.
3540 (omp_nest_lock_t): Likewise. Add owner field.
3541
35422008-06-06 Jakub Jelinek <jakub@redhat.com>
3543
3544 * testsuite/libgomp.c/collapse-1.c: New test.
3545 * testsuite/libgomp.c/collapse-2.c: New test.
3546 * testsuite/libgomp.c/collapse-3.c: New test.
3547 * testsuite/libgomp.c/icv-1.c: New test.
3548 * testsuite/libgomp.c/icv-2.c: New test.
3549 * testsuite/libgomp.c/lib-2.c: New test.
3550 * testsuite/libgomp.c/lock-1.c: New test.
3551 * testsuite/libgomp.c/lock-2.c: New test.
3552 * testsuite/libgomp.c/lock-3.c: New test.
3553 * testsuite/libgomp.c/loop-4.c: New test.
3554 * testsuite/libgomp.c/loop-5.c: New test.
3555 * testsuite/libgomp.c/loop-6.c: New test.
3556 * testsuite/libgomp.c/loop-7.c: New test.
3557 * testsuite/libgomp.c/loop-8.c: New test.
3558 * testsuite/libgomp.c/loop-9.c: New test.
3559 * testsuite/libgomp.c/nested-3.c: New test.
3560 * testsuite/libgomp.c/nestedfn-6.c: New test.
3561 * testsuite/libgomp.c/sort-1.c: New test.
3562 * testsuite/libgomp.c/task-1.c: New test.
3563 * testsuite/libgomp.c/task-2.c: New test.
3564 * testsuite/libgomp.c/task-3.c: New test.
3565 * testsuite/libgomp.c/task-4.c: New test.
3566 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3567 to C++ testsuite default compiler options.
3568 * testsuite/libgomp.c++/collapse-1.C: New test.
3569 * testsuite/libgomp.c++/collapse-2.C: New test.
3570 * testsuite/libgomp.c++/ctor-10.C: New test.
3571 * testsuite/libgomp.c++/for-1.C: New test.
3572 * testsuite/libgomp.c++/for-2.C: New test.
3573 * testsuite/libgomp.c++/for-3.C: New test.
3574 * testsuite/libgomp.c++/for-4.C: New test.
3575 * testsuite/libgomp.c++/for-5.C: New test.
3576 * testsuite/libgomp.c++/loop-8.C: New test.
3577 * testsuite/libgomp.c++/loop-9.C: New test.
3578 * testsuite/libgomp.c++/loop-10.C: New test.
3579 * testsuite/libgomp.c++/task-1.C: New test.
3580 * testsuite/libgomp.c++/task-2.C: New test.
3581 * testsuite/libgomp.c++/task-3.C: New test.
3582 * testsuite/libgomp.c++/task-4.C: New test.
3583 * testsuite/libgomp.c++/task-5.C: New test.
3584 * testsuite/libgomp.c++/task-6.C: New test.
3585 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3586 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3587 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3588 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3589 * testsuite/libgomp.fortran/collapse1.f90: New test.
3590 * testsuite/libgomp.fortran/collapse2.f90: New test.
3591 * testsuite/libgomp.fortran/collapse3.f90: New test.
3592 * testsuite/libgomp.fortran/collapse4.f90: New test.
3593 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3594 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3595 * testsuite/libgomp.fortran/lib4.f90: New test.
3596 * testsuite/libgomp.fortran/lock-1.f90: New test.
3597 * testsuite/libgomp.fortran/lock-2.f90: New test.
3598 * testsuite/libgomp.fortran/nested1.f90: New test.
3599 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3600 * testsuite/libgomp.fortran/strassen.f90: New test.
3601 * testsuite/libgomp.fortran/tabs1.f90: New test.
3602 * testsuite/libgomp.fortran/tabs2.f: New test.
3603 * testsuite/libgomp.fortran/task1.f90: New test.
3604 * testsuite/libgomp.fortran/task2.f90: New test.
3605 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3606 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3607 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3608 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3609 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3610
7a0112e7
JJ
36112008-05-23 Jakub Jelinek <jakub@redhat.com>
3612
3613 PR c++/36308
3614 * testsuite/libgomp.c++/ctor-11.C: New test.
3615 * testsuite/libgomp.c++/ctor-12.C: New test.
3616
91a5b394
JJ
36172008-05-15 Janis Johnson <janis187@us.ibm.com>
3618
3619 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3620
c18c98c0
JJ
36212008-05-07 Jakub Jelinek <jakub@redhat.com>
3622
3623 PR middle-end/36106
3624 * testsuite/libgomp.c/atomic-5.c: New test.
3625 * testsuite/libgomp.c/atomic-6.c: New test.
3626 * testsuite/libgomp.c/autopar-1.c: New test.
3627
6d26724a
RW
36282008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3629
3630 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3631 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3632 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3633 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3634 * configure: Regenerate.
3635 * Makefile.in, testsuite/Makefile.in: Likewise.
3636
deb984e6
PB
36372008-04-18 Paolo Bonzini <bonzini@gnu.org>
3638
3639 PR bootstrap/35457
3640 * aclocal.m4: Regenerate.
3641 * configure: Regenerate.
3642
9e775963
JJ
36432008-03-18 Jakub Jelinek <jakub@redhat.com>
3644
8119fc93
JJ
3645 PR middle-end/35611
3646 * testsuite/libgomp.c/atomic-4.c: New test.
3647
9e775963
JJ
3648 PR libgomp/35625
3649 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3650 (gomp_iter_guided_next): Likewise.
3651 * testsuite/libgomp.c/pr35625.c: New test.
3652
38d24731
RW
36532008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3654
3655 * aclocal.m4: Regenerate.
3656 * configure: Likewise.
3657 * Makefile.in: Likewise.
3658 * testsuite/Makefile.in: Likewise.
3659
d0fb20be
JJ
36602008-03-13 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR middle-end/35185
3663 * testsuite/libgomp.c++/pr35185.C: New test.
3664
7c8f7639
JJ
36652008-03-12 Jakub Jelinek <jakub@redhat.com>
3666
3667 PR middle-end/35549
3668 * testsuite/libgomp.c/pr35549.c: New test.
3669
251923f5
JJ
36702008-03-06 Jakub Jelinek <jakub@redhat.com>
3671
3672 * testsuite/libgomp.c/atomic-3.c: New test.
3673
f489fba1
FXC
36742008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3675
3676 PR fortran/33197
251923f5 3677 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
3678 .F08 file suffixes.
3679
a1b25e49
PG
36802008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3681
3682 PR libgomp/33131
3683 * configure.ac: Add ACX_HEADER_STRING.
3684 * env.c: Include strings.h.
3685 * aclocal.m4: Regenerate.
3686 * config.h.in: Regenerate.
3687 * configure: Regenerate.
3688 * Makefile.in: Regenerate.
3689 * testsuite/Makefile.in: Regenerate.
3690
6837b3b8
JJ
36912008-02-15 Jakub Jelinek <jakub@redhat.com>
3692
ac84c062
JJ
3693 PR middle-end/35196
3694 * testsuite/libgomp.c/pr35196.c: New test.
3695
6837b3b8
JJ
3696 PR middle-end/35130
3697 * testsuite/libgomp.fortran/pr35130.f90: New test.
3698 * testsuite/libgomp.c/pr35130.c: New test.
3699
c256730c
JJ
37002008-01-25 Jakub Jelinek <jakub@redhat.com>
3701
3702 PR middle-end/33880
3703 * testsuite/libgomp.c/pr33880.c: New test.
3704 * testsuite/libgomp.fortran/pr33880.f90: New test.
3705
c8e95542 37062008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
3707
3708 * configure: Regenerate.
3709
0f3e711e
JJ
37102008-01-08 Jakub Jelinek <jakub@redhat.com>
3711
3712 * configure.ac: Move futex checking into ../config/futex.m4.
3713 * configure: Rebuilt.
3714 * aclocal.m4: Rebuilt.
3715 * Makefile.in: Rebuilt.
3716
3717 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3718 2007-10-15 ../config/tls.m4 change.
3719
5259c813
JJ
37202007-12-19 Jakub Jelinek <jakub@redhat.com>
3721
3722 PR c++/34513
3723 * testsuite/libgomp.c/pr34513.c: New test.
3724 * testsuite/libgomp.c++/pr34513.C: New test.
3725
ae8d8879
JH
37262007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3727
3728 PR target/32765
3729 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3730
2b4cf991
JJ
37312007-12-04 Jakub Jelinek <jakub@redhat.com>
3732
3733 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3734
d2dda7fe
JJ
37352007-12-03 Jakub Jelinek <jakub@redhat.com>
3736
3737 * testsuite/libgomp.c/private-1.c: New test.
3738
d683ec81
PB
37392007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3740 Paolo Bonzini <bonzini@gnu.org>
3741
3742 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3743 instead of 'VPATH ='.
3744 * Makefile.in: Regenerate.
3745
a7415017
MK
37462007-11-23 Matthias Klose <doko@ubuntu.com>
3747
3748 * configure.ac: Adjust makeinfo version check.
3749 * configure: Regenerate.
3750
78e47463
JJ
37512007-11-10 Jakub Jelinek <jakub@redhat.com>
3752
3753 PR fortran/34020
3754 * testsuite/libgomp.fortran/pr34020.f90: New test.
3755
239371f9
JJ
37562007-11-06 Jakub Jelinek <jakub@redhat.com>
3757
3758 PR c++/33894
3759 * testsuite/libgomp.c++/atomic-1.C: New test.
3760
98a5fa94
JJ
37612007-10-25 Jakub Jelinek <jakub@redhat.com>
3762
3763 PR libgomp/33275
3764 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3765 Make x and y integers rather than (implicit) reals. Add private (j)
3766 clause to the last omp parallel.
3767
3afcaaf4
MR
37682007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3769
3770 * configure: Regenerate following changes to ../config/tls.m4.
3771
bd69daef
JJ
37722007-09-28 Jakub Jelinek <jakub@redhat.com>
3773
3774 * testsuite/libgomp.fortran/stack.f90: New test.
3775
1d0bd356
DS
37762007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3777
3778 * config/mingw32/proc.c: New file.
3779
b3172cab
UB
37802007-09-05 Uros Bizjak <ubizjak@gmail.com>
3781
3782 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3783 (main): Use __get_cpuid to get i386 target fetaures.
3784 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3785 (main): Use __get_cpuid to get x86_64 target fetaures.
3786
6da17392
JH
37872007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3788
3789 PR target/32765
3790 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3791 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3792
e1c82219
JJ
37932007-07-12 Jakub Jelinek <jakub@redhat.com>
3794
3795 PR fortran/32550
3796 * testsuite/libgomp.fortran/pr32550.f90: New test.
3797 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3798
12a27363
L
37992007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3800
3801 * aclocal.m4: Regenerated.
3802
5349080d
TB
38032007-07-05 Tobias Burnus <burnus@net-b.de>
3804
3805 PR fortran/32359
3806 * testsuite/libgomp.fortran/pr32359.f90: New.
3807
4f9c450c
JJ
38082007-07-02 Jakub Jelinek <jakub@redhat.com>
3809
3810 PR libgomp/32468
3811 * sections.c (GOMP_parallel_sections_start): Only decrease
3812 number of threads to COUNT if dyn_var is true.
3813 * testsuite/libgomp.c/pr32468.c: New test.
3814
28c67ed7
RO
38152007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3816
3817 PR libgomp/26308
3818 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3819
64964499
JJ
38202007-06-21 Jakub Jelinek <jakub@redhat.com>
3821
3822 PR middle-end/32362
3823 * testsuite/libgomp.c/pr32362-1.c: New test.
3824 * testsuite/libgomp.c/pr32362-2.c: New test.
3825 * testsuite/libgomp.c/pr32362-3.c: New test.
3826
46d8fbd1
JJ
38272007-06-07 Jakub Jelinek <jakub@redhat.com>
3828
3829 * team.c (gomp_team_start): Fix setting up thread_attr
3830 stack size.
3831
82a6cadf
PB
38322007-06-02 Paolo Bonzini <bonzini@gnu.org>
3833
3834 * configure: Regenerate.
3835
1cf3d07d
SE
38362007-05-23 Steve Ellcey <sje@cup.hp.com>
3837
3838 * Makefile.in: Regenerate.
3839 * configure: Regenerate.
3840 * aclocal.m4: Regenerate.
3841 * testsuite/Makefile.in: Regenerate.
3842
12aac30b
JJ
38432007-05-04 Jakub Jelinek <jakub@redhat.com>
3844
3845 * config/linux/proc.c: New file.
3846
f1028b02
JJ
3847 PR libgomp/28482
3848 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3849
06785a48
DF
38502007-04-19 Daniel Franke <franke.daniel@gmail.com>
3851
3852 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3853
b3b08ba0
MK
38542007-04-16 Matthias Klose <doko@debian.org>
3855
3856 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3857 flags if not building with -m64.
3858 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3859 flag for i?86-*-* targets, if current target matches -m64.
3860
6b2c5ce0
SE
38612007-04-14 Steve Ellcey <sje@cup.hp.com>
3862
3863 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3864 * Makefile.in: Regenerate.
3865
dd56fe7c
JDA
38662007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3867
3868 PR testsuite/31369
3869 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3870 ld_library_path.
3871 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3872
a0884cf0
JJ
38732007-04-04 Jakub Jelinek <jakub@redhat.com>
3874
3875 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3876 decls.
3877 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3878 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3879 (parse_affinity): New function.
3880 (initialize_env): Call it and gomp_init_affinity.
3881 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3882 create new pthread_attr_t and call gomp_init_thread_affinity
3883 on it for each thread before passing the attribute to pthread_create.
3884 * config/linux/affinity.c: New file.
3885 * config/posix/affinity.c: New file.
3886 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3887 * configure: Rebuilt.
3888 * config.h.in: Rebuilt.
3889 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3890 * Makefile.in: Rebuilt.
3891
1850744b
AT
38922007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3893
3894 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3895 *-*-darwin*.
3896 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3897 and use it if found.
3898
516f1ed8
UB
38992007-03-18 Uros Bizjak <ubizjak@gmail.com>
3900
3901 * testsuite/config/default.exp: New file.
3902 * testsuite/lib/libgomp.exp: New file.
3903 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3904 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3905 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3906 (libgomp_load): Remove.
3907 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3908 always_ld_library_path, not ld_library_path. Set additional_flags
3909 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3910 (target_compile): Do not call libgomp_init. Append lang_library_path
3911 and lang_link_flags to options.
3912 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3913 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3914 here.
3915 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3916 always_ld_library_path. Set LD_LIBRARY_PATH here.
3917 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3918 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3919 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3920 CX8 flag.
3921 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3922 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3923 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3924 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3925 * testsuite/libgomp.c/atomic-10.c: Ditto.
3926
2ada56f5
JJ
39272007-03-21 Jakub Jelinek <jakub@redhat.com>
3928
3929 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3930 dg-final cleanup-modules line.
3931 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3932 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3933 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3934 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3935 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3936 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3937 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3938
f210f1cd
AS
39392007-03-18 Andreas Schwab <schwab@suse.de>
3940
3941 * acinclude.m4: Adjust regular expression for ld version
3942 extraction.
3943 * configure: Regenerate.
3944
c4dc950d
BM
39452007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3946
3947 * Makefile.am: Add install-pdf target as copied from
3948 automake v1.10 rules.
3949 * Makefile.in: Regenerate
3950
e02a048f
JJ
39512007-02-07 Jakub Jelinek <jakub@redhat.com>
3952
78e075d4
JJ
3953 PR libgomp/28486
3954 * configure: Regenerate.
3955
e02a048f
JJ
3956 PR c++/30703
3957 * testsuite/libgomp.c++/pr30703.C: New test.
3958
60def7ed
JJ
39592007-02-02 Jakub Jelinek <jakub@redhat.com>
3960
3961 Revert:
3962 2006-07-05 Eric Christopher <echristo@apple.com>
3963 * configure.ac: Depend addition of -pthread on host OS.
3964 * configure: Regenerate.
3965
f1b0882e
RW
39662007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3967
3968 * libgomp.texi: Fix spacing after abbreviations.
3969
748b9d7c
DF
39702007-01-31 Daniel Franke <franke.daniel@gmail.com>
3971
3972 PR libgomp/30546
3973 * configure.ac: Add check for makeinfo
3974 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3975 if an appropiate version of makeinfo is found.
3976 * aclocal.m4: Regenerated.
3977 * configure: Regenerated.
3978 * Makefile.in: Regenerated.
3979 * testsuite/Makefile.in: Regenerated.
3980
14734fc7
DF
39812007-01-29 Daniel Franke <franke.daniel@gmail.com>
3982
3983 PR libgomp/30540
3984 * libgomp.texi: More about implementation-dependent settings.
3985
7befd5d2
TB
39862007-01-26 Tobias Burnus <burnus@net-b.de>
3987
3988 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3989
4288fea2
JJ
39902007-01-24 Jakub Jelinek <jakub@redhat.com>
3991
3992 PR middle-end/30494
3993 * testsuite/libgomp.c/pr30494.c: New test.
3994
627ab4b8
TT
39952007-01-15 Tom Tromey <tromey@redhat.com>
3996
3997 * configure: Rebuilt.
3998 * configure.ac: Fixed comment.
3999
7c2b7f45
DF
40002007-01-14 Daniel Franke <franke.daniel@gmail.com>
4001
4002 * libgomp.texi: Document implementation specific default values of
4003 environment variables.
4004
3721b9e1
DF
40052006-12-21 Daniel Franke <franke.daniel@gmail.com>
4006
4007 PR libgomp/28209
4008 * libgomp.texi: New file.
4009 * configure.ac: Add --enable-generated-files-in-srcdir option.
4010 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4011 files to srcdir.
4012 * Makefile.in: Regenerated.
4013 * config.h.in: Regenerated.
4014 * testsuite/Makefile.in: Regenerated.
4015 * NOTES: Removed.
4016
62bd6216
DF
40172006-12-04 Daniel Franke <franke.daniel@gmail.com>
4018
4019 PR libgomp/29949
4020 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4021
aad741f4
EB
40222006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4023
4024 * configure: Regenerate.
4025
22568cc6
JJ
40262006-12-04 Jakub Jelinek <jakub@redhat.com>
4027
4028 PR libgomp/29947
4029 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4030 start if there shouldn't be any loop iterations.
4031 (gomp_loop_ordered_static_start): Remove start == end test.
4032 * testsuite/libgomp.c/pr29947-1.c: New test.
4033 * testsuite/libgomp.c/pr29947-2.c: New test.
4034
a9690009
EB
40352006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4036
4037 * configure.tgt: Force initial-exec TLS model on Linux only.
4038
597c25e6
DJ
40392006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4040
4041 * configure: Regenerated.
4042
6acf0b38
UB
40432006-11-09 Uros Bizjak <ubizjak@gmail.com>
4044
4045 * env.c (parse_schedule): Reject out of range values.
4046 (parse_unsigned_long): Reject out of range, negative or zero values.
4047
a7a53ca5
JJ
40482006-10-29 Jakub Jelinek <jakub@redhat.com>
4049
4050 PR fortran/29629
4051 * testsuite/libgomp.fortran/pr29629.f90: New test.
4052
6d4d216a
EB
40532006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4054
4055 PR libgomp/29494
4056 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4057 * config/posix95: New directory.
4058 * config/posix95/omp-lock.h: New file.
4059 * config/posix95/lock.c: Likewise.
4060
5b043f08
GK
40612006-10-14 Geoffrey Keating <geoffk@apple.com>
4062
4063 * aclocal.m4: Regenerate.
4064 * configure: Regenerate.
4065
b50019f0
DS
40662006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4067
4068 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4069 '<' to '<='.
4070
8887708e
DS
40712006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4072
4073 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4074 test.
4075 * configure: Regenerate.
4076 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4077
9b9e4cd6
JJ
40782006-09-26 Jakub Jelinek <jakub@redhat.com>
4079
a70ad3bb
JJ
4080 PR middle-end/25261
4081 PR middle-end/28790
4082 * testsuite/libgomp.c/nestedfn-4.c: New test.
4083 * testsuite/libgomp.c/nestedfn-5.c: New test.
4084 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4085
9b9e4cd6
JJ
4086 PR fortran/29097
4087 * testsuite/libgomp.fortran/condinc1.f: New test.
4088 * testsuite/libgomp.fortran/condinc2.f: New test.
4089 * testsuite/libgomp.fortran/condinc3.f90: New test.
4090 * testsuite/libgomp.fortran/condinc4.f90: New test.
4091 * testsuite/libgomp.fortran/condinc1.inc: New file.
4092
2fb31455
TT
40932006-09-18 Tom Tromey <tromey@redhat.com>
4094
4095 * configure: Rebuilt.
4096
c663e301
JM
40972006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4098
4099 PR c/28768
4100 PR preprocessor/14634
4101 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4102 to AC_DEFINE.
4103 * configure: Regenerate.
4104
38371be9
SK
41052006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4106
4107 * testsuite/libgomp.fortran/reduction3.f90: Change
4108 -2147483648 to -huge(i)-1 to avoid overflow.
4109 * testsuite/libgomp.fortran/reduction4.f90: Change
4110 Z'ffffffff' to not(0) to avoid overflow.
4111
571d5ac5
JM
41122006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4113
4114 PR libgomp/25938
4115 * Makefile.am (libsubincludedir): New.
4116 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4117 * Makefile.in: Regenerate.
4118
89b3e3cd
JJ
41192006-08-17 Jakub Jelinek <jakub@redhat.com>
4120
4121 PR libgomp/28725
4122 * env.c: Include ctype.h.
4123 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4124 leading and/or trailing whitespace and compare strings case
4125 insensitively.
4126
742fae05
JJ
41272006-07-16 Jakub Jelinek <jakub@redhat.com>
4128
4129 PR fortran/28390
4130 * testsuite/libgomp.fortran/pr28390.f: New test.
4131
a1daed2d
EC
41322006-07-05 Eric Christopher <echristo@apple.com>
4133
4134 * configure.ac: Depend addition of -pthread on host OS.
4135 * configure: Regenerate.
4136
5d7b5199
JJ
41372006-06-21 Jakub Jelinek <jakub@redhat.com>
4138
4139 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4140 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4141 defined.
4142
fe5568e9
JJ
41432006-06-20 Jakub Jelinek <jakub@redhat.com>
4144
4145 PR libgomp/26175
4146 PR libgomp/26477
4147 * configure.ac: If neither --enable-linux-futex nor
4148 --disable-linux-futex is passed, determine the default by checking
4149 for compiling and/or running against NPTL. With --enable-linux-futex,
4150 check if SYS_gettid and SYS_futex are defined.
4151 * configure: Rebuilt.
4152
c3b11a40
RH
41532006-06-14 Richard Henderson <rth@redhat.com>
4154
4155 PR libgomp/28008
4156 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4157 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4158
d0d1b24d
RH
41592006-06-09 Richard Henderson <rth@redhat.com>
4160
4161 * env.c (gomp_nthreads_var): Change to unsigned long.
4162 (gomp_run_sched_chunk): Likewise.
4163 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4164 (initialize_env): Initialize gomp_thread_attr.
4165 * libgomp.h (gomp_nthreads_var): Update decl.
4166 (gomp_run_sched_chunk): Likewise.
4167 (gomp_thread_attr): Declare.
4168 * team.c (gomp_thread_attr): Export.
4169 (initialize_team): Don't initialize it.
4170
cd75853e
JJ
41712006-06-09 Jakub Jelinek <jakub@redhat.com>
4172
4173 PR fortran/27916
4174 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4175 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4176
33815e0c
FXC
41772006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4178
4179 * config/mingw32/time.c: New file.
4180 * configure.tgt: Use it.
4181
6667de0d
CD
41822006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4183
4184 * Makefile.am: Add install-html target. Add install-html to .PHONY
4185 * Makefile.in: Regenerate.
4186
e962c46b
JDA
41872006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4188
4189 PR libgomp/27612
4190 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4191 * testsuite/libgomp.c/critical-1.c: Likewise.
4192 * testsuite/libgomp.c/loop-1.c: Likewise.
4193 * testsuite/libgomp.c/loop-2.c: Likewise.
4194 * testsuite/libgomp.c/single-1.c: Likewise.
4195 * testsuite/libgomp.c/ordered-1.c: Likewise.
4196 * testsuite/libgomp.c/ordered-2.c: Likewise.
4197
eeb1d9e0
JJ
41982006-05-15 Jakub Jelinek <jakub@redhat.com>
4199
4200 PR middle-end/27416
4201 * libgomp.fortran/pr27416-1.f90: New test.
4202
693d710f
JJ
42032006-05-03 Jakub Jelinek <jakub@redhat.com>
4204
4205 PR fortran/27395
4206 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4207 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4208
8ca5b2a2
JJ
42092006-05-02 Jakub Jelinek <jakub@redhat.com>
4210
4211 PR c++/26943
4212 * testsuite/libgomp.c/pr26943-1.c: New test.
4213 * testsuite/libgomp.c/pr26943-2.c: New test.
4214 * testsuite/libgomp.c/pr26943-3.c: New test.
4215 * testsuite/libgomp.c/pr26943-4.c: New test.
4216 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4217 * testsuite/libgomp.c++/pr26943.C: New test.
4218
077b0dfb
JJ
42192006-05-02 Jakub Jelinek <jakub@redhat.com>
4220
4221 PR middle-end/27337
4222 * testsuite/libgomp.c++/pr27337.C: New test.
4223
91b6c26d
JJ
42242006-04-26 Jakub Jelinek <jakub@redhat.com>
4225
4226 PR c/26171
4227 * testsuite/libgomp.c/pr26171.c: New test.
4228
60e1758f
RH
42292006-04-25 Richard Henderson <rth@redhat.com>
4230
4231 PR libgomp/25865
4232 * configure.ac: Use GCC_CHECK_TLS.
4233 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4234 * Makefile.in, aclocal.m4, configure: Regenerate.
4235
615baed7
MK
42362006-04-10 Matthias Klose <doko@debian.org>
4237
4238 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4239 directory names containing underscores.
4240
fae2b46b
JJ
42412006-03-21 Jakub Jelinek <jakub@redhat.com>
4242
4243 PR c++/26691
4244 * testsuite/libgomp.c++/pr26691.C: New test.
4245
11a5f608
JJ
42462006-03-13 Jakub Jelinek <jakub@redhat.com>
4247
4248 * testsuite/libgomp.fortran/retval2.f90: New test.
4249
1799e5d5
RH
42502006-03-09 Diego Novillo <dnovillo@redhat.com>
4251
4252 * testsuite/libgomp.c++: New directory.
4253
d349482e
AT
42542006-02-25 Shantonu Sen <ssen@opendarwin.org>
4255
4256 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4257 * config/posix/sem.c: Implement the above.
4258
42592006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4260
4261 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4262 define HAVE_BROKEN_POSIX_SEMAPHORES.
4263 * configure: Rebuilt.
4264 * config.h.in: Rebuilt.
4265
124452c9
FXC
42662006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4267
4268 PR bootstrap/26161
4269 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4270 for the other pthread check.
4271 * configure: Regenerate.
4272 * config.h.in: Regenerate.
4273
dd8d6dfe
JJ
42742006-02-15 Jakub Jelinek <jakub@redhat.com>
4275
4276 PR libgomp/25938
4277 PR libgomp/25984
4278 * Makefile.am (fincludedir): New variable.
4279 (nodist_include_HEADERS): Remove Fortran files.
4280 (nodist_finclude_HEADERS): New variable.
4281 * Makefile.in: Regenerated.
4282
6c7a4dfd
JJ
42832006-02-13 Jakub Jelinek <jakub@redhat.com>
4284
4285 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4286 Remove tests for returning assumed character length arrays.
4287
5142e08b
RS
42882006-02-12 Roger Sayle <roger@eyesopen.com>
4289 John David Anglin <dave@hiauly1.hia.nrc.ca>
4290
4291 PR libgomp/25936
4292 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 4293
5821fba8
UW
42942006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4295
4296 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4297
cb2bbc67
EB
42982006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4299
4300 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4301 part of LD_LIBRARY_PATH manually.
4302
f05ee80c
L
43032006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4304
4305 PR libgomp/25852
4306 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4307 libgomp_init.
4308
03b8fe49
PB
43092005-01-25 Paolo Bonzini <bonzini@gnu.org>
4310
4311 PR libgomp/25884
f05ee80c
L
4312 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4313 * configure.ac (PERL): Don't set.
4314 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4315 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4316 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4317 * omp.h.in: Wrap the new configure substitutions with @ characters.
4318 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4319 * aclocal.m4, configure, Makefile.in: Regenerate.
4320 * mkomp_h.pl: Delete.
03b8fe49 4321
18cbfd85
PB
43222005-01-24 Paolo Bonzini <bonzini@gnu.org>
4323
4324 PR libgomp/25259
4325 * configure.ac: Use GCC_HEADER_STDINT.
4326 * libgomp.h: Include gstdint.h.
4327 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4328 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4329
c41303c6
RH
43302006-01-24 Richard Henderson <rth@redhat.com>
4331
4332 PR libgomp/25942
4333 * configure.ac: Add AM_MAINTAINER_MODE.
4334 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4335
149b9553
DN
43362006-01-24 Diego Novillo <dnovillo@redhat.com>
4337
4338 * Makefile.in: Regenerate.
4339 * testsuite/Makefile.in: Regenerate.
4340 * aclocal.m4: Regenerate.
4341
192a50ad
AT
43422006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4343
4344 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4345 Solaris.
4346 * configure.ac: Add check for loadavg.h.
4347 (link_gomp): Adjust comment.
4348 * configure: Regenerate.
4349 * config.h.in: Regenerate.
4350
a55b8e18
SE
43512006-01-21 Steve Ellcey <sje@cup.hp.com>
4352
4353 PR libgomp/25877
4354 * configure.ac: Remove check for alloca.h.
4355 * configure: Regenerate.
4356 * config.h.in: Regenerate.
4357 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4358 * team.c: Remove use of alloca.h.
4359 Call gomp_alloca instead of alloca.
4360
692eeb34
SE
43612006-01-20 Steve Ellcey <sje@cup.hp.com>
4362
4363 PR libgomp/25877
4364 * team.c: Add include of alloca.h.
4365 * configure.ac: Add check for alloca.h.
4366 * configure: Regenerate.
4367 * config.h.in: Regenerate.
4368
953ff289
DN
43692006-01-17 Jakub Jelinek <jakub@redhat.com>
4370
4371 PR fortran/25219
4372 * testsuite/libgomp.fortran/pr25219.f90: New test.
4373
43742005-12-05 Uros Bizjak <uros@kss-loka.si>
4375
4376 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4377 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4378 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4379 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4380 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4381 testsuite/libgomp.fortran/threadprivate1.f90,
4382 testsuite/libgomp.fortran/threadprivate2.f90,
4383 testsuite/libgomp.fortran/threadprivate3.f90,
4384 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4385 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4386 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4387 effective-target to TLS runtime.
4388
4389 * testsuite/libgomp.fortran/pr25162.f: Require
4390 effective-target TLS runtime.
4391
43922005-12-01 Jakub Jelinek <jakub@redhat.com>
4393
4394 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4395 * testsuite/libgomp.c/nestedfn-3.c: New test.
4396
43972005-11-30 Jakub Jelinek <jakub@redhat.com>
4398
4399 PR fortran/25162
4400 * testsuite/libgomp.fortran/pr25162.f: New test.
4401
44022005-11-28 Jakub Jelinek <jakub@redhat.com>
4403
4404 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4405 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4406
44072005-11-25 Jakub Jelinek <jakub@redhat.com>
4408
4409 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4410 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4411 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4412 single.c, team.c, work.c, config/linux/alpha/futex.h,
4413 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4414 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4415 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4416 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4417 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4418 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4419 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4420 FSF address.
4421
44222005-11-18 Jakub Jelinek <jakub@redhat.com>
4423
4424 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4425 to nodist_noinst_HEADERS.
4426 * Makefile.in: Rebuilt.
4427
4428 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4429 add integer count field.
4430 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4431 omp_nest_lock_t type change.
4432 (omp_init_nest_lock): Likewise. Initialize count to 0.
4433 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4434 Increment count.
4435 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4436 Decrement count.
4437 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4438 Increment count if successful and return the new nesting level.
4439 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4440 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4441 * testsuite/libgomp.c/lib-1.c: New test.
4442 * testsuite/libgomp.fortran/lib1.f90: New test.
4443 * testsuite/libgomp.fortran/lib2.f: New test.
4444 * testsuite/libgomp.fortran/lib3.f: New test.
4445
44462005-11-17 Richard Henderson <rth@redhat.com>
4447
4448 PR 24845
4449 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4450 * configure.ac (link_gomp): New. Substitute it.
4451 (AC_CONFIG_FILES): Add libgomp.spec.
4452 * libgomp.spec.in: New file.
4453 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4454 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4455
44562005-11-18 Jakub Jelinek <jakub@redhat.com>
4457
4458 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4459 reduction(-:var) behaving the same as reduction(+:var).
4460 * testsuite/libgomp.c/reduction-4.c: New test.
4461
44622005-11-15 Uros Bizjak <uros@kss-loka.si>
4463
4464 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4465 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4466 testsuite/libgomp.c/copyin-3.c,
4467 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4468 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4469 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4470 testsuite/libgomp.c++/pr24455.C,
4471 testsuite/libgomp.fortran/threadprivate1.f90,
4472 testsuite/libgomp.fortran/threadprivate2.f90,
4473 testsuite/libgomp.fortran/threadprivate3.f90,
4474 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4475 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4476 testsuite/libgomp.fortran/omp_parse3.f90: Require
4477 effective-target TLS.
4478
44792005-11-14 Diego Novillo <dnovillo@redhat.com>
4480
4481 * HEADER: Remove.
4482
44832005-11-13 Jakub Jelinek <jakub@redhat.com>
4484
4485 PR libgomp/24797
4486 * team.c (initialize_team): Pass NULL rather than free as
4487 pthread_key_create destructor. Initialize thread specific data
4488 pointer in initial thread to a static local variable rather than
4489 malloced memory.
4490
44912005-11-11 Uros Bizjak <uros@kss-loka.si>
4492
4493 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4494 its location to ld_library_path.
4495
44962005-11-10 Diego Novillo <dnovillo@redhat.com>
4497
4498 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4499
45002005-11-10 Diego Novillo <dnovillo@redhat.com>
4501
4502 * testsuite/libgomp.c: Rename from libgomp.dg.
4503
45042005-11-09 Diego Novillo <dnovillo@redhat.com>
4505
4506 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4507 threadprivate variable 'i'.
4508
45092005-11-09 Jakub Jelinek <jakub@redhat.com>
4510
4511 * config/linux/s390/futex.h: New file.
4512 * configure.tgt: Use it.
4513
4514 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4515 before the parallel.
4516
45172005-11-08 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR c++/24734
4520 * testsuite/libgomp.c++/master-1.C: New test.
4521
45222005-11-07 Jakub Jelinek <jakub@redhat.com>
4523
4524 * testsuite/libgomp.dg/copyin-3.c: New test.
4525
45262005-11-07 Jakub Jelinek <jakub@redhat.com>
4527
4528 * testsuite/libgomp.fortran/retval1.f90: New test.
4529 * testsuite/libgomp.fortran/vla7.f90: New test.
4530
45312005-11-06 Jakub Jelinek <jakub@redhat.com>
4532
4533 * testsuite/libgomp.fortran/vla2.f90: New test.
4534 * testsuite/libgomp.fortran/vla3.f90: New test.
4535 * testsuite/libgomp.fortran/vla4.f90: New test.
4536 * testsuite/libgomp.fortran/vla5.f90: New test.
4537 * testsuite/libgomp.fortran/vla6.f90: New test.
4538
45392005-11-01 Jakub Jelinek <jakub@redhat.com>
4540
4541 * config/linux/sparc/futex.h: New file.
4542 * configure.tgt: Use it.
4543 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4544
4545 * critical.c: Include stdlib.h.
4546 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4547 ignoring return value.
4548 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4549 LIBGOMP_CHECK_SYNC_BUILTINS check.
4550 * configure: Rebuilt.
4551
45522005-10-31 Jakub Jelinek <jakub@redhat.com>
4553
4554 * testsuite/libgomp.fortran/vla1.f90: New test.
4555
45562005-10-31 Richard Henderson <rth@redhat.com>
4557
4558 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4559 setting 's' in different threads.
4560
45612005-10-31 Jakub Jelinek <jakub@redhat.com>
4562
4563 * libgomp.h (attribute_hidden, ialias): Define.
4564 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4565 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4566 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4567 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4568 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4569 omp_test_lock, omp_test_nest_lock): Likewise.
4570 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4571 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4572 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4573 omp_test_lock, omp_test_nest_lock): Likewise.
4574 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4575 omp_get_dynamic, omp_get_nested): Likewise.
4576 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4577 omp_get_thread_num, omp_in_parallel): Likewise.
4578 * fortran.c (ialias_redirect): Define.
4579 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4580 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4581 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4582 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4583 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4584 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4585 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4586 omp_get_wtime): Add ialias_redirect.
4587
45882005-10-30 Jakub Jelinek <jakub@redhat.com>
4589
4590 * fortran.c: Include stdlib.h.
4591
45922005-10-29 Jakub Jelinek <jakub@redhat.com>
4593
4594 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4595 * Makefile.in: Regenerated.
4596
45972005-10-28 Jakub Jelinek <jakub@redhat.com>
4598
4599 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4600 * libgomp_f.h.in (omp_check_defines): New function.
4601 * env.c: Include libgomp_f.h.
4602 (initialize_env): Call omp_check_defines.
4603
4604 * testsuite/libgomp.dg/copyin-2.c: New test.
4605 * testsuite/libgomp.c++/copyin-2.C: New test.
4606 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4607
4608 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4609 * testsuite/libgomp.fortran/sharing2.f90: New test.
4610
4611 * testsuite/libgomp.dg/copyin-1.c: New test.
4612 * testsuite/libgomp.c++/copyin-1.C: New test.
4613
46142005-10-26 Jakub Jelinek <jakub@redhat.com>
4615
4616 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4617
4618 * testsuite/libgomp.fortran/workshare1.f90: New test.
4619
4620 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4621 only test.
4622 * libgomp.fortran/sharing1.f90: New test.
4623
46242005-10-24 Jakub Jelinek <jakub@redhat.com>
4625
4626 PR c++/24502
4627 * testsuite/libgomp.c++/loop-7.C: New test.
4628
4629 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4630
4631 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4632 * testsuite/libgomp.fortran/reduction6.f90: New test.
4633 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4634
46352005-10-23 Richard Henderson <rth@redhat.com>
4636
4637 * testsuite/libgomp.c++/ctor-1.C: New.
4638 * testsuite/libgomp.c++/ctor-2.C: New.
4639 * testsuite/libgomp.c++/ctor-3.C: New.
4640 * testsuite/libgomp.c++/ctor-4.C: New.
4641 * testsuite/libgomp.c++/ctor-5.C: New.
4642 * testsuite/libgomp.c++/ctor-6.C: New.
4643 * testsuite/libgomp.c++/ctor-7.C: New.
4644 * testsuite/libgomp.c++/ctor-8.C: New.
4645 * testsuite/libgomp.c++/ctor-9.C: New.
4646
46472005-10-21 Diego Novillo <dnovillo@redhat.com>
4648
4649 PR 24455
4650 * testsuite/libgomp.c++/pr24455-1.C: New test.
4651 * testsuite/libgomp.c++/pr24455.C: New test.
4652 * testsuite/libgomp.dg/pr24455-1.c: New test.
4653 * testsuite/libgomp.dg/pr24455.c: New test.
4654
46552005-10-20 Richard Henderson <rth@redhat.com>
4656
4657 * testsuite/libgomp.c++/loop-6.C: New.
4658 * testsuite/libgomp.dg/loop-3.c: New.
4659
46602005-10-20 Jakub Jelinek <jakub@redhat.com>
4661
4662 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4663 explicitly private.
4664 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4665 explicitly shared.
4666
46672005-10-19 Diego Novillo <dnovillo@redhat.com>
4668
4669 * testsuite/libgomp.fortran/jacobi.f: New test.
4670
46712005-10-19 Richard Henderson <rth@redhat.com>
4672
4673 * configure.tgt (i?86-linux): Default to with_arch instead of
4674 CFLAGS. Add -mtune to match target_cpu.
4675 (x86_64-linux): Tune to i686.
4676
4677 * fortran.c (omp_test_nest_lock_): Fix typo.
4678
46792005-10-19 Jakub Jelinek <jakub@redhat.com>
4680
4681 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4682 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4683 * testsuite/libgomp.dg/ordered-3.c: New test.
4684
4685 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4686 Remove volatile keyword.
4687
4688 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4689 in COMMON block to avoid warnings on 64-bit targets.
4690
46912005-10-18 Diego Novillo <dnovillo@redhat.com>
4692
4693 * testsuite/libgomp.dg/shared-3.c: New test.
4694
46952005-10-18 Jakub Jelinek <jakub@redhat.com>
4696
4697 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4698 * testsuite/libgomp.fortran/reduction5.f90: New test.
4699
47002005-10-18 Jakub Jelinek <jakub@redhat.com>
4701
4702 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4703 dg-options.
4704 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4705 flush loop now that __sync_synchronize has proper memory barrier.
4706 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4707 Add -ffixed-form to dg-options.
4708
47092005-10-17 Diego Novillo <dnovillo@redhat.com>
4710
4711 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4712 from subdirectories.
4713 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4714 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4715 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4716 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4717 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4718 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4719 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4720 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4721 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4722 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4723 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4724 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4725 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4726 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4727 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4728 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4729 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4730 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4731 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4732 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4733 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4734 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4735 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4736 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4737 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4738
47392005-10-17 Jakub Jelinek <jakub@redhat.com>
4740
4741 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4742 lang_library_path exists. Use find instead of glob to gather tests.
4743 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4744
47452005-10-17 Diego Novillo <dnovillo@redhat.com>
4746
4747 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4748 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4749 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4750 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4751 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4752 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4753 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4754 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4755 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4756 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4757 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4758 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4759 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4760
47612005-10-15 Jakub Jelinek <jakub@redhat.com>
4762
4763 * testsuite/libgomp.dg/vla-1.c: New test.
4764
4765 * testsuite/libgomp.fortran/reference2.f90: New test.
4766
4767 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4768 declaration of omp_get_thread_num.
4769 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4770 use omp_lib.
4771
4772 * testsuite/libgomp.fortran/reduction1.f90: New test.
4773 * testsuite/libgomp.fortran/reduction2.f90: New test.
4774 * testsuite/libgomp.fortran/reduction3.f90: New test.
4775 * testsuite/libgomp.fortran/reduction4.f90: New test.
4776
47772005-10-13 Richard Henderson <rth@redhat.com>
4778
4779 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4780 * Makefile.in: Regenerate.
4781 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4782 * libgomp.h: Include bar.h.
4783 (struct gomp_barrier): Remove.
4784 (struct gomp_team): Add barrier. Replace master_barrier with
4785 master_release. Replace threads with ordered_release.
4786 (struct gomp_thread): Replace barrier with release.
4787 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4788 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4789 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4790 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4791 (GOMP_single_copy_end): Likewise.
4792 * team.c (gomp_threads_dock): New.
4793 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4794 (gomp_thread_start): Use gomp_barrier_wait.
4795 (new_team, free_team): Update for gomp_team changes.
4796 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4797 (gomp_team_end): Use gomp_barrier_wait.
4798 (initialize_team): Update for gomp_thread changes.
4799 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4800 (gomp_work_share_end_nowait): Use atomic ops when available.
4801 * config/linux/bar.c, config/linux/bar.h: New files.
4802 * config/posix/bar.c, config/posix/bar.h: New files.
4803
48042005-10-13 Jakub Jelinek <jakub@redhat.com>
4805
4806 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4807 * testsuite/libgomp.dg/single-2.c: New test.
4808
4809 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4810 lang_link_flags): Unset, so that they aren't inherited from previously
4811 sourced *.exp.
4812
4813 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4814
48152005-10-12 Richard Henderson <rth@redhat.com>
4816
4817 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4818 (libgomp_init): Use lang_test_file, lang_library_path, and
4819 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4820
4821 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4822 (lang_test_file, lang_link_flags): New.
4823 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4824
4825 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4826 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4827 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4828 testsuite/libgomp.c++/parallel-1.C,
4829 testsuite/libgomp.c++/reduction-1.C,
4830 testsuite/libgomp.c++/reduction-2.C,
4831 testsuite/libgomp.c++/reduction-3.C,
4832 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4833 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4834 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4835 New files, largely cribbed from the C testsuite.
4836
48372005-10-12 Jakub Jelinek <jakub@redhat.com>
4838
4839 * testsuite/libgomp.fortran/character1.f90: New test.
4840 * testsuite/libgomp.fortran/character2.f90: New test.
4841
4842 * testsuite/libgomp.dg/nested-1.c: New test.
4843 * testsuite/libgomp.dg/nested-2.c: New test.
4844 * testsuite/libgomp.fortran/do1.f90: New test.
4845 * testsuite/libgomp.fortran/do2.f90: New test.
4846
4847 * testsuite/libgomp.fortran/reference1.f90: New test.
4848
48492005-10-11 Jakub Jelinek <jakub@redhat.com>
4850
4851 * testsuite/libgomp.dg/reduction-1.c: New test.
4852 * testsuite/libgomp.dg/reduction-2.c: New test.
4853 * testsuite/libgomp.dg/reduction-3.c: New test.
4854
48552005-10-10 Jakub Jelinek <jakub@redhat.com>
4856
4857 * testsuite/libgomp.dg/atomic-1.c: New test.
4858 * testsuite/libgomp.dg/atomic-2.c: New test.
4859
48602005-10-09 Richard Henderson <rth@redhat.com>
4861
4862 * critical.c (atomic_lock): New.
4863 (initialize_critical): Initialize it.
4864 (GOMP_atomic_start, GOMP_atomic_end): New.
4865 * libgomp.map: Export them.
4866 * libgomp_g.h: Declare them.
4867
4868 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4869
48702005-10-02 Richard Henderson <rth@redhat.com>
4871
4872 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4873 to XCFLAGS instead of CFLAGS.
4874
48752005-09-30 Richard Henderson <rth@redhat.com>
4876
4877 * configure.ac: Determine whether -pthread or -lpthread is needed.
4878 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4879 * Makefine.in, configure: Rebuild.
4880
48812005-09-28 Richard Henderson <rth@redhat.com>
4882
4883 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4884 * testsuite/libgomp.dg/omp-single-3.c: New test.
4885
48862005-09-28 Diego Novillo <dnovillo@redhat.com>
4887
4888 * testsuite/libgomp.dg/omp-single-2.c: New test.
4889 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4890
48912005-09-27 Richard Henderson <rth@redhat.com>
4892
4893 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4894 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4895
48962005-09-27 Jakub Jelinek <jakub@redhat.com>
4897
4898 * testsuite/libgomp.dg/omp-loop03.c: New test.
4899
49002005-09-27 Diego Novillo <dnovillo@redhat.com>
4901
4902 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4903
49042005-09-27 Diego Novillo <dnovillo@redhat.com>
4905
4906 * testsuite/libgomp.dg/omp-single-1.c: New test.
4907 * testsuite/libgomp.dg/shared-1.c: Return 0.
4908 Add prototype for abort.
4909 * testsuite/libgomp.dg/shared-2.c: Likewise.
4910
49112005-09-26 Jakub Jelinek <jakub@redhat.com>
4912
4913 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4914 constructs.
4915
49162005-09-26 Diego Novillo <dnovillo@redhat.com>
4917
4918 * testsuite/libgomp.dg/shared-1.c: New test.
4919 * testsuite/libgomp.dg/shared-2.c: New test.
4920
49212005-09-24 Richard Henderson <rth@redhat.com>
4922
4923 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4924
49252005-09-24 Richard Henderson <rth@redhat.com>
4926
4927 * iter.c (gomp_iter_static_next): Round up when computing number
4928 of iterations. Don't bother distributing a remainder equally.
4929
4930 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4931 Don't call srand. Zero b before testing.
4932 (main): New.
4933
49342005-09-24 Jakub Jelinek <jakub@redhat.com>
4935
4936 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4937 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4938
49392005-09-23 Jakub Jelinek <jakub@redhat.com>
4940
4941 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4942 without !$omp end do, followed immediately by subroutine end.
4943
49442005-09-23 Diego Novillo <dnovillo@redhat.com>
4945
4946 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4947
49482005-09-22 Richard Henderson <rth@redhat.com>
4949
4950 * critical.c (GOMP_critical_name_start): Change argument to void**.
4951 Reuse the pointer space if the mutex fits.
4952 (GOMP_critical_name_end): Likewise.
4953 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4954 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4955 (GOMP_critical_name_end): Likewise.
4956 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4957 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4958
49592005-09-20 Richard Henderson <rth@redhat.com>
4960
4961 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4962 (create_lock_lock): New.
4963 (initialize_critical): Initialize it.
4964 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4965 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4966
49672005-09-20 Diego Novillo <dnovillo@redhat.com>
4968
4969 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4970
49712005-09-20 Diego Novillo <dnovillo@redhat.com>
4972
4973 * testsuite/libgomp.dg/omp-loop01.c: New test.
4974 * testsuite/libgomp.dg/omp-loop02.c: New test.
4975
49762005-09-20 Jakub Jelinek <jakub@redhat.com>
4977
4978 * configure.ac (AC_PROG_FC): Add.
4979 (USE_FORTRAN): New automake conditional.
4980 * configure: Rebuilt.
4981 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4982 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4983 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4984 Add rules to build them.
4985 * Makefile.in: Rebuilt.
4986 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4987 OMP_NEST_LOCK_KIND.
4988 * libgomp.map: Add Fortran wrappers.
4989 * libgomp_f.h.in: New file.
4990 * omp_lib.h.in: New file.
4991 * omp_lib.f90.in: New file.
4992 * fortran.c: New file.
4993 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4994 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4995 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4996 libgfortran has been built.
4997 * testsuite/libgomp.fortran/fortran.exp: New file.
4998 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4999 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5000 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5001 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5002 * testsuite/libgomp.fortran/omp_hello.f: New test.
5003 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5004 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5005 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5006 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5007 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5008 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5009 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5010 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5011
50122005-08-30 Richard Henderson <rth@redhat.com>
5013
5014 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5015 function for when aliases are not usable.
5016 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5017 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5018 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5019 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5020 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5021 GOMP_loop_ordered_guided_next): Likewise.
5022 * ordered.c (GOMP_ordered_start): Likewise.
5023
50242005-08-01 Diego Novillo <dnovillo@redhat.com>
5025
5026 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5027 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5028 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5029 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5030 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5031 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5032 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5033 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5034 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5035
50362005-07-07 Eric Christopher <echristo@redhat.com>
5037 Diego Novillo <dnovillo@redhat.com>
5038
5039 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5040 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5041 up code.
5042 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5043 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5044 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5045 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5046 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5047 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5048 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5049
50502005-06-13 Diego Novillo <dnovillo@redhat.com>
5051
5052 * TOPLEVEL.patch: Remove.
5053
50542005-05-16 Richard Henderson <rth@redhat.com>
5055
5056 * configure.ac: Test for clock_gettime.
5057 * config.h.in, configure: Rebuild.
5058 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5059 (omp_get_wtime): Use clock_gettime if available.
5060 (omp_get_wtick): Use clock_getres if available.
5061
50622005-05-11 Richard Henderson <rth@redhat.com>
5063
5064 * config/linux/ia64/futex.h: New file.
5065 * configure.tgt: Use it.
5066
5067 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5068
50692005-05-07 Richard Henderson <rth@redhat.com>
5070
5071 * config/linux/powerpc/futex.h: New file.
5072 * configure.tgt: Use it.
5073
5074 * config/linux/i486/futex.h: Merge ...
5075 * config/linux/x86_64/futex.h: ... into ...
5076 * config/linux/x86/futex.h: ... here.
5077 * configure.tgt: Update to match.
5078
50792005-05-06 Richard Henderson <rth@redhat.com>
5080
5081 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5082 * config/linux/i486/futex.h: Likewise.
5083 * config/linux/x86_64/futex.h: Likewise.
5084
5085 * config/linux/lock.c: New file.
5086 * config/linux/omp-lock.h: New file.
5087
5088 * critical.c, env.h: Don't include omp.h
5089 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5090 * config/posix/time.c: Likewise.
5091 * config/posix/omp-lock.h: New file.
5092 * libgomp.h: Include omp-lock.h and omp.h.
5093 * Makefile.am (nodist_include_HEADERS): New.
5094 (omp.h): New rule.
5095 * configure.ac (PERL): New.
5096 * mkomp_h.pl: New file.
5097 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5098 with templates.
5099 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5100
5101 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5102 build directory. Re-add -march=i486 hack.
5103
5104 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5105 (libgomp_link_flags): Remove.
5106 (libgomp_initialized): Remove.
5107 (libgomp_init): Don't protect from reinitialization. Copy code
5108 from libstdc++ for getting the multilib set correctly.
5109
51102005-05-05 Richard Henderson <rth@redhat.com>
5111
5112 * config/linux/alpha/futex.h: New file.
5113 * configure.tgt (alpha*-*-linux*): Use it.
5114
5115 * config/posix/mutex.c: New file.
5116 * config/posix/sem.c: Use libgomp.h.
5117
5118 * configure.tgt (x86_64-linux): Also test CC for -m32.
5119 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5120
a1daed2d 5121 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
5122 after $gccpath.
5123
5124 * Makefile.am (SUBDIRS): New.
5125 (libgomp_la_LDFLAGS): Add -lpthread.
5126 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5127 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5128
5129 * libgomp_g.h: New file.
5130 * libgomp.h: Split out all public declarations to libgomp_g.h.
5131 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5132 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5133 * config/linux/sem.h: Likewise.
5134 * config/posix/sem.h: Likewise.
5135
5136 * Makefile.am (AM_LDFLAGS): New.
5137 (libgomp_version_script): Split out from ...
5138 (libgomp_la_LDFLAGS): ... here.
5139 (libgomp_version_info): New.
5140 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5141 (LIBGOMP_ENABLE): New.
5142 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5143 (LIBGOMP_ENABLE_SYMVERS): New.
5144 * configure.ac (AC_INIT): Version 1.0.
5145 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5146 (enable-linux-futex): Likewise. Rename from enable-futex.
5147 (libtool_VERSION): New.
5148 (LIBGOMP_ENABLE_SYMVERS): Use it.
5149 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5150 * Makefile.in, aclocal.m4, configure: Rebuild.
5151
5152 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5153 (gomp_mutex_unlock_slow): Fix typo.
5154 * config/linux/sem.c: Similarly.
5155 (gomp_sem_post_slow): Fix typo.
5156 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5157 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5158 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5159
5160 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5161 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5162 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5163 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5164 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5165 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5166 LDFLAGS. Pull enable_futex check to top-level.
5167 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5168 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5169
5170 First attempt at real configury.
5171 * Makefile, config.h: Remove file.
5172 * Makefile.am, Makefile.in: New file.
5173 * acinclude.m4 aclocal.m4: New file.
5174 * configure.ac, configure.tgt, configure: New file.
5175
5176 * config/posix/lock.c: Rename from sys-lock.c.
5177 * config/posix/mutex.h: Rename from sys-mutex.h.
5178 * config/posix/sem.c: Rename from sys-sem.c.
5179 * config/posix/sem.h: Rename from sys-sem.h.
5180 * config/posix/proc.c: Rename from sys-proc.c.
5181 * config/posix/time.c: Rename from sys-proc.c.
5182
5183 * config/linux/mutex.c: New file.
5184 * config/linux/mutex.h: New file.
5185 * config/linux/sem.c: New file.
5186 * config/linux/sem.h: New file.
5187 * config/linux/i486/futex.h: New file.
5188 * config/linux/x86_64/futex.h: New file.
5189
51902005-05-04 Richard Henderson <rth@redhat.com>
5191
5192 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5193 * libgomp.h: Declare them.
5194 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5195 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5196
51972005-05-04 Richard Henderson <rth@redhat.com>
5198
5199 * libgomp-1 code drop
5200
52012005-05-04 Richard Henderson <rth@redhat.com>
5202
5203 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5204 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5205 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5206 (gomp_iter_static_next): Update.
5207 (gomp_ordered_static_next): Update.
5208 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5209 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5210 totally empty range.
5211 (gomp_loop_ordered_static_next): Refine test for calling
5212 gomp_ordered_static_next.
5213 * testsuite/ordered-1.c: Add case for more threads than iterations.
5214
5215 * iter.c (gomp_iter_runtime_next_locked): Remove.
5216 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 5217 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
5218 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5219 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5220 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5221 gomp_loop_ordered_guided_next): Downcase name, make static, add
5222 an external alias with the old name.
5223 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5224 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5225 switch and call one of the above static functions.
5226 * libgomp.h: Update.
5227
5228 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5229 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5230 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5231 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5232 GOMP_loop_ordered_guided_start): Update to match.
5233 * sections.c (GOMP_sections_start): Likewise.
5234 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5235
5236 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5237 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5238 Use bounds check instead of modulus.
5239 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5240 (gomp_ordered_last): Don't sync with ordered_owner here.
5241 (gomp_ordered_next): Likewise.
5242 (gomp_ordered_static_loop_next): Likewise.
5243 * loop.c, libgomp.h: Update to match.
5244
5245 * libgomp.h (GOMP_barrier): Declare.
5246
5247 * testsuite/barrier-1.c: New file.
5248 * testsuite/critical-1.c: New file.
5249 * testsuite/ordered-2.c: New file.
5250 * testsuite/ordered-1.c: New file.
5251 * testsuite/sections-1.c: New file.
5252 * testsuite/single-1.c: New file.
5253 * testsuite/Makefile (TESTS): Add them.
5254
52552005-05-04 Richard Henderson <rth@redhat.com>
5256
5257 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5258 * loop.c (GOMP_loop_static_start): If not the startup thread,
5259 acquire the mutex to wait for initialization complete.
5260 (GOMP_loop_ordered_static_start): Likewise.
5261 (GOMP_loop_ordered_runtime_start): Likewise.
5262 (GOMP_loop_ordered_static_first): Remove.
5263 (GOMP_loop_ordered_dynamic_first): Remove.
5264 (GOMP_loop_ordered_guided_first): Remove.
5265 (GOMP_loop_ordered_runtime_first): Remove.
5266 * ordered.c (gomp_ordered_loop_first): Post to own release when
5267 we're the first thread.
5268 (gomp_ordered_loop_last): Wait on release if not owner.
5269 (gomp_ordered_loop_next): Likewise.
5270 (gomp_ordered_static_loop_init): New.
5271 (gomp_ordered_static_loop_next): Use ordered_owner.
5272 (GOMP_ordered_start): Likewise.
5273 * work.c (gomp_new_work_share): Initialize ordered_owner.
5274
52752005-05-03 Richard Henderson <rth@redhat.com>
5276
5277 * Makefile (OPT): New.
5278 (CFLAGS): Use it.
5279
5280 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5281 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5282 * libgomp.h, libgomp.map, NOTES: Update to match.
5283
5284 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5285 Add initialized and thr members.
5286 (gomp_thread_start): Pause when initially spawned to wait for
5287 the whole team to be created.
5288 (gomp_team_start): Release team members at the end.
5289
5290 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5291 (f_foo_1): Use GOMP_loop_end.
5292 (f_foo_2): Use GOMP_loop_end_nowait.
5293
5294 * testsuite/loop-2.c: New file.
5295 * testsuite/Makefile (TESTS): Add it.
5296
52972005-05-03 Richard Henderson <rth@redhat.com>
5298
5299 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5300 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5301 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5302 initial work_share.
5303
5304 * testsuite/Makefile: New file.
5305 * testsuite/loop-1.c: New file.
5306
53072005-05-03 Richard Henderson <rth@redhat.com>
5308
5309 Initial implementation and checkin.