Update ChangeLog and version files for release
[official-gcc.git] / libgomp / ChangeLog
blob88ca4ded0e5e81dd391189f861c1b6f5d0d8848b
1 2015-04-22  Release Manager
3         * GCC 5.1.0 released.
5 2015-04-08  Julian Brown  <julian@codesourcery.com>
7         * libgomp.h (target_mem_desc: Remove mem_map field.
8         (acc_dispatch_t): Remove open_device_func, close_device_func,
9         get_device_num_func, set_device_num_func, target_data members.
10         Change create_thread_data_func argument to device number instead of
11         generic pointer.
12         * oacc-async.c (assert.h): Include.
13         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14         (acc_wait_all, acc_wait_all_async): Use current host thread's
15         active device, not base_dev.
16         * oacc-cuda.c (acc_get_current_cuda_device)
17         (acc_get_current_cuda_context, acc_get_cuda_stream)
18         (acc_set_cuda_stream): Likewise.
19         * oacc-host.c (host_dispatch): Don't set open_device_func,
20         close_device_func, get_device_num_func or set_device_num_func.
21         * oacc-init.c (base_dev, init_key): Remove.
22         (cached_base_dev): New.
23         (name_of_acc_device_t): New.
24         (acc_init_1): Initialise default-numbered device, not zeroth.
25         (acc_shutdown_1): Close all devices of a given type.
26         (goacc_destroy_thread): Don't use base_dev.
27         (lazy_open, lazy_init, lazy_init_and_open): Remove.
28         (goacc_attach_host_thread_to_device): New.
29         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
30         (acc_get_num_devices): Don't use base_dev.
31         (acc_set_device_type): Reimplement.
32         (acc_get_device_type): Don't use base_dev.
33         (acc_get_device_num): Tweak logic.
34         (acc_set_device_num): Likewise.
35         (acc_on_device): Use acc_get_device_type.
36         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
37         (goacc_lazy_initialize): Reimplement with acc_init and
38         goacc_attach_host_thread_to_device.
39         * oacc-int.h (goacc_thread): Add base_dev field.
40         (base_dev): Remove extern declaration.
41         (goacc_attach_host_thread_to_device): Add prototype.
42         * oacc-mem.c (acc_malloc): Use current thread's device instead of
43         base_dev.
44         (acc_free): Likewise.
45         (acc_memcpy_to_device): Likewise.
46         (acc_memcpy_from_device): Likewise.
47         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
48         goacc_lazy_initialize (throughout).
49         (GOACC_parallel): Use tgt_offset to locate target functions.
50         * target.c (gomp_map_vars): Don't set tgt->mem_map.
51         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
52         (gomp_load_plugin_for_device): Remove open_device, close_device,
53         get_device_num, set_device_num openacc hook initialisation. Don't set
54         openacc.target_data.
55         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
56         (GOMP_OFFLOAD_openacc_close_device)
57         (GOMP_OFFLOAD_openacc_get_device_num)
58         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
59         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
60         to int.
61         * plugin/plugin-nvptx.c (ptx_inited): Remove.
62         (instantiated_devices, ptx_dev_lock): New.
63         (struct ptx_image_data): New.
64         (ptx_devices, ptx_images, ptx_image_lock): New.
65         (fini_streams_for_device): Reorder cuStreamDestroy call.
66         (nvptx_get_num_devices): Remove forward declaration.
67         (nvptx_init): Change return type to bool.
68         (nvptx_fini): Remove.
69         (nvptx_attach_host_thread_to_device): New.
70         (nvptx_open_device): Return struct ptx_device* instead of void*.
71         (nvptx_close_device): Change argument type to struct ptx_device*,
72         return type to void.
73         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
74         (kernel_target_data, kernel_host_table): Remove static globals.
75         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
76         (GOMP_OFFLOAD_init_device): Reimplement.
77         (GOMP_OFFLOAD_fini_device): Likewise.
78         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
79         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
80         (GOMP_OFFLOAD_host2dev): Use ORD argument.
81         (GOMP_OFFLOAD_openacc_open_device)
82         (GOMP_OFFLOAD_openacc_close_device)
83         (GOMP_OFFLOAD_openacc_set_device_num)
84         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
85         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
86         (device number).
88         testsuite/
89         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
91 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
93         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
94         * libgomp.h (struct gomp_memory_mapping): Remove.
95         (struct target_mem_desc): Change type of mem_map from
96         gomp_memory_mapping * to splay_tree_s *.
97         (struct gomp_device_descr): Remove register_image_func, get_table_func.
98         Add load_image_func, unload_image_func.
99         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
100         Remove offload_regions_registered.
101         (gomp_init_tables): Remove.
102         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
103         to splay_tree_s *.
104         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
105         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
106         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
107         offload_regions_registered.
108         Initialize load_image_func, unload_image_func, mem_map.root.
109         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
110         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
111         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
112         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
113         gomp_memory_mapping *.  Use dev's lock and splay_tree.
114         (lookup_dev): Use dev's lock.
115         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
116         (acc_is_present): Likewise.
117         (acc_map_data): Likewise.
118         (acc_unmap_data): Likewise.  Use dev's lock.
119         (present_create_copy): Likewise.
120         (delete_copyout): Pass dev to lookup_host instead of mem_map.
121         (update_dev_host): Likewise.
122         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
123         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
124         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
125         (GOMP_OFFLOAD_get_table): Remove
126         (GOMP_OFFLOAD_load_image): New function.
127         (GOMP_OFFLOAD_unload_image): New function.
128         * target.c (register_lock): New mutex for offload image registration.
129         (num_devices): Do not guard with PLUGIN_SUPPORT.
130         (gomp_realloc_unlock): New static function.
131         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
132         before gomp_fatal.
133         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
134         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
135         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
136         mem_map's.
137         (gomp_unmap_vars): Likewise.
138         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
139         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
140         (gomp_offload_image_to_device): New static function.
141         (GOMP_offload_register): Add mutex lock.
142         Call gomp_offload_image_to_device for all initialized devices.
143         Replace gomp_realloc with gomp_realloc_unlock.
144         (GOMP_offload_unregister): New function.
145         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
146         get_table_func from the plugin with calls to init_device_func and
147         gomp_offload_image_to_device.
148         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
149         to splay_tree_s *.
150         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
151         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
152         (GOMP_target_data): Do not call gomp_init_tables.
153         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
154         (gomp_load_plugin_for_device): Replace register_image and get_table
155         with load_image and unload_image in DLSYM ().
156         (gomp_register_images_for_device): Remove function.
157         (gomp_target_init): Do not initialize current_device.mem_map.*,
158         current_device.offload_regions_registered.
159         Remove call to gomp_register_images_for_device.
160         Do not free offload_images and num_offload_images.
162 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
164         PR fortran/65597
165         * testsuite/libgomp.fortran/pr65597.f90: New test.
167 2015-03-27  Tom de Vries  <tom@codesourcery.com>
169         PR testsuite/65594
170         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
171         (init, check): New function.
172         (foo): Change return type to void.
173         (main): Call init and check.
175 2015-03-27  Tom de Vries  <tom@codesourcery.com>
177         PR testsuite/65594
178         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
179         (foo): Use M for non-inner loops to scale down test-case.
181 2015-03-25  Kai Tietz  <ktietz@redhat.com>
183         PR libgomp/64972
184         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
185         (GOACC_data_start): Likewise.
186         * target.c (gomp_map_vars): Likewise.
188 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
190         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
191         hppa*-*-hpux*.
193 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
195         * testsuite/libgomp.c/target-10.c: New test.
196         * testsuite/libgomp.c++/target-4.C: New test.
198 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
200         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
201         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
203 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
205         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
206         * configure.ac (*-*-rtems*): Assume Pthread is supported.
207         (pthread.h): Check for this header file.
208         * configure: Regenerate.
210 2015-02-25  Tom de Vries  <tom@codesourcery.com>
212         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
213         (check_reduction_op, check_reduction_macro, max, min):
214         Declare.
215         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
216         function.
217         (main): Use new functions.
219 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
221         * target.c (gomp_load_plugin_for_device): Use const char * instead of
222         char * for variables holding dlerror return values.
223         (DLSYM_OPT): Ditto.
225 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
227         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
229 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
230             Cesar Philippidis  <cesar@codesourcery.com>
232         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
233         GOACC_ctaid, and GOACC_nctaid routines.
235 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
237         PR c/64824
238         * testsuite/libgomp.c/atomic-18.c: New test.
239         * testsuite/libgomp.c++/atomic-16.C: New test.
241 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
243         PR c/64824
244         PR c/64868
245         * testsuite/libgomp.c/pr64824.c: New test.
246         * testsuite/libgomp.c/pr64868.c: New test.
247         * testsuite/libgomp.c++/pr64824.C: New test.
248         * testsuite/libgomp.c++/pr64868.C: New test.
250 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
252         PR libgomp/64635
253         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
254         Link with -lpthread.
255         * config/aix/plugin-suffix.h: Delete.
257 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
259         PR libgomp/64635
260         * configure.tgt (*-*-aix*): Use config_path "aix posix".
261         (*-*-darwin*): Use config_path "bsd darwin posix".
262         (*-*-hpux*): Use config_path "hpux posix".
263         * target.c: Add include of plugin-suffix.h and use
264         SONAME_SUFFIX macro.
265         * config/aix/plugin-suffix.h: New file.
266         * config/darwin/plugin-suffix.h: New file.
267         * config/hpux/plugin-suffix.h: New file.
268         * config/posix/plugin-suffix.h: New file.
270 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
272         PR middle-end/64734
273         * libgomp.c/pr64734.c: New test.
275 2015-01-23  Tom de Vries  <tom@codesourcery.com>
277         PR libgomp/64672
278         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
280 2015-01-23  Tom de Vries  <tom@codesourcery.com>
282         PR libgomp/64707
283         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
284         dg-options.
286 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
288         PR libgomp/64625
289         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
290         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
291         formal parameter.  Update all users.
292         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
293         Document unused formal parameter.
295 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
297         * oacc-parallel.c: Don't include <alloca.h>.
298         (GOACC_parallel): Use gomp_alloca instead of alloca.
300 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
302         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
304 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
305             James Norris  <jnorris@codesourcery.com>
306             Tom de Vries  <tom@codesourcery.com>
307             Julian Brown  <julian@codesourcery.com>
308             Cesar Philippidis  <cesar@codesourcery.com>
309             Nathan Sidwell  <nathan@codesourcery.com>
310             Tobias Burnus  <burnus@net-b.de>
312         * Makefile.am (search_path): Add $(top_srcdir)/../include.
313         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
314         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
315         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
316         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
317         Include $(top_srcdir)/plugin/Makefrag.am.
318         (nodist_libsubinclude_HEADERS): Add openacc.h.
319         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
320         openacc.f90, openacc.mod, openacc_kinds.mod.
321         (omp_lib.mod): Generalize into...
322         (%.mod): ... this new rule.
323         (openacc_kinds.mod, openacc.mod): New rules.
324         * plugin/configfrag.ac: New file.
325         * configure.ac: Move plugin/offloading support into it.  Include
326         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
327         * plugin/Makefrag.am: New file.
328         * testsuite/Makefile.am (OFFLOAD_TARGETS)
329         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
330         export.
331         (libgomp-test-support.exp): New rule.
332         (all-local): Depend on it.
333         * Makefile.in: Regenerate.
334         * testsuite/Makefile.in: Regenerate.
335         * config.h.in: Likewise.
336         * configure: Likewise.
337         * configure.tgt: Harden shell syntax.
338         * env.c: Include "oacc-int.h".
339         (parse_acc_device_type): New function.
340         (gomp_debug_var, goacc_device_type, goacc_device_num): New
341         variables.
342         (initialize_env): Initialize those.  Call
343         goacc_runtime_initialize.
344         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
345         (gomp_fatal): Call gomp_vfatal.
346         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
347         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
348         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
349         (splay_tree_node, splay_tree, splay_tree_key)
350         (struct target_mem_desc, struct splay_tree_key_s)
351         (struct gomp_memory_mapping, struct acc_dispatch_t)
352         (struct gomp_device_descr, gomp_acc_insert_pointer)
353         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
354         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
355         (gomp_free_memmap, gomp_fini_device): New declarations.
356         (gomp_vdebug, gomp_debug): New macros.
357         Include "splay-tree.h".
358         * libgomp.map (OACC_2.0): New symbol version.  Use for
359         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
360         acc_set_device_type_h_, acc_get_device_type,
361         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
362         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
363         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
364         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
365         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
366         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
367         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
368         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
369         acc_copyin_array_h_, acc_present_or_copyin,
370         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
371         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
372         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
373         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
374         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
375         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
376         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
377         acc_update_device, acc_update_device_32_h_,
378         acc_update_device_64_h_, acc_update_device_array_h_,
379         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
380         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
381         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
382         acc_is_present_64_h_, acc_is_present_array_h_,
383         acc_memcpy_to_device, acc_memcpy_from_device,
384         acc_get_current_cuda_device, acc_get_current_cuda_context,
385         acc_get_cuda_stream, acc_set_cuda_stream.
386         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
387         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
388         GOACC_update, GOACC_wait, GOACC_get_thread_num,
389         GOACC_get_num_threads.
390         (GOMP_PLUGIN_1.0): New symbol version.  Use for
391         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
392         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
393         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
394         GOMP_PLUGIN_acc_thread.
395         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
396         environment variable.
397         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
398         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
399         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
400         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
401         (splay_tree_remove): New declarations.
402         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
403         (splay_tree_remove, splay_tree_lookup): Move into...
404         * splay-tree.c: ... this new file.
405         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
406         (splay_tree_node, splay_tree, splay_tree_key)
407         (struct target_mem_desc, struct splay_tree_key_s)
408         (struct gomp_device_descr): Don't declare.
409         (num_devices_openmp): New variable.
410         (gomp_get_num_devices ): Use it.
411         (gomp_init_targets_once): New function.
412         (gomp_get_num_devices ): Use it.
413         (get_kind, gomp_copy_from_async, gomp_free_memmap)
414         (gomp_fini_device, gomp_register_image_for_device): New functions.
415         (gomp_map_vars): Add devaddrs parameter.
416         (gomp_update): Add mm parameter.
417         (gomp_init_device): Move most of it into...
418         (gomp_init_tables): ... this new function.
419         (gomp_register_images_for_device): Remove function.
420         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
421         Make them hidden instead of static.
422         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
423         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
424         (GOMP_target_end_data, GOMP_target_update)
425         (gomp_load_plugin_for_device, gomp_target_init): Update for
426         OpenACC changes.
427         * oacc-async.c: New file.
428         * oacc-cuda.c: Likewise.
429         * oacc-host.c: Likewise.
430         * oacc-init.c: Likewise.
431         * oacc-int.h: Likewise.
432         * oacc-mem.c: Likewise.
433         * oacc-parallel.c: Likewise.
434         * oacc-plugin.c: Likewise.
435         * oacc-plugin.h: Likewise.
436         * oacc-ptx.h: Likewise.
437         * openacc.f90: Likewise.
438         * openacc.h: Likewise.
439         * openacc_lib.h: Likewise.
440         * plugin/plugin-host.c: Likewise.
441         * plugin/plugin-nvptx.c: Likewise.
442         * libgomp-plugin.c: Likewise.
443         * libgomp-plugin.h: Likewise.
444         * libgomp_target.h: Remove file after merging content into the
445         former file.  Update all users.
446         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
447         (offload_targets_s, offload_targets_s_openacc): New variables.
448         (check_effective_target_openacc_nvidia_accel_present)
449         (check_effective_target_openacc_nvidia_accel_selected): New
450         procedures.
451         (libgomp_init): Update for OpenACC changes.
452         * testsuite/libgomp-test-support.exp.in: New file.
453         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
454         * testsuite/libgomp.oacc-c/c.exp: Likewise.
455         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
456         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
457         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
458         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
459         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
460         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
461         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
462         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
463         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
464         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
465         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
466         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
467         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
468         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
469         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
470         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
471         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
472         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
473         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
474         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
475         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
476         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
477         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
478         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
479         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
480         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
481         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
482         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
483         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
484         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
485         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
486         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
487         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
488         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
489         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
490         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
491         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
492         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
493         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
494         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
495         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
496         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
497         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
498         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
499         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
500         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
501         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
502         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
503         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
504         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
505         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
506         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
507         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
508         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
509         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
510         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
511         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
512         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
513         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
514         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
515         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
516         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
517         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
518         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
519         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
520         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
521         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
522         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
523         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
524         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
525         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
526         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
527         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
528         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
529         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
530         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
531         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
532         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
533         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
534         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
535         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
536         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
537         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
538         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
539         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
540         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
541         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
542         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
543         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
544         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
545         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
546         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
547         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
548         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
549         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
550         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
551         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
552         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
553         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
554         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
555         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
556         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
557         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
558         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
559         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
560         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
561         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
562         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
563         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
564         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
565         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
566         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
567         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
568         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
569         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
570         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
571         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
572         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
573         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
574         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
575         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
576         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
577         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
578         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
579         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
580         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
581         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
582         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
583         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
584         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
585         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
586         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
587         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
588         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
589         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
590         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
591         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
592         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
593         Likewise.
594         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
595         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
596         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
597         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
598         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
599         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
600         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
601         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
602         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
603         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
604         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
605         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
606         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
607         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
608         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
609         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
610         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
611         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
612         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
613         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
614         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
615         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
616         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
617         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
618         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
619         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
620         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
621         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
622         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
623         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
624         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
625         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
626         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
627         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
628         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
629         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
630         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
631         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
632         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
633         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
634         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
635         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
636         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
637         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
638         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
639         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
640         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
641         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
642         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
643         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
644         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
645         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
646         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
647         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
648         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
649         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
650         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
651         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
652         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
653         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
655 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
656             Julian Brown  <julian@codesourcery.com>
657             David Malcolm  <dmalcolm@redhat.com>
659         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
660         to "GNU Offloading and Multi Processing Runtime Library".  Change
661         all users.
662         * configure: Regenerate.
663         * libgomp.texi: Update.
665 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
667         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
668         "$tgt_dir/lib32".
669         * configure: Regenerate.
671         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
672         "intelmic" in $offload_targets.
674 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
676         Update copyright years.
678         * libgomp.texi: Bump @copying's copyright year.
680 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
682         * testsuite/lib/libgomp.exp: Load target-utils.exp.
683         Move load of target-supportes.exp earlier.
685 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
687         * testsuite/libgomp.c/target-9.c: New test.
689 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
691         * config.h.in: Regenerate.
692         * configure: Regenerate.
693         * configure.ac: Add GCC_CHECK_EMUTLS.
694         * libgomp.h: Add check for USE_EMUTLS: this case
695         is equal to HAVE_TLS.
696         * team.c: Likewise.
698 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
700         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
702 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
703             Ilya Verbin  <ilya.verbin@intel.com>
705         * testsuite/libgomp.c/target-critical-1.c: New test.
707 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
709         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
710         to dg-options unless expensive testing is on.
711         (TESTITERS): Define to N if not defined.
712         (main): Use TESTITERS instead of N.
713         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
714         dg-additional-options depending on whether expensive testing is on.
715         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
716         Decrease N to 100000 and CHUNKSZ to 10000.
718 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
720         PR fortran/63938
721         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
722         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
724 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
726         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
728 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
730         PR bootstrap/63784
731         * configure: Regenerated.
733 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
735         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
736         vect_simd_clones effective target.
737         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
739 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
741         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
742         of 32 as block_size.
743         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
744         instead of 32 as block_size.
746 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
747             Ilya Verbin  <ilya.verbin@intel.com>
749         * Makefile.in: Regenerate.
750         * configure: Regenerate.
751         * configure.ac: Set up offload_additional_options,
752         offload_additional_lib_paths and offload_targets.
753         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
754         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
755         * testsuite/Makefile.in: Regenerate.
756         * testsuite/lib/libgomp.exp (libgomp_init): Append
757         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
758         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
759         build directory to LD_LIBRARY_PATH for intelmic offload targets.
761 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
762             Ilya Verbin  <ilya.verbin@intel.com>
763             Kirill Yukhin  <kirill.yukhin@intel.com>
764             Ilya Tocar  <ilya.tocar@intel.com>
766         * testsuite/lib/libgomp.exp
767         (check_effective_target_offload_device): New.
768         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
769         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
770         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
771         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
772         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
773         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
774         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
775         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
776         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
777         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
778         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
779         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
780         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
781         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
782         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
783         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
784         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
785         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
786         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
787         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
788         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
789         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
790         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
791         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
792         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
793         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
794         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
795         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
796         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
797         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
798         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
799         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
800         * testsuite/libgomp.c/target-7.c: Fix test.
801         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
802         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
803         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
804         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
805         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
806         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
807         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
808         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
809         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
810         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
811         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
812         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
813         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
814         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
815         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
816         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
817         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
818         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
819         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
820         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
821         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
822         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
823         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
824         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
825         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
826         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
827         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
828         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
829         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
830         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
831         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
833 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
834             Ilya Verbin  <ilya.verbin@intel.com>
835             Thomas Schwinge  <thomas@codesourcery.com>
836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
838         * libgomp.map (GOMP_4.0.1): New symbol version.
839         Add GOMP_offload_register.
840         * libgomp_target.h: New file.
841         * splay-tree.h: New file.
842         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
843         (gomp_target_init): New forward declaration.
844         (gomp_is_initialized): New static variable.
845         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
846         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
847         New structures.
848         (offload_images, num_offload_images, devices, num_devices): New static
849         variables.
850         (splay_compare): New static function.
851         (struct gomp_device_descr): New structure.
852         (gomp_get_num_devices): Call gomp_target_init.
853         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
854         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
855         (GOMP_offload_register): New function.
856         (GOMP_target): Arrange for host callback to be performed in a separate
857         initial thread and contention group, inheriting ICVs from
858         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
859         Add device initialization and lookup for target function in splay tree.
860         (GOMP_target_data): Add device initialization and call gomp_map_vars.
861         (GOMP_target_end_data): Call gomp_unmap_vars.
862         (GOMP_target_update): Add device initialization and call gomp_update.
863         (gomp_load_plugin_for_device, gomp_register_images_for_device)
864         (gomp_target_init): New static functions.
866 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
867             Thomas Schwinge  <thomas@codesourcery.com>
868             Ilya Verbin  <ilya.verbin@intel.com>
869             Andrey Turetskiy  <andrey.turetskiy@intel.com>
871         * config.h.in: Regenerate.
872         * configure: Regenerate.
873         * configure.ac: Check for libdl, required for plugin support.
874         (PLUGIN_SUPPORT): Define if plugins are supported.
875         (enable_offload_targets): Support Intel MIC targets.
876         (OFFLOAD_TARGETS): List of target names suitable for offloading.
878 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
880         PR target/63610
881         * configure: Regenerate.
883 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
885         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
887 2014-10-06  Marek Polacek  <polacek@redhat.com>
889         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
890         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
891         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
892         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
894 2014-10-06  Marek Polacek  <polacek@redhat.com>
896         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
897         * testsuite/libgomp.c/nqueens-1.c: Likewise.
898         * testsuite/libgomp.c/pr26943-3.c: Likewise.
899         * testsuite/libgomp.c/pr26943-4.c: Likewise.
900         * testsuite/libgomp.c/pr36802-2.c: Likewise.
901         * testsuite/libgomp.c/pr36802-3.c: Likewise.
902         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
903         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
904         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
905         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
906         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
907         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
908         * testsuite/libgomp.c/omp-single-1.c: Likewise.
909         * testsuite/libgomp.c/omp-single-2.c: Likewise.
910         * testsuite/libgomp.c/omp_matvec.c: Likewise.
911         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
912         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
913         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
914         declarations.
916 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
918         PR libgomp/61200
919         * testsuite/libgomp.c/pr61200.c: New test.
921 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
923         PR c++/63248
924         * testsuite/libgomp.c++/pr63248.C: New test.
926 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
928         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
929         is not zero, but taskgroup->children is NULL and there are
930         any task->children, schedule those instead of waiting.
931         * testsuite/libgomp.c/depend-6.c: New test.
932         * testsuite/libgomp.c/depend-7.c: New test.
933         * testsuite/libgomp.c/depend-8.c: New test.
934         * testsuite/libgomp.c/depend-9.c: New test.
935         * testsuite/libgomp.c/depend-10.c: New test.
937 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
939         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
940         (struct gomp_taskwait): New type.
941         (struct gomp_task): Add taskwait and parent_depends_on, remove
942         in_taskwait and taskwait_sem fields.
943         (gomp_finish_task): Don't destroy taskwait_sem.
944         * task.c (gomp_init_task): Don't init in_taskwait, instead init
945         taskwait and parent_depends_on.
946         (GOMP_task): For if (0) tasks with depend clause that depend on
947         earlier tasks don't defer them, instead call
948         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
949         Initialize redundant_out field, for redundant out entries just
950         move them at the end of linked list instead of removing them
951         completely, and set redundant_out flag instead of redundant.
952         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
953         that task.
954         (gomp_task_run_post_handle_dependers): If parent is in
955         gomp_task_maybe_wait_for_dependencies and newly runnable task
956         is not parent_depends_on, queue it in parent->children linked
957         list after all runnable tasks with parent_depends_on set.
958         Adjust for addition of taskwait indirection.
959         (gomp_task_run_post_remove_parent): If parent is in
960         gomp_task_maybe_wait_for_dependencies and task to be removed
961         is parent_depends_on, decrement n_depend and if needed awake
962         parent.  Adjust for addition of taskwait indirection.
963         (GOMP_taskwait): Adjust for addition of taskwait indirection.
964         (gomp_task_maybe_wait_for_dependencies): New function.
965         * testsuite/libgomp.c/depend-5.c: New test.
967 2014-07-13  Tobias Burnus  <burnus@net-b.de>
969         * testsuite/libgomp.fortran/pr34020.f90: Make compile
970         with TS 18508/Fortran 2015.
972 2014-07-06  Marek Polacek  <polacek@redhat.com>
974         PR c/6940
975         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
977 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
979         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
980         matches regex $lang_source_re, add $lang_include_flags to options.
981         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
982         * testsuite/libgomp.c++/c++.exp: Likewise.
983         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
984         and lang_include_flags instead of adding -fintrinsic-modules-path= to
985         ALWAYS_CFLAGS.
986         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
988 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
990         * testsuite/libgomp.fortran/fortran.exp: Explain
991         gfortran-dg-runtest usage.
993 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
995         * testsuite/libgomp.fortran/simd5.f90: New test.
996         * testsuite/libgomp.fortran/simd6.f90: New test.
997         * testsuite/libgomp.fortran/simd7.f90: New test.
999 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
1001         * testsuite/libgomp.c/for-2.c: Define SC to static for
1002         #pragma omp for simd testing.
1003         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1004         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1005         SC macro.
1006         * testsuite/libgomp.c/simd-14.c: New test.
1007         * testsuite/libgomp.c/simd-15.c: New test.
1008         * testsuite/libgomp.c/simd-16.c: New test.
1009         * testsuite/libgomp.c/simd-17.c: New test.
1010         * testsuite/libgomp.c++/for-10.C: Define SC to static for
1011         #pragma omp for simd testing.
1012         * testsuite/libgomp.c++/simd10.C: New test.
1013         * testsuite/libgomp.c++/simd11.C: New test.
1014         * testsuite/libgomp.c++/simd12.C: New test.
1015         * testsuite/libgomp.c++/simd13.C: New test.
1017         * testsuite/libgomp.fortran/aligned1.f03: New test.
1018         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1019         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1020         tasks with !$omp parallel !$omp single.
1021         * testsuite/libgomp.fortran/target8.f90: New test.
1022         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1023         not to use trim in the combiner, instead call elemental function.
1024         (fn): New elemental function.
1025         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1026         Make elemental.
1027         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1028         omp_in): Likewise.
1029         * testsuite/libgomp.fortran/udr12.f90: New test.
1030         * testsuite/libgomp.fortran/udr13.f90: New test.
1031         * testsuite/libgomp.fortran/udr14.f90: New test.
1032         * testsuite/libgomp.fortran/udr15.f90: New test.
1034 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
1036         * omp_lib.f90.in (openmp_version): Set to 201307.
1037         * omp_lib.h.in (openmp_version): Likewise.
1038         * testsuite/libgomp.c/target-8.c: New test.
1039         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1040         and inbranch clauses.
1041         * testsuite/libgomp.fortran/depend-3.f90: New test.
1042         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1043         openmp_version.
1044         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1045         * testsuite/libgomp.fortran/target1.f90: New test.
1046         * testsuite/libgomp.fortran/target2.f90: New test.
1047         * testsuite/libgomp.fortran/target3.f90: New test.
1048         * testsuite/libgomp.fortran/target4.f90: New test.
1049         * testsuite/libgomp.fortran/target5.f90: New test.
1050         * testsuite/libgomp.fortran/target6.f90: New test.
1051         * testsuite/libgomp.fortran/target7.f90: New test.
1053 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1055         PR fortran/60928
1056         * testsuite/libgomp.fortran/allocatable9.f90: New test.
1057         * testsuite/libgomp.fortran/allocatable10.f90: New test.
1058         * testsuite/libgomp.fortran/allocatable11.f90: New test.
1059         * testsuite/libgomp.fortran/allocatable12.f90: New test.
1060         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1061         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1062         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1063         * testsuite/libgomp.fortran/associate1.f90: New test.
1064         * testsuite/libgomp.fortran/associate2.f90: New test.
1065         * testsuite/libgomp.fortran/procptr1.f90: New test.
1067 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
1069         * testsuite/libgomp.fortran/simd1.f90: New test.
1070         * testsuite/libgomp.fortran/udr1.f90: New test.
1071         * testsuite/libgomp.fortran/udr2.f90: New test.
1072         * testsuite/libgomp.fortran/udr3.f90: New test.
1073         * testsuite/libgomp.fortran/udr4.f90: New test.
1074         * testsuite/libgomp.fortran/udr5.f90: New test.
1075         * testsuite/libgomp.fortran/udr6.f90: New test.
1076         * testsuite/libgomp.fortran/udr7.f90: New test.
1077         * testsuite/libgomp.fortran/udr8.f90: New test.
1078         * testsuite/libgomp.fortran/udr9.f90: New test.
1079         * testsuite/libgomp.fortran/udr10.f90: New test.
1080         * testsuite/libgomp.fortran/udr11.f90: New test.
1082 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
1084         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1085         vect_simd_clones effective target.
1086         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1088 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
1090         PR middle-end/61252
1091         * testsuite/libgomp.c++/simd-9.C: New test.
1093 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
1095         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1096         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1097         texts according to their @menu entry positions.
1099 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
1101         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1102         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1103         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1104         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1105         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1106         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1107         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1108         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1109         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1110         * testsuite/libgomp.fortran/depend-1.f90: New test.
1111         * testsuite/libgomp.fortran/depend-2.f90: New test.
1112         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1113         * testsuite/libgomp.fortran/simd1.f90: New test.
1114         * testsuite/libgomp.fortran/simd2.f90: New test.
1115         * testsuite/libgomp.fortran/simd3.f90: New test.
1116         * testsuite/libgomp.fortran/simd4.f90: New test.
1117         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1119 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
1121         * testsuite/libgomp.c/simd-10.c: New test.
1122         * testsuite/libgomp.c/simd-11.c: New test.
1123         * testsuite/libgomp.c/simd-12.c: New test.
1124         * testsuite/libgomp.c/simd-13.c: New test.
1126 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
1128         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1129         atomic type clauses in any order and optional comma in between.
1130         * testsuite/libgomp.c++/atomic-15.C: Likewise.
1131         * testsuite/libgomp.c/atomic-17.c: Likewise.
1133         * testsuite/libgomp.c/simd-7.c: New test.
1134         * testsuite/libgomp.c/simd-8.c: New test.
1135         * testsuite/libgomp.c/simd-9.c: New test.
1136         * testsuite/libgomp.c/loop-16.c: New test.
1138 2014-04-02  Richard Henderson  <rth@redhat.com>
1140         * config/linux/futex.h (futex_wait): Get error value from errno.
1141         (futex_wake): Likewise.
1143 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
1145         PR c++/60331
1146         * testsuite/libgomp.c++/udr-11.C: New test.
1147         * testsuite/libgomp.c++/udr-12.C: New test.
1148         * testsuite/libgomp.c++/udr-13.C: New test.
1149         * testsuite/libgomp.c++/udr-14.C: New test.
1150         * testsuite/libgomp.c++/udr-15.C: New test.
1151         * testsuite/libgomp.c++/udr-16.C: New test.
1152         * testsuite/libgomp.c++/udr-17.C: New test.
1153         * testsuite/libgomp.c++/udr-18.C: New test.
1154         * testsuite/libgomp.c++/udr-19.C: New test.
1156 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1158         Update copyright years
1160 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1162         * hashtab.h: Use the standard form for the copyright notice.
1164 2014-01-02  Tobias Burnus  <burnus@net-b.de>
1166         * libgomp.texi: Bump @copying's copyright year.
1168 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
1170         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1171         alloca () with __builtin_alloca ().
1172         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1173         * testsuite/libgomp.c/lock-3.c: Likewise.
1174         * testsuite/libgomp.c/pr48591.c: Likewise.
1176 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
1178         PR testsuite/59534
1179         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1180         comparisons.
1182 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1184         PR libgomp/58756
1185         * testsuite/libgomp.c/pr58756.c: New test.
1187 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
1189         PR libgomp/59467
1190         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1191         !$omp parallel.
1193 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
1195         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1196         ALWAYS_CFLAGS.
1197         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1198         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1199         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1200         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1201         Likewise.
1203         * libgomp_g.h: Include <stddef.h> for size_t.
1205         * libgomp.spec.in: Update comment about libgomp's dependencies.
1206         * configure.ac: Likewise.
1207         * configure: Regenerate.
1209 2013-10-16  Tobias Burnus  <burnus@net-b.de>
1211         * libgomp.texi: (Runtime Library Routines): Update references for
1212         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1213         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1214         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1215         (Environment Variables): Update references for OpenMP 4.0. Add
1216         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1217         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1218         order.
1220 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
1222         * env.c (parse_bind_var): Initialize value to avoid
1223         (false positive) warning.
1225 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
1227         PR libgomp/58691
1228         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1229         to check variable.
1230         (gomp_init_num_threads): Move i variable declaration into
1231         #ifdef CPU_ALLOC_SIZE block.
1232         * config/linux/affinity.c (gomp_affinity_init_level): Test
1233         gomp_places_list_len == 0 rather than gomp_places_list == 0
1234         when checking for topology reading error.
1235         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1236         * env.c (parse_affinity): Add ignore argument, if true, don't populate
1237         gomp_places_list, only parse env var and always return false.
1238         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
1239         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1240         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1241         and either of these variables were parsed correctly into a places
1242         list.
1244 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
1245             Jakub Jelinek  <jakub@redhat.com>
1247         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1248         of 5 loopfn matches.
1249         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1250         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1251         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1252         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1253         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1254         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1255         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1256         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1258 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
1260         * Makefile.am (omp_lib.mod): Streamline rule.
1261         * Makefile.in: Regenerate.
1263         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1264         exceptions.
1266         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1267         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1268         * testsuite/libgomp.fortran/lib2.f: Likewise.
1269         * testsuite/libgomp.fortran/lib3.f: Likewise.
1271         * configure.ac: Typo fix.
1272         * configure: Regenerate.
1274         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1275         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1277         * omp.h.in: Don't touch the user's namespace.
1279 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1280             Tobias Burnus  <burnus@net-b.de>
1281             Richard Henderson  <rth@redhat.com>
1283         * target.c: New file.
1284         * Makefile.am (libgomp_la_SOURCES): Add target.c.
1285         * Makefile.in: Regenerated.
1286         * libgomp_g.h (GOMP_task): Add depend argument.
1287         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1288         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1289         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1290         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1291         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1292         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1293         GOMP_taskgroup_start, GOMP_taskgroup_end,
1294         GOMP_parallel_sections): New prototypes.
1295         * fortran.c (omp_is_initial_device): Add ialias_redirect.
1296         (omp_is_initial_device_): New function.
1297         (ULP, STR1, STR2, ialias_redirect): Removed.
1298         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1299         omp_set_default_device_8_, omp_get_default_device_,
1300         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1301         functions.
1302         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1303         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1304         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1305         @@GOMP_4.0.
1306         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1307         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1308         omp_set_default_device, omp_set_default_device_,
1309         omp_set_default_device_8_, omp_get_default_device,
1310         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1311         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1312         omp_get_team_num_): Export @@OMP_4.0.
1313         * team.c (struct gomp_thread_start_data): Add place field.
1314         (gomp_thread_start): Clear thr->thread_pool and
1315         thr->task before returning.  Use gomp_team_barrier_wait_final
1316         instead of gomp_team_barrier_wait.  Initialize thr->place.
1317         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1318         team_cancelled and task_queued_count fields.
1319         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1320         before calling pthread_exit.
1321         (gomp_free_thread): No longer static.  Use
1322         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1323         (gomp_team_start): Add flags argument.  Set
1324         thr->thread_pool->threads_busy to nthreads immediately after creating
1325         new pool.  Use gomp_managed_threads_lock instead of
1326         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
1327         (gomp_team_end): Use gomp_managed_threads_lock instead of
1328         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
1329         of gomp_team_barrier_wait.  If team->team_cancelled, call
1330         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1331         rather than thr->ts.work_share.
1332         (initialize_team): Don't call gomp_sem_init here.
1333         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1334         caller.
1335         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1336         * env.c (gomp_global_icv): Add default_device_var, target_data and
1337         bind_var initializers.
1338         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1339         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1340         gomp_places_list_len): New variables.
1341         (parse_bind_var, parse_one_place, parse_places_var): New functions.
1342         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1343         sized places.
1344         (gomp_cancel_var): New global variable.
1345         (parse_int): New function.
1346         (handle_omp_display_env): New function.
1347         (initialize_env): Use it.  Initialize default_device_var.
1348         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
1349         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
1350         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
1351         been successfully parsed (and call gomp_init_affinity in that case).
1352         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1353         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1354         omp_get_team_num, omp_is_initial_device): New functions.
1355         * libgomp.h: Include stdlib.h.
1356         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1357         Define.
1358         (struct target_mem_desc): Forward declare.
1359         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1360         and thread_limit_var fields.
1361         (gomp_get_num_devices): New prototype.
1362         (gomp_cancel_var): New extern decl.
1363         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1364         team_cancelled and task_queued_count fields.  Add comments about
1365         task_{,queued_,running_}count.
1366         (gomp_cancel_kind): New enum.
1367         (gomp_work_share_end_cancel): New prototype.
1368         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1369         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1370         and depend fields.
1371         (struct gomp_taskgroup): New type.
1372         (struct gomp_task_depend_entry,
1373         struct gomp_dependers_vec): New types.
1374         (gomp_finish_task): Free depend_hash if non-NULL.
1375         (struct gomp_team_state): Add place_partition_off
1376         and place_partition_len fields.
1377         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1378         gomp_places_list_len): New extern decls.
1379         (struct gomp_thread): Add place field.
1380         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1381         (gomp_init_thread_affinity): Add place argument.
1382         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1383         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1384         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1385         gomp_affinity_init_level, gomp_affinity_print_place): New
1386         prototypes.
1387         (gomp_team_start): Add flags argument.
1388         (gomp_thread_limit_var, gomp_remaining_threads_count,
1389         gomp_remaining_threads_lock): Remove.
1390         (gomp_managed_threads_lock): New variable.
1391         (struct gomp_thread_pool): Add threads_busy field.
1392         (gomp_free_thread): New prototype.
1393         * task.c: Include hashtab.h.
1394         (hash_entry_type): New typedef.
1395         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1396         (gomp_init_task): Clear dependers, depend_hash, depend_count,
1397         copy_ctors_done and taskgroup fields.
1398         (GOMP_task): Add depend argument, handle depend clauses.  If
1399         gomp_team_barrier_cancelled or if it's taskgroup has been
1400         cancelled, don't queue or start new tasks.  Set copy_ctors_done
1401         field if needed.  Initialize taskgroup field.  If copy_ctors_done
1402         and already cancelled, don't discard the task.  If taskgroup is
1403         non-NULL, enqueue the task into taskgroup queue.  Increment
1404         num_children field in taskgroup.  Increment task_queued_count.
1405         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1406         gomp_task_run_post_remove_taskgroup): New inline functions.
1407         (gomp_task_run_post_handle_depend_hash,
1408         gomp_task_run_post_handle_dependers,
1409         gomp_task_run_post_handle_depend): New functions.
1410         (GOMP_taskwait): Use them.  If more than one new tasks
1411         have been queued, wake other threads if needed.
1412         (gomp_barrier_handle_tasks): Likewise.  If
1413         gomp_team_barrier_cancelled, don't start any new tasks, just free
1414         all tasks.
1415         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1416         * omp_lib.f90.in
1417         (omp_proc_bind_kind, omp_proc_bind_false,
1418         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1419         omp_proc_bind_spread): New params.
1420         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1421         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1422         omp_get_team_num, omp_is_initial_device): New interfaces.
1423         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1424         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1425         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1426         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1427         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1428         useless use omp_lib_kinds.
1429         * omp.h.in (omp_proc_bind_t): New typedef.
1430         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1431         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1432         omp_get_team_num, omp_is_initial_device): New prototypes.
1433         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1434         through to gomp_team_start.
1435         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1436         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1437         Adjust gomp_parallel_loop_start callers.
1438         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1439         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1440         GOMP_loop_end_cancel): New functions.
1441         (GOMP_parallel_end): Add ialias_redirect.
1442         * hashtab.h: New file.
1443         * libgomp.texi (Environment Variables): Minor cleanup,
1444         update section refs to OpenMP 4.0rc2.
1445         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1446         environment variables.
1447         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1448         team->work_shares_to_free to thr->ts.work_share before calling
1449         free_work_share.
1450         (gomp_work_share_end_cancel): New function.
1451         * config/linux/proc.c: Include errno.h.
1452         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1453         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1454         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
1455         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
1456         gomp_cpuset_size is sizeof (cpu_set_t).
1457         (gomp_init_num_threads): Initialize gomp_cpuset_size,
1458         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1459         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1460         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
1461         contain any logical CPUs.
1462         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1463         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
1464         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1465         pthread_getaffinity_np.  Check gomp_places_list instead of
1466         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
1467         * config/linux/bar.c (gomp_barrier_wait_end,
1468         gomp_barrier_wait_last): Use BAR_* defines.
1469         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
1470         from state where needed.  Set work_share_cancelled to 0 on last
1471         thread.
1472         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1473         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1474         functions.
1475         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1476         Add cpusetsize argument.
1477         (gomp_cpuset_size, gomp_cpusetp): Declare.
1478         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1479         (affinity_counter): Remove.
1480         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1481         if CPU_ALLOC_SIZE isn't defined.
1482         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1483         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1484         bind current thread to the first place.
1485         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
1486         pthread_setaffinity_np to gomp_places_list[place].
1487         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1488         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1489         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1490         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1491         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1492         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1493         (gomp_barrier_t): Add awaited_final field.
1494         (gomp_barrier_init): Initialize awaited_final field.
1495         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1496         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1497         prototypes.
1498         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
1499         defines.
1500         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1501         gomp_team_barrier_cancelled): New inline functions.
1502         (gomp_barrier_last_thread,
1503         gomp_team_barrier_set_task_pending,
1504         gomp_team_barrier_clear_task_pending,
1505         gomp_team_barrier_set_waiting_for_tasks,
1506         gomp_team_barrier_waiting_for_tasks,
1507         gomp_team_barrier_done): Use BAR_* defines.
1508         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1509         (gomp_barrier_wait_end): Use BAR_* defines.
1510         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1511         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1512         Use BAR_* defines.
1513         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1514         gomp_team_barrier_cancel): New functions.
1515         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1516         argument.
1517         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1518         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1519         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1520         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1521         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1522         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1523         (gomp_barrier_t): Add cancellable field.
1524         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1525         gomp_team_barrier_cancel): New prototypes.
1526         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1527         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1528         gomp_team_barrier_cancelled): New inline functions.
1529         (gomp_barrier_wait_start, gomp_barrier_last_thread,
1530         gomp_team_barrier_set_task_pending,
1531         gomp_team_barrier_clear_task_pending,
1532         gomp_team_barrier_set_waiting_for_tasks,
1533         gomp_team_barrier_waiting_for_tasks,
1534         gomp_team_barrier_done): Use BAR_* defines.
1535         * barrier.c (GOMP_barrier_cancel): New function.
1536         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1537         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1538         omp_proc_bind_spread): New params.
1539         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1540         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1541         omp_get_team_num, omp_is_initial_device): New externals.
1542         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1543         New functions.
1544         (gomp_resolve_num_threads): Adjust for thread_limit now being in
1545         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1546         infinity.  If not nested, just return minimum of max_num_threads
1547         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1548         to the returned value.  Otherwise, don't update atomically
1549         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1550         (GOMP_parallel_end): Adjust for thread_limit now being in
1551         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1552         infinity.  Adjust threads_busy in the pool rather than
1553         gomp_remaining_threads_count.  Remember team->nthreads and call
1554         gomp_team_end before adjusting threads_busy, if not nested
1555         afterwards, just set it to 1 non-atomically.  Add ialias.
1556         (GOMP_parallel_start): Adjust gomp_team_start caller.
1557         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1558         * testsuite/libgomp.c/affinity-1.c: New test.
1559         * testsuite/libgomp.c/atomic-15.c: New test.
1560         * testsuite/libgomp.c/atomic-16.c: New test.
1561         * testsuite/libgomp.c/atomic-17.c: New test.
1562         * testsuite/libgomp.c/cancel-for-1.c: New test.
1563         * testsuite/libgomp.c/cancel-for-2.c: New test.
1564         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1565         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1566         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1567         * testsuite/libgomp.c/cancel-sections-1.c: New test.
1568         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1569         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1570         * testsuite/libgomp.c/depend-1.c: New test.
1571         * testsuite/libgomp.c/depend-2.c: New test.
1572         * testsuite/libgomp.c/depend-3.c: New test.
1573         * testsuite/libgomp.c/depend-4.c: New test.
1574         * testsuite/libgomp.c/for-1.c: New test.
1575         * testsuite/libgomp.c/for-1.h: New file.
1576         * testsuite/libgomp.c/for-2.c: New test.
1577         * testsuite/libgomp.c/for-2.h: New file.
1578         * testsuite/libgomp.c/for-3.c: New test.
1579         * testsuite/libgomp.c/pr58392.c: New test.
1580         * testsuite/libgomp.c/simd-1.c: New test.
1581         * testsuite/libgomp.c/simd-2.c: New test.
1582         * testsuite/libgomp.c/simd-3.c: New test.
1583         * testsuite/libgomp.c/simd-4.c: New test.
1584         * testsuite/libgomp.c/simd-5.c: New test.
1585         * testsuite/libgomp.c/simd-6.c: New test.
1586         * testsuite/libgomp.c/target-1.c: New test.
1587         * testsuite/libgomp.c/target-2.c: New test.
1588         * testsuite/libgomp.c/target-3.c: New test.
1589         * testsuite/libgomp.c/target-4.c: New test.
1590         * testsuite/libgomp.c/target-5.c: New test.
1591         * testsuite/libgomp.c/target-6.c: New test.
1592         * testsuite/libgomp.c/target-7.c: New test.
1593         * testsuite/libgomp.c/taskgroup-1.c: New test.
1594         * testsuite/libgomp.c/thread-limit-1.c: New test.
1595         * testsuite/libgomp.c/thread-limit-2.c: New test.
1596         * testsuite/libgomp.c/thread-limit-3.c: New test.
1597         * testsuite/libgomp.c/udr-1.c: New test.
1598         * testsuite/libgomp.c/udr-2.c: New test.
1599         * testsuite/libgomp.c/udr-3.c: New test.
1600         * testsuite/libgomp.c++/affinity-1.C: New test.
1601         * testsuite/libgomp.c++/atomic-10.C: New test.
1602         * testsuite/libgomp.c++/atomic-11.C: New test.
1603         * testsuite/libgomp.c++/atomic-12.C: New test.
1604         * testsuite/libgomp.c++/atomic-13.C: New test.
1605         * testsuite/libgomp.c++/atomic-14.C: New test.
1606         * testsuite/libgomp.c++/atomic-15.C: New test.
1607         * testsuite/libgomp.c++/cancel-for-1.C: New test.
1608         * testsuite/libgomp.c++/cancel-for-2.C: New test.
1609         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1610         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1611         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1612         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1613         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1614         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1615         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1616         * testsuite/libgomp.c++/cancel-test.h: New file.
1617         * testsuite/libgomp.c++/for-9.C: New test.
1618         * testsuite/libgomp.c++/for-10.C: New test.
1619         * testsuite/libgomp.c++/for-11.C: New test.
1620         * testsuite/libgomp.c++/simd-1.C: New test.
1621         * testsuite/libgomp.c++/simd-2.C: New test.
1622         * testsuite/libgomp.c++/simd-3.C: New test.
1623         * testsuite/libgomp.c++/simd-4.C: New test.
1624         * testsuite/libgomp.c++/simd-5.C: New test.
1625         * testsuite/libgomp.c++/simd-6.C: New test.
1626         * testsuite/libgomp.c++/simd-7.C: New test.
1627         * testsuite/libgomp.c++/simd-8.C: New test.
1628         * testsuite/libgomp.c++/target-1.C: New test.
1629         * testsuite/libgomp.c++/target-2.C: New test.
1630         * testsuite/libgomp.c++/target-2-aux.cc: New file.
1631         * testsuite/libgomp.c++/target-3.C: New test.
1632         * testsuite/libgomp.c++/taskgroup-1.C: New test.
1633         * testsuite/libgomp.c++/udr-1.C: New test.
1634         * testsuite/libgomp.c++/udr-2.C: New test.
1635         * testsuite/libgomp.c++/udr-3.C: New test.
1636         * testsuite/libgomp.c++/udr-4.C: New test.
1637         * testsuite/libgomp.c++/udr-5.C: New test.
1638         * testsuite/libgomp.c++/udr-6.C: New test.
1639         * testsuite/libgomp.c++/udr-7.C: New test.
1640         * testsuite/libgomp.c++/udr-8.C: New test.
1641         * testsuite/libgomp.c++/udr-9.C: New test.
1643 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
1645         PR testsuite/57605
1646         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1647         ALWAYS_CFLAGS.
1649 2013-09-20  Alan Modra  <amodra@gmail.com>
1651         * configure: Regenerate.
1653 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
1655         * testsuite/libgomp.c/sections-2.c: New test.
1657 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1659         * testsuite/libgomp.fortran/strassen.f90:
1660         Add dg-skip-if aarch64_tiny.
1662 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1663             Cesar Philippidis  <cesar@codesourcery.com>
1665         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1666         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1667         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1668         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1669         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1670         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1671         Use dg-runtest rather than gfortran-dg-runtest.
1673 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1675         * testsuite/libgomp.c/icv-2.c: Extend current handling of
1676         Linux-based x86 systems to cover all GNU systems.
1677         * testsuite/libgomp.c/lock-3.c: Likewise.
1678         * testsuite/libgomp.c/pr48591.c: Likewise.
1680 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
1682         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1683         GNU/Hurd, as done for Linux-based systems.
1685         * config/posix/ptrlock.h: Fix comment.
1687 2013-05-27  Tobias Burnus  <burnus@net-b.de>
1689         PR fortran/57423
1690         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1691         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1692         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1693         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1694         omp_destroy_nest_lock): Correct arguments to match the one in
1695         the OpenMP spec.
1696         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1697         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1698         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1699         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1701 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
1703         * testsuite/libgomp.c/loop-13.c: New test.
1704         * testsuite/libgomp.c/loop-14.c: New test.
1705         * testsuite/libgomp.c/loop-15.c: New test.
1706         * testsuite/libgomp.c++/loop-13.C: New test.
1707         * testsuite/libgomp.c++/loop-14.C: New test.
1708         * testsuite/libgomp.c++/loop-15.C: New test.
1710 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1712         PR middle-end/56217
1713         * testsuite/libgomp.c++/pr56217.C: New test.
1715 2013-02-01  Alan Modra  <amodra@gmail.com>
1717         * task.c (GOMP_task, GOMP_taskwait): Comment.
1719 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
1720             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
1722         PR libgomp/55561
1723         * config/linux/wait.h (do_spin): Use atomic load for addr.
1724         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1725         for intptr and ptrlock.
1726         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1727         for ptrlock.
1729 2013-01-22  Alan Modra  <amodra@gmail.com>
1731         PR libgomp/51376
1732         PR libgomp/56073
1733         * task.c (GOMP_task): Revert 2011-12-09 change.
1734         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
1735         barrier to read task->children..
1736         (gomp_barrier_handle_tasks): ..and matching atomic store with
1737         release barrier here when setting parent->children to NULL.
1739 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1740             Tobias Burnus  <burnus@net-b.de>
1742         PR driver/55884
1743         * testsuite/libgomp.fortran/fortran.exp: Use
1744         -fintrinsic-modules-path= instead of
1745         -fintrinsic-modules-path.
1747 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1749         Update copyright years.
1751 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1753         * testsuite/libgomp.fortran/fortran.exp: Set
1754         -fintrinsic-modules-path.
1756 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1758         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1759         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1761 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
1763         PR libgomp/55411
1764         * team.c (gomp_free_thread): Decrease gomp_managed_threads
1765         if pool had any threads_used.
1767 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
1769         * testsuite/libgomp.c++/pr24455.C: Use
1770         -Wl,-undefined,dynamic_lookup on darwin.
1772 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
1774         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1776 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
1778         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1780 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1781             Jim MacArthur  <jim.macarthur@arm.com>
1782             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1783             Nigel Stephens  <nigel.stephens@arm.com>
1784             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1785             Richard Earnshaw  <rearnsha@arm.com>
1786             Sofiane Naci  <sofiane.naci@arm.com>
1787             Stephen Thomas  <stephen.thomas@arm.com>
1788             Tejas Belagod  <tejas.belagod@arm.com>
1789             Yufeng Zhang  <yufeng.zhang@arm.com>
1791         * configure.tgt: Add AArch64.
1793 2012-10-04  Jason Merrill  <jason@redhat.com>
1795         * testsuite/libgomp.c++/tls-init1.C: New.
1797 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1799         * configure: Regenerated.
1801 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1803         * config/linux/mips/futex.h (sys_futex0): Change to static
1804         function with noinline, nomips16 attributes under MIPS16. Adjust
1805         asm statement to place 'li v0,SYS_futex' immediately before
1806         syscall insn.
1808 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
1810         * libgomp.texi (Library Index): Renamed from "Index" to prevent
1811         conflict with index.html on case-insensitive file systems.
1813 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1815         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1816         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1818 2012-07-02  Richard Guenther  <rguenther@suse.de>
1819             Michael Matz  <matz@suse.de>
1820             Tobias Grosser <tobias@grosser.es>
1821             Sebastian Pop <sebpop@gmail.com>
1823         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1824         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1825         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1826         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1828 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1830         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1832 2012-06-22  Richard Guenther  <rguenther@suse.de>
1834         Merge from graphite branch
1835         2012-01-13  Tobias Grosser  <tobias@grosser.es>
1837         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1838         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1840 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1842         PR middle-end/53580
1843         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1844         use GOMP_barrier () call instead.
1845         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1846         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1847         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1848         call GOMP_barrier instead.
1849         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1851 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
1853         PR libgomp/52993
1854         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1855         argument to memset call.
1857 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1859         * configure: Regenerated.
1861 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1863         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1865 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1867         PR bootstrap/52812
1868         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1870 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1872         PR middle-end/52547
1873         * testsuite/libgomp.c/pr52547.c: New test.
1875 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1877         * testsuite/lib/libgomp.exp: load fortran-modules.exp
1879 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1881         * configure.tgt (mips-sgi-irix6*): Remove.
1883 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1885         * configure.tgt (alpha*-dec-osf*): Remove.
1887         * config/osf/sem.h: Remove.
1888         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1890 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1892         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1894 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1896         PR libstdc++/52188
1897         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1898         Remove ENABLE_SYMVERS_SOL2.
1899         * configure: Regenerate.
1900         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1901         (PREPROCESS): New variable.
1902         (libgomp.ver): New target.
1903         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1904         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1905         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1906         Use libgomp.ver.
1907         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1908         * Makefile.in: Regenerate.
1910 2012-02-14  Walter Lee  <walt@tilera.com>
1912         * configure.tgt: Handle tilegx and tilepro.
1913         * config/linux/tile/futex.h: New file.
1915 2012-02-08  Richard Guenther  <rguenther@suse.de>
1917         PR tree-optimization/46886
1918         * testsuite/libgomp.c/pr46886.c: New testcase.
1920 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1922         * config/linux/arm: Remove empty directory.
1923         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1925 2011-12-09  Alan Modra  <amodra@gmail.com>
1927         PR libgomp/51376
1928         * task.c (GOMP_taskwait): Don't access task->children outside of
1929         task_lock mutex region.
1930         (GOMP_task): Likewise.
1932 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1934         PR libgomp/51132
1935         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1936         to file scope.
1937         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1938         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1939         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1940         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1941         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1943 2011-12-02  Alan Modra  <amodra@gmail.com>
1945         * config/linux/affinity.c: Use atomic rather than sync builtin.
1946         * config/linux/lock.c: Likewise.
1947         * config/linux/ptrlock.h: Likewise.
1948         * config/linux/ptrlock.c: Likewise.
1949         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1950         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1951         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1952         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1953         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1954         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1955         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1956         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1957         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1958         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1960 2011-11-30  Alan Modra  <amodra@gmail.com>
1962         PR libgomp/51298
1963         * config/linux/bar.h: Use atomic rather than sync builtins.
1964         * config/linux/bar.c: Likewise.  Add missing acquire
1965         synchronisation on generation field.
1966         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1967         double unlock.
1969 2011-11-30  Alan Modra  <amodra@gmail.com>
1971         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1972         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1973         * config/linux/mutex.h: Use atomic rather than sync builtins.
1974         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1975         * config/linux/omp-lock.h: Comment fix.
1976         * config/linux/arm/mutex.h: Delete.
1977         * config/linux/powerpc/mutex.h: Delete.
1978         * config/linux/ia64/mutex.h: Delete.
1979         * config/linux/mips/mutex.h: Delete.
1981 2011-11-30  Alan Modra  <amodra@gmail.com>
1983         PR libgomp/51249
1984         * config/linux/sem.h: Rewrite.
1985         * config/linux/sem.c: Rewrite.
1987 2011-11-28  Richard Henderson  <rth@redhat.com>
1989         * libgomp.h (enum memmodel): New.
1991 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1993         * configure: Regenerate.
1995 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1997         * config/posix95: Remove empty directory.
1999 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2001         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2003 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
2005         PR fortran/49792
2006         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2007         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2009 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2011         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2013 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2015         PR libgomp/49965
2016         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2018 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
2020         * config/linux/proc.h: New.
2021         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
2022         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
2023         (gomp_init_num_threads): Update call to cpuset_popcount.
2024         (get_num_procs): Ditto.
2025         * config/linux/affinity.c (gomp_init_affinity): Call
2026         gomp_cpuset_popcount.
2028 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2030         PR fortran/42041
2031         PR fortran/46752
2032         * omp.h.in (omp_in_final): New prototype.
2033         * omp_lib.f90.in (omp_in_final): New interface.
2034         (omp_integer_kind, omp_logical_kind): Remove
2035         and replace all its uses in the module with 4.
2036         (openmp_version): Change to 201107.
2037         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2038         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2039         kind for the parameters.
2040         (omp_in_final): New external.
2041         (openmp_version): Change to 201107.
2042         * task.c (omp_in_final): New function.
2043         (gomp_init_task): Initialize final_task.
2044         (GOMP_task): Remove unused attribute from flags.  Handle final
2045         tasks.
2046         (GOMP_taskyield): New function.
2047         (omp_in_final): Return true if if (false) or final (true) task
2048         or descendant of final (true).
2049         * fortran.c (omp_in_final_): New function.
2050         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2051         (GOMP_3.0): Export GOMP_taskyield.
2052         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2053         variables.
2054         (parse_unsigned_long_list): New function.
2055         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
2056         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
2057         even if parse_affinity returned false.
2058         * config/linux/affinity.c (gomp_init_affinity): Handle
2059         gomp_cpu_affinity_len == 0.
2060         * libgomp_g.h (GOMP_taskyield): New prototype.
2061         * libgomp.h (struct gomp_task): Add final_task field.
2062         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2063         * team.c (gomp_team_start): Override new task's nthreads_var icv
2064         if list form OMP_NUM_THREADS has been used and it has value for
2065         the new nesting level.
2067         * testsuite/libgomp.c/atomic-11.c: New test.
2068         * testsuite/libgomp.c/atomic-12.c: New test.
2069         * testsuite/libgomp.c/atomic-13.c: New test.
2070         * testsuite/libgomp.c/atomic-14.c: New test.
2071         * testsuite/libgomp.c/reduction-6.c: New test.
2072         * testsuite/libgomp.c/task-5.c: New test.
2073         * testsuite/libgomp.c++/atomic-2.C: New test.
2074         * testsuite/libgomp.c++/atomic-3.C: New test.
2075         * testsuite/libgomp.c++/atomic-4.C: New test.
2076         * testsuite/libgomp.c++/atomic-5.C: New test.
2077         * testsuite/libgomp.c++/atomic-6.C: New test.
2078         * testsuite/libgomp.c++/atomic-7.C: New test.
2079         * testsuite/libgomp.c++/atomic-8.C: New test.
2080         * testsuite/libgomp.c++/atomic-9.C: New test.
2081         * testsuite/libgomp.c++/task-8.C: New test.
2082         * testsuite/libgomp.c++/reduction-4.C: New test.
2083         * testsuite/libgomp.fortran/allocatable7.f90: New test.
2084         * testsuite/libgomp.fortran/allocatable8.f90: New test.
2085         * testsuite/libgomp.fortran/crayptr3.f90: New test.
2086         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2087         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2088         * testsuite/libgomp.fortran/pointer1.f90: New test.
2089         * testsuite/libgomp.fortran/pointer2.f90: New test.
2090         * testsuite/libgomp.fortran/task4.f90: New test.
2092 2011-08-02  Tobias Burnus  <burnus@net-b.de>
2094         * libgomp.texi: Update OpenMP spec references to 3.1.
2095         (omp_in_final,OMP_PROC_BIND): New sections.
2096         (OMP_NUM_THREADS): Document that the value can be now a list.
2097         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2099 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
2101         * config/linux/x86/futex.h: Check __x86_64__ instead of
2102         __LP64__.
2104 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
2106         PR middle-end/49897
2107         PR middle-end/49898
2108         * testsuite/libgomp.c/pr49897-1.c: New test.
2109         * testsuite/libgomp.c/pr49897-2.c: New test.
2110         * testsuite/libgomp.c/pr49898-1.c: New test.
2111         * testsuite/libgomp.c/pr49898-2.c: New test.
2113 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2115         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2116         for ia32 instead of ilp32.
2118         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2119         * testsuite/libgomp.c/atomic-6.c: Likewise.
2121 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
2123         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2124         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2126 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2128         PR libgomp/45351
2129         * config/osf/sem.h: New file.
2130         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2132 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2134         PR target/49541
2135         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2136         ldflags.
2138 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
2140         * config/linux/wait.h (do_spin): New inline, largely copied
2141         from do_wait, just don't do futex_wait here, instead return true if
2142         it should be done.
2143         (do_wait): Implement using do_spin.
2144         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2145         to prototype.
2146         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2147         __sync_bool_compare_and_swap, pass the oldval to
2148         gomp_mutex_lock_slow.
2149         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2150         If all mutex contenders are just spinning and not sleeping, don't
2151         change state to 2 unnecessarily.  Optimize the loop when state has
2152         already become 2 to use just one atomic operation per loop instead
2153         of two.
2154         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2155         to prototype.
2156         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2157         __sync_bool_compare_and_swap, pass the oldval to
2158         gomp_mutex_lock_slow.
2160 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
2162         PR libgomp/49490
2163         * iter.c (gomp_iter_static_next): For chunk size 0
2164         only use n ceil/ nthreads size for the first
2165         n % nthreads threads in the team instead of
2166         all threads except for the last few ones which
2167         get less work or none at all.
2168         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2169         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2170         chunk argument, set run_sched_modifier to 0 for static
2171         resp. 1 for other kinds.  If chunk argument is 0
2172         and not static, set value to 1.
2174 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
2176         PR c++/49043
2177         * testsuite/libgomp.c++/pr49043.C: New test.
2179         PR c++/48869
2180         * testsuite/libgomp.c++/pr48869.C: New test.
2182 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2184         PR fortran/48894
2185         * fortran.c: Include limits.h.
2186         (TO_INT): Define.
2187         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2188         *set.
2189         (omp_set_num_threads_8_, omp_set_schedule_8_,
2190         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2191         omp_get_team_size_8_): Use TO_INT macro.
2192         * testsuite/libgomp.fortran/pr48894.f90: New test.
2194 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
2196         PR middle-end/48591
2197         * testsuite/libgomp.c/pr48591.c: New test.
2199 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2201         PR bootstrap/48135
2202         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2203         * configure: Regenerate.
2205 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
2207         PR fortran/47886
2208         * testsuite/libgomp.fortran/task3.f90: New test.
2210 2011-02-24  Tobias Burnus  <burnus@net-b.de>
2212         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2214 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
2216         PR libgomp/47854
2217         * libgomp.texi (omp_get_wtime): Don't say time in the past
2218         must be Unix Epoch.
2220 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
2222         PR libgomp/47804
2223         * testsuite/libgomp.fortran/fortran.exp: Check for both
2224         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
2225         but $blddir != "", still append ${blddir}/${lang_library_path}
2226         to ld_library_path.
2228 2011-02-16  Tobias Burnus  <burnus@net-b.de>
2230         PR libgomp/47758
2231         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2232         of libquadmath.a before adding its libpath to ldflags.
2234 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
2236         PR libgomp/47731
2237         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2238         to FUTEX_WAIT futex syscall.
2239         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2241 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2243         * configure: Regenerate.
2245 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
2247         PR libstdc++/36104
2248         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2250 2011-01-16  Gerald Pfeifer
2252         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2254 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
2256         PR fortran/46874
2257         * libgomp.fortran/allocatable6.f90: New test.
2259 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2261         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2262         * configure: Regenerate.
2264 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
2266         PR target/40125
2267         PR lto/46695
2268         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2269         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2270         * aclocal.m4: Regenerate.
2271         * configure: Regenerate.
2272         * Makefile.in: Regenerate.
2273         * testsuite/Makefile.in: Regenerate.
2275 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
2277         PR fortran/46753
2278         * libgomp.fortran/pr46753.f90: New test.
2280         PR libgomp/43706
2281         * env.c (initialize_env): Default to spin count 300000
2282         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2283         is specified.
2285         PR libgomp/45240
2286         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2287         at the end if sync builtins aren't supported.
2289 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2291         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2293 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2295         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2297 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
2299         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2301 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2302             Tobias Burnus  <burnus@net-b.de>
2304         PR fortran/32049
2305         * configure.ac:
2306         * configure: Regenerate.
2308 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2310         * config/linux/futex.h: New.
2311         * config/linux/arm/mutex.h: New.
2312         * configure.tgt (arm*-*-linux*): Add config path.
2314 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2316         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2318 2010-09-23  Tobias Burnus  <burnus@net-b.de>
2320         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2321         Change Fortran datatype to LOGICAL.
2322         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2323         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2325 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2327         * configure: Regenerate.
2329 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
2331         * libgomp.texi: Add function keyword to a couple of Fortran
2332         interfaces, use integer instead of int for Fortran.
2334 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
2336         * libgomp.texi: Fix spelling and pasto problems throughout.
2337         Adjust prototypes to match code.
2339 2010-07-24  Tobias Burnus  <burnus@net-b.de>
2341         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2342         silence -fwhole-file warning.
2344 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2346         * configure.tgt (*-*-solaris2.[56]*): Removed.
2348 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2350         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2351         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2352         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2353         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2354         targetting solaris2*.
2355         * configure: Regenerate.
2356         * config.h.in: Regenerate.
2358         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2359         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2360         Add libgomp_version_dep.
2361         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2362         versioning.
2363         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2364         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2365         * Makefile.in: Regenerate.
2367         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2368         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2369         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2370         to common block, protected by
2371         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2373 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
2375         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
2377 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
2379         PR bootstrap/43170
2380         * configure: Regenerate.
2382 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2384         PR other/43620
2385         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2386         * configure: Regenerate.
2387         * Makefile.in: Regenerate.
2388         * testsuite/Makefile.in: Regenerate.
2390 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
2392         PR c/43893
2393         * testsuite/libgomp.c/pr43893.c: New test.
2394         * testsuite/libgomp.c++/pr43893.C: New test.
2396 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2398         PR middle-end/43570
2399         * testsuite/libgomp.fortran/vla8.f90: New test.
2401 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
2403         PR libgomp/43706
2404         * config/linux/affinity.c (gomp_init_affinity): Decrease
2405         gomp_available_cpus if affinity mask confines the process to fewer
2406         CPUs.
2407         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2408         non-NULL, just return gomp_available_cpus.
2410         PR libgomp/43569
2411         * sections.c (gomp_sections_init): Initialize ws->mode.
2413 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2415         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2416         not unused bar variable.
2417         * configure: Regenerate.
2419 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2421         * Makefile.in: Regenerate.
2422         * aclocal.m4: Regenerate.
2423         * testsuite/Makefile.in: Regenerate.
2425 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
2427         PR libgomp/42942
2428         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2429         (initialize_env): Adjust callers.
2430         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2431         when the argument is 0.
2433         * testsuite/libgomp.c/pr42942.c: New test.
2435 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2437         PR middle-end/42644
2438         PR middle-end/42130
2439         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2440         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2442 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2444         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2445         * testsuite/libgomp.c++/task-6.C: Likewise.
2447 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
2449         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2451 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
2453         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2454         * configure: Regenerate.
2456 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
2458         PR fortran/42866
2459         * testsuite/libgomp.fortran/allocatable5.f90: New test.
2461 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
2463         * configure.ac: Test for executability of GFORTRAN.
2464         * configure: Regenerate.
2466 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2468         * configure: Regenerate.
2470 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2472         PR libgomp/42602
2473         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2475 2010-01-03  Richard Guenther  <rguenther@suse.de>
2477         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2479 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
2481         * testsuite/libgomp.graphite/pr4118.c: New.
2483 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2485         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2486         for darwin, protect the test with require-effective-target tls_runtime.
2487         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2489 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2491         PR target/41605
2492         * testsuite/lib/libgomp.exp: Provide -B options to allow for
2493         link spec %s substitutions for static libraries.
2495 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
2497         PR testsuite/42135
2498         * libgomp.graphite/force-parallel-2.c: Reduce array size.
2500 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2502         * Makefile.in: Regenerate.
2503         * configure: Regenerate.
2504         * testsuite/Makefile.in: Regenerate.
2506 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2508         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2509         settings for LC_ALL and LANG.
2511 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
2513         PR fortran/42162
2514         * testsuite/libgomp.fortran/pr42162.f90: New test.
2516 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
2518         PR middle-end/42029
2519         * testsuite/libgomp.c/pr42029.c: New test.
2521 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
2523         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2524         *s.  Accept ld version without text in ()s.
2525         * configure: Regenerated.
2527 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
2529         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2531 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2533         PR libgomp/41418
2534         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2535         or a hyphen (happens with fortran language disabled).
2536         * configure: Regenerate.
2538 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2540         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2541         use sed script portable to Solaris /bin/sed for extracting ld
2542         version.
2543         * configure: Regenerate.
2545 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2547         * testsuite/libgomp.graphite/bounds.c: New test.
2549 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2551         * Makefile.am (libgomp_la_LINK): New.
2552         * Makefile.in: Regenerate.
2554 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2556         * configure.ac (AC_PREREQ): Bump to 2.64.
2558 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2560         * Makefile.am (install-html, install-pdf): Remove.
2561         * Makefile.in: Regenerate.
2563         * Makefile.in: Regenerate.
2564         * aclocal.m4: Regenerate.
2565         * config.h.in: Regenerate.
2566         * configure: Regenerate.
2567         * testsuite/Makefile.in: Regenerate.
2569 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2571         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2572         * Makefile.in: Regenerate.
2574 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
2576         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2577         * Makefile.in: Regenerate.
2579 2009-08-19  Tobias Burnus  <burnus@net-b.de>
2581         PR fortran/41102
2582         omp_lib.h.in: Fix -std=f95 errors.
2585 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
2587         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2588         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2589         * testsuite/libgomp.graphite/graphite.exp: New.
2591 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
2593         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2594         only build.
2596 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
2598         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2599         needed memory barrier semantics.
2600         * config/linux/mips/mutex.h: New file.
2602 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2604         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2606 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
2608         * configure: Regenerate.
2610 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
2612         PR testsuite/40699
2613         PR testsuite/40707
2614         PR testsuite/40709
2615         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2616         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2617         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2619 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
2621         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2622         options when choosing a multilib.
2624 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
2626         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2627         ld_library_path.  Use add_path.  Add just find_libgcc_s to
2628         ld_library_path, not every libgcc multilib directory.
2629         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2630         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2631         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2632         Use add_path.
2633         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2635 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
2637         * Makefile.am (LTLDFLAGS): Define.
2638         (LINK): Define.
2639         * Makefile.in: Regenerate.
2641 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
2643         PR fortran/39718
2644         * testsuite/libgomp.fortran/fortran.exp: Don't link with
2645         libgfortranbegin, check existence of libgfortran.a instead of
2646         libgfortranbegin.a.
2648 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
2650         PR libgomp/40174
2651         * team.c (gomp_thread_start): Destroy thr->release semaphore.
2652         (gomp_free_pool_helper): Likewise.
2654 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
2655             Jakub Jelinek  <jakub@redhat.com>
2657         PR fortran/35423
2658         * testsuite/libgomp.fortran/workshare2.f90: New test.
2660 2009-04-09  Nick Clifton  <nickc@redhat.com>
2662         * iter.c: Change copyright header to refer to version 3 of the
2663         GNU General Public License with version 3.1 of the GCC Runtime
2664         Library Exception and to point readers at the COPYING3 and
2665         COPYING3.RUNTIME files and the FSF's license web page.
2666         * alloc.c: Likewise.
2667         * barrier.c: Likewise.
2668         * config/bsd/proc.c: Likewise.
2669         * config/linux/affinity.c: Likewise.
2670         * config/linux/alpha/futex.h: Likewise.
2671         * config/linux/bar.c: Likewise.
2672         * config/linux/bar.h: Likewise.
2673         * config/linux/ia64/futex.h: Likewise.
2674         * config/linux/ia64/mutex.h: Likewise.
2675         * config/linux/lock.c: Likewise.
2676         * config/linux/mips/futex.h: Likewise.
2677         * config/linux/mutex.c: Likewise.
2678         * config/linux/mutex.h: Likewise.
2679         * config/linux/powerpc/futex.h: Likewise.
2680         * config/linux/proc.c: Likewise.
2681         * config/linux/ptrlock.c: Likewise.
2682         * config/linux/ptrlock.h: Likewise.
2683         * config/linux/s390/futex.h: Likewise.
2684         * config/linux/sem.c: Likewise.
2685         * config/linux/sem.h: Likewise.
2686         * config/linux/sparc/futex.h: Likewise.
2687         * config/linux/wait.h: Likewise.
2688         * config/linux/x86/futex.h: Likewise.
2689         * config/mingw32/proc.c: Likewise.
2690         * config/mingw32/time.c: Likewise.
2691         * config/posix/affinity.c: Likewise.
2692         * config/posix/bar.c: Likewise.
2693         * config/posix/bar.h: Likewise.
2694         * config/posix/lock.c: Likewise.
2695         * config/posix/mutex.h: Likewise.
2696         * config/posix/proc.c: Likewise.
2697         * config/posix/ptrlock.h: Likewise.
2698         * config/posix/sem.c: Likewise.
2699         * config/posix/sem.h: Likewise.
2700         * config/posix/time.c: Likewise.
2701         * config/posix95/lock.c: Likewise.
2702         * critical.c: Likewise.
2703         * env.c: Likewise.
2704         * error.c: Likewise.
2705         * fortran.c: Likewise.
2706         * iter_ull.c: Likewise.
2707         * libgomp.h: Likewise.
2708         * libgomp_f.h.in: Likewise.
2709         * libgomp_g.h: Likewise.
2710         * loop.c: Likewise.
2711         * loop_ull.c: Likewise.
2712         * omp.h.in: Likewise.
2713         * omp_lib.f90.in: Likewise.
2714         * omp_lib.h.in: Likewise.
2715         * ordered.c: Likewise.
2716         * parallel.c: Likewise.
2717         * sections.c: Likewise.
2718         * single.c: Likewise.
2719         * task.c: Likewise.
2720         * team.c: Likewise.
2721         * work.c: Likewise.
2723 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2725         * testsuite/config/default.exp: Change copyright header to refer to
2726         version 3 of the GNU General Public License and to point readers
2727         at the COPYING3 file and the FSF's license web page.
2729 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2731         PR middle-end/39573
2732         * libgomp.c++/pr39573.C: New test.
2734 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2736         PR other/39591
2737         * testsuite/libgomp.c/pr39591-1.c: New test.
2738         * testsuite/libgomp.c/pr39591-2.c: New test.
2739         * testsuite/libgomp.c/pr39591-3.c: New test.
2741 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
2743         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2744         * testsuite/libgomp.c/atomic-6.c: Ditto.
2746 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2748         PR c/39495
2749         * testsuite/libgomp.c/loop-12.c: New test.
2750         * testsuite/libgomp.c/loop-11.c: New test.
2751         * testsuite/libgomp.c++/loop-11.C: New test.
2752         * testsuite/libgomp.c++/loop-12.C: New test.
2753         * testsuite/libgomp.c++/for-8.C: New test.
2755 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2757         * configure: Regenerate.
2759 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
2761         PR middle-end/39154
2762         * testsuite/libgomp.c/pr39154.c: New test.
2764 2009-01-30  Ian Lance Taylor  <iant@google.com>
2766         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2767         libgomp_ld_is_gold.  Get gold version number.
2768         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2769         * configure: Rebuild.
2771 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2773         * testsuite/lib/libgomp.exp: Add -B option for targets that
2774         use libgfortran.a%s in their specs.
2776 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
2778         PR libgomp/38086
2779         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2780         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2781         HAVE_AS_SYMVER_DIRECTIVE is not defined.
2782         * configure: Regenerated.
2783         * config.h.in: Likewise.
2785 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
2787         PR c++/38650
2788         * testsuite/libgomp.c/pr38650.c: New test.
2789         * testsuite/libgomp.c++/pr38650.C: New test.
2791 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
2793         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2795 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
2797         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2799 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2801         * configure: Regenerate.
2803 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
2805         PR middle-end/36802
2806         * testsuite/libgomp.c/pr36802-1.c: New test.
2807         * testsuite/libgomp.c/pr36802-2.c: New test.
2808         * testsuite/libgomp.c/pr36802-3.c: New test.
2810 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
2812         PR libgomp/38270
2813         * config/linux/powerpc/mutex.h: New.
2815 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
2817         PR c++/38257
2818         * testsuite/libgomp.c++/for-7.C: New test.
2820         PR c++/38348
2821         * testsuite/libgomp.c++/for-6.C: New test.
2823 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
2825         PR testsuite/28870
2826         * testsuite/lib/libgomp.exp: Include new timeout library files.
2827         (libgomp_target_compile): Set timeout value from new proc.
2829 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
2831         PR libgomp/37938
2832         * config/linux/ia64/mutex.h: New.
2834 2008-11-04  Tobias Burnus  <burnus@net-b.de>
2836         PR libgomp/37935
2837         * libgomp.texi (Runtime library routines, environment variables):
2838         Update for OpenMP version 3.0.
2840 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2841             Steve Ellcey  <sje@cup.hp.com>
2843         * configure: Regenerate for new libtool.
2844         * Makefile.in: Ditto.
2845         * testsuite/Makefile.in: Ditto.
2847 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
2848             Andreas Tobler  <a.tobler@schweiz.org>
2850         * config/bsd/proc.c: New file.
2851         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2852         * configure.ac: Check for header <sys/sysctl.h>
2853         * configure: Regenerate.
2854         * config.h.in: Likewise.
2856 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2858         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2860 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2862         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2863         * Makefile.in: Regenerated.
2864         * testsuite/Makefile.in: Regenerated.
2866 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2868         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2869         depend on blddir if blddir exists.
2870         (libgomp_target_compile): Likewise.
2871         * testsuite/libgomp.c++/c++.exp: Likewise.
2872         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2874 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2876         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
2877         Do not list GPL as Invariant Section.
2879 2008-07-28  Ilie Garbacea  <ilie@mips.com>
2880             Chao-ying Fu  <fu@mips.com>
2882         * configure.tgt: Enable futex for MIPS.
2883         * config/linux/mips/futex.h: New file.
2885 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2887         * team.c (gomp_team_end): Free team immediately if it has
2888         just one thread.
2890 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2892         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2893         * testsuite/libgomp.fortran/fortran.exp: Same.
2894         * testsuite/libgomp.c/c.exp: Same.
2895         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2896         directory to library path first.
2898 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2900         * env.c (parse_stacksize): Add cast to avoid warning.
2901         (parse_spincount): Likewise.
2903 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2905         * testsuite/libgomp.c/loop-10.c: New test.
2906         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2907         * libgomp.c++/loop-6.C (main): Likewise.
2909         PR debug/36617
2910         * testsuite/libgomp.c/debug-1.c: New test.
2912 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2914         * testsuite/libgomp.c/nqueens-1.c: New test.
2916         PR c++/36523
2917         * testsuite/libgomp.c++/task-7.C: New function.
2919 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2921         * configure: Regenerate.
2923 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2925         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2926         mutex when HAVE_SYNC_BUILTINS isn't defined.
2928 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2930         * libgomp.texi (omp_test_lock): Fix typo.
2932 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2934         * omp_lib.f90.in: Add "implicit none".
2936 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2938         PR middle-end/36506
2939         * testsuite/libgomp.c/reduction-5.c: New test.
2941 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2943         * libgomp.h (struct gomp_task): Add in_tied_task field.
2944         * task.c (gomp_init_task): Initialize it.
2945         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2946         unconditionally.  Don't call gomp_team_barrier_wake if
2947         current task is implicit or if(0) from implicit and number of
2948         running tasks is equal to nthreads - 1.
2950         PR libgomp/36471
2951         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2952         omp_get_team_size_8): Fix pastos.
2954         PR libgomp/36469
2955         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2956         * configure: Regenerated.
2957         * config.h.in: Regenerated.
2958         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2959         defined.
2961 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2963         PR bootstrap/36452
2964         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2965         (GOMP_loop_ull_dynamic_start): Likewise.
2966         (GOMP_loop_ull_guided_start): Likewise.
2967         (GOMP_loop_ull_ordered_static_start): Likewise.
2968         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2969         (GOMP_loop_ull_ordered_guided_start): Likewise.
2971 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2972             Richard Henderson  <rth@redhat.com>
2973             Ulrich Drepper  <drepper@redhat.com>
2974             Jakob Blomer  <jakob.blomer@ira.uka.de>
2976         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2977         Substitute also OMP_*LOCK_25*.
2978         * configure: Regenerated.
2979         * config.h.in: Regenerated.
2980         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2981         ptrlock.c and task.c.
2982         * Makefile.in: Regenerated.
2983         * testsuite/Makefile.in: Regenerated.
2984         * task.c: New file.
2985         * loop_ull.c: New file.
2986         * iter_ull.c: New file.
2987         * libgomp.h: Include ptrlock.h.
2988         (enum gomp_task_kind): New type.
2989         (struct gomp_team): Add task_lock, task_queue, task_count,
2990         task_running_count, single_count fields.  Add
2991         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2992         Remove work_share_lock, generation_mask,
2993         oldest_live_gen, num_live_gen and init_work_shares fields, add
2994         work work_share_list_alloc, work_share_list_free and work_share_chunk
2995         fields.  Change work_shares from pointer to pointers into an array.
2996         Change ordered_release field into gomp_sem_t ** from flexible array
2997         member.  Add implicit_task and initial_work_shares fields.
2998         Move close to the end of the struct.
2999         (struct gomp_team_state): Add single_count, last_work_share,
3000         active_level and level fields, remove work_share_generation.
3001         (gomp_barrier_handle_tasks): New prototype.
3002         (gomp_finish_task): New inline function.
3003         (struct gomp_work_share): Move chunk_size, end, incr into
3004         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3005         next_ll fields.  Reshuffle fields.  Add next_alloc,
3006         next_ws, next_free and inline_ordered_team_ids fields, change
3007         ordered_team_ids into pointer from flexible array member.
3008         Add mode field.  Put lock and next into a different cache line
3009         from most of the write-once fields.
3010         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3011         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3012         gomp_iter_ull_guided_next): New prototypes.
3013         (gomp_new_icv): New prototype.
3014         (struct gomp_thread): Add thread_pool and task fields.
3015         (struct gomp_thread_pool): New type.
3016         (gomp_new_team): New prototype.
3017         (gomp_team_start): Change type of last argument.
3018         (gomp_new_work_share): Removed.
3019         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3020         (gomp_work_share_init_done): New static inline.
3021         (gomp_throttled_spin_count_var, gomp_available_cpus,
3022         gomp_managed_threads): New extern decls.
3023         (gomp_init_task): New prototype.
3024         (gomp_spin_count_var): New extern var decl.
3025         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3026         or no alias support, or if not PIC.
3027         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3028         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3029         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3030         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3031         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3032         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3033         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3034         gomp_test_nest_lock_25): New prototypes.
3035         (omp_lock_symver, strong_alias): Define.
3036         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3037         decls.
3038         (gomp_end_task): New.
3039         (struct gomp_task_icv, gomp_global_icv): New.
3040         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3041         (struct gomp_task): New.
3042         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3043         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3044         (gomp_icv): New.
3045         (gomp_schedule_type): Reorder enum to match
3046         omp_sched_t.
3047         * team.c (struct gomp_thread_start_data): Add thread_pool and task
3048         fields.
3049         (gomp_thread_start): Add gomp_team_barrier_wait call.
3050         For non-nested case remove clearing of docked thread thr fields.
3051         Use pool fields instead of global gomp_* variables.  Use
3052         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
3053         Create tasks for each member thread.
3054         (free_team): Only destroy team barrier, task_lock here and free it.
3055         (gomp_free_thread): Free last_team if non-NULL.
3056         (gomp_team_end): Call gomp_team_barrier_wait instead of
3057         gomp_barrier_wait.  For nested case call one extra
3058         gomp_barrier_wait.  Move here some destruction from free_team.
3059         Call free_team on pool->last_team if any, rather than freeing
3060         current team.  Destroy work_share_list_free_lock ifndef
3061         HAVE_SYNC_BUILTINS.
3062         (gomp_new_icv): New function.
3063         (gomp_threads, gomp_threads_size, gomp_threads_used,
3064         gomp_threads_dock): Removed.
3065         (gomp_thread_destructor): New variable.
3066         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3067         functions.
3068         (gomp_team_start): Create new pool if current thread doesn't have
3069         one.  Use pool fields instead of global gomp_* variables.
3070         Initialize thread_pool field for new threads.  Clear single_count.
3071         Change last argument from ws to team, don't create
3072         new team, set ts.work_share to &team->work_shares[0] and clear
3073         ts.last_work_share.  Don't clear ts.work_share_generation.
3074         If number of threads changed, adjust atomically gomp_managed_threads.
3075         Use gomp_init_task instead of gomp_new_task,
3076         set thr->task to the corresponding implicit_task array entry.
3077         Create tasks for each member thread.  Initialize ts.level.
3078         (initialize_team): Call pthread_key_create on
3079         gomp_thread_destructor.
3080         (team_destructor): New function.
3081         (new_team): Removed.
3082         (gomp_new_team): New function.
3083         (free_team): Free gomp_work_share blocks chained through next_alloc,
3084         instead of freeing work_shares and destroying work_share_lock.
3085         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
3086         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
3087         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3088         of gomp_barrier_wait.
3089         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3090         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
3091         if gomp_work_share_start returned true.  Don't unlock ws->lock.
3092         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3093         of gomp_barrier_wait.
3094         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
3095         gomp_work_share_init_done if gomp_work_share_start returned true.
3096         Don't unlock ws->lock.
3097         * work.c: Include stddef.h.
3098         (free_work_share): Use work_share_list_free_lock instead
3099         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
3100         Call gomp_fini_work_share and then either free ws if orphaned, or
3101         put it into work_share_list_free list of the current team.
3102         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3103         functions.
3104         (gomp_work_share_start, gomp_work_share_end,
3105         gomp_work_share_end_nowait): Rewritten.
3106         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3107         (openmp_version): Set to 200805.
3108         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3109         omp_sched_guided, omp_sched_auto): New parameters.
3110         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3111         omp_set_max_active_levels, omp_get_max_active_levels,
3112         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3113         omp_get_active_level): New interfaces.
3114         * omp_lib.h.in (openmp_version): Set to 200805.
3115         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3116         omp_sched_guided, omp_sched_auto): New parameters.
3117         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3118         omp_set_max_active_levels, omp_get_max_active_levels,
3119         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3120         omp_get_active_level): New externals.
3121         * loop.c: Include limits.h.
3122         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3123         GFS_AUTO.
3124         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3125         Likewise.  Use gomp_icv.
3126         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3127         ts.static_trip here.
3128         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3129         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
3130         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3131         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
3132         don't unlock ws->lock, otherwise lock it.
3133         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3134         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
3135         (gomp_parallel_loop_start): Call gomp_new_team instead of
3136         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
3137         Adjust gomp_team_start caller.  Pass 0 as second argument to
3138         gomp_resolve_num_threads.
3139         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3140         If adding ws->chunk_size nthreads + 1 times after end won't
3141         overflow, set ws->mode to 1.
3142         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3143         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3144         GOMP_loop_ull_ordered_static_start,
3145         GOMP_loop_ull_ordered_dynamic_start,
3146         GOMP_loop_ull_ordered_guided_start,
3147         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3148         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3149         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3150         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3151         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3152         prototypes.
3153         * libgomp.map: Export lock routines also @@OMP_2.0.
3154         (GOMP_loop_ordered_dynamic_first,
3155         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3156         GOMP_loop_ordered_static_first): Remove.
3157         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3158         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3159         GOMP_loop_ull_ordered_dynamic_next,
3160         GOMP_loop_ull_ordered_dynamic_start,
3161         GOMP_loop_ull_ordered_guided_next,
3162         GOMP_loop_ull_ordered_guided_start,
3163         GOMP_loop_ull_ordered_runtime_next,
3164         GOMP_loop_ull_ordered_runtime_start,
3165         GOMP_loop_ull_ordered_static_next,
3166         GOMP_loop_ull_ordered_static_start,
3167         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3168         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3169         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3170         (omp_set_schedule, omp_get_schedule,
3171         omp_get_thread_limit, omp_set_max_active_levels,
3172         omp_get_max_active_levels, omp_get_level,
3173         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3174         omp_set_schedule_, omp_set_schedule_8_,
3175         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3176         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3177         omp_get_max_active_levels_, omp_get_level_,
3178         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3179         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3180         New exports @@OMP_3.0.
3181         * omp.h.in (omp_sched_t): New type.
3182         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3183         omp_set_max_active_levels, omp_get_max_active_levels,
3184         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3185         omp_get_active_level): New prototypes.
3186         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3187         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3188         gomp_thread_limit_var, gomp_remaining_threads_count,
3189         gomp_remaining_threads_lock): New variables.
3190         (parse_spincount): New function.
3191         (initialize_env): Call gomp_init_num_threads unconditionally.
3192         Initialize gomp_available_cpus.  Call parse_spincount,
3193         initialize gomp_{,throttled_}spin_count_var
3194         depending on presence and value of OMP_WAIT_POLICY and
3195         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
3196         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3197         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
3198         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
3199         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
3200         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3201         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3202         (gomp_global_icv): New.
3203         (parse_schedule): Use it.  Parse "auto".
3204         (omp_set_num_threads): Use gomp_icv.
3205         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3206         Likewise.
3207         (omp_get_max_threads): Move from parallel.c.
3208         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3209         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3210         add ialias.
3211         (parse_stacksize, parse_wait_policy): New functions.
3212         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3213         both wrappers for compatibility and new locks.
3214         (omp_set_schedule, omp_get_schedule,
3215         omp_get_thread_limit, omp_set_max_active_levels,
3216         omp_get_max_active_levels, omp_get_level,
3217         omp_get_ancestor_thread_num, omp_get_team_size,
3218         omp_get_active_level): New ialias_redirect.
3219         (omp_set_schedule_, omp_set_schedule_8_,
3220         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3221         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3222         omp_get_max_active_levels_, omp_get_level_,
3223         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3224         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3225         New functions.
3226         * parallel.c: Include limits.h.
3227         (gomp_resolve_num_threads): Add count argument.  Rewritten.
3228         (GOMP_parallel_start): Call gomp_new_team and pass that as last
3229         argument to gomp_team_start.  Pass 0 as second argument to
3230         gomp_resolve_num_threads.
3231         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3232         if gomp_thread_limit_var != ULONG_MAX.
3233         (omp_in_parallel): Implement using ts.active_level.
3234         (omp_get_max_threads): Move to env.c.
3235         (omp_get_level, omp_get_ancestor_thread_num,
3236         omp_get_team_size, omp_get_active_level): New functions,
3237         add ialias.
3238         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3239         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
3240         gomp_iter_dynamic_next instead of the _locked variant and don't take
3241         lock around it, otherwise acquire it before calling
3242         gomp_iter_dynamic_next_locked.
3243         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3244         gomp_iter_dynamic_next instead of the _locked variant and don't take
3245         lock around it.
3246         (GOMP_parallel_sections_start): Call gomp_new_team instead of
3247         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
3248         Adjust gomp_team_start caller.  Pass count as second argument to
3249         gomp_resolve_num_threads, don't adjust num_threads after the call.
3250         Use gomp_icv.
3251         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3252         ws->chunk_size by incr.
3253         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
3254         code.
3255         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3256         types.
3257         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3258         (omp_check_defines): Check even the compat defines.
3259         * config/linux/ptrlock.c: New file.
3260         * config/linux/ptrlock.h: New file.
3261         * config/linux/wait.h: New file.
3262         * config/posix/ptrlock.c: New file.
3263         * config/posix/ptrlock.h: New file.
3264         * config/linux/bar.h (gomp_team_barrier_wait,
3265         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3266         (gomp_team_barrier_set_task_pending,
3267         gomp_team_barrier_clear_task_pending,
3268         gomp_team_barrier_set_waiting_for_tasks,
3269         gomp_team_barrier_waiting_for_tasks,
3270         gomp_team_barrier_done): New inlines.
3271         (gomp_barrier_t): Rewritten.
3272         (gomp_barrier_state_t): New typedef.
3273         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3274         gomp_barrier_wait_start): Rewritten.
3275         (gomp_barrier_wait_end): Change second argument to
3276         gomp_barrier_state_t.
3277         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3278         inlines.
3279         * config/linux/bar.c: Include wait.h instead of libgomp.h and
3280         futex.h.
3281         (gomp_barrier_wait_end): Rewritten.
3282         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3283         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3284         * config/posix/bar.h (gomp_barrier_t): Add generation field.
3285         (gomp_barrier_state_t): New typedef.
3286         (gomp_team_barrier_wait,
3287         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3288         (gomp_barrier_wait_start): Or all but low 2 bits from generation
3289         into the return value.  Return gomp_barrier_state_t.
3290         (gomp_team_barrier_set_task_pending,
3291         gomp_team_barrier_clear_task_pending,
3292         gomp_team_barrier_set_waiting_for_tasks,
3293         gomp_team_barrier_waiting_for_tasks,
3294         gomp_team_barrier_done): New inlines.
3295         (gomp_barrier_wait_end): Change second argument to
3296         gomp_barrier_state_t.
3297         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3298         inlines.
3299         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3300         (gomp_barrier_wait_end): Change second argument to
3301         gomp_barrier_state_t.
3302         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3303         gomp_team_barrier_wake): New functions.
3304         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3305         futex.h.
3306         (gomp_futex_wake, gomp_futex_wait): New variables.
3307         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3308         * config/linux/lock.c: Rewrite to make locks task owned,
3309         for backwards compatibility provide the old entrypoints
3310         if symbol versioning.  Include wait.h instead of libgomp.h and
3311         futex.h.
3312         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3313         * config/posix95/lock.c: Rewrite to make locks task owned,
3314         for backwards compatibility provide the old entrypoints
3315         if symbol versioning.
3316         * config/posix/lock.c: Rewrite to make locks task owned,
3317         for backwards compatibility provide the old entrypoints
3318         if symbol versioning.
3319         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3320         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3321         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3322         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3323         (sys_futex0): Return error code.
3324         (futex_wake, futex_wait): If ENOSYS was returned, clear
3325         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3326         (cpu_relax, atomic_write_barrier): New static inlines.
3327         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3328         (futex_wake, futex_wait): If ENOSYS was returned, clear
3329         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3330         (cpu_relax, atomic_write_barrier): New static inlines.
3331         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3332         (sys_futex0): Return error code.
3333         (futex_wake, futex_wait): If ENOSYS was returned, clear
3334         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3335         (cpu_relax, atomic_write_barrier): New static inlines.
3336         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3337         (sys_futex0): Return error code.
3338         (futex_wake, futex_wait): If ENOSYS was returned, clear
3339         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3340         (cpu_relax, atomic_write_barrier): New static inlines.
3341         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3342         (sys_futex0): Return error code.
3343         (futex_wake, futex_wait): If ENOSYS was returned, clear
3344         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3345         (cpu_relax, atomic_write_barrier): New static inlines.
3346         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3347         (sys_futex0): Return error code.
3348         (futex_wake, futex_wait): If ENOSYS was returned, clear
3349         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3350         (cpu_relax, atomic_write_barrier): New static inlines.
3351         * config/linux/sem.c: Include wait.h instead of libgomp.h and
3352         futex.h.
3353         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3354         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3355         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3356         types.
3357         (omp_nest_lock_t): Change owner into void *, add lock field.
3358         * config/posix95/omp-lock.h: Include semaphore.h.
3359         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3360         (omp_lock_t): Use sem_t instead of mutex if semaphores
3361         aren't broken.
3362         (omp_nest_lock_t): Likewise.  Change owner to void *.
3363         * config/posix/omp-lock.h: Include semaphore.h.
3364         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3365         (omp_lock_t): Use sem_t instead of mutex if semaphores
3366         aren't broken.
3367         (omp_nest_lock_t): Likewise.  Add owner field.
3369 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3371         * testsuite/libgomp.c/collapse-1.c: New test.
3372         * testsuite/libgomp.c/collapse-2.c: New test.
3373         * testsuite/libgomp.c/collapse-3.c: New test.
3374         * testsuite/libgomp.c/icv-1.c: New test.
3375         * testsuite/libgomp.c/icv-2.c: New test.
3376         * testsuite/libgomp.c/lib-2.c: New test.
3377         * testsuite/libgomp.c/lock-1.c: New test.
3378         * testsuite/libgomp.c/lock-2.c: New test.
3379         * testsuite/libgomp.c/lock-3.c: New test.
3380         * testsuite/libgomp.c/loop-4.c: New test.
3381         * testsuite/libgomp.c/loop-5.c: New test.
3382         * testsuite/libgomp.c/loop-6.c: New test.
3383         * testsuite/libgomp.c/loop-7.c: New test.
3384         * testsuite/libgomp.c/loop-8.c: New test.
3385         * testsuite/libgomp.c/loop-9.c: New test.
3386         * testsuite/libgomp.c/nested-3.c: New test.
3387         * testsuite/libgomp.c/nestedfn-6.c: New test.
3388         * testsuite/libgomp.c/sort-1.c: New test.
3389         * testsuite/libgomp.c/task-1.c: New test.
3390         * testsuite/libgomp.c/task-2.c: New test.
3391         * testsuite/libgomp.c/task-3.c: New test.
3392         * testsuite/libgomp.c/task-4.c: New test.
3393         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3394         to C++ testsuite default compiler options.
3395         * testsuite/libgomp.c++/collapse-1.C: New test.
3396         * testsuite/libgomp.c++/collapse-2.C: New test.
3397         * testsuite/libgomp.c++/ctor-10.C: New test.
3398         * testsuite/libgomp.c++/for-1.C: New test.
3399         * testsuite/libgomp.c++/for-2.C: New test.
3400         * testsuite/libgomp.c++/for-3.C: New test.
3401         * testsuite/libgomp.c++/for-4.C: New test.
3402         * testsuite/libgomp.c++/for-5.C: New test.
3403         * testsuite/libgomp.c++/loop-8.C: New test.
3404         * testsuite/libgomp.c++/loop-9.C: New test.
3405         * testsuite/libgomp.c++/loop-10.C: New test.
3406         * testsuite/libgomp.c++/task-1.C: New test.
3407         * testsuite/libgomp.c++/task-2.C: New test.
3408         * testsuite/libgomp.c++/task-3.C: New test.
3409         * testsuite/libgomp.c++/task-4.C: New test.
3410         * testsuite/libgomp.c++/task-5.C: New test.
3411         * testsuite/libgomp.c++/task-6.C: New test.
3412         * testsuite/libgomp.fortran/allocatable1.f90: New test.
3413         * testsuite/libgomp.fortran/allocatable2.f90: New test.
3414         * testsuite/libgomp.fortran/allocatable3.f90: New test.
3415         * testsuite/libgomp.fortran/allocatable4.f90: New test.
3416         * testsuite/libgomp.fortran/collapse1.f90: New test.
3417         * testsuite/libgomp.fortran/collapse2.f90: New test.
3418         * testsuite/libgomp.fortran/collapse3.f90: New test.
3419         * testsuite/libgomp.fortran/collapse4.f90: New test.
3420         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3421         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3422         * testsuite/libgomp.fortran/lib4.f90: New test.
3423         * testsuite/libgomp.fortran/lock-1.f90: New test.
3424         * testsuite/libgomp.fortran/lock-2.f90: New test.
3425         * testsuite/libgomp.fortran/nested1.f90: New test.
3426         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3427         * testsuite/libgomp.fortran/strassen.f90: New test.
3428         * testsuite/libgomp.fortran/tabs1.f90: New test.
3429         * testsuite/libgomp.fortran/tabs2.f: New test.
3430         * testsuite/libgomp.fortran/task1.f90: New test.
3431         * testsuite/libgomp.fortran/task2.f90: New test.
3432         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3433         * testsuite/libgomp.fortran/vla5.f90: Likewise.
3434         * testsuite/libgomp.c/pr26943-2.c: Likewise.
3435         * testsuite/libgomp.c/pr26943-3.c: Likewise.
3436         * testsuite/libgomp.c/pr26943-4.c: Likewise.
3438 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
3440         PR c++/36308
3441         * testsuite/libgomp.c++/ctor-11.C: New test.
3442         * testsuite/libgomp.c++/ctor-12.C: New test.
3444 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
3446         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3448 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
3450         PR middle-end/36106
3451         * testsuite/libgomp.c/atomic-5.c: New test.
3452         * testsuite/libgomp.c/atomic-6.c: New test.
3453         * testsuite/libgomp.c/autopar-1.c: New test.
3455 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3457         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3458         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3459         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3460         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3461         * configure: Regenerate.
3462         * Makefile.in, testsuite/Makefile.in: Likewise.
3464 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3466         PR bootstrap/35457
3467         * aclocal.m4: Regenerate.
3468         * configure: Regenerate.
3470 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3472         PR middle-end/35611
3473         * testsuite/libgomp.c/atomic-4.c: New test.
3475         PR libgomp/35625
3476         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3477         (gomp_iter_guided_next): Likewise.
3478         * testsuite/libgomp.c/pr35625.c: New test.
3480 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3482         * aclocal.m4: Regenerate.
3483         * configure: Likewise.
3484         * Makefile.in: Likewise.
3485         * testsuite/Makefile.in: Likewise.
3487 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3489         PR middle-end/35185
3490         * testsuite/libgomp.c++/pr35185.C: New test.
3492 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3494         PR middle-end/35549
3495         * testsuite/libgomp.c/pr35549.c: New test.
3497 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
3499         * testsuite/libgomp.c/atomic-3.c: New test.
3501 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3503         PR fortran/33197
3504         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3505         .F08 file suffixes.
3507 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
3509         PR libgomp/33131
3510         * configure.ac: Add ACX_HEADER_STRING.
3511         * env.c: Include strings.h.
3512         * aclocal.m4: Regenerate.
3513         * config.h.in: Regenerate.
3514         * configure: Regenerate.
3515         * Makefile.in: Regenerate.
3516         * testsuite/Makefile.in: Regenerate.
3518 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3520         PR middle-end/35196
3521         * testsuite/libgomp.c/pr35196.c: New test.
3523         PR middle-end/35130
3524         * testsuite/libgomp.fortran/pr35130.f90: New test.
3525         * testsuite/libgomp.c/pr35130.c: New test.
3527 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
3529         PR middle-end/33880
3530         * testsuite/libgomp.c/pr33880.c: New test.
3531         * testsuite/libgomp.fortran/pr33880.f90: New test.
3533 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
3535         * configure: Regenerate.
3537 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3539         * configure.ac: Move futex checking into ../config/futex.m4.
3540         * configure: Rebuilt.
3541         * aclocal.m4: Rebuilt.
3542         * Makefile.in: Rebuilt.
3544         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3545         2007-10-15 ../config/tls.m4 change.
3547 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
3549         PR c++/34513
3550         * testsuite/libgomp.c/pr34513.c: New test.
3551         * testsuite/libgomp.c++/pr34513.C: New test.
3553 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
3555         PR target/32765
3556         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3558 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
3560         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
3562 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
3564         * testsuite/libgomp.c/private-1.c: New test.
3566 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
3567             Paolo Bonzini  <bonzini@gnu.org>
3569         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
3570         instead of 'VPATH ='.
3571         * Makefile.in: Regenerate.
3573 2007-11-23  Matthias Klose  <doko@ubuntu.com>
3575         * configure.ac: Adjust makeinfo version check.
3576         * configure: Regenerate.
3578 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
3580         PR fortran/34020
3581         * testsuite/libgomp.fortran/pr34020.f90: New test.
3583 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
3585         PR c++/33894
3586         * testsuite/libgomp.c++/atomic-1.C: New test.
3588 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
3590         PR libgomp/33275
3591         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3592         Make x and y integers rather than (implicit) reals.  Add private (j)
3593         clause to the last omp parallel.
3595 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
3597         * configure: Regenerate following changes to ../config/tls.m4.
3599 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
3601         * testsuite/libgomp.fortran/stack.f90: New test.
3603 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
3605         * config/mingw32/proc.c: New file.
3607 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
3609         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3610         (main): Use __get_cpuid to get i386 target fetaures.
3611         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3612         (main): Use __get_cpuid to get x86_64 target fetaures.
3614 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
3616         PR target/32765
3617         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3618         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3620 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
3622         PR fortran/32550
3623         * testsuite/libgomp.fortran/pr32550.f90: New test.
3624         * testsuite/libgomp.fortran/crayptr2.f90: New test.
3626 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3628         * aclocal.m4: Regenerated.
3630 2007-07-05  Tobias Burnus  <burnus@net-b.de>
3632         PR fortran/32359
3633         * testsuite/libgomp.fortran/pr32359.f90: New.
3635 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
3637         PR libgomp/32468
3638         * sections.c (GOMP_parallel_sections_start): Only decrease
3639         number of threads to COUNT if dyn_var is true.
3640         * testsuite/libgomp.c/pr32468.c: New test.
3642 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3644         PR libgomp/26308
3645         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3647 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
3649         PR middle-end/32362
3650         * testsuite/libgomp.c/pr32362-1.c: New test.
3651         * testsuite/libgomp.c/pr32362-2.c: New test.
3652         * testsuite/libgomp.c/pr32362-3.c: New test.
3654 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
3656         * team.c (gomp_team_start): Fix setting up thread_attr
3657         stack size.
3659 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
3661         * configure: Regenerate.
3663 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
3665         * Makefile.in: Regenerate.
3666         * configure: Regenerate.
3667         * aclocal.m4: Regenerate.
3668         * testsuite/Makefile.in: Regenerate.
3670 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
3672         * config/linux/proc.c: New file.
3674         PR libgomp/28482
3675         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3677 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
3679         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3681 2007-04-16  Matthias Klose  <doko@debian.org>
3683         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3684         flags if not building with -m64.
3685         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3686         flag for i?86-*-* targets, if current target matches -m64.
3688 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
3690         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3691         * Makefile.in: Regenerate.
3693 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3695         PR testsuite/31369
3696         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3697         ld_library_path.
3698         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3700 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
3702         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3703         decls.
3704         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3705         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3706         (parse_affinity): New function.
3707         (initialize_env): Call it and gomp_init_affinity.
3708         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3709         create new pthread_attr_t and call gomp_init_thread_affinity
3710         on it for each thread before passing the attribute to pthread_create.
3711         * config/linux/affinity.c: New file.
3712         * config/posix/affinity.c: New file.
3713         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3714         * configure: Rebuilt.
3715         * config.h.in: Rebuilt.
3716         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3717         * Makefile.in: Rebuilt.
3719 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
3721         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3722         *-*-darwin*.
3723         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3724         and use it if found.
3726 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
3728         * testsuite/config/default.exp: New file.
3729         * testsuite/lib/libgomp.exp: New file.
3730         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3731         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3732         load_lib *, load_gcc_lib *): Move to libgomp.exp.
3733         (libgomp_load): Remove.
3734         * testsuite/lib/libgomp.exp (libgomp_init): Compute
3735         always_ld_library_path, not ld_library_path.  Set additional_flags
3736         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3737         (target_compile): Do not call libgomp_init.  Append lang_library_path
3738         and lang_link_flags to options.
3739         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
3740         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
3741         here.
3742         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3743         always_ld_library_path.  Set LD_LIBRARY_PATH here.
3744         * testsuite/libgomp.fortran/fortran.exp: Ditto.
3745         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3746         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3747         CX8 flag.
3748         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3749         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3750         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3751         * testsuite/libgomp.c/pr29947-1.c: Ditto.
3752         * testsuite/libgomp.c/atomic-10.c: Ditto.
3754 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3756         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3757         dg-final cleanup-modules line.
3758         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3759         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3760         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3761         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3762         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3763         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3764         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3766 2007-03-18  Andreas Schwab  <schwab@suse.de>
3768         * acinclude.m4: Adjust regular expression for ld version
3769         extraction.
3770         * configure: Regenerate.
3772 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3774         * Makefile.am: Add install-pdf target as copied from
3775         automake v1.10 rules.
3776         * Makefile.in: Regenerate
3778 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3780         PR libgomp/28486
3781         * configure: Regenerate.
3783         PR c++/30703
3784         * testsuite/libgomp.c++/pr30703.C: New test.
3786 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3788         Revert:
3789         2006-07-05  Eric Christopher  <echristo@apple.com>
3790         * configure.ac: Depend addition of -pthread on host OS.
3791         * configure: Regenerate.
3793 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3795         * libgomp.texi: Fix spacing after abbreviations.
3797 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
3799         PR libgomp/30546
3800         * configure.ac: Add check for makeinfo
3801         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3802         if an appropiate version of makeinfo is found.
3803         * aclocal.m4: Regenerated.
3804         * configure: Regenerated.
3805         * Makefile.in: Regenerated.
3806         * testsuite/Makefile.in: Regenerated.
3808 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
3810         PR libgomp/30540
3811         * libgomp.texi: More about implementation-dependent settings.
3813 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3815         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3817 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3819         PR middle-end/30494
3820         * testsuite/libgomp.c/pr30494.c: New test.
3822 2007-01-15  Tom Tromey  <tromey@redhat.com>
3824         * configure: Rebuilt.
3825         * configure.ac: Fixed comment.
3827 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
3829         * libgomp.texi: Document implementation specific default values of
3830         environment variables.
3832 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
3834         PR libgomp/28209
3835         * libgomp.texi: New file.
3836         * configure.ac: Add --enable-generated-files-in-srcdir option.
3837         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3838         files to srcdir.
3839         * Makefile.in: Regenerated.
3840         * config.h.in: Regenerated.
3841         * testsuite/Makefile.in: Regenerated.
3842         * NOTES: Removed.
3844 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
3846         PR libgomp/29949
3847         * env.c (omp_set_num_threads): Set illegal thread count to 1.
3849 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3851         * configure: Regenerate.
3853 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3855         PR libgomp/29947
3856         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
3857         start if there shouldn't be any loop iterations.
3858         (gomp_loop_ordered_static_start): Remove start == end test.
3859         * testsuite/libgomp.c/pr29947-1.c: New test.
3860         * testsuite/libgomp.c/pr29947-2.c: New test.
3862 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3864         * configure.tgt: Force initial-exec TLS model on Linux only.
3866 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
3868         * configure: Regenerated.
3870 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
3872         * env.c (parse_schedule): Reject out of range values.
3873         (parse_unsigned_long): Reject out of range, negative or zero values.
3875 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3877         PR fortran/29629
3878         * testsuite/libgomp.fortran/pr29629.f90: New test.
3880 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3882         PR libgomp/29494
3883         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3884         * config/posix95: New directory.
3885         * config/posix95/omp-lock.h: New file.
3886         * config/posix95/lock.c: Likewise.
3888 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3890         * aclocal.m4: Regenerate.
3891         * configure: Regenerate.
3893 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3895         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3896         '<' to '<='.
3898 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3900         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3901         test.
3902         * configure: Regenerate.
3903         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3905 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3907         PR middle-end/25261
3908         PR middle-end/28790
3909         * testsuite/libgomp.c/nestedfn-4.c: New test.
3910         * testsuite/libgomp.c/nestedfn-5.c: New test.
3911         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3913         PR fortran/29097
3914         * testsuite/libgomp.fortran/condinc1.f: New test.
3915         * testsuite/libgomp.fortran/condinc2.f: New test.
3916         * testsuite/libgomp.fortran/condinc3.f90: New test.
3917         * testsuite/libgomp.fortran/condinc4.f90: New test.
3918         * testsuite/libgomp.fortran/condinc1.inc: New file.
3920 2006-09-18  Tom Tromey  <tromey@redhat.com>
3922         * configure: Rebuilt.
3924 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3926         PR c/28768
3927         PR preprocessor/14634
3928         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3929         to AC_DEFINE.
3930         * configure: Regenerate.
3932 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3934         * testsuite/libgomp.fortran/reduction3.f90: Change
3935         -2147483648 to -huge(i)-1 to avoid overflow.
3936         * testsuite/libgomp.fortran/reduction4.f90: Change
3937         Z'ffffffff' to not(0) to avoid overflow.
3939 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3941         PR libgomp/25938
3942         * Makefile.am (libsubincludedir): New.
3943         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3944         * Makefile.in: Regenerate.
3946 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3948         PR libgomp/28725
3949         * env.c: Include ctype.h.
3950         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3951         leading and/or trailing whitespace and compare strings case
3952         insensitively.
3954 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3956         PR fortran/28390
3957         * testsuite/libgomp.fortran/pr28390.f: New test.
3959 2006-07-05  Eric Christopher  <echristo@apple.com>
3961         * configure.ac: Depend addition of -pthread on host OS.
3962         * configure: Regenerate.
3964 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3966         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3967         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3968         defined.
3970 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3972         PR libgomp/26175
3973         PR libgomp/26477
3974         * configure.ac: If neither --enable-linux-futex nor
3975         --disable-linux-futex is passed, determine the default by checking
3976         for compiling and/or running against NPTL.  With --enable-linux-futex,
3977         check if SYS_gettid and SYS_futex are defined.
3978         * configure: Rebuilt.
3980 2006-06-14  Richard Henderson  <rth@redhat.com>
3982         PR libgomp/28008
3983         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3984         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3986 2006-06-09  Richard Henderson  <rth@redhat.com>
3988         * env.c (gomp_nthreads_var): Change to unsigned long.
3989         (gomp_run_sched_chunk): Likewise.
3990         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3991         (initialize_env): Initialize gomp_thread_attr.
3992         * libgomp.h (gomp_nthreads_var): Update decl.
3993         (gomp_run_sched_chunk): Likewise.
3994         (gomp_thread_attr): Declare.
3995         * team.c (gomp_thread_attr): Export.
3996         (initialize_team): Don't initialize it.
3998 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
4000         PR fortran/27916
4001         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4002         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4004 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4006         * config/mingw32/time.c: New file.
4007         * configure.tgt: Use it.
4009 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
4011         * Makefile.am: Add install-html target. Add install-html to .PHONY
4012         * Makefile.in: Regenerate.
4014 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4016         PR libgomp/27612
4017         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4018         * testsuite/libgomp.c/critical-1.c: Likewise.
4019         * testsuite/libgomp.c/loop-1.c: Likewise.
4020         * testsuite/libgomp.c/loop-2.c: Likewise.
4021         * testsuite/libgomp.c/single-1.c: Likewise.
4022         * testsuite/libgomp.c/ordered-1.c: Likewise.
4023         * testsuite/libgomp.c/ordered-2.c: Likewise.
4025 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
4027         PR middle-end/27416
4028         * libgomp.fortran/pr27416-1.f90: New test.
4030 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
4032         PR fortran/27395
4033         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4034         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4036 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4038         PR c++/26943
4039         * testsuite/libgomp.c/pr26943-1.c: New test.
4040         * testsuite/libgomp.c/pr26943-2.c: New test.
4041         * testsuite/libgomp.c/pr26943-3.c: New test.
4042         * testsuite/libgomp.c/pr26943-4.c: New test.
4043         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4044         * testsuite/libgomp.c++/pr26943.C: New test.
4046 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4048         PR middle-end/27337
4049         * testsuite/libgomp.c++/pr27337.C: New test.
4051 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
4053         PR c/26171
4054         * testsuite/libgomp.c/pr26171.c: New test.
4056 2006-04-25  Richard Henderson  <rth@redhat.com>
4058         PR libgomp/25865
4059         * configure.ac: Use GCC_CHECK_TLS.
4060         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4061         * Makefile.in, aclocal.m4, configure: Regenerate.
4063 2006-04-10  Matthias Klose  <doko@debian.org>
4065         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4066         directory names containing underscores.
4068 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
4070         PR c++/26691
4071         * testsuite/libgomp.c++/pr26691.C: New test.
4073 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
4075         * testsuite/libgomp.fortran/retval2.f90: New test.
4077 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
4079         * testsuite/libgomp.c++: New directory.
4081 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
4083         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4084         * config/posix/sem.c: Implement the above.
4086 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
4088         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4089         define HAVE_BROKEN_POSIX_SEMAPHORES.
4090         * configure: Rebuilt.
4091         * config.h.in: Rebuilt.
4093 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4095         PR bootstrap/26161
4096         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4097         for the other pthread check.
4098         * configure: Regenerate.
4099         * config.h.in: Regenerate.
4101 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
4103         PR libgomp/25938
4104         PR libgomp/25984
4105         * Makefile.am (fincludedir): New variable.
4106         (nodist_include_HEADERS): Remove Fortran files.
4107         (nodist_finclude_HEADERS): New variable.
4108         * Makefile.in: Regenerated.
4110 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
4112         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4113         Remove tests for returning assumed character length arrays.
4115 2006-02-12  Roger Sayle  <roger@eyesopen.com>
4116             John David Anglin  <dave@hiauly1.hia.nrc.ca>
4118         PR libgomp/25936
4119         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4121 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4123         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4125 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4127         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4128         part of LD_LIBRARY_PATH manually.
4130 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4132         PR libgomp/25852
4133         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4134         libgomp_init.
4136 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
4138         PR libgomp/25884
4139         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4140         * configure.ac (PERL): Don't set.
4141         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4142         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4143         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4144         * omp.h.in: Wrap the new configure substitutions with @ characters.
4145         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4146         * aclocal.m4, configure, Makefile.in: Regenerate.
4147         * mkomp_h.pl: Delete.
4149 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
4151         PR libgomp/25259
4152         * configure.ac: Use GCC_HEADER_STDINT.
4153         * libgomp.h: Include gstdint.h.
4154         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4155         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4157 2006-01-24  Richard Henderson  <rth@redhat.com>
4159         PR libgomp/25942
4160         * configure.ac: Add AM_MAINTAINER_MODE.
4161         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4163 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
4165         * Makefile.in: Regenerate.
4166         * testsuite/Makefile.in: Regenerate.
4167         * aclocal.m4: Regenerate.
4169 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
4171         * config/posix/proc.c: Conditional include of sys/loadavg.h for
4172         Solaris.
4173         * configure.ac: Add check for loadavg.h.
4174         (link_gomp): Adjust comment.
4175         * configure: Regenerate.
4176         * config.h.in: Regenerate.
4178 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
4180         PR libgomp/25877
4181         * configure.ac: Remove check for alloca.h.
4182         * configure: Regenerate.
4183         * config.h.in: Regenerate.
4184         * libgomp.h: define gomp_alloca to be __builtin_alloca.
4185         * team.c: Remove use of alloca.h.
4186         Call gomp_alloca instead of alloca.
4188 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
4190         PR libgomp/25877
4191         * team.c: Add include of alloca.h.
4192         * configure.ac: Add check for alloca.h.
4193         * configure: Regenerate.
4194         * config.h.in: Regenerate.
4196 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
4198         PR fortran/25219
4199         * testsuite/libgomp.fortran/pr25219.f90: New test.
4201 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
4203         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4204         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4205         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4206         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4207         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4208         testsuite/libgomp.fortran/threadprivate1.f90,
4209         testsuite/libgomp.fortran/threadprivate2.f90,
4210         testsuite/libgomp.fortran/threadprivate3.f90,
4211         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4212         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4213         testsuite/libgomp.fortran/omp_parse3.f90: Change required
4214         effective-target to TLS runtime.
4216         * testsuite/libgomp.fortran/pr25162.f: Require
4217         effective-target TLS runtime.
4219 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
4221         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4222         * testsuite/libgomp.c/nestedfn-3.c: New test.
4224 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
4226         PR fortran/25162
4227         * testsuite/libgomp.fortran/pr25162.f: New test.
4229 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
4231         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4232         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4234 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
4236         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4237         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4238         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4239         single.c, team.c, work.c, config/linux/alpha/futex.h,
4240         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4241         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4242         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4243         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4244         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4245         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4246         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4247         FSF address.
4249 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4251         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4252         to nodist_noinst_HEADERS.
4253         * Makefile.in: Rebuilt.
4255         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4256         add integer count field.
4257         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4258         omp_nest_lock_t type change.
4259         (omp_init_nest_lock): Likewise.  Initialize count to 0.
4260         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4261         Increment count.
4262         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4263         Decrement count.
4264         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4265         Increment count if successful and return the new nesting level.
4266         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4267         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4268         * testsuite/libgomp.c/lib-1.c: New test.
4269         * testsuite/libgomp.fortran/lib1.f90: New test.
4270         * testsuite/libgomp.fortran/lib2.f: New test.
4271         * testsuite/libgomp.fortran/lib3.f: New test.
4273 2005-11-17  Richard Henderson  <rth@redhat.com>
4275         PR 24845
4276         * Makefile.am (nodist_toolexeclib_HEADERS): New.
4277         * configure.ac (link_gomp): New.  Substitute it.
4278         (AC_CONFIG_FILES): Add libgomp.spec.
4279         * libgomp.spec.in: New file.
4280         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4281         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4283 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4285         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4286         reduction(-:var) behaving the same as reduction(+:var).
4287         * testsuite/libgomp.c/reduction-4.c: New test.
4289 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
4291         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4292         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4293         testsuite/libgomp.c/copyin-3.c,
4294         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4295         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4296         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4297         testsuite/libgomp.c++/pr24455.C,
4298         testsuite/libgomp.fortran/threadprivate1.f90,
4299         testsuite/libgomp.fortran/threadprivate2.f90,
4300         testsuite/libgomp.fortran/threadprivate3.f90,
4301         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4302         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4303         testsuite/libgomp.fortran/omp_parse3.f90: Require
4304         effective-target TLS.
4306 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
4308         * HEADER: Remove.
4310 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
4312         PR libgomp/24797
4313         * team.c (initialize_team): Pass NULL rather than free as
4314         pthread_key_create destructor.  Initialize thread specific data
4315         pointer in initial thread to a static local variable rather than
4316         malloced memory.
4318 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
4320         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4321         its location to ld_library_path.
4323 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4325         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4327 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4329         * testsuite/libgomp.c: Rename from libgomp.dg.
4331 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
4333         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4334         threadprivate variable 'i'.
4336 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
4338         * config/linux/s390/futex.h: New file.
4339         * configure.tgt: Use it.
4341         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4342         before the parallel.
4344 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4346         PR c++/24734
4347         * testsuite/libgomp.c++/master-1.C: New test.
4349 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4351         * testsuite/libgomp.dg/copyin-3.c: New test.
4353 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4355         * testsuite/libgomp.fortran/retval1.f90: New test.
4356         * testsuite/libgomp.fortran/vla7.f90: New test.
4358 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
4360         * testsuite/libgomp.fortran/vla2.f90: New test.
4361         * testsuite/libgomp.fortran/vla3.f90: New test.
4362         * testsuite/libgomp.fortran/vla4.f90: New test.
4363         * testsuite/libgomp.fortran/vla5.f90: New test.
4364         * testsuite/libgomp.fortran/vla6.f90: New test.
4366 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
4368         * config/linux/sparc/futex.h: New file.
4369         * configure.tgt: Use it.
4370         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4372         * critical.c: Include stdlib.h.
4373         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4374         ignoring return value.
4375         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4376         LIBGOMP_CHECK_SYNC_BUILTINS check.
4377         * configure: Rebuilt.
4379 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4381         * testsuite/libgomp.fortran/vla1.f90: New test.
4383 2005-10-31  Richard Henderson  <rth@redhat.com>
4385         * testsuite/libgomp.fortran/character2.f90: Fix race condition
4386         setting 's' in different threads.
4388 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4390         * libgomp.h (attribute_hidden, ialias): Define.
4391         * config/posix/proc.c (omp_get_num_procs): Add ialias.
4392         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4393         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4394         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4395         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4396         omp_test_lock, omp_test_nest_lock): Likewise.
4397         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4398         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4399         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4400         omp_test_lock, omp_test_nest_lock): Likewise.
4401         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4402         omp_get_dynamic, omp_get_nested): Likewise.
4403         * parallel.c (omp_get_num_threads, omp_get_max_threads,
4404         omp_get_thread_num, omp_in_parallel): Likewise.
4405         * fortran.c (ialias_redirect): Define.
4406         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4407         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4408         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4409         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4410         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4411         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4412         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4413         omp_get_wtime): Add ialias_redirect.
4415 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
4417         * fortran.c: Include stdlib.h.
4419 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
4421         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4422         * Makefile.in: Regenerated.
4424 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
4426         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4427         * libgomp_f.h.in (omp_check_defines): New function.
4428         * env.c: Include libgomp_f.h.
4429         (initialize_env): Call omp_check_defines.
4431         * testsuite/libgomp.dg/copyin-2.c: New test.
4432         * testsuite/libgomp.c++/copyin-2.C: New test.
4433         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4435         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4436         * testsuite/libgomp.fortran/sharing2.f90: New test.
4438         * testsuite/libgomp.dg/copyin-1.c: New test.
4439         * testsuite/libgomp.c++/copyin-1.C: New test.
4441 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
4443         * testsuite/libgomp.fortran/crayptr1.f90: New test.
4445         * testsuite/libgomp.fortran/workshare1.f90: New test.
4447         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4448         only test.
4449         * libgomp.fortran/sharing1.f90: New test.
4451 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
4453         PR c++/24502
4454         * testsuite/libgomp.c++/loop-7.C: New test.
4456         * testsuite/libgomp.dg/nestedfn-2.c: New test.
4458         * testsuite/libgomp.dg/nestedfn-1.c: New test.
4459         * testsuite/libgomp.fortran/reduction6.f90: New test.
4460         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4462 2005-10-23  Richard Henderson  <rth@redhat.com>
4464         * testsuite/libgomp.c++/ctor-1.C: New.
4465         * testsuite/libgomp.c++/ctor-2.C: New.
4466         * testsuite/libgomp.c++/ctor-3.C: New.
4467         * testsuite/libgomp.c++/ctor-4.C: New.
4468         * testsuite/libgomp.c++/ctor-5.C: New.
4469         * testsuite/libgomp.c++/ctor-6.C: New.
4470         * testsuite/libgomp.c++/ctor-7.C: New.
4471         * testsuite/libgomp.c++/ctor-8.C: New.
4472         * testsuite/libgomp.c++/ctor-9.C: New.
4474 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
4476         PR 24455
4477         * testsuite/libgomp.c++/pr24455-1.C: New test.
4478         * testsuite/libgomp.c++/pr24455.C: New test.
4479         * testsuite/libgomp.dg/pr24455-1.c: New test.
4480         * testsuite/libgomp.dg/pr24455.c: New test.
4482 2005-10-20  Richard Henderson  <rth@redhat.com>
4484         * testsuite/libgomp.c++/loop-6.C: New.
4485         * testsuite/libgomp.dg/loop-3.c: New.
4487 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
4489         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4490         explicitly private.
4491         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4492         explicitly shared.
4494 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
4496         * testsuite/libgomp.fortran/jacobi.f: New test.
4498 2005-10-19  Richard Henderson  <rth@redhat.com>
4500         * configure.tgt (i?86-linux): Default to with_arch instead of
4501         CFLAGS.  Add -mtune to match target_cpu.
4502         (x86_64-linux): Tune to i686.
4504         * fortran.c (omp_test_nest_lock_): Fix typo.
4506 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
4508         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4509         gomp_ordered_sync): Do nothing if team->nthreads == 1.
4510         * testsuite/libgomp.dg/ordered-3.c: New test.
4512         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4513         Remove volatile keyword.
4515         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4516         in COMMON block to avoid warnings on 64-bit targets.
4518 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
4520         * testsuite/libgomp.dg/shared-3.c: New test.
4522 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4524         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4525         * testsuite/libgomp.fortran/reduction5.f90: New test.
4527 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4529         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4530         dg-options.
4531         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
4532         flush loop now that __sync_synchronize has proper memory barrier.
4533         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4534         Add -ffixed-form to dg-options.
4536 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4538         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4539         from subdirectories.
4540         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4541         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4542         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4543         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4544         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4545         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4546         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4547         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4548         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4549         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4550         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4551         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4552         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4553         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4554         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4555         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4556         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4557         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4558         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4559         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4560         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4561         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4562         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4563         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4564         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4566 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
4568         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4569         lang_library_path exists.  Use find instead of glob to gather tests.
4570         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4572 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4574         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4575         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4576         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4577         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4578         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4579         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4580         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4581         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4582         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4583         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4584         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4585         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4586         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4588 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
4590         * testsuite/libgomp.dg/vla-1.c: New test.
4592         * testsuite/libgomp.fortran/reference2.f90: New test.
4594         * testsuite/libgomp.fortran/character2.f90: Remove explicit
4595         declaration of omp_get_thread_num.
4596         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
4597         use omp_lib.
4599         * testsuite/libgomp.fortran/reduction1.f90: New test.
4600         * testsuite/libgomp.fortran/reduction2.f90: New test.
4601         * testsuite/libgomp.fortran/reduction3.f90: New test.
4602         * testsuite/libgomp.fortran/reduction4.f90: New test.
4604 2005-10-13  Richard Henderson  <rth@redhat.com>
4606         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4607         * Makefile.in: Regenerate.
4608         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4609         * libgomp.h: Include bar.h.
4610         (struct gomp_barrier): Remove.
4611         (struct gomp_team): Add barrier.  Replace master_barrier with
4612         master_release.  Replace threads with ordered_release.
4613         (struct gomp_thread): Replace barrier with release.
4614         * ordered.c (gomp_ordered_first): Update for ordered_release change.
4615         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4616         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4617         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4618         (GOMP_single_copy_end): Likewise.
4619         * team.c (gomp_threads_dock): New.
4620         (gomp_barrier_init, gomp_barrier_destroy): Remove.
4621         (gomp_thread_start): Use gomp_barrier_wait.
4622         (new_team, free_team): Update for gomp_team changes.
4623         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4624         (gomp_team_end): Use gomp_barrier_wait.
4625         (initialize_team): Update for gomp_thread changes.
4626         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4627         (gomp_work_share_end_nowait): Use atomic ops when available.
4628         * config/linux/bar.c, config/linux/bar.h: New files.
4629         * config/posix/bar.c, config/posix/bar.h: New files.
4631 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
4633         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4634         * testsuite/libgomp.dg/single-2.c: New test.
4636         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4637         lang_link_flags): Unset, so that they aren't inherited from previously
4638         sourced *.exp.
4640         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4642 2005-10-12  Richard Henderson  <rth@redhat.com>
4644         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4645         (libgomp_init): Use lang_test_file, lang_library_path, and
4646         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
4648         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4649         (lang_test_file, lang_link_flags): New.
4650         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4652         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4653         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4654         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4655         testsuite/libgomp.c++/parallel-1.C,
4656         testsuite/libgomp.c++/reduction-1.C,
4657         testsuite/libgomp.c++/reduction-2.C,
4658         testsuite/libgomp.c++/reduction-3.C,
4659         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4660         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4661         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4662         New files, largely cribbed from the C testsuite.
4664 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
4666         * testsuite/libgomp.fortran/character1.f90: New test.
4667         * testsuite/libgomp.fortran/character2.f90: New test.
4669         * testsuite/libgomp.dg/nested-1.c: New test.
4670         * testsuite/libgomp.dg/nested-2.c: New test.
4671         * testsuite/libgomp.fortran/do1.f90: New test.
4672         * testsuite/libgomp.fortran/do2.f90: New test.
4674         * testsuite/libgomp.fortran/reference1.f90: New test.
4676 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
4678         * testsuite/libgomp.dg/reduction-1.c: New test.
4679         * testsuite/libgomp.dg/reduction-2.c: New test.
4680         * testsuite/libgomp.dg/reduction-3.c: New test.
4682 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
4684         * testsuite/libgomp.dg/atomic-1.c: New test.
4685         * testsuite/libgomp.dg/atomic-2.c: New test.
4687 2005-10-09  Richard Henderson  <rth@redhat.com>
4689         * critical.c (atomic_lock): New.
4690         (initialize_critical): Initialize it.
4691         (GOMP_atomic_start, GOMP_atomic_end): New.
4692         * libgomp.map: Export them.
4693         * libgomp_g.h: Declare them.
4695         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4697 2005-10-02  Richard Henderson  <rth@redhat.com>
4699         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
4700         to XCFLAGS instead of CFLAGS.
4702 2005-09-30  Richard Henderson  <rth@redhat.com>
4704         * configure.ac: Determine whether -pthread or -lpthread is needed.
4705         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4706         * Makefine.in, configure: Rebuild.
4708 2005-09-28  Richard Henderson  <rth@redhat.com>
4710         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4711         * testsuite/libgomp.dg/omp-single-3.c: New test.
4713 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
4715         * testsuite/libgomp.dg/omp-single-2.c: New test.
4716         * testsuite/libgomp.dg/shared-2.c: Fix return code.
4718 2005-09-27  Richard Henderson  <rth@redhat.com>
4720         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4721         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4723 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
4725         * testsuite/libgomp.dg/omp-loop03.c: New test.
4727 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4729         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4731 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4733         * testsuite/libgomp.dg/omp-single-1.c: New test.
4734         * testsuite/libgomp.dg/shared-1.c: Return 0.
4735         Add prototype for abort.
4736         * testsuite/libgomp.dg/shared-2.c: Likewise.
4738 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
4740         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4741         constructs.
4743 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
4745         * testsuite/libgomp.dg/shared-1.c: New test.
4746         * testsuite/libgomp.dg/shared-2.c: New test.
4748 2005-09-24  Richard Henderson  <rth@redhat.com>
4750         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4752 2005-09-24  Richard Henderson  <rth@redhat.com>
4754         * iter.c (gomp_iter_static_next): Round up when computing number
4755         of iterations.  Don't bother distributing a remainder equally.
4757         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4758         Don't call srand.  Zero b before testing.
4759         (main): New.
4761 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4763         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4764         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4766 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
4768         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4769         without !$omp end do, followed immediately by subroutine end.
4771 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
4773         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4775 2005-09-22  Richard Henderson  <rth@redhat.com>
4777         * critical.c (GOMP_critical_name_start): Change argument to void**.
4778         Reuse the pointer space if the mutex fits.
4779         (GOMP_critical_name_end): Likewise.
4780         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4781         * libgomp_g.h (GOMP_critical_name_start): Update decl.
4782         (GOMP_critical_name_end): Likewise.
4783         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4784         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4786 2005-09-20  Richard Henderson  <rth@redhat.com>
4788         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4789         (create_lock_lock): New.
4790         (initialize_critical): Initialize it.
4791         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4792         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4794 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4796         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4798 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4800         * testsuite/libgomp.dg/omp-loop01.c: New test.
4801         * testsuite/libgomp.dg/omp-loop02.c: New test.
4803 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4805         * configure.ac (AC_PROG_FC): Add.
4806         (USE_FORTRAN): New automake conditional.
4807         * configure: Rebuilt.
4808         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4809         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4810         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4811         Add rules to build them.
4812         * Makefile.in: Rebuilt.
4813         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4814         OMP_NEST_LOCK_KIND.
4815         * libgomp.map: Add Fortran wrappers.
4816         * libgomp_f.h.in: New file.
4817         * omp_lib.h.in: New file.
4818         * omp_lib.f90.in: New file.
4819         * fortran.c: New file.
4820         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4821         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4822         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4823         libgfortran has been built.
4824         * testsuite/libgomp.fortran/fortran.exp: New file.
4825         * testsuite/libgomp.fortran/omp_cond1.f: New test.
4826         * testsuite/libgomp.fortran/omp_cond2.f: New test.
4827         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4828         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4829         * testsuite/libgomp.fortran/omp_hello.f: New test.
4830         * testsuite/libgomp.fortran/omp_orphan.f: New test.
4831         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4832         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4833         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4834         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4835         * testsuite/libgomp.fortran/omp_reduction.f: New test.
4836         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4837         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4839 2005-08-30  Richard Henderson  <rth@redhat.com>
4841         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4842         function for when aliases are not usable.
4843         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4844         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4845         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4846         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4847         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4848         GOMP_loop_ordered_guided_next): Likewise.
4849         * ordered.c (GOMP_ordered_start): Likewise.
4851 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
4853         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4854         * testsuite/libgomp.dg/omp_hello.c: Fix return code
4855         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4856         * testsuite/libgomp.dg/omp_orphan.c: Likewise
4857         * testsuite/libgomp.dg/omp_reduction.c: Likewise
4858         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4859         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4860         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4861         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4863 2005-07-07  Eric Christopher  <echristo@redhat.com>
4864             Diego Novillo  <dnovillo@redhat.com>
4866         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4867         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4868         up code.
4869         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4870         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4871         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4872         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4873         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4874         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4875         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4877 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
4879         * TOPLEVEL.patch: Remove.
4881 2005-05-16  Richard Henderson  <rth@redhat.com>
4883         * configure.ac: Test for clock_gettime.
4884         * config.h.in, configure: Rebuild.
4885         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4886         (omp_get_wtime): Use clock_gettime if available.
4887         (omp_get_wtick): Use clock_getres if available.
4889 2005-05-11  Richard Henderson  <rth@redhat.com>
4891         * config/linux/ia64/futex.h: New file.
4892         * configure.tgt: Use it.
4894         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4896 2005-05-07  Richard Henderson  <rth@redhat.com>
4898         * config/linux/powerpc/futex.h: New file.
4899         * configure.tgt: Use it.
4901         * config/linux/i486/futex.h: Merge ...
4902         * config/linux/x86_64/futex.h: ... into ...
4903         * config/linux/x86/futex.h: ... here.
4904         * configure.tgt: Update to match.
4906 2005-05-06  Richard Henderson  <rth@redhat.com>
4908         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4909         * config/linux/i486/futex.h: Likewise.
4910         * config/linux/x86_64/futex.h: Likewise.
4912         * config/linux/lock.c: New file.
4913         * config/linux/omp-lock.h: New file.
4915         * critical.c, env.h: Don't include omp.h
4916         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4917         * config/posix/time.c: Likewise.
4918         * config/posix/omp-lock.h: New file.
4919         * libgomp.h: Include omp-lock.h and omp.h.
4920         * Makefile.am (nodist_include_HEADERS): New.
4921         (omp.h): New rule.
4922         * configure.ac (PERL): New.
4923         * mkomp_h.pl: New file.
4924         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4925         with templates.
4926         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4928         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4929         build directory.  Re-add -march=i486 hack.
4931         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4932         (libgomp_link_flags): Remove.
4933         (libgomp_initialized): Remove.
4934         (libgomp_init): Don't protect from reinitialization.  Copy code
4935         from libstdc++ for getting the multilib set correctly.
4937 2005-05-05  Richard Henderson  <rth@redhat.com>
4939         * config/linux/alpha/futex.h: New file.
4940         * configure.tgt (alpha*-*-linux*): Use it.
4942         * config/posix/mutex.c: New file.
4943         * config/posix/sem.c: Use libgomp.h.
4945         * configure.tgt (x86_64-linux): Also test CC for -m32.
4946         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4948         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4949         after $gccpath.
4951         * Makefile.am (SUBDIRS): New.
4952         (libgomp_la_LDFLAGS): Add -lpthread.
4953         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4954         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4956         * libgomp_g.h: New file.
4957         * libgomp.h: Split out all public declarations to libgomp_g.h.
4958         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4959         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4960         * config/linux/sem.h: Likewise.
4961         * config/posix/sem.h: Likewise.
4963         * Makefile.am (AM_LDFLAGS): New.
4964         (libgomp_version_script): Split out from ...
4965         (libgomp_la_LDFLAGS): ... here.
4966         (libgomp_version_info): New.
4967         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4968         (LIBGOMP_ENABLE): New.
4969         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4970         (LIBGOMP_ENABLE_SYMVERS): New.
4971         * configure.ac (AC_INIT): Version 1.0.
4972         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4973         (enable-linux-futex): Likewise.  Rename from enable-futex.
4974         (libtool_VERSION): New.
4975         (LIBGOMP_ENABLE_SYMVERS): Use it.
4976         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4977         * Makefile.in, aclocal.m4, configure: Rebuild.
4979         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4980         (gomp_mutex_unlock_slow): Fix typo.
4981         * config/linux/sem.c: Similarly.
4982         (gomp_sem_post_slow): Fix typo.
4983         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4984         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4985         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4987         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4988         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4989         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4990         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4991         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4992         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4993         LDFLAGS.  Pull enable_futex check to top-level.
4994         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4995         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4997         First attempt at real configury.
4998         * Makefile, config.h: Remove file.
4999         * Makefile.am, Makefile.in: New file.
5000         * acinclude.m4 aclocal.m4: New file.
5001         * configure.ac, configure.tgt, configure: New file.
5003         * config/posix/lock.c: Rename from sys-lock.c.
5004         * config/posix/mutex.h: Rename from sys-mutex.h.
5005         * config/posix/sem.c: Rename from sys-sem.c.
5006         * config/posix/sem.h: Rename from sys-sem.h.
5007         * config/posix/proc.c: Rename from sys-proc.c.
5008         * config/posix/time.c: Rename from sys-proc.c.
5010         * config/linux/mutex.c: New file.
5011         * config/linux/mutex.h: New file.
5012         * config/linux/sem.c: New file.
5013         * config/linux/sem.h: New file.
5014         * config/linux/i486/futex.h: New file.
5015         * config/linux/x86_64/futex.h: New file.
5017 2005-05-04  Richard Henderson  <rth@redhat.com>
5019         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5020         * libgomp.h: Declare them.
5021         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5022         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5024 2005-05-04  Richard Henderson  <rth@redhat.com>
5026         * libgomp-1 code drop
5028 2005-05-04  Richard Henderson  <rth@redhat.com>
5030         * iter.c (gomp_iter_static_next): Return tri-state on 0.
5031         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5032         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5033         (gomp_iter_static_next): Update.
5034         (gomp_ordered_static_next): Update.
5035         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5036         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
5037         totally empty range.
5038         (gomp_loop_ordered_static_next): Refine test for calling
5039         gomp_ordered_static_next.
5040         * testsuite/ordered-1.c: Add case for more threads than iterations.
5042         * iter.c (gomp_iter_runtime_next_locked): Remove.
5043         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5044         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5045         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5046         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5047         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5048         gomp_loop_ordered_guided_next): Downcase name, make static, add
5049         an external alias with the old name.
5050         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5051         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5052         switch and call one of the above static functions.
5053         * libgomp.h: Update.
5055         * work.c (gomp_work_share_start): Lock the mutex for !first too.
5056         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5057         GOMP_loop_guided_start, GOMP_loop_runtime_start,
5058         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5059         GOMP_loop_ordered_guided_start): Update to match.
5060         * sections.c (GOMP_sections_start): Likewise.
5061         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5063         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5064         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5065         Use bounds check instead of modulus.
5066         (gomp_ordered_sync): Split out of GOMP_ordered_start.
5067         (gomp_ordered_last): Don't sync with ordered_owner here.
5068         (gomp_ordered_next): Likewise.
5069         (gomp_ordered_static_loop_next): Likewise.
5070         * loop.c, libgomp.h: Update to match.
5072         * libgomp.h (GOMP_barrier): Declare.
5074         * testsuite/barrier-1.c: New file.
5075         * testsuite/critical-1.c: New file.
5076         * testsuite/ordered-2.c: New file.
5077         * testsuite/ordered-1.c: New file.
5078         * testsuite/sections-1.c: New file.
5079         * testsuite/single-1.c: New file.
5080         * testsuite/Makefile (TESTS): Add them.
5082 2005-05-04  Richard Henderson  <rth@redhat.com>
5084         * libgomp.h (struct gomp_work_share): Add ordered_owner.
5085         * loop.c (GOMP_loop_static_start): If not the startup thread,
5086         acquire the mutex to wait for initialization complete.
5087         (GOMP_loop_ordered_static_start): Likewise.
5088         (GOMP_loop_ordered_runtime_start): Likewise.
5089         (GOMP_loop_ordered_static_first): Remove.
5090         (GOMP_loop_ordered_dynamic_first): Remove.
5091         (GOMP_loop_ordered_guided_first): Remove.
5092         (GOMP_loop_ordered_runtime_first): Remove.
5093         * ordered.c (gomp_ordered_loop_first): Post to own release when
5094         we're the first thread.
5095         (gomp_ordered_loop_last): Wait on release if not owner.
5096         (gomp_ordered_loop_next): Likewise.
5097         (gomp_ordered_static_loop_init): New.
5098         (gomp_ordered_static_loop_next): Use ordered_owner.
5099         (GOMP_ordered_start): Likewise.
5100         * work.c (gomp_new_work_share): Initialize ordered_owner.
5102 2005-05-03  Richard Henderson  <rth@redhat.com>
5104         * Makefile (OPT): New.
5105         (CFLAGS): Use it.
5107         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5108         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5109         * libgomp.h, libgomp.map, NOTES: Update to match.
5111         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5112         Add initialized and thr members.
5113         (gomp_thread_start): Pause when initially spawned to wait for
5114         the whole team to be created.
5115         (gomp_team_start): Release team members at the end.
5117         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
5118         (f_foo_1): Use GOMP_loop_end.
5119         (f_foo_2): Use GOMP_loop_end_nowait.
5121         * testsuite/loop-2.c: New file.
5122         * testsuite/Makefile (TESTS): Add it.
5124 2005-05-03  Richard Henderson  <rth@redhat.com>
5126         * iter.c (gomp_iter_static_next): Fix overflow check typo.
5127         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5128         * team.c (new_team): Initialize oldest_live_gen to 1 if no
5129         initial work_share.
5131         * testsuite/Makefile: New file.
5132         * testsuite/loop-1.c: New file.
5134 2005-05-03  Richard Henderson  <rth@redhat.com>
5136         Initial implementation and checkin.