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