1 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
3 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
4 and ref from int to double. Replaced their comparison with
5 an inequality of their difference and EPS.
6 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7 comparison of pri and a reference number with an inequality of their
9 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10 the comparison of sum and sum_ref with an inequality of their
12 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13 the comparison of pri and a reference number with an inequality of
14 their difference and EPS.
16 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
18 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
19 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
20 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
21 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
22 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
23 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
24 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
25 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
26 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
27 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
28 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
29 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
30 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
32 (vec_mult): Likewise. Add #pragma omp taskwait.
33 (main): Adjust caller.
34 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
35 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
36 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
37 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
38 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
39 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
40 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
41 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
42 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
43 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
44 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
45 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
46 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
47 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
48 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
49 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
50 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
51 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
52 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
53 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
54 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
55 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
56 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
57 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
58 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
59 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
60 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
61 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
62 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
63 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
64 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
65 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
66 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
67 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
68 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
69 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
70 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
71 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
72 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
73 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
74 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
75 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
76 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
77 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
78 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
79 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
80 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
81 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
82 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
83 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
84 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
85 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
86 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
87 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
88 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
89 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
90 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
91 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
92 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
93 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
94 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
95 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
96 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
97 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
98 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
99 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
100 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
101 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
102 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
103 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
104 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
105 (vec_mult): Add !$omp taskwait.
106 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
107 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
108 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
109 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
110 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
111 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
112 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
113 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
114 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
115 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
116 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
117 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
118 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
119 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
120 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
121 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
122 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
123 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
124 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
125 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
126 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
127 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
128 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
129 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
130 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
131 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
132 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
133 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
134 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
135 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
136 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
137 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
138 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
139 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
140 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
141 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
142 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
143 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
144 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
145 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
146 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
147 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
148 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
149 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
150 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
151 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
152 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
153 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
154 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
155 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
156 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
157 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
158 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
159 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
160 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
161 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
162 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
163 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
164 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
165 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
166 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
167 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
168 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
169 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
170 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
171 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
172 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
174 2015-07-10 Tom de Vries <tom@codesourcery.com>
176 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
177 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
179 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
182 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
183 in a 64-bit configuration.
184 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
185 offloading testing if no such device is available.
186 * testsuite/libgomp.oacc-c/c.exp: Likewise.
187 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
189 2015-07-08 Tom de Vries <tom@codesourcery.com>
191 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
193 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
195 2015-07-07 Tom de Vries <tom@codesourcery.com>
197 PR tree-optimization/66642
198 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
199 iteration count case.
200 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
201 function, factor out of ...
202 (main): ... here. Test low iteration count case.
204 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
206 * libgomp.h (gomp_thread_pool): Comment last_team field.
208 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
210 * testsuite/libgomp.c++/pr66702-1.C: Require
211 vect_simd_clones effective target.
212 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
214 2015-06-30 Tom de Vries <tom@codesourcery.com>
216 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
217 already set. Use DEFAULT_CFLAGS in dg-runtest.
218 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
221 2015-06-30 Tom de Vries <tom@codesourcery.com>
223 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
224 already set. Use DEFAULT_CFLAGS in dg-runtest.
225 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
226 * testsuite/libgomp.c++/pr64824.C: Same.
227 * testsuite/libgomp.c++/pr64868.C: Same.
228 * testsuite/libgomp.c++/pr66199-1.C: Same.
229 * testsuite/libgomp.c++/pr66199-2.C: Same.
230 * testsuite/libgomp.c++/target-2.C: Same.
231 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
232 -std=<standard> option.
233 * testsuite/libgomp.c++/udr-11.C: Same.
234 * testsuite/libgomp.c++/udr-12.C: Same.
235 * testsuite/libgomp.c++/udr-13.C: Same.
236 * testsuite/libgomp.c++/udr-14.C: Same.
237 * testsuite/libgomp.c++/udr-15.C: Same.
238 * testsuite/libgomp.c++/udr-16.C: Same.
239 * testsuite/libgomp.c++/udr-17.C: Same.
240 * testsuite/libgomp.c++/udr-18.C: Same.
241 * testsuite/libgomp.c++/udr-19.C: Same.
242 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
243 * testsuite/libgomp.c++/simd-1.C: Same.
244 * testsuite/libgomp.c++/simd-2.C: Same.
245 * testsuite/libgomp.c++/simd-3.C: Same.
246 * testsuite/libgomp.c++/simd-4.C: Same.
247 * testsuite/libgomp.c++/simd-5.C: Same.
248 * testsuite/libgomp.c++/simd-6.C: Same.
249 * testsuite/libgomp.c++/simd-7.C: Same.
250 * testsuite/libgomp.c++/simd-8.C: Same.
251 * testsuite/libgomp.c++/simd-9.C: Same.
252 * testsuite/libgomp.c++/simd10.C: Same.
253 * testsuite/libgomp.c++/simd11.C: Same.
254 * testsuite/libgomp.c++/simd12.C: Same.
255 * testsuite/libgomp.c++/simd13.C: Same.
257 2015-06-30 Jakub Jelinek <jakub@redhat.com>
260 * testsuite/libgomp.c++/pr66702-1.C: New test.
261 * testsuite/libgomp.c++/pr66702-2.C: New test.
263 2015-06-30 Tom de Vries <tom@codesourcery.com>
265 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
267 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
268 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
270 2015-06-30 Tom de Vries <tom@codesourcery.com>
272 PR tree-optimization/66652
273 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
274 using restrict pointers.
275 (main): Add arguments to calls to f.
276 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
278 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
280 * configure.ac: Fix check for header <sys/sysctl.h>.
281 * configure: Regenerate.
282 * config.h.in: Likewise.
284 2015-06-23 Tom de Vries <tom@codesourcery.com>
286 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
288 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
290 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
292 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
296 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
297 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
299 2015-06-15 Tom de Vries <tom@codesourcery.com>
301 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
302 dg-additional-options for any remaining options.
303 * testsuite/libgomp.c/atomic-2.c: Same.
304 * testsuite/libgomp.c/atomic-4.c: Same.
305 * testsuite/libgomp.c/atomic-5.c: Same.
306 * testsuite/libgomp.c/atomic-6.c: Same.
307 * testsuite/libgomp.c/autopar-1.c: Same.
308 * testsuite/libgomp.c/copyin-1.c: Same.
309 * testsuite/libgomp.c/copyin-2.c: Same.
310 * testsuite/libgomp.c/copyin-3.c: Same.
311 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
312 * testsuite/libgomp.c/nestedfn-5.c: Same.
313 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
314 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
315 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
316 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
317 * testsuite/libgomp.c/pr32362-1.c: Same.
318 * testsuite/libgomp.c/pr32362-2.c: Same.
319 * testsuite/libgomp.c/pr32362-3.c: Same.
320 * testsuite/libgomp.c/pr39591-1.c: Same.
321 * testsuite/libgomp.c/pr39591-2.c: Same.
322 * testsuite/libgomp.c/pr39591-3.c: Same.
323 * testsuite/libgomp.c/pr58392.c: Same.
324 * testsuite/libgomp.c/pr58756.c: Same.
325 * testsuite/libgomp.c/simd-1.c: Same.
326 * testsuite/libgomp.c/simd-10.c: Same.
327 * testsuite/libgomp.c/simd-11.c: Same.
328 * testsuite/libgomp.c/simd-12.c: Same.
329 * testsuite/libgomp.c/simd-13.c: Same.
330 * testsuite/libgomp.c/simd-14.c: Same.
331 * testsuite/libgomp.c/simd-15.c: Same.
332 * testsuite/libgomp.c/simd-2.c: Same.
333 * testsuite/libgomp.c/simd-3.c: Same.
334 * testsuite/libgomp.c/simd-4.c: Same.
335 * testsuite/libgomp.c/simd-5.c: Same.
336 * testsuite/libgomp.c/simd-6.c: Same.
337 * testsuite/libgomp.c/simd-7.c: Same.
338 * testsuite/libgomp.c/simd-8.c: Same.
339 * testsuite/libgomp.c/simd-9.c: Same.
341 2015-06-15 Tom de Vries <tom@codesourcery.com>
343 * testsuite/libgomp.c/pr35625.c: Fix typo.
345 2015-06-15 Tom de Vries <tom@codesourcery.com>
347 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
349 * testsuite/libgomp.c/atomic-3.c: Same.
350 * testsuite/libgomp.c/debug-1.c: Same.
351 * testsuite/libgomp.c/nqueens-1.c: Same.
352 * testsuite/libgomp.c/pr26171.c: Same.
353 * testsuite/libgomp.c/pr48591.c: Same.
354 * testsuite/libgomp.c/pr64824.c: Same.
355 * testsuite/libgomp.c/pr64868.c: Same.
356 * testsuite/libgomp.c/pr66133.c: Same.
357 * testsuite/libgomp.c/pr66199-1.c: Same.
358 * testsuite/libgomp.c/pr66199-2.c: Same.
359 * testsuite/libgomp.c/target-8.c: Same.
361 2015-06-15 Tom de Vries <tom@codesourcery.com>
363 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
365 * testsuite/libgomp.c/for-1.c: Same.
366 * testsuite/libgomp.c/for-2.c: Same.
367 * testsuite/libgomp.c/for-3.c: Same.
368 * testsuite/libgomp.c/pr35625.c: Same.
369 * testsuite/libgomp.c/pr39154.c: Same.
370 * testsuite/libgomp.c/simd-16.c: Same.
371 * testsuite/libgomp.c/simd-17.c: Same.
373 2015-06-13 Tom de Vries <tom@codesourcery.com>
375 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
377 2015-06-13 Tom de Vries <tom@codesourcery.com>
379 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
380 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
381 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
383 (main): Use N instead of hardcoded constants.
385 2015-06-05 Tom de Vries <tom@codesourcery.com>
387 merge from gomp4 branch:
388 2015-05-28 Tom de Vries <tom@codesourcery.com>
390 PR tree-optimization/65443
391 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
392 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
393 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
395 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
397 * testsuite/libgomp.graphite/bounds.c: Adjust for
398 cleanup-tree-dump removal.
399 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
400 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
401 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
402 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
403 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
404 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
405 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
406 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
407 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
408 * testsuite/libgomp.graphite/pr41118.c: Likewise.
410 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
412 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
413 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
414 (futex_wake) [!__x86_64__]: Ditto.
416 2015-05-28 Julian Brown <julian@codesourcery.com>
418 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
419 function comment. Only call gomp_fatal if new argument is true.
420 (acc_dev_num_out_of_range): New function.
421 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
422 acc_dev_num_out_of_range as appropriate.
423 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
424 (acc_get_device_num, acc_set_device_num): Update calls to
426 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
429 2015-05-28 Julian Brown <julian@codesourcery.com>
432 * oacc-init.c (plugin/plugin-host.h): Include.
433 (acc_on_device): Check whether we're in an offloaded region for
435 plugin. Don't use __builtin_acc_on_device.
436 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
437 nonshm_exec flag in thread-local data.
438 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
439 data for host_nonshm plugin.
440 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
441 for host_nonshm plugin.
442 * plugin/plugin-host.h: New.
444 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
446 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
448 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
450 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
452 (FUTEX_PRIVATE_FLAG): Remove L suffix.
453 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
456 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
458 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
460 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
462 * target.c (gomp_map_pointer): New function abstracting out
463 GOMP_MAP_POINTER handling.
464 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
467 2015-05-19 Jakub Jelinek <jakub@redhat.com>
470 * testsuite/libgomp.c/pr66199-1.c: New test.
471 * testsuite/libgomp.c/pr66199-2.c: New test.
472 * testsuite/libgomp.c++/pr66199-1.C: New test.
473 * testsuite/libgomp.c++/pr66199-2.C: New test.
474 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
475 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
477 2015-05-19 Julian Brown <julian@codesourcery.com>
479 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
482 2015-05-13 Jakub Jelinek <jakub@redhat.com>
485 * testsuite/libgomp.c/pr66133.c: New test.
487 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
489 * Makefile.in: Regenerated with automake-1.11.6.
490 * aclocal.m4: Likewise.
491 * config.h.in: Likewise.
492 * configure: Likewise.
493 * testsuite/Makefile.in: Likewise.
495 2015-05-08 Jason Merrill <jason@redhat.com>
497 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
500 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
502 2015-05-06 Julian Brown <julian@codesourcery.com>
504 * oacc-init.c (acc_device_lock): Add explanatory comment.
505 (resolve_device): Add comment about locking requirement.
506 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
507 gomp_init_device and gomp_fini_device calls.
508 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
509 (acc_get_device_num, acc_set_device_num): Add locking around
510 resolve_device and gomp_init_device calls.
512 2015-05-06 Julian Brown <julian@codesourcery.com>
514 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
515 goacc_thread_lock on error paths.
516 * oacc-mem.c (lookup_host): Remove locking from function. Note
517 locking requirement for caller in function comment.
518 (lookup_dev): Likewise.
519 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
520 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
521 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
524 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
528 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
529 don't expect "0x" prefix for "%p" format specifier, don't expect
530 "(nil)" for NULL pointer.
531 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
532 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
533 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
534 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
535 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
536 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
537 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
538 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
539 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
540 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
541 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
542 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
543 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
544 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
545 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
546 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
547 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
548 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
549 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
550 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
551 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
552 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
553 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
554 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
555 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
556 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
557 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
558 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
559 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
560 accurately specify what we're looking for.
561 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
562 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
563 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
564 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
565 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
567 2015-04-30 James Norris <jnorris@codesourcery.com>
570 * testsuite/lib/libgomp.exp
571 (check_effective_target_openacc_host_selected)
572 (check_effective_target_openacc_host_nonshm_selected): New
574 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
576 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
578 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
579 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
580 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
581 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
582 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
583 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
584 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
585 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
586 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
587 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
588 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
589 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
590 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
591 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
594 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
595 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
596 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
597 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
599 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
601 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
602 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
603 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
609 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
620 2015-04-08 Julian Brown <julian@codesourcery.com>
622 * libgomp.h (target_mem_desc: Remove mem_map field.
623 (acc_dispatch_t): Remove open_device_func, close_device_func,
624 get_device_num_func, set_device_num_func, target_data members.
625 Change create_thread_data_func argument to device number instead of
627 * oacc-async.c (assert.h): Include.
628 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
629 (acc_wait_all, acc_wait_all_async): Use current host thread's
630 active device, not base_dev.
631 * oacc-cuda.c (acc_get_current_cuda_device)
632 (acc_get_current_cuda_context, acc_get_cuda_stream)
633 (acc_set_cuda_stream): Likewise.
634 * oacc-host.c (host_dispatch): Don't set open_device_func,
635 close_device_func, get_device_num_func or set_device_num_func.
636 * oacc-init.c (base_dev, init_key): Remove.
637 (cached_base_dev): New.
638 (name_of_acc_device_t): New.
639 (acc_init_1): Initialise default-numbered device, not zeroth.
640 (acc_shutdown_1): Close all devices of a given type.
641 (goacc_destroy_thread): Don't use base_dev.
642 (lazy_open, lazy_init, lazy_init_and_open): Remove.
643 (goacc_attach_host_thread_to_device): New.
644 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
645 (acc_get_num_devices): Don't use base_dev.
646 (acc_set_device_type): Reimplement.
647 (acc_get_device_type): Don't use base_dev.
648 (acc_get_device_num): Tweak logic.
649 (acc_set_device_num): Likewise.
650 (acc_on_device): Use acc_get_device_type.
651 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
652 (goacc_lazy_initialize): Reimplement with acc_init and
653 goacc_attach_host_thread_to_device.
654 * oacc-int.h (goacc_thread): Add base_dev field.
655 (base_dev): Remove extern declaration.
656 (goacc_attach_host_thread_to_device): Add prototype.
657 * oacc-mem.c (acc_malloc): Use current thread's device instead of
659 (acc_free): Likewise.
660 (acc_memcpy_to_device): Likewise.
661 (acc_memcpy_from_device): Likewise.
662 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
663 goacc_lazy_initialize (throughout).
664 (GOACC_parallel): Use tgt_offset to locate target functions.
665 * target.c (gomp_map_vars): Don't set tgt->mem_map.
666 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
667 (gomp_load_plugin_for_device): Remove open_device, close_device,
668 get_device_num, set_device_num openacc hook initialisation. Don't set
670 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
671 (GOMP_OFFLOAD_openacc_close_device)
672 (GOMP_OFFLOAD_openacc_get_device_num)
673 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
674 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
676 * plugin/plugin-nvptx.c (ptx_inited): Remove.
677 (instantiated_devices, ptx_dev_lock): New.
678 (struct ptx_image_data): New.
679 (ptx_devices, ptx_images, ptx_image_lock): New.
680 (fini_streams_for_device): Reorder cuStreamDestroy call.
681 (nvptx_get_num_devices): Remove forward declaration.
682 (nvptx_init): Change return type to bool.
683 (nvptx_fini): Remove.
684 (nvptx_attach_host_thread_to_device): New.
685 (nvptx_open_device): Return struct ptx_device* instead of void*.
686 (nvptx_close_device): Change argument type to struct ptx_device*,
688 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
689 (kernel_target_data, kernel_host_table): Remove static globals.
690 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
691 (GOMP_OFFLOAD_init_device): Reimplement.
692 (GOMP_OFFLOAD_fini_device): Likewise.
693 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
694 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
695 (GOMP_OFFLOAD_host2dev): Use ORD argument.
696 (GOMP_OFFLOAD_openacc_open_device)
697 (GOMP_OFFLOAD_openacc_close_device)
698 (GOMP_OFFLOAD_openacc_set_device_num)
699 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
700 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
704 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
706 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
708 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
709 * libgomp.h (struct gomp_memory_mapping): Remove.
710 (struct target_mem_desc): Change type of mem_map from
711 gomp_memory_mapping * to splay_tree_s *.
712 (struct gomp_device_descr): Remove register_image_func, get_table_func.
713 Add load_image_func, unload_image_func.
714 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
715 Remove offload_regions_registered.
716 (gomp_init_tables): Remove.
717 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
719 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
720 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
721 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
722 offload_regions_registered.
723 Initialize load_image_func, unload_image_func, mem_map.root.
724 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
725 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
726 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
727 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
728 gomp_memory_mapping *. Use dev's lock and splay_tree.
729 (lookup_dev): Use dev's lock.
730 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
731 (acc_is_present): Likewise.
732 (acc_map_data): Likewise.
733 (acc_unmap_data): Likewise. Use dev's lock.
734 (present_create_copy): Likewise.
735 (delete_copyout): Pass dev to lookup_host instead of mem_map.
736 (update_dev_host): Likewise.
737 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
738 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
739 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
740 (GOMP_OFFLOAD_get_table): Remove
741 (GOMP_OFFLOAD_load_image): New function.
742 (GOMP_OFFLOAD_unload_image): New function.
743 * target.c (register_lock): New mutex for offload image registration.
744 (num_devices): Do not guard with PLUGIN_SUPPORT.
745 (gomp_realloc_unlock): New static function.
746 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
748 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
749 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
750 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
752 (gomp_unmap_vars): Likewise.
753 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
754 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
755 (gomp_offload_image_to_device): New static function.
756 (GOMP_offload_register): Add mutex lock.
757 Call gomp_offload_image_to_device for all initialized devices.
758 Replace gomp_realloc with gomp_realloc_unlock.
759 (GOMP_offload_unregister): New function.
760 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
761 get_table_func from the plugin with calls to init_device_func and
762 gomp_offload_image_to_device.
763 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
765 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
766 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
767 (GOMP_target_data): Do not call gomp_init_tables.
768 (GOMP_target_update): Likewise. Remove argument from gomp_update.
769 (gomp_load_plugin_for_device): Replace register_image and get_table
770 with load_image and unload_image in DLSYM ().
771 (gomp_register_images_for_device): Remove function.
772 (gomp_target_init): Do not initialize current_device.mem_map.*,
773 current_device.offload_regions_registered.
774 Remove call to gomp_register_images_for_device.
775 Do not free offload_images and num_offload_images.
777 2015-03-30 Jakub Jelinek <jakub@redhat.com>
780 * testsuite/libgomp.fortran/pr65597.f90: New test.
782 2015-03-27 Tom de Vries <tom@codesourcery.com>
785 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
786 (init, check): New function.
787 (foo): Change return type to void.
788 (main): Call init and check.
790 2015-03-27 Tom de Vries <tom@codesourcery.com>
793 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
794 (foo): Use M for non-inner loops to scale down test-case.
796 2015-03-25 Kai Tietz <ktietz@redhat.com>
799 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
800 (GOACC_data_start): Likewise.
801 * target.c (gomp_map_vars): Likewise.
803 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
805 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
808 2015-03-19 Jakub Jelinek <jakub@redhat.com>
810 * testsuite/libgomp.c/target-10.c: New test.
811 * testsuite/libgomp.c++/target-4.C: New test.
813 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
815 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
816 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
818 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
820 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
821 * configure.ac (*-*-rtems*): Assume Pthread is supported.
822 (pthread.h): Check for this header file.
823 * configure: Regenerate.
825 2015-02-25 Tom de Vries <tom@codesourcery.com>
827 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
828 (check_reduction_op, check_reduction_macro, max, min):
830 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
832 (main): Use new functions.
834 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
836 * target.c (gomp_load_plugin_for_device): Use const char * instead of
837 char * for variables holding dlerror return values.
840 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
842 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
844 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
845 Cesar Philippidis <cesar@codesourcery.com>
847 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
848 GOACC_ctaid, and GOACC_nctaid routines.
850 2015-02-11 Jakub Jelinek <jakub@redhat.com>
853 * testsuite/libgomp.c/atomic-18.c: New test.
854 * testsuite/libgomp.c++/atomic-16.C: New test.
856 2015-02-04 Jakub Jelinek <jakub@redhat.com>
860 * testsuite/libgomp.c/pr64824.c: New test.
861 * testsuite/libgomp.c/pr64868.c: New test.
862 * testsuite/libgomp.c++/pr64824.C: New test.
863 * testsuite/libgomp.c++/pr64868.C: New test.
865 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
868 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
870 * config/aix/plugin-suffix.h: Delete.
872 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
875 * configure.tgt (*-*-aix*): Use config_path "aix posix".
876 (*-*-darwin*): Use config_path "bsd darwin posix".
877 (*-*-hpux*): Use config_path "hpux posix".
878 * target.c: Add include of plugin-suffix.h and use
880 * config/aix/plugin-suffix.h: New file.
881 * config/darwin/plugin-suffix.h: New file.
882 * config/hpux/plugin-suffix.h: New file.
883 * config/posix/plugin-suffix.h: New file.
885 2015-01-23 Jakub Jelinek <jakub@redhat.com>
888 * libgomp.c/pr64734.c: New test.
890 2015-01-23 Tom de Vries <tom@codesourcery.com>
893 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
895 2015-01-23 Tom de Vries <tom@codesourcery.com>
898 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
901 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
904 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
905 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
906 formal parameter. Update all users.
907 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
908 Document unused formal parameter.
910 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
912 * oacc-parallel.c: Don't include <alloca.h>.
913 (GOACC_parallel): Use gomp_alloca instead of alloca.
915 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
917 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
919 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
920 James Norris <jnorris@codesourcery.com>
921 Tom de Vries <tom@codesourcery.com>
922 Julian Brown <julian@codesourcery.com>
923 Cesar Philippidis <cesar@codesourcery.com>
924 Nathan Sidwell <nathan@codesourcery.com>
925 Tobias Burnus <burnus@net-b.de>
927 * Makefile.am (search_path): Add $(top_srcdir)/../include.
928 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
929 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
930 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
931 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
932 Include $(top_srcdir)/plugin/Makefrag.am.
933 (nodist_libsubinclude_HEADERS): Add openacc.h.
934 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
935 openacc.f90, openacc.mod, openacc_kinds.mod.
936 (omp_lib.mod): Generalize into...
937 (%.mod): ... this new rule.
938 (openacc_kinds.mod, openacc.mod): New rules.
939 * plugin/configfrag.ac: New file.
940 * configure.ac: Move plugin/offloading support into it. Include
941 it. Instantiate testsuite/libgomp-test-support.pt.exp.
942 * plugin/Makefrag.am: New file.
943 * testsuite/Makefile.am (OFFLOAD_TARGETS)
944 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
946 (libgomp-test-support.exp): New rule.
947 (all-local): Depend on it.
948 * Makefile.in: Regenerate.
949 * testsuite/Makefile.in: Regenerate.
950 * config.h.in: Likewise.
951 * configure: Likewise.
952 * configure.tgt: Harden shell syntax.
953 * env.c: Include "oacc-int.h".
954 (parse_acc_device_type): New function.
955 (gomp_debug_var, goacc_device_type, goacc_device_num): New
957 (initialize_env): Initialize those. Call
958 goacc_runtime_initialize.
959 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
960 (gomp_fatal): Call gomp_vfatal.
961 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
962 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
963 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
964 (splay_tree_node, splay_tree, splay_tree_key)
965 (struct target_mem_desc, struct splay_tree_key_s)
966 (struct gomp_memory_mapping, struct acc_dispatch_t)
967 (struct gomp_device_descr, gomp_acc_insert_pointer)
968 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
969 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
970 (gomp_free_memmap, gomp_fini_device): New declarations.
971 (gomp_vdebug, gomp_debug): New macros.
972 Include "splay-tree.h".
973 * libgomp.map (OACC_2.0): New symbol version. Use for
974 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
975 acc_set_device_type_h_, acc_get_device_type,
976 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
977 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
978 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
979 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
980 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
981 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
982 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
983 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
984 acc_copyin_array_h_, acc_present_or_copyin,
985 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
986 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
987 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
988 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
989 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
990 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
991 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
992 acc_update_device, acc_update_device_32_h_,
993 acc_update_device_64_h_, acc_update_device_array_h_,
994 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
995 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
996 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
997 acc_is_present_64_h_, acc_is_present_array_h_,
998 acc_memcpy_to_device, acc_memcpy_from_device,
999 acc_get_current_cuda_device, acc_get_current_cuda_context,
1000 acc_get_cuda_stream, acc_set_cuda_stream.
1001 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1002 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1003 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1004 GOACC_get_num_threads.
1005 (GOMP_PLUGIN_1.0): New symbol version. Use for
1006 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1007 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1008 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1009 GOMP_PLUGIN_acc_thread.
1010 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1011 environment variable.
1012 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1013 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1014 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1015 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1016 (splay_tree_remove): New declarations.
1017 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1018 (splay_tree_remove, splay_tree_lookup): Move into...
1019 * splay-tree.c: ... this new file.
1020 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1021 (splay_tree_node, splay_tree, splay_tree_key)
1022 (struct target_mem_desc, struct splay_tree_key_s)
1023 (struct gomp_device_descr): Don't declare.
1024 (num_devices_openmp): New variable.
1025 (gomp_get_num_devices ): Use it.
1026 (gomp_init_targets_once): New function.
1027 (gomp_get_num_devices ): Use it.
1028 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1029 (gomp_fini_device, gomp_register_image_for_device): New functions.
1030 (gomp_map_vars): Add devaddrs parameter.
1031 (gomp_update): Add mm parameter.
1032 (gomp_init_device): Move most of it into...
1033 (gomp_init_tables): ... this new function.
1034 (gomp_register_images_for_device): Remove function.
1035 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1036 Make them hidden instead of static.
1037 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1038 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1039 (GOMP_target_end_data, GOMP_target_update)
1040 (gomp_load_plugin_for_device, gomp_target_init): Update for
1042 * oacc-async.c: New file.
1043 * oacc-cuda.c: Likewise.
1044 * oacc-host.c: Likewise.
1045 * oacc-init.c: Likewise.
1046 * oacc-int.h: Likewise.
1047 * oacc-mem.c: Likewise.
1048 * oacc-parallel.c: Likewise.
1049 * oacc-plugin.c: Likewise.
1050 * oacc-plugin.h: Likewise.
1051 * oacc-ptx.h: Likewise.
1052 * openacc.f90: Likewise.
1053 * openacc.h: Likewise.
1054 * openacc_lib.h: Likewise.
1055 * plugin/plugin-host.c: Likewise.
1056 * plugin/plugin-nvptx.c: Likewise.
1057 * libgomp-plugin.c: Likewise.
1058 * libgomp-plugin.h: Likewise.
1059 * libgomp_target.h: Remove file after merging content into the
1060 former file. Update all users.
1061 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1062 (offload_targets_s, offload_targets_s_openacc): New variables.
1063 (check_effective_target_openacc_nvidia_accel_present)
1064 (check_effective_target_openacc_nvidia_accel_selected): New
1066 (libgomp_init): Update for OpenACC changes.
1067 * testsuite/libgomp-test-support.exp.in: New file.
1068 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1069 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1070 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1071 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1072 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1073 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1074 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1075 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1076 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1077 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1078 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1079 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1080 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1081 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1082 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1083 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1084 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1085 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1086 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1087 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1088 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1089 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1090 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1091 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1092 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1093 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1094 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1095 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1096 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1097 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1098 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1099 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1100 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1101 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1102 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1103 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1104 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1105 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1106 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1108 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1109 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1110 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1111 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1112 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1113 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
1114 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1115 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1116 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1117 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1118 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1119 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1120 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1121 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1122 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1129 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
1130 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1131 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1132 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1133 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
1134 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
1135 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1136 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1138 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
1139 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1140 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1141 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1142 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
1143 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
1144 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1145 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1146 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
1147 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
1148 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
1149 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
1150 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1151 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1152 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1153 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
1154 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
1155 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1156 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1157 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
1158 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1159 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1160 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
1161 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1162 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1163 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1164 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1165 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
1166 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1167 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1168 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1169 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
1170 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1171 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1172 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1173 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1174 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1175 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1176 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1177 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1178 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1179 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1180 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1182 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1184 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1185 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1186 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1187 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1188 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1189 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1190 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1201 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1203 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1207 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1209 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1210 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1211 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1213 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
1214 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1215 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1216 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1217 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1218 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1219 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1220 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1221 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1222 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1223 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1224 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1225 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1226 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1227 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1228 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1229 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1230 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1231 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1232 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1233 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1234 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1235 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1236 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1237 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1238 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1239 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1240 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1241 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1242 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1243 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1244 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1245 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1246 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1247 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1248 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1249 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1250 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1251 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1252 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1253 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1254 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1255 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1256 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1257 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1258 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1259 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1260 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1261 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1262 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1263 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1264 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1265 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1266 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1267 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1268 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1270 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1271 Julian Brown <julian@codesourcery.com>
1272 David Malcolm <dmalcolm@redhat.com>
1274 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
1275 to "GNU Offloading and Multi Processing Runtime Library". Change
1277 * configure: Regenerate.
1278 * libgomp.texi: Update.
1280 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
1282 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1284 * configure: Regenerate.
1286 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1287 "intelmic" in $offload_targets.
1289 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1291 Update copyright years.
1293 * libgomp.texi: Bump @copying's copyright year.
1295 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1297 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1298 Move load of target-supportes.exp earlier.
1300 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1302 * testsuite/libgomp.c/target-9.c: New test.
1304 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1306 * config.h.in: Regenerate.
1307 * configure: Regenerate.
1308 * configure.ac: Add GCC_CHECK_EMUTLS.
1309 * libgomp.h: Add check for USE_EMUTLS: this case
1310 is equal to HAVE_TLS.
1313 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1315 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1317 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1318 Ilya Verbin <ilya.verbin@intel.com>
1320 * testsuite/libgomp.c/target-critical-1.c: New test.
1322 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1324 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1325 to dg-options unless expensive testing is on.
1326 (TESTITERS): Define to N if not defined.
1327 (main): Use TESTITERS instead of N.
1328 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1329 dg-additional-options depending on whether expensive testing is on.
1330 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1331 Decrease N to 100000 and CHUNKSZ to 10000.
1333 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1336 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1337 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1339 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1341 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1343 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1346 * configure: Regenerated.
1348 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1350 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1351 vect_simd_clones effective target.
1352 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1354 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1356 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1357 of 32 as block_size.
1358 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1359 instead of 32 as block_size.
1361 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1362 Ilya Verbin <ilya.verbin@intel.com>
1364 * Makefile.in: Regenerate.
1365 * configure: Regenerate.
1366 * configure.ac: Set up offload_additional_options,
1367 offload_additional_lib_paths and offload_targets.
1368 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1369 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1370 * testsuite/Makefile.in: Regenerate.
1371 * testsuite/lib/libgomp.exp (libgomp_init): Append
1372 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1373 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1374 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1376 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1377 Ilya Verbin <ilya.verbin@intel.com>
1378 Kirill Yukhin <kirill.yukhin@intel.com>
1379 Ilya Tocar <ilya.tocar@intel.com>
1381 * testsuite/lib/libgomp.exp
1382 (check_effective_target_offload_device): New.
1383 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1384 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1385 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1386 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1387 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1388 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1389 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1390 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1391 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1392 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1393 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1394 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1395 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1396 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1397 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1398 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1399 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1400 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1401 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1402 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1403 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1404 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1405 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1406 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1407 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1408 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1409 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1410 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1411 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1412 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1413 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1414 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1415 * testsuite/libgomp.c/target-7.c: Fix test.
1416 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1417 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1418 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1419 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1420 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1421 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1422 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1423 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1424 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1425 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1426 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1427 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1428 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1429 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1430 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1431 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1432 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1433 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1434 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1435 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1436 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1437 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1438 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1439 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1440 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1441 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1442 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1443 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1444 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1445 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1446 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1448 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1449 Ilya Verbin <ilya.verbin@intel.com>
1450 Thomas Schwinge <thomas@codesourcery.com>
1451 Andrey Turetskiy <andrey.turetskiy@intel.com>
1453 * libgomp.map (GOMP_4.0.1): New symbol version.
1454 Add GOMP_offload_register.
1455 * libgomp_target.h: New file.
1456 * splay-tree.h: New file.
1457 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1458 (gomp_target_init): New forward declaration.
1459 (gomp_is_initialized): New static variable.
1460 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1461 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1463 (offload_images, num_offload_images, devices, num_devices): New static
1465 (splay_compare): New static function.
1466 (struct gomp_device_descr): New structure.
1467 (gomp_get_num_devices): Call gomp_target_init.
1468 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1469 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1470 (GOMP_offload_register): New function.
1471 (GOMP_target): Arrange for host callback to be performed in a separate
1472 initial thread and contention group, inheriting ICVs from
1473 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1474 Add device initialization and lookup for target function in splay tree.
1475 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1476 (GOMP_target_end_data): Call gomp_unmap_vars.
1477 (GOMP_target_update): Add device initialization and call gomp_update.
1478 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1479 (gomp_target_init): New static functions.
1481 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1482 Thomas Schwinge <thomas@codesourcery.com>
1483 Ilya Verbin <ilya.verbin@intel.com>
1484 Andrey Turetskiy <andrey.turetskiy@intel.com>
1486 * config.h.in: Regenerate.
1487 * configure: Regenerate.
1488 * configure.ac: Check for libdl, required for plugin support.
1489 (PLUGIN_SUPPORT): Define if plugins are supported.
1490 (enable_offload_targets): Support Intel MIC targets.
1491 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1493 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1496 * configure: Regenerate.
1498 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1502 2014-10-06 Marek Polacek <polacek@redhat.com>
1504 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1505 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1506 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1507 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1509 2014-10-06 Marek Polacek <polacek@redhat.com>
1511 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1512 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1513 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1514 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1515 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1516 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1517 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1518 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1519 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1520 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1521 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1522 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1523 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1524 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1525 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1526 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1527 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1528 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1531 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1534 * testsuite/libgomp.c/pr61200.c: New test.
1536 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1539 * testsuite/libgomp.c++/pr63248.C: New test.
1541 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1543 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1544 is not zero, but taskgroup->children is NULL and there are
1545 any task->children, schedule those instead of waiting.
1546 * testsuite/libgomp.c/depend-6.c: New test.
1547 * testsuite/libgomp.c/depend-7.c: New test.
1548 * testsuite/libgomp.c/depend-8.c: New test.
1549 * testsuite/libgomp.c/depend-9.c: New test.
1550 * testsuite/libgomp.c/depend-10.c: New test.
1552 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1554 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1555 (struct gomp_taskwait): New type.
1556 (struct gomp_task): Add taskwait and parent_depends_on, remove
1557 in_taskwait and taskwait_sem fields.
1558 (gomp_finish_task): Don't destroy taskwait_sem.
1559 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1560 taskwait and parent_depends_on.
1561 (GOMP_task): For if (0) tasks with depend clause that depend on
1562 earlier tasks don't defer them, instead call
1563 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1564 Initialize redundant_out field, for redundant out entries just
1565 move them at the end of linked list instead of removing them
1566 completely, and set redundant_out flag instead of redundant.
1567 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1569 (gomp_task_run_post_handle_dependers): If parent is in
1570 gomp_task_maybe_wait_for_dependencies and newly runnable task
1571 is not parent_depends_on, queue it in parent->children linked
1572 list after all runnable tasks with parent_depends_on set.
1573 Adjust for addition of taskwait indirection.
1574 (gomp_task_run_post_remove_parent): If parent is in
1575 gomp_task_maybe_wait_for_dependencies and task to be removed
1576 is parent_depends_on, decrement n_depend and if needed awake
1577 parent. Adjust for addition of taskwait indirection.
1578 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1579 (gomp_task_maybe_wait_for_dependencies): New function.
1580 * testsuite/libgomp.c/depend-5.c: New test.
1582 2014-07-13 Tobias Burnus <burnus@net-b.de>
1584 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1585 with TS 18508/Fortran 2015.
1587 2014-07-06 Marek Polacek <polacek@redhat.com>
1590 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1592 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1594 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1595 matches regex $lang_source_re, add $lang_include_flags to options.
1596 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1597 * testsuite/libgomp.c++/c++.exp: Likewise.
1598 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1599 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1601 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1603 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1605 * testsuite/libgomp.fortran/fortran.exp: Explain
1606 gfortran-dg-runtest usage.
1608 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1610 * testsuite/libgomp.fortran/simd5.f90: New test.
1611 * testsuite/libgomp.fortran/simd6.f90: New test.
1612 * testsuite/libgomp.fortran/simd7.f90: New test.
1614 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1616 * testsuite/libgomp.c/for-2.c: Define SC to static for
1617 #pragma omp for simd testing.
1618 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1619 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1621 * testsuite/libgomp.c/simd-14.c: New test.
1622 * testsuite/libgomp.c/simd-15.c: New test.
1623 * testsuite/libgomp.c/simd-16.c: New test.
1624 * testsuite/libgomp.c/simd-17.c: New test.
1625 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1626 #pragma omp for simd testing.
1627 * testsuite/libgomp.c++/simd10.C: New test.
1628 * testsuite/libgomp.c++/simd11.C: New test.
1629 * testsuite/libgomp.c++/simd12.C: New test.
1630 * testsuite/libgomp.c++/simd13.C: New test.
1632 * testsuite/libgomp.fortran/aligned1.f03: New test.
1633 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1634 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1635 tasks with !$omp parallel !$omp single.
1636 * testsuite/libgomp.fortran/target8.f90: New test.
1637 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1638 not to use trim in the combiner, instead call elemental function.
1639 (fn): New elemental function.
1640 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1642 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1644 * testsuite/libgomp.fortran/udr12.f90: New test.
1645 * testsuite/libgomp.fortran/udr13.f90: New test.
1646 * testsuite/libgomp.fortran/udr14.f90: New test.
1647 * testsuite/libgomp.fortran/udr15.f90: New test.
1649 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1651 * omp_lib.f90.in (openmp_version): Set to 201307.
1652 * omp_lib.h.in (openmp_version): Likewise.
1653 * testsuite/libgomp.c/target-8.c: New test.
1654 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1655 and inbranch clauses.
1656 * testsuite/libgomp.fortran/depend-3.f90: New test.
1657 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1659 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1660 * testsuite/libgomp.fortran/target1.f90: New test.
1661 * testsuite/libgomp.fortran/target2.f90: New test.
1662 * testsuite/libgomp.fortran/target3.f90: New test.
1663 * testsuite/libgomp.fortran/target4.f90: New test.
1664 * testsuite/libgomp.fortran/target5.f90: New test.
1665 * testsuite/libgomp.fortran/target6.f90: New test.
1666 * testsuite/libgomp.fortran/target7.f90: New test.
1668 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1671 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1672 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1673 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1674 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1675 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1676 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1677 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1678 * testsuite/libgomp.fortran/associate1.f90: New test.
1679 * testsuite/libgomp.fortran/associate2.f90: New test.
1680 * testsuite/libgomp.fortran/procptr1.f90: New test.
1682 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.fortran/simd1.f90: New test.
1685 * testsuite/libgomp.fortran/udr1.f90: New test.
1686 * testsuite/libgomp.fortran/udr2.f90: New test.
1687 * testsuite/libgomp.fortran/udr3.f90: New test.
1688 * testsuite/libgomp.fortran/udr4.f90: New test.
1689 * testsuite/libgomp.fortran/udr5.f90: New test.
1690 * testsuite/libgomp.fortran/udr6.f90: New test.
1691 * testsuite/libgomp.fortran/udr7.f90: New test.
1692 * testsuite/libgomp.fortran/udr8.f90: New test.
1693 * testsuite/libgomp.fortran/udr9.f90: New test.
1694 * testsuite/libgomp.fortran/udr10.f90: New test.
1695 * testsuite/libgomp.fortran/udr11.f90: New test.
1697 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1699 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1700 vect_simd_clones effective target.
1701 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1703 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1706 * testsuite/libgomp.c++/simd-9.C: New test.
1708 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1710 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1711 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1712 texts according to their @menu entry positions.
1714 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1716 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1717 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1718 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1719 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1720 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1721 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1722 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1723 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1724 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1725 * testsuite/libgomp.fortran/depend-1.f90: New test.
1726 * testsuite/libgomp.fortran/depend-2.f90: New test.
1727 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1728 * testsuite/libgomp.fortran/simd1.f90: New test.
1729 * testsuite/libgomp.fortran/simd2.f90: New test.
1730 * testsuite/libgomp.fortran/simd3.f90: New test.
1731 * testsuite/libgomp.fortran/simd4.f90: New test.
1732 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1734 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1736 * testsuite/libgomp.c/simd-10.c: New test.
1737 * testsuite/libgomp.c/simd-11.c: New test.
1738 * testsuite/libgomp.c/simd-12.c: New test.
1739 * testsuite/libgomp.c/simd-13.c: New test.
1741 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1743 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1744 atomic type clauses in any order and optional comma in between.
1745 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1746 * testsuite/libgomp.c/atomic-17.c: Likewise.
1748 * testsuite/libgomp.c/simd-7.c: New test.
1749 * testsuite/libgomp.c/simd-8.c: New test.
1750 * testsuite/libgomp.c/simd-9.c: New test.
1751 * testsuite/libgomp.c/loop-16.c: New test.
1753 2014-04-02 Richard Henderson <rth@redhat.com>
1755 * config/linux/futex.h (futex_wait): Get error value from errno.
1756 (futex_wake): Likewise.
1758 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1761 * testsuite/libgomp.c++/udr-11.C: New test.
1762 * testsuite/libgomp.c++/udr-12.C: New test.
1763 * testsuite/libgomp.c++/udr-13.C: New test.
1764 * testsuite/libgomp.c++/udr-14.C: New test.
1765 * testsuite/libgomp.c++/udr-15.C: New test.
1766 * testsuite/libgomp.c++/udr-16.C: New test.
1767 * testsuite/libgomp.c++/udr-17.C: New test.
1768 * testsuite/libgomp.c++/udr-18.C: New test.
1769 * testsuite/libgomp.c++/udr-19.C: New test.
1771 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1773 Update copyright years
1775 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1777 * hashtab.h: Use the standard form for the copyright notice.
1779 2014-01-02 Tobias Burnus <burnus@net-b.de>
1781 * libgomp.texi: Bump @copying's copyright year.
1783 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1785 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1786 alloca () with __builtin_alloca ().
1787 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1788 * testsuite/libgomp.c/lock-3.c: Likewise.
1789 * testsuite/libgomp.c/pr48591.c: Likewise.
1791 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1794 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1797 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1800 * testsuite/libgomp.c/pr58756.c: New test.
1802 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1805 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1808 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1810 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1812 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1813 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1814 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1815 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1818 * libgomp_g.h: Include <stddef.h> for size_t.
1820 * libgomp.spec.in: Update comment about libgomp's dependencies.
1821 * configure.ac: Likewise.
1822 * configure: Regenerate.
1824 2013-10-16 Tobias Burnus <burnus@net-b.de>
1826 * libgomp.texi: (Runtime Library Routines): Update references for
1827 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1828 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1829 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1830 (Environment Variables): Update references for OpenMP 4.0. Add
1831 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1832 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1835 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1837 * env.c (parse_bind_var): Initialize value to avoid
1838 (false positive) warning.
1840 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1843 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1845 (gomp_init_num_threads): Move i variable declaration into
1846 #ifdef CPU_ALLOC_SIZE block.
1847 * config/linux/affinity.c (gomp_affinity_init_level): Test
1848 gomp_places_list_len == 0 rather than gomp_places_list == 0
1849 when checking for topology reading error.
1850 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1851 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1852 gomp_places_list, only parse env var and always return false.
1853 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1854 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1855 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1856 and either of these variables were parsed correctly into a places
1859 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1860 Jakub Jelinek <jakub@redhat.com>
1862 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1863 of 5 loopfn matches.
1864 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1865 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1866 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1867 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1868 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1869 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1870 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1871 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1873 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1875 * Makefile.am (omp_lib.mod): Streamline rule.
1876 * Makefile.in: Regenerate.
1878 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1881 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1882 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1883 * testsuite/libgomp.fortran/lib2.f: Likewise.
1884 * testsuite/libgomp.fortran/lib3.f: Likewise.
1886 * configure.ac: Typo fix.
1887 * configure: Regenerate.
1889 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1890 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1892 * omp.h.in: Don't touch the user's namespace.
1894 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1895 Tobias Burnus <burnus@net-b.de>
1896 Richard Henderson <rth@redhat.com>
1898 * target.c: New file.
1899 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1900 * Makefile.in: Regenerated.
1901 * libgomp_g.h (GOMP_task): Add depend argument.
1902 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1903 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1904 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1905 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1906 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1907 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1908 GOMP_taskgroup_start, GOMP_taskgroup_end,
1909 GOMP_parallel_sections): New prototypes.
1910 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1911 (omp_is_initial_device_): New function.
1912 (ULP, STR1, STR2, ialias_redirect): Removed.
1913 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1914 omp_set_default_device_8_, omp_get_default_device_,
1915 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1917 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1918 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1919 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1921 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1922 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1923 omp_set_default_device, omp_set_default_device_,
1924 omp_set_default_device_8_, omp_get_default_device,
1925 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1926 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1927 omp_get_team_num_): Export @@OMP_4.0.
1928 * team.c (struct gomp_thread_start_data): Add place field.
1929 (gomp_thread_start): Clear thr->thread_pool and
1930 thr->task before returning. Use gomp_team_barrier_wait_final
1931 instead of gomp_team_barrier_wait. Initialize thr->place.
1932 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1933 team_cancelled and task_queued_count fields.
1934 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1935 before calling pthread_exit.
1936 (gomp_free_thread): No longer static. Use
1937 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1938 (gomp_team_start): Add flags argument. Set
1939 thr->thread_pool->threads_busy to nthreads immediately after creating
1940 new pool. Use gomp_managed_threads_lock instead of
1941 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1942 (gomp_team_end): Use gomp_managed_threads_lock instead of
1943 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1944 of gomp_team_barrier_wait. If team->team_cancelled, call
1945 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1946 rather than thr->ts.work_share.
1947 (initialize_team): Don't call gomp_sem_init here.
1948 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1950 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1951 * env.c (gomp_global_icv): Add default_device_var, target_data and
1952 bind_var initializers.
1953 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1954 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1955 gomp_places_list_len): New variables.
1956 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1957 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1959 (gomp_cancel_var): New global variable.
1960 (parse_int): New function.
1961 (handle_omp_display_env): New function.
1962 (initialize_env): Use it. Initialize default_device_var.
1963 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1964 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1965 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1966 been successfully parsed (and call gomp_init_affinity in that case).
1967 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1968 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1969 omp_get_team_num, omp_is_initial_device): New functions.
1970 * libgomp.h: Include stdlib.h.
1971 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1973 (struct target_mem_desc): Forward declare.
1974 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1975 and thread_limit_var fields.
1976 (gomp_get_num_devices): New prototype.
1977 (gomp_cancel_var): New extern decl.
1978 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1979 team_cancelled and task_queued_count fields. Add comments about
1980 task_{,queued_,running_}count.
1981 (gomp_cancel_kind): New enum.
1982 (gomp_work_share_end_cancel): New prototype.
1983 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1984 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1986 (struct gomp_taskgroup): New type.
1987 (struct gomp_task_depend_entry,
1988 struct gomp_dependers_vec): New types.
1989 (gomp_finish_task): Free depend_hash if non-NULL.
1990 (struct gomp_team_state): Add place_partition_off
1991 and place_partition_len fields.
1992 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1993 gomp_places_list_len): New extern decls.
1994 (struct gomp_thread): Add place field.
1995 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1996 (gomp_init_thread_affinity): Add place argument.
1997 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1998 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1999 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2000 gomp_affinity_init_level, gomp_affinity_print_place): New
2002 (gomp_team_start): Add flags argument.
2003 (gomp_thread_limit_var, gomp_remaining_threads_count,
2004 gomp_remaining_threads_lock): Remove.
2005 (gomp_managed_threads_lock): New variable.
2006 (struct gomp_thread_pool): Add threads_busy field.
2007 (gomp_free_thread): New prototype.
2008 * task.c: Include hashtab.h.
2009 (hash_entry_type): New typedef.
2010 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2011 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2012 copy_ctors_done and taskgroup fields.
2013 (GOMP_task): Add depend argument, handle depend clauses. If
2014 gomp_team_barrier_cancelled or if it's taskgroup has been
2015 cancelled, don't queue or start new tasks. Set copy_ctors_done
2016 field if needed. Initialize taskgroup field. If copy_ctors_done
2017 and already cancelled, don't discard the task. If taskgroup is
2018 non-NULL, enqueue the task into taskgroup queue. Increment
2019 num_children field in taskgroup. Increment task_queued_count.
2020 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2021 gomp_task_run_post_remove_taskgroup): New inline functions.
2022 (gomp_task_run_post_handle_depend_hash,
2023 gomp_task_run_post_handle_dependers,
2024 gomp_task_run_post_handle_depend): New functions.
2025 (GOMP_taskwait): Use them. If more than one new tasks
2026 have been queued, wake other threads if needed.
2027 (gomp_barrier_handle_tasks): Likewise. If
2028 gomp_team_barrier_cancelled, don't start any new tasks, just free
2030 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2032 (omp_proc_bind_kind, omp_proc_bind_false,
2033 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2034 omp_proc_bind_spread): New params.
2035 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2036 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2037 omp_get_team_num, omp_is_initial_device): New interfaces.
2038 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2039 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2040 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2041 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2042 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2043 useless use omp_lib_kinds.
2044 * omp.h.in (omp_proc_bind_t): New typedef.
2045 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2046 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2047 omp_get_team_num, omp_is_initial_device): New prototypes.
2048 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2049 through to gomp_team_start.
2050 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2051 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2052 Adjust gomp_parallel_loop_start callers.
2053 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2054 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2055 GOMP_loop_end_cancel): New functions.
2056 (GOMP_parallel_end): Add ialias_redirect.
2057 * hashtab.h: New file.
2058 * libgomp.texi (Environment Variables): Minor cleanup,
2059 update section refs to OpenMP 4.0rc2.
2060 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2061 environment variables.
2062 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2063 team->work_shares_to_free to thr->ts.work_share before calling
2065 (gomp_work_share_end_cancel): New function.
2066 * config/linux/proc.c: Include errno.h.
2067 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2068 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2069 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2070 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2071 gomp_cpuset_size is sizeof (cpu_set_t).
2072 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2073 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2074 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2075 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2076 contain any logical CPUs.
2077 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2078 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2079 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2080 pthread_getaffinity_np. Check gomp_places_list instead of
2081 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2082 * config/linux/bar.c (gomp_barrier_wait_end,
2083 gomp_barrier_wait_last): Use BAR_* defines.
2084 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2085 from state where needed. Set work_share_cancelled to 0 on last
2087 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2088 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2090 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2091 Add cpusetsize argument.
2092 (gomp_cpuset_size, gomp_cpusetp): Declare.
2093 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2094 (affinity_counter): Remove.
2095 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2096 if CPU_ALLOC_SIZE isn't defined.
2097 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2098 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2099 bind current thread to the first place.
2100 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2101 pthread_setaffinity_np to gomp_places_list[place].
2102 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2103 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2104 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2105 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2106 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2107 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2108 (gomp_barrier_t): Add awaited_final field.
2109 (gomp_barrier_init): Initialize awaited_final field.
2110 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2111 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
2113 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
2115 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
2116 gomp_team_barrier_cancelled): New inline functions.
2117 (gomp_barrier_last_thread,
2118 gomp_team_barrier_set_task_pending,
2119 gomp_team_barrier_clear_task_pending,
2120 gomp_team_barrier_set_waiting_for_tasks,
2121 gomp_team_barrier_waiting_for_tasks,
2122 gomp_team_barrier_done): Use BAR_* defines.
2123 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
2124 (gomp_barrier_wait_end): Use BAR_* defines.
2125 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
2126 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
2128 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
2129 gomp_team_barrier_cancel): New functions.
2130 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
2132 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2133 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2134 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2135 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
2136 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2137 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2138 (gomp_barrier_t): Add cancellable field.
2139 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
2140 gomp_team_barrier_cancel): New prototypes.
2141 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
2142 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
2143 gomp_team_barrier_cancelled): New inline functions.
2144 (gomp_barrier_wait_start, gomp_barrier_last_thread,
2145 gomp_team_barrier_set_task_pending,
2146 gomp_team_barrier_clear_task_pending,
2147 gomp_team_barrier_set_waiting_for_tasks,
2148 gomp_team_barrier_waiting_for_tasks,
2149 gomp_team_barrier_done): Use BAR_* defines.
2150 * barrier.c (GOMP_barrier_cancel): New function.
2151 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
2152 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2153 omp_proc_bind_spread): New params.
2154 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2155 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2156 omp_get_team_num, omp_is_initial_device): New externals.
2157 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
2159 (gomp_resolve_num_threads): Adjust for thread_limit now being in
2160 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2161 infinity. If not nested, just return minimum of max_num_threads
2162 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
2163 to the returned value. Otherwise, don't update atomically
2164 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
2165 (GOMP_parallel_end): Adjust for thread_limit now being in
2166 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2167 infinity. Adjust threads_busy in the pool rather than
2168 gomp_remaining_threads_count. Remember team->nthreads and call
2169 gomp_team_end before adjusting threads_busy, if not nested
2170 afterwards, just set it to 1 non-atomically. Add ialias.
2171 (GOMP_parallel_start): Adjust gomp_team_start caller.
2172 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
2173 * testsuite/libgomp.c/affinity-1.c: New test.
2174 * testsuite/libgomp.c/atomic-15.c: New test.
2175 * testsuite/libgomp.c/atomic-16.c: New test.
2176 * testsuite/libgomp.c/atomic-17.c: New test.
2177 * testsuite/libgomp.c/cancel-for-1.c: New test.
2178 * testsuite/libgomp.c/cancel-for-2.c: New test.
2179 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
2180 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
2181 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
2182 * testsuite/libgomp.c/cancel-sections-1.c: New test.
2183 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
2184 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
2185 * testsuite/libgomp.c/depend-1.c: New test.
2186 * testsuite/libgomp.c/depend-2.c: New test.
2187 * testsuite/libgomp.c/depend-3.c: New test.
2188 * testsuite/libgomp.c/depend-4.c: New test.
2189 * testsuite/libgomp.c/for-1.c: New test.
2190 * testsuite/libgomp.c/for-1.h: New file.
2191 * testsuite/libgomp.c/for-2.c: New test.
2192 * testsuite/libgomp.c/for-2.h: New file.
2193 * testsuite/libgomp.c/for-3.c: New test.
2194 * testsuite/libgomp.c/pr58392.c: New test.
2195 * testsuite/libgomp.c/simd-1.c: New test.
2196 * testsuite/libgomp.c/simd-2.c: New test.
2197 * testsuite/libgomp.c/simd-3.c: New test.
2198 * testsuite/libgomp.c/simd-4.c: New test.
2199 * testsuite/libgomp.c/simd-5.c: New test.
2200 * testsuite/libgomp.c/simd-6.c: New test.
2201 * testsuite/libgomp.c/target-1.c: New test.
2202 * testsuite/libgomp.c/target-2.c: New test.
2203 * testsuite/libgomp.c/target-3.c: New test.
2204 * testsuite/libgomp.c/target-4.c: New test.
2205 * testsuite/libgomp.c/target-5.c: New test.
2206 * testsuite/libgomp.c/target-6.c: New test.
2207 * testsuite/libgomp.c/target-7.c: New test.
2208 * testsuite/libgomp.c/taskgroup-1.c: New test.
2209 * testsuite/libgomp.c/thread-limit-1.c: New test.
2210 * testsuite/libgomp.c/thread-limit-2.c: New test.
2211 * testsuite/libgomp.c/thread-limit-3.c: New test.
2212 * testsuite/libgomp.c/udr-1.c: New test.
2213 * testsuite/libgomp.c/udr-2.c: New test.
2214 * testsuite/libgomp.c/udr-3.c: New test.
2215 * testsuite/libgomp.c++/affinity-1.C: New test.
2216 * testsuite/libgomp.c++/atomic-10.C: New test.
2217 * testsuite/libgomp.c++/atomic-11.C: New test.
2218 * testsuite/libgomp.c++/atomic-12.C: New test.
2219 * testsuite/libgomp.c++/atomic-13.C: New test.
2220 * testsuite/libgomp.c++/atomic-14.C: New test.
2221 * testsuite/libgomp.c++/atomic-15.C: New test.
2222 * testsuite/libgomp.c++/cancel-for-1.C: New test.
2223 * testsuite/libgomp.c++/cancel-for-2.C: New test.
2224 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
2225 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
2226 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
2227 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
2228 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
2229 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
2230 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
2231 * testsuite/libgomp.c++/cancel-test.h: New file.
2232 * testsuite/libgomp.c++/for-9.C: New test.
2233 * testsuite/libgomp.c++/for-10.C: New test.
2234 * testsuite/libgomp.c++/for-11.C: New test.
2235 * testsuite/libgomp.c++/simd-1.C: New test.
2236 * testsuite/libgomp.c++/simd-2.C: New test.
2237 * testsuite/libgomp.c++/simd-3.C: New test.
2238 * testsuite/libgomp.c++/simd-4.C: New test.
2239 * testsuite/libgomp.c++/simd-5.C: New test.
2240 * testsuite/libgomp.c++/simd-6.C: New test.
2241 * testsuite/libgomp.c++/simd-7.C: New test.
2242 * testsuite/libgomp.c++/simd-8.C: New test.
2243 * testsuite/libgomp.c++/target-1.C: New test.
2244 * testsuite/libgomp.c++/target-2.C: New test.
2245 * testsuite/libgomp.c++/target-2-aux.cc: New file.
2246 * testsuite/libgomp.c++/target-3.C: New test.
2247 * testsuite/libgomp.c++/taskgroup-1.C: New test.
2248 * testsuite/libgomp.c++/udr-1.C: New test.
2249 * testsuite/libgomp.c++/udr-2.C: New test.
2250 * testsuite/libgomp.c++/udr-3.C: New test.
2251 * testsuite/libgomp.c++/udr-4.C: New test.
2252 * testsuite/libgomp.c++/udr-5.C: New test.
2253 * testsuite/libgomp.c++/udr-6.C: New test.
2254 * testsuite/libgomp.c++/udr-7.C: New test.
2255 * testsuite/libgomp.c++/udr-8.C: New test.
2256 * testsuite/libgomp.c++/udr-9.C: New test.
2258 2013-09-20 Jakub Jelinek <jakub@redhat.com>
2261 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
2264 2013-09-20 Alan Modra <amodra@gmail.com>
2266 * configure: Regenerate.
2268 2013-09-19 Jakub Jelinek <jakub@redhat.com>
2270 * testsuite/libgomp.c/sections-2.c: New test.
2272 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2274 * testsuite/libgomp.fortran/strassen.f90:
2275 Add dg-skip-if aarch64_tiny.
2277 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2278 Cesar Philippidis <cesar@codesourcery.com>
2280 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2281 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2282 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2283 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2284 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2285 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2286 Use dg-runtest rather than gfortran-dg-runtest.
2288 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2290 * testsuite/libgomp.c/icv-2.c: Extend current handling of
2291 Linux-based x86 systems to cover all GNU systems.
2292 * testsuite/libgomp.c/lock-3.c: Likewise.
2293 * testsuite/libgomp.c/pr48591.c: Likewise.
2295 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
2297 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2298 GNU/Hurd, as done for Linux-based systems.
2300 * config/posix/ptrlock.h: Fix comment.
2302 2013-05-27 Tobias Burnus <burnus@net-b.de>
2305 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2306 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2307 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2308 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2309 omp_destroy_nest_lock): Correct arguments to match the one in
2311 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2312 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2313 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2314 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2316 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2318 * testsuite/libgomp.c/loop-13.c: New test.
2319 * testsuite/libgomp.c/loop-14.c: New test.
2320 * testsuite/libgomp.c/loop-15.c: New test.
2321 * testsuite/libgomp.c++/loop-13.C: New test.
2322 * testsuite/libgomp.c++/loop-14.C: New test.
2323 * testsuite/libgomp.c++/loop-15.C: New test.
2325 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2328 * testsuite/libgomp.c++/pr56217.C: New test.
2330 2013-02-01 Alan Modra <amodra@gmail.com>
2332 * task.c (GOMP_task, GOMP_taskwait): Comment.
2334 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2335 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2338 * config/linux/wait.h (do_spin): Use atomic load for addr.
2339 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2340 for intptr and ptrlock.
2341 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2344 2013-01-22 Alan Modra <amodra@gmail.com>
2348 * task.c (GOMP_task): Revert 2011-12-09 change.
2349 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2350 barrier to read task->children..
2351 (gomp_barrier_handle_tasks): ..and matching atomic store with
2352 release barrier here when setting parent->children to NULL.
2354 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2355 Tobias Burnus <burnus@net-b.de>
2358 * testsuite/libgomp.fortran/fortran.exp: Use
2359 -fintrinsic-modules-path= instead of
2360 -fintrinsic-modules-path.
2362 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2364 Update copyright years.
2366 2012-12-19 Tobias Burnus <burnus@net-b.de>
2368 * testsuite/libgomp.fortran/fortran.exp: Set
2369 -fintrinsic-modules-path.
2371 2012-12-19 Tobias Burnus <burnus@net-b.de>
2373 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2374 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2376 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2379 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2380 if pool had any threads_used.
2382 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2384 * testsuite/libgomp.c++/pr24455.C: Use
2385 -Wl,-undefined,dynamic_lookup on darwin.
2387 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2389 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2391 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2393 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2395 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2396 Jim MacArthur <jim.macarthur@arm.com>
2397 Marcus Shawcroft <marcus.shawcroft@arm.com>
2398 Nigel Stephens <nigel.stephens@arm.com>
2399 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2400 Richard Earnshaw <rearnsha@arm.com>
2401 Sofiane Naci <sofiane.naci@arm.com>
2402 Stephen Thomas <stephen.thomas@arm.com>
2403 Tejas Belagod <tejas.belagod@arm.com>
2404 Yufeng Zhang <yufeng.zhang@arm.com>
2406 * configure.tgt: Add AArch64.
2408 2012-10-04 Jason Merrill <jason@redhat.com>
2410 * testsuite/libgomp.c++/tls-init1.C: New.
2412 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2414 * configure: Regenerated.
2416 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2418 * config/linux/mips/futex.h (sys_futex0): Change to static
2419 function with noinline, nomips16 attributes under MIPS16. Adjust
2420 asm statement to place 'li v0,SYS_futex' immediately before
2423 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2425 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2426 conflict with index.html on case-insensitive file systems.
2428 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2430 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2431 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2433 2012-07-02 Richard Guenther <rguenther@suse.de>
2434 Michael Matz <matz@suse.de>
2435 Tobias Grosser <tobias@grosser.es>
2436 Sebastian Pop <sebpop@gmail.com>
2438 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2439 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2440 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2441 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2443 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2445 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2447 2012-06-22 Richard Guenther <rguenther@suse.de>
2449 Merge from graphite branch
2450 2012-01-13 Tobias Grosser <tobias@grosser.es>
2452 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2453 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2455 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2458 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2459 use GOMP_barrier () call instead.
2460 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2461 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2462 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2463 call GOMP_barrier instead.
2464 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2466 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2469 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2470 argument to memset call.
2472 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2474 * configure: Regenerated.
2476 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2478 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2480 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2483 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2485 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2488 * testsuite/libgomp.c/pr52547.c: New test.
2490 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2492 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2494 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2496 * configure.tgt (mips-sgi-irix6*): Remove.
2498 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2500 * configure.tgt (alpha*-dec-osf*): Remove.
2502 * config/osf/sem.h: Remove.
2503 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2505 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2507 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2509 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2512 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2513 Remove ENABLE_SYMVERS_SOL2.
2514 * configure: Regenerate.
2515 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2516 (PREPROCESS): New variable.
2517 (libgomp.ver): New target.
2518 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2519 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2520 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2522 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2523 * Makefile.in: Regenerate.
2525 2012-02-14 Walter Lee <walt@tilera.com>
2527 * configure.tgt: Handle tilegx and tilepro.
2528 * config/linux/tile/futex.h: New file.
2530 2012-02-08 Richard Guenther <rguenther@suse.de>
2532 PR tree-optimization/46886
2533 * testsuite/libgomp.c/pr46886.c: New testcase.
2535 2012-01-25 Matthias Klose <doko@ubuntu.com>
2537 * config/linux/arm: Remove empty directory.
2538 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2540 2011-12-09 Alan Modra <amodra@gmail.com>
2543 * task.c (GOMP_taskwait): Don't access task->children outside of
2544 task_lock mutex region.
2545 (GOMP_task): Likewise.
2547 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2550 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2552 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2553 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2554 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2555 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2556 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2558 2011-12-02 Alan Modra <amodra@gmail.com>
2560 * config/linux/affinity.c: Use atomic rather than sync builtin.
2561 * config/linux/lock.c: Likewise.
2562 * config/linux/ptrlock.h: Likewise.
2563 * config/linux/ptrlock.c: Likewise.
2564 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2565 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2566 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2567 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2568 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2569 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2570 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2571 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2572 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2573 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2575 2011-11-30 Alan Modra <amodra@gmail.com>
2578 * config/linux/bar.h: Use atomic rather than sync builtins.
2579 * config/linux/bar.c: Likewise. Add missing acquire
2580 synchronisation on generation field.
2581 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2584 2011-11-30 Alan Modra <amodra@gmail.com>
2586 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2587 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2588 * config/linux/mutex.h: Use atomic rather than sync builtins.
2589 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2590 * config/linux/omp-lock.h: Comment fix.
2591 * config/linux/arm/mutex.h: Delete.
2592 * config/linux/powerpc/mutex.h: Delete.
2593 * config/linux/ia64/mutex.h: Delete.
2594 * config/linux/mips/mutex.h: Delete.
2596 2011-11-30 Alan Modra <amodra@gmail.com>
2599 * config/linux/sem.h: Rewrite.
2600 * config/linux/sem.c: Rewrite.
2602 2011-11-28 Richard Henderson <rth@redhat.com>
2604 * libgomp.h (enum memmodel): New.
2606 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2608 * configure: Regenerate.
2610 2011-10-10 Matthias Klose <doko@ubuntu.com>
2612 * config/posix95: Remove empty directory.
2614 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2616 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2618 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2621 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2622 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2624 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2626 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2628 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2631 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2633 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2635 * config/linux/proc.h: New.
2636 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2637 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2638 (gomp_init_num_threads): Update call to cpuset_popcount.
2639 (get_num_procs): Ditto.
2640 * config/linux/affinity.c (gomp_init_affinity): Call
2641 gomp_cpuset_popcount.
2643 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2647 * omp.h.in (omp_in_final): New prototype.
2648 * omp_lib.f90.in (omp_in_final): New interface.
2649 (omp_integer_kind, omp_logical_kind): Remove
2650 and replace all its uses in the module with 4.
2651 (openmp_version): Change to 201107.
2652 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2653 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2654 kind for the parameters.
2655 (omp_in_final): New external.
2656 (openmp_version): Change to 201107.
2657 * task.c (omp_in_final): New function.
2658 (gomp_init_task): Initialize final_task.
2659 (GOMP_task): Remove unused attribute from flags. Handle final
2661 (GOMP_taskyield): New function.
2662 (omp_in_final): Return true if if (false) or final (true) task
2663 or descendant of final (true).
2664 * fortran.c (omp_in_final_): New function.
2665 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2666 (GOMP_3.0): Export GOMP_taskyield.
2667 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2669 (parse_unsigned_long_list): New function.
2670 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2671 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2672 even if parse_affinity returned false.
2673 * config/linux/affinity.c (gomp_init_affinity): Handle
2674 gomp_cpu_affinity_len == 0.
2675 * libgomp_g.h (GOMP_taskyield): New prototype.
2676 * libgomp.h (struct gomp_task): Add final_task field.
2677 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2678 * team.c (gomp_team_start): Override new task's nthreads_var icv
2679 if list form OMP_NUM_THREADS has been used and it has value for
2680 the new nesting level.
2682 * testsuite/libgomp.c/atomic-11.c: New test.
2683 * testsuite/libgomp.c/atomic-12.c: New test.
2684 * testsuite/libgomp.c/atomic-13.c: New test.
2685 * testsuite/libgomp.c/atomic-14.c: New test.
2686 * testsuite/libgomp.c/reduction-6.c: New test.
2687 * testsuite/libgomp.c/task-5.c: New test.
2688 * testsuite/libgomp.c++/atomic-2.C: New test.
2689 * testsuite/libgomp.c++/atomic-3.C: New test.
2690 * testsuite/libgomp.c++/atomic-4.C: New test.
2691 * testsuite/libgomp.c++/atomic-5.C: New test.
2692 * testsuite/libgomp.c++/atomic-6.C: New test.
2693 * testsuite/libgomp.c++/atomic-7.C: New test.
2694 * testsuite/libgomp.c++/atomic-8.C: New test.
2695 * testsuite/libgomp.c++/atomic-9.C: New test.
2696 * testsuite/libgomp.c++/task-8.C: New test.
2697 * testsuite/libgomp.c++/reduction-4.C: New test.
2698 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2699 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2700 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2701 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2702 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2703 * testsuite/libgomp.fortran/pointer1.f90: New test.
2704 * testsuite/libgomp.fortran/pointer2.f90: New test.
2705 * testsuite/libgomp.fortran/task4.f90: New test.
2707 2011-08-02 Tobias Burnus <burnus@net-b.de>
2709 * libgomp.texi: Update OpenMP spec references to 3.1.
2710 (omp_in_final,OMP_PROC_BIND): New sections.
2711 (OMP_NUM_THREADS): Document that the value can be now a list.
2712 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2714 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2716 * config/linux/x86/futex.h: Check __x86_64__ instead of
2719 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2723 * testsuite/libgomp.c/pr49897-1.c: New test.
2724 * testsuite/libgomp.c/pr49897-2.c: New test.
2725 * testsuite/libgomp.c/pr49898-1.c: New test.
2726 * testsuite/libgomp.c/pr49898-2.c: New test.
2728 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2730 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2731 for ia32 instead of ilp32.
2733 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2734 * testsuite/libgomp.c/atomic-6.c: Likewise.
2736 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2738 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2739 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2741 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2744 * config/osf/sem.h: New file.
2745 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2747 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2750 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2753 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2755 * config/linux/wait.h (do_spin): New inline, largely copied
2756 from do_wait, just don't do futex_wait here, instead return true if
2758 (do_wait): Implement using do_spin.
2759 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2761 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2762 __sync_bool_compare_and_swap, pass the oldval to
2763 gomp_mutex_lock_slow.
2764 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2765 If all mutex contenders are just spinning and not sleeping, don't
2766 change state to 2 unnecessarily. Optimize the loop when state has
2767 already become 2 to use just one atomic operation per loop instead
2769 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2771 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2772 __sync_bool_compare_and_swap, pass the oldval to
2773 gomp_mutex_lock_slow.
2775 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2778 * iter.c (gomp_iter_static_next): For chunk size 0
2779 only use n ceil/ nthreads size for the first
2780 n % nthreads threads in the team instead of
2781 all threads except for the last few ones which
2782 get less work or none at all.
2783 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2784 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2785 chunk argument, set run_sched_modifier to 0 for static
2786 resp. 1 for other kinds. If chunk argument is 0
2787 and not static, set value to 1.
2789 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2792 * testsuite/libgomp.c++/pr49043.C: New test.
2795 * testsuite/libgomp.c++/pr48869.C: New test.
2797 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2800 * fortran.c: Include limits.h.
2802 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2804 (omp_set_num_threads_8_, omp_set_schedule_8_,
2805 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2806 omp_get_team_size_8_): Use TO_INT macro.
2807 * testsuite/libgomp.fortran/pr48894.f90: New test.
2809 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2812 * testsuite/libgomp.c/pr48591.c: New test.
2814 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2817 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2818 * configure: Regenerate.
2820 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2823 * testsuite/libgomp.fortran/task3.f90: New test.
2825 2011-02-24 Tobias Burnus <burnus@net-b.de>
2827 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2829 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2832 * libgomp.texi (omp_get_wtime): Don't say time in the past
2835 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2838 * testsuite/libgomp.fortran/fortran.exp: Check for both
2839 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2840 but $blddir != "", still append ${blddir}/${lang_library_path}
2843 2011-02-16 Tobias Burnus <burnus@net-b.de>
2846 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2847 of libquadmath.a before adding its libpath to ldflags.
2849 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2852 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2853 to FUTEX_WAIT futex syscall.
2854 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2856 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2858 * configure: Regenerate.
2860 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2863 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2865 2011-01-16 Gerald Pfeifer
2867 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2869 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2872 * libgomp.fortran/allocatable6.f90: New test.
2874 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2876 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2877 * configure: Regenerate.
2879 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2883 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2884 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2885 * aclocal.m4: Regenerate.
2886 * configure: Regenerate.
2887 * Makefile.in: Regenerate.
2888 * testsuite/Makefile.in: Regenerate.
2890 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2893 * libgomp.fortran/pr46753.f90: New test.
2896 * env.c (initialize_env): Default to spin count 300000
2897 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2901 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2902 at the end if sync builtins aren't supported.
2904 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2906 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2908 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2910 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2912 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2914 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2916 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2917 Tobias Burnus <burnus@net-b.de>
2921 * configure: Regenerate.
2923 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2925 * config/linux/futex.h: New.
2926 * config/linux/arm/mutex.h: New.
2927 * configure.tgt (arm*-*-linux*): Add config path.
2929 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2931 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2933 2010-09-23 Tobias Burnus <burnus@net-b.de>
2935 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2936 Change Fortran datatype to LOGICAL.
2937 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2938 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2940 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2942 * configure: Regenerate.
2944 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2946 * libgomp.texi: Add function keyword to a couple of Fortran
2947 interfaces, use integer instead of int for Fortran.
2949 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2951 * libgomp.texi: Fix spelling and pasto problems throughout.
2952 Adjust prototypes to match code.
2954 2010-07-24 Tobias Burnus <burnus@net-b.de>
2956 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2957 silence -fwhole-file warning.
2959 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2961 * configure.tgt (*-*-solaris2.[56]*): Removed.
2963 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2965 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2966 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2967 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2968 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2969 targetting solaris2*.
2970 * configure: Regenerate.
2971 * config.h.in: Regenerate.
2973 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2974 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2975 Add libgomp_version_dep.
2976 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2978 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2979 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2980 * Makefile.in: Regenerate.
2982 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2983 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2984 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2985 to common block, protected by
2986 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2988 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2990 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2992 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2995 * configure: Regenerate.
2997 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3000 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3001 * configure: Regenerate.
3002 * Makefile.in: Regenerate.
3003 * testsuite/Makefile.in: Regenerate.
3005 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3008 * testsuite/libgomp.c/pr43893.c: New test.
3009 * testsuite/libgomp.c++/pr43893.C: New test.
3011 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3014 * testsuite/libgomp.fortran/vla8.f90: New test.
3016 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3019 * config/linux/affinity.c (gomp_init_affinity): Decrease
3020 gomp_available_cpus if affinity mask confines the process to fewer
3022 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3023 non-NULL, just return gomp_available_cpus.
3026 * sections.c (gomp_sections_init): Initialize ws->mode.
3028 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3030 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3031 not unused bar variable.
3032 * configure: Regenerate.
3034 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3036 * Makefile.in: Regenerate.
3037 * aclocal.m4: Regenerate.
3038 * testsuite/Makefile.in: Regenerate.
3040 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3043 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3044 (initialize_env): Adjust callers.
3045 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3046 when the argument is 0.
3048 * testsuite/libgomp.c/pr42942.c: New test.
3050 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3054 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3055 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3057 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3059 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3060 * testsuite/libgomp.c++/task-6.C: Likewise.
3062 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3064 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3066 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3068 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3069 * configure: Regenerate.
3071 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3074 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3076 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3078 * configure.ac: Test for executability of GFORTRAN.
3079 * configure: Regenerate.
3081 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3083 * configure: Regenerate.
3085 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3088 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3090 2010-01-03 Richard Guenther <rguenther@suse.de>
3092 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3094 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3096 * testsuite/libgomp.graphite/pr4118.c: New.
3098 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3100 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3101 for darwin, protect the test with require-effective-target tls_runtime.
3102 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3104 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3107 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3108 link spec %s substitutions for static libraries.
3110 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
3113 * libgomp.graphite/force-parallel-2.c: Reduce array size.
3115 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3117 * Makefile.in: Regenerate.
3118 * configure: Regenerate.
3119 * testsuite/Makefile.in: Regenerate.
3121 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
3123 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
3124 settings for LC_ALL and LANG.
3126 2009-11-25 Jakub Jelinek <jakub@redhat.com>
3129 * testsuite/libgomp.fortran/pr42162.f90: New test.
3131 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3134 * testsuite/libgomp.c/pr42029.c: New test.
3136 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3138 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
3139 *s. Accept ld version without text in ()s.
3140 * configure: Regenerated.
3142 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3144 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
3146 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3149 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
3150 or a hyphen (happens with fortran language disabled).
3151 * configure: Regenerate.
3153 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3155 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
3156 use sed script portable to Solaris /bin/sed for extracting ld
3158 * configure: Regenerate.
3160 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3162 * testsuite/libgomp.graphite/bounds.c: New test.
3164 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3166 * Makefile.am (libgomp_la_LINK): New.
3167 * Makefile.in: Regenerate.
3169 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3171 * configure.ac (AC_PREREQ): Bump to 2.64.
3173 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3175 * Makefile.am (install-html, install-pdf): Remove.
3176 * Makefile.in: Regenerate.
3178 * Makefile.in: Regenerate.
3179 * aclocal.m4: Regenerate.
3180 * config.h.in: Regenerate.
3181 * configure: Regenerate.
3182 * testsuite/Makefile.in: Regenerate.
3184 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3186 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
3187 * Makefile.in: Regenerate.
3189 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
3191 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
3192 * Makefile.in: Regenerate.
3194 2009-08-19 Tobias Burnus <burnus@net-b.de>
3197 omp_lib.h.in: Fix -std=f95 errors.
3200 2009-08-14 David Edelsohn <edelsohn@gnu.org>
3202 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
3203 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
3204 * testsuite/libgomp.graphite/graphite.exp: New.
3206 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3208 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3211 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3213 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
3214 needed memory barrier semantics.
3215 * config/linux/mips/mutex.h: New file.
3217 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3219 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
3221 2009-07-16 Joseph Myers <joseph@codesourcery.com>
3223 * configure: Regenerate.
3225 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
3230 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
3231 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
3232 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
3234 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3236 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
3237 options when choosing a multilib.
3239 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3241 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
3242 ld_library_path. Use add_path. Add just find_libgcc_s to
3243 ld_library_path, not every libgcc multilib directory.
3244 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
3245 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
3246 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
3248 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
3250 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
3252 * Makefile.am (LTLDFLAGS): Define.
3254 * Makefile.in: Regenerate.
3256 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
3259 * testsuite/libgomp.fortran/fortran.exp: Don't link with
3260 libgfortranbegin, check existence of libgfortran.a instead of
3263 2009-05-20 Jakub Jelinek <jakub@redhat.com>
3266 * team.c (gomp_thread_start): Destroy thr->release semaphore.
3267 (gomp_free_pool_helper): Likewise.
3269 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
3270 Jakub Jelinek <jakub@redhat.com>
3273 * testsuite/libgomp.fortran/workshare2.f90: New test.
3275 2009-04-09 Nick Clifton <nickc@redhat.com>
3277 * iter.c: Change copyright header to refer to version 3 of the
3278 GNU General Public License with version 3.1 of the GCC Runtime
3279 Library Exception and to point readers at the COPYING3 and
3280 COPYING3.RUNTIME files and the FSF's license web page.
3281 * alloc.c: Likewise.
3282 * barrier.c: Likewise.
3283 * config/bsd/proc.c: Likewise.
3284 * config/linux/affinity.c: Likewise.
3285 * config/linux/alpha/futex.h: Likewise.
3286 * config/linux/bar.c: Likewise.
3287 * config/linux/bar.h: Likewise.
3288 * config/linux/ia64/futex.h: Likewise.
3289 * config/linux/ia64/mutex.h: Likewise.
3290 * config/linux/lock.c: Likewise.
3291 * config/linux/mips/futex.h: Likewise.
3292 * config/linux/mutex.c: Likewise.
3293 * config/linux/mutex.h: Likewise.
3294 * config/linux/powerpc/futex.h: Likewise.
3295 * config/linux/proc.c: Likewise.
3296 * config/linux/ptrlock.c: Likewise.
3297 * config/linux/ptrlock.h: Likewise.
3298 * config/linux/s390/futex.h: Likewise.
3299 * config/linux/sem.c: Likewise.
3300 * config/linux/sem.h: Likewise.
3301 * config/linux/sparc/futex.h: Likewise.
3302 * config/linux/wait.h: Likewise.
3303 * config/linux/x86/futex.h: Likewise.
3304 * config/mingw32/proc.c: Likewise.
3305 * config/mingw32/time.c: Likewise.
3306 * config/posix/affinity.c: Likewise.
3307 * config/posix/bar.c: Likewise.
3308 * config/posix/bar.h: Likewise.
3309 * config/posix/lock.c: Likewise.
3310 * config/posix/mutex.h: Likewise.
3311 * config/posix/proc.c: Likewise.
3312 * config/posix/ptrlock.h: Likewise.
3313 * config/posix/sem.c: Likewise.
3314 * config/posix/sem.h: Likewise.
3315 * config/posix/time.c: Likewise.
3316 * config/posix95/lock.c: Likewise.
3317 * critical.c: Likewise.
3319 * error.c: Likewise.
3320 * fortran.c: Likewise.
3321 * iter_ull.c: Likewise.
3322 * libgomp.h: Likewise.
3323 * libgomp_f.h.in: Likewise.
3324 * libgomp_g.h: Likewise.
3326 * loop_ull.c: Likewise.
3327 * omp.h.in: Likewise.
3328 * omp_lib.f90.in: Likewise.
3329 * omp_lib.h.in: Likewise.
3330 * ordered.c: Likewise.
3331 * parallel.c: Likewise.
3332 * sections.c: Likewise.
3333 * single.c: Likewise.
3338 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3340 * testsuite/config/default.exp: Change copyright header to refer to
3341 version 3 of the GNU General Public License and to point readers
3342 at the COPYING3 file and the FSF's license web page.
3344 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3347 * libgomp.c++/pr39573.C: New test.
3349 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3352 * testsuite/libgomp.c/pr39591-1.c: New test.
3353 * testsuite/libgomp.c/pr39591-2.c: New test.
3354 * testsuite/libgomp.c/pr39591-3.c: New test.
3356 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3358 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3359 * testsuite/libgomp.c/atomic-6.c: Ditto.
3361 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3364 * testsuite/libgomp.c/loop-12.c: New test.
3365 * testsuite/libgomp.c/loop-11.c: New test.
3366 * testsuite/libgomp.c++/loop-11.C: New test.
3367 * testsuite/libgomp.c++/loop-12.C: New test.
3368 * testsuite/libgomp.c++/for-8.C: New test.
3370 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3372 * configure: Regenerate.
3374 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3377 * testsuite/libgomp.c/pr39154.c: New test.
3379 2009-01-30 Ian Lance Taylor <iant@google.com>
3381 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3382 libgomp_ld_is_gold. Get gold version number.
3383 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3384 * configure: Rebuild.
3386 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3388 * testsuite/lib/libgomp.exp: Add -B option for targets that
3389 use libgfortran.a%s in their specs.
3391 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3394 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3395 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3396 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3397 * configure: Regenerated.
3398 * config.h.in: Likewise.
3400 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3403 * testsuite/libgomp.c/pr38650.c: New test.
3404 * testsuite/libgomp.c++/pr38650.C: New test.
3406 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3408 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3410 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3412 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3414 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3416 * configure: Regenerate.
3418 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3421 * testsuite/libgomp.c/pr36802-1.c: New test.
3422 * testsuite/libgomp.c/pr36802-2.c: New test.
3423 * testsuite/libgomp.c/pr36802-3.c: New test.
3425 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3428 * config/linux/powerpc/mutex.h: New.
3430 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3433 * testsuite/libgomp.c++/for-7.C: New test.
3436 * testsuite/libgomp.c++/for-6.C: New test.
3438 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3441 * testsuite/lib/libgomp.exp: Include new timeout library files.
3442 (libgomp_target_compile): Set timeout value from new proc.
3444 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3447 * config/linux/ia64/mutex.h: New.
3449 2008-11-04 Tobias Burnus <burnus@net-b.de>
3452 * libgomp.texi (Runtime library routines, environment variables):
3453 Update for OpenMP version 3.0.
3455 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3456 Steve Ellcey <sje@cup.hp.com>
3458 * configure: Regenerate for new libtool.
3459 * Makefile.in: Ditto.
3460 * testsuite/Makefile.in: Ditto.
3462 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3463 Andreas Tobler <a.tobler@schweiz.org>
3465 * config/bsd/proc.c: New file.
3466 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3467 * configure.ac: Check for header <sys/sysctl.h>
3468 * configure: Regenerate.
3469 * config.h.in: Likewise.
3471 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3473 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3475 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3477 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3478 * Makefile.in: Regenerated.
3479 * testsuite/Makefile.in: Regenerated.
3481 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3483 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3484 depend on blddir if blddir exists.
3485 (libgomp_target_compile): Likewise.
3486 * testsuite/libgomp.c++/c++.exp: Likewise.
3487 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3489 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3491 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3492 Do not list GPL as Invariant Section.
3494 2008-07-28 Ilie Garbacea <ilie@mips.com>
3495 Chao-ying Fu <fu@mips.com>
3497 * configure.tgt: Enable futex for MIPS.
3498 * config/linux/mips/futex.h: New file.
3500 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3502 * team.c (gomp_team_end): Free team immediately if it has
3505 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3507 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3508 * testsuite/libgomp.fortran/fortran.exp: Same.
3509 * testsuite/libgomp.c/c.exp: Same.
3510 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3511 directory to library path first.
3513 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3515 * env.c (parse_stacksize): Add cast to avoid warning.
3516 (parse_spincount): Likewise.
3518 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3520 * testsuite/libgomp.c/loop-10.c: New test.
3521 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3522 * libgomp.c++/loop-6.C (main): Likewise.
3525 * testsuite/libgomp.c/debug-1.c: New test.
3527 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3529 * testsuite/libgomp.c/nqueens-1.c: New test.
3532 * testsuite/libgomp.c++/task-7.C: New function.
3534 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3536 * configure: Regenerate.
3538 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3540 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3541 mutex when HAVE_SYNC_BUILTINS isn't defined.
3543 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3545 * libgomp.texi (omp_test_lock): Fix typo.
3547 2008-06-12 Tobias Burnus <burnus@net-b.de>
3549 * omp_lib.f90.in: Add "implicit none".
3551 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3554 * testsuite/libgomp.c/reduction-5.c: New test.
3556 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3558 * libgomp.h (struct gomp_task): Add in_tied_task field.
3559 * task.c (gomp_init_task): Initialize it.
3560 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3561 unconditionally. Don't call gomp_team_barrier_wake if
3562 current task is implicit or if(0) from implicit and number of
3563 running tasks is equal to nthreads - 1.
3566 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3567 omp_get_team_size_8): Fix pastos.
3570 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3571 * configure: Regenerated.
3572 * config.h.in: Regenerated.
3573 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3576 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3579 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3580 (GOMP_loop_ull_dynamic_start): Likewise.
3581 (GOMP_loop_ull_guided_start): Likewise.
3582 (GOMP_loop_ull_ordered_static_start): Likewise.
3583 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3584 (GOMP_loop_ull_ordered_guided_start): Likewise.
3586 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3587 Richard Henderson <rth@redhat.com>
3588 Ulrich Drepper <drepper@redhat.com>
3589 Jakob Blomer <jakob.blomer@ira.uka.de>
3591 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3592 Substitute also OMP_*LOCK_25*.
3593 * configure: Regenerated.
3594 * config.h.in: Regenerated.
3595 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3596 ptrlock.c and task.c.
3597 * Makefile.in: Regenerated.
3598 * testsuite/Makefile.in: Regenerated.
3600 * loop_ull.c: New file.
3601 * iter_ull.c: New file.
3602 * libgomp.h: Include ptrlock.h.
3603 (enum gomp_task_kind): New type.
3604 (struct gomp_team): Add task_lock, task_queue, task_count,
3605 task_running_count, single_count fields. Add
3606 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3607 Remove work_share_lock, generation_mask,
3608 oldest_live_gen, num_live_gen and init_work_shares fields, add
3609 work work_share_list_alloc, work_share_list_free and work_share_chunk
3610 fields. Change work_shares from pointer to pointers into an array.
3611 Change ordered_release field into gomp_sem_t ** from flexible array
3612 member. Add implicit_task and initial_work_shares fields.
3613 Move close to the end of the struct.
3614 (struct gomp_team_state): Add single_count, last_work_share,
3615 active_level and level fields, remove work_share_generation.
3616 (gomp_barrier_handle_tasks): New prototype.
3617 (gomp_finish_task): New inline function.
3618 (struct gomp_work_share): Move chunk_size, end, incr into
3619 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3620 next_ll fields. Reshuffle fields. Add next_alloc,
3621 next_ws, next_free and inline_ordered_team_ids fields, change
3622 ordered_team_ids into pointer from flexible array member.
3623 Add mode field. Put lock and next into a different cache line
3624 from most of the write-once fields.
3625 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3626 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3627 gomp_iter_ull_guided_next): New prototypes.
3628 (gomp_new_icv): New prototype.
3629 (struct gomp_thread): Add thread_pool and task fields.
3630 (struct gomp_thread_pool): New type.
3631 (gomp_new_team): New prototype.
3632 (gomp_team_start): Change type of last argument.
3633 (gomp_new_work_share): Removed.
3634 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3635 (gomp_work_share_init_done): New static inline.
3636 (gomp_throttled_spin_count_var, gomp_available_cpus,
3637 gomp_managed_threads): New extern decls.
3638 (gomp_init_task): New prototype.
3639 (gomp_spin_count_var): New extern var decl.
3640 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3641 or no alias support, or if not PIC.
3642 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3643 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3644 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3645 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3646 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3647 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3648 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3649 gomp_test_nest_lock_25): New prototypes.
3650 (omp_lock_symver, strong_alias): Define.
3651 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3653 (gomp_end_task): New.
3654 (struct gomp_task_icv, gomp_global_icv): New.
3655 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3656 (struct gomp_task): New.
3657 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3658 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3660 (gomp_schedule_type): Reorder enum to match
3662 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3664 (gomp_thread_start): Add gomp_team_barrier_wait call.
3665 For non-nested case remove clearing of docked thread thr fields.
3666 Use pool fields instead of global gomp_* variables. Use
3667 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3668 Create tasks for each member thread.
3669 (free_team): Only destroy team barrier, task_lock here and free it.
3670 (gomp_free_thread): Free last_team if non-NULL.
3671 (gomp_team_end): Call gomp_team_barrier_wait instead of
3672 gomp_barrier_wait. For nested case call one extra
3673 gomp_barrier_wait. Move here some destruction from free_team.
3674 Call free_team on pool->last_team if any, rather than freeing
3675 current team. Destroy work_share_list_free_lock ifndef
3677 (gomp_new_icv): New function.
3678 (gomp_threads, gomp_threads_size, gomp_threads_used,
3679 gomp_threads_dock): Removed.
3680 (gomp_thread_destructor): New variable.
3681 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3683 (gomp_team_start): Create new pool if current thread doesn't have
3684 one. Use pool fields instead of global gomp_* variables.
3685 Initialize thread_pool field for new threads. Clear single_count.
3686 Change last argument from ws to team, don't create
3687 new team, set ts.work_share to &team->work_shares[0] and clear
3688 ts.last_work_share. Don't clear ts.work_share_generation.
3689 If number of threads changed, adjust atomically gomp_managed_threads.
3690 Use gomp_init_task instead of gomp_new_task,
3691 set thr->task to the corresponding implicit_task array entry.
3692 Create tasks for each member thread. Initialize ts.level.
3693 (initialize_team): Call pthread_key_create on
3694 gomp_thread_destructor.
3695 (team_destructor): New function.
3696 (new_team): Removed.
3697 (gomp_new_team): New function.
3698 (free_team): Free gomp_work_share blocks chained through next_alloc,
3699 instead of freeing work_shares and destroying work_share_lock.
3700 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3701 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3702 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3703 of gomp_barrier_wait.
3704 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3705 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3706 if gomp_work_share_start returned true. Don't unlock ws->lock.
3707 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3708 of gomp_barrier_wait.
3709 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3710 gomp_work_share_init_done if gomp_work_share_start returned true.
3711 Don't unlock ws->lock.
3712 * work.c: Include stddef.h.
3713 (free_work_share): Use work_share_list_free_lock instead
3714 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3715 Call gomp_fini_work_share and then either free ws if orphaned, or
3716 put it into work_share_list_free list of the current team.
3717 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3719 (gomp_work_share_start, gomp_work_share_end,
3720 gomp_work_share_end_nowait): Rewritten.
3721 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3722 (openmp_version): Set to 200805.
3723 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3724 omp_sched_guided, omp_sched_auto): New parameters.
3725 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3726 omp_set_max_active_levels, omp_get_max_active_levels,
3727 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3728 omp_get_active_level): New interfaces.
3729 * omp_lib.h.in (openmp_version): Set to 200805.
3730 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3731 omp_sched_guided, omp_sched_auto): New parameters.
3732 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3733 omp_set_max_active_levels, omp_get_max_active_levels,
3734 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3735 omp_get_active_level): New externals.
3736 * loop.c: Include limits.h.
3737 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3739 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3740 Likewise. Use gomp_icv.
3741 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3742 ts.static_trip here.
3743 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3744 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3745 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3746 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3747 don't unlock ws->lock, otherwise lock it.
3748 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3749 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3750 (gomp_parallel_loop_start): Call gomp_new_team instead of
3751 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3752 Adjust gomp_team_start caller. Pass 0 as second argument to
3753 gomp_resolve_num_threads.
3754 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3755 If adding ws->chunk_size nthreads + 1 times after end won't
3756 overflow, set ws->mode to 1.
3757 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3758 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3759 GOMP_loop_ull_ordered_static_start,
3760 GOMP_loop_ull_ordered_dynamic_start,
3761 GOMP_loop_ull_ordered_guided_start,
3762 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3763 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3764 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3765 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3766 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3768 * libgomp.map: Export lock routines also @@OMP_2.0.
3769 (GOMP_loop_ordered_dynamic_first,
3770 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3771 GOMP_loop_ordered_static_first): Remove.
3772 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3773 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3774 GOMP_loop_ull_ordered_dynamic_next,
3775 GOMP_loop_ull_ordered_dynamic_start,
3776 GOMP_loop_ull_ordered_guided_next,
3777 GOMP_loop_ull_ordered_guided_start,
3778 GOMP_loop_ull_ordered_runtime_next,
3779 GOMP_loop_ull_ordered_runtime_start,
3780 GOMP_loop_ull_ordered_static_next,
3781 GOMP_loop_ull_ordered_static_start,
3782 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3783 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3784 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3785 (omp_set_schedule, omp_get_schedule,
3786 omp_get_thread_limit, omp_set_max_active_levels,
3787 omp_get_max_active_levels, omp_get_level,
3788 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3789 omp_set_schedule_, omp_set_schedule_8_,
3790 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3791 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3792 omp_get_max_active_levels_, omp_get_level_,
3793 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3794 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3795 New exports @@OMP_3.0.
3796 * omp.h.in (omp_sched_t): New type.
3797 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3798 omp_set_max_active_levels, omp_get_max_active_levels,
3799 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3800 omp_get_active_level): New prototypes.
3801 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3802 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3803 gomp_thread_limit_var, gomp_remaining_threads_count,
3804 gomp_remaining_threads_lock): New variables.
3805 (parse_spincount): New function.
3806 (initialize_env): Call gomp_init_num_threads unconditionally.
3807 Initialize gomp_available_cpus. Call parse_spincount,
3808 initialize gomp_{,throttled_}spin_count_var
3809 depending on presence and value of OMP_WAIT_POLICY and
3810 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3811 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3812 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3813 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3814 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3815 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3816 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3817 (gomp_global_icv): New.
3818 (parse_schedule): Use it. Parse "auto".
3819 (omp_set_num_threads): Use gomp_icv.
3820 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3822 (omp_get_max_threads): Move from parallel.c.
3823 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3824 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3826 (parse_stacksize, parse_wait_policy): New functions.
3827 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3828 both wrappers for compatibility and new locks.
3829 (omp_set_schedule, omp_get_schedule,
3830 omp_get_thread_limit, omp_set_max_active_levels,
3831 omp_get_max_active_levels, omp_get_level,
3832 omp_get_ancestor_thread_num, omp_get_team_size,
3833 omp_get_active_level): New ialias_redirect.
3834 (omp_set_schedule_, omp_set_schedule_8_,
3835 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3836 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3837 omp_get_max_active_levels_, omp_get_level_,
3838 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3839 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3841 * parallel.c: Include limits.h.
3842 (gomp_resolve_num_threads): Add count argument. Rewritten.
3843 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3844 argument to gomp_team_start. Pass 0 as second argument to
3845 gomp_resolve_num_threads.
3846 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3847 if gomp_thread_limit_var != ULONG_MAX.
3848 (omp_in_parallel): Implement using ts.active_level.
3849 (omp_get_max_threads): Move to env.c.
3850 (omp_get_level, omp_get_ancestor_thread_num,
3851 omp_get_team_size, omp_get_active_level): New functions,
3853 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3854 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3855 gomp_iter_dynamic_next instead of the _locked variant and don't take
3856 lock around it, otherwise acquire it before calling
3857 gomp_iter_dynamic_next_locked.
3858 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3859 gomp_iter_dynamic_next instead of the _locked variant and don't take
3861 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3862 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3863 Adjust gomp_team_start caller. Pass count as second argument to
3864 gomp_resolve_num_threads, don't adjust num_threads after the call.
3866 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3867 ws->chunk_size by incr.
3868 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3870 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3872 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3873 (omp_check_defines): Check even the compat defines.
3874 * config/linux/ptrlock.c: New file.
3875 * config/linux/ptrlock.h: New file.
3876 * config/linux/wait.h: New file.
3877 * config/posix/ptrlock.c: New file.
3878 * config/posix/ptrlock.h: New file.
3879 * config/linux/bar.h (gomp_team_barrier_wait,
3880 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3881 (gomp_team_barrier_set_task_pending,
3882 gomp_team_barrier_clear_task_pending,
3883 gomp_team_barrier_set_waiting_for_tasks,
3884 gomp_team_barrier_waiting_for_tasks,
3885 gomp_team_barrier_done): New inlines.
3886 (gomp_barrier_t): Rewritten.
3887 (gomp_barrier_state_t): New typedef.
3888 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3889 gomp_barrier_wait_start): Rewritten.
3890 (gomp_barrier_wait_end): Change second argument to
3891 gomp_barrier_state_t.
3892 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3894 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3896 (gomp_barrier_wait_end): Rewritten.
3897 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3898 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3899 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3900 (gomp_barrier_state_t): New typedef.
3901 (gomp_team_barrier_wait,
3902 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3903 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3904 into the return value. Return gomp_barrier_state_t.
3905 (gomp_team_barrier_set_task_pending,
3906 gomp_team_barrier_clear_task_pending,
3907 gomp_team_barrier_set_waiting_for_tasks,
3908 gomp_team_barrier_waiting_for_tasks,
3909 gomp_team_barrier_done): New inlines.
3910 (gomp_barrier_wait_end): Change second argument to
3911 gomp_barrier_state_t.
3912 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3914 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3915 (gomp_barrier_wait_end): Change second argument to
3916 gomp_barrier_state_t.
3917 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3918 gomp_team_barrier_wake): New functions.
3919 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3921 (gomp_futex_wake, gomp_futex_wait): New variables.
3922 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3923 * config/linux/lock.c: Rewrite to make locks task owned,
3924 for backwards compatibility provide the old entrypoints
3925 if symbol versioning. Include wait.h instead of libgomp.h and
3927 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3928 * config/posix95/lock.c: Rewrite to make locks task owned,
3929 for backwards compatibility provide the old entrypoints
3930 if symbol versioning.
3931 * config/posix/lock.c: Rewrite to make locks task owned,
3932 for backwards compatibility provide the old entrypoints
3933 if symbol versioning.
3934 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3935 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3936 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3937 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3938 (sys_futex0): Return error code.
3939 (futex_wake, futex_wait): If ENOSYS was returned, clear
3940 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3941 (cpu_relax, atomic_write_barrier): New static inlines.
3942 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3943 (futex_wake, futex_wait): If ENOSYS was returned, clear
3944 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3945 (cpu_relax, atomic_write_barrier): New static inlines.
3946 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3947 (sys_futex0): Return error code.
3948 (futex_wake, futex_wait): If ENOSYS was returned, clear
3949 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3950 (cpu_relax, atomic_write_barrier): New static inlines.
3951 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3952 (sys_futex0): Return error code.
3953 (futex_wake, futex_wait): If ENOSYS was returned, clear
3954 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3955 (cpu_relax, atomic_write_barrier): New static inlines.
3956 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3957 (sys_futex0): Return error code.
3958 (futex_wake, futex_wait): If ENOSYS was returned, clear
3959 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3960 (cpu_relax, atomic_write_barrier): New static inlines.
3961 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3962 (sys_futex0): Return error code.
3963 (futex_wake, futex_wait): If ENOSYS was returned, clear
3964 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3965 (cpu_relax, atomic_write_barrier): New static inlines.
3966 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3968 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3969 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3970 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3972 (omp_nest_lock_t): Change owner into void *, add lock field.
3973 * config/posix95/omp-lock.h: Include semaphore.h.
3974 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3975 (omp_lock_t): Use sem_t instead of mutex if semaphores
3977 (omp_nest_lock_t): Likewise. Change owner to void *.
3978 * config/posix/omp-lock.h: Include semaphore.h.
3979 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3980 (omp_lock_t): Use sem_t instead of mutex if semaphores
3982 (omp_nest_lock_t): Likewise. Add owner field.
3984 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3986 * testsuite/libgomp.c/collapse-1.c: New test.
3987 * testsuite/libgomp.c/collapse-2.c: New test.
3988 * testsuite/libgomp.c/collapse-3.c: New test.
3989 * testsuite/libgomp.c/icv-1.c: New test.
3990 * testsuite/libgomp.c/icv-2.c: New test.
3991 * testsuite/libgomp.c/lib-2.c: New test.
3992 * testsuite/libgomp.c/lock-1.c: New test.
3993 * testsuite/libgomp.c/lock-2.c: New test.
3994 * testsuite/libgomp.c/lock-3.c: New test.
3995 * testsuite/libgomp.c/loop-4.c: New test.
3996 * testsuite/libgomp.c/loop-5.c: New test.
3997 * testsuite/libgomp.c/loop-6.c: New test.
3998 * testsuite/libgomp.c/loop-7.c: New test.
3999 * testsuite/libgomp.c/loop-8.c: New test.
4000 * testsuite/libgomp.c/loop-9.c: New test.
4001 * testsuite/libgomp.c/nested-3.c: New test.
4002 * testsuite/libgomp.c/nestedfn-6.c: New test.
4003 * testsuite/libgomp.c/sort-1.c: New test.
4004 * testsuite/libgomp.c/task-1.c: New test.
4005 * testsuite/libgomp.c/task-2.c: New test.
4006 * testsuite/libgomp.c/task-3.c: New test.
4007 * testsuite/libgomp.c/task-4.c: New test.
4008 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4009 to C++ testsuite default compiler options.
4010 * testsuite/libgomp.c++/collapse-1.C: New test.
4011 * testsuite/libgomp.c++/collapse-2.C: New test.
4012 * testsuite/libgomp.c++/ctor-10.C: New test.
4013 * testsuite/libgomp.c++/for-1.C: New test.
4014 * testsuite/libgomp.c++/for-2.C: New test.
4015 * testsuite/libgomp.c++/for-3.C: New test.
4016 * testsuite/libgomp.c++/for-4.C: New test.
4017 * testsuite/libgomp.c++/for-5.C: New test.
4018 * testsuite/libgomp.c++/loop-8.C: New test.
4019 * testsuite/libgomp.c++/loop-9.C: New test.
4020 * testsuite/libgomp.c++/loop-10.C: New test.
4021 * testsuite/libgomp.c++/task-1.C: New test.
4022 * testsuite/libgomp.c++/task-2.C: New test.
4023 * testsuite/libgomp.c++/task-3.C: New test.
4024 * testsuite/libgomp.c++/task-4.C: New test.
4025 * testsuite/libgomp.c++/task-5.C: New test.
4026 * testsuite/libgomp.c++/task-6.C: New test.
4027 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4028 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4029 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4030 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4031 * testsuite/libgomp.fortran/collapse1.f90: New test.
4032 * testsuite/libgomp.fortran/collapse2.f90: New test.
4033 * testsuite/libgomp.fortran/collapse3.f90: New test.
4034 * testsuite/libgomp.fortran/collapse4.f90: New test.
4035 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4036 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4037 * testsuite/libgomp.fortran/lib4.f90: New test.
4038 * testsuite/libgomp.fortran/lock-1.f90: New test.
4039 * testsuite/libgomp.fortran/lock-2.f90: New test.
4040 * testsuite/libgomp.fortran/nested1.f90: New test.
4041 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4042 * testsuite/libgomp.fortran/strassen.f90: New test.
4043 * testsuite/libgomp.fortran/tabs1.f90: New test.
4044 * testsuite/libgomp.fortran/tabs2.f: New test.
4045 * testsuite/libgomp.fortran/task1.f90: New test.
4046 * testsuite/libgomp.fortran/task2.f90: New test.
4047 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4048 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4049 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4050 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4051 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4053 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4056 * testsuite/libgomp.c++/ctor-11.C: New test.
4057 * testsuite/libgomp.c++/ctor-12.C: New test.
4059 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4061 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4063 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4066 * testsuite/libgomp.c/atomic-5.c: New test.
4067 * testsuite/libgomp.c/atomic-6.c: New test.
4068 * testsuite/libgomp.c/autopar-1.c: New test.
4070 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4072 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4073 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4074 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4075 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4076 * configure: Regenerate.
4077 * Makefile.in, testsuite/Makefile.in: Likewise.
4079 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4082 * aclocal.m4: Regenerate.
4083 * configure: Regenerate.
4085 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4088 * testsuite/libgomp.c/atomic-4.c: New test.
4091 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4092 (gomp_iter_guided_next): Likewise.
4093 * testsuite/libgomp.c/pr35625.c: New test.
4095 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4097 * aclocal.m4: Regenerate.
4098 * configure: Likewise.
4099 * Makefile.in: Likewise.
4100 * testsuite/Makefile.in: Likewise.
4102 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4105 * testsuite/libgomp.c++/pr35185.C: New test.
4107 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4110 * testsuite/libgomp.c/pr35549.c: New test.
4112 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4114 * testsuite/libgomp.c/atomic-3.c: New test.
4116 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4119 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
4122 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
4125 * configure.ac: Add ACX_HEADER_STRING.
4126 * env.c: Include strings.h.
4127 * aclocal.m4: Regenerate.
4128 * config.h.in: Regenerate.
4129 * configure: Regenerate.
4130 * Makefile.in: Regenerate.
4131 * testsuite/Makefile.in: Regenerate.
4133 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4136 * testsuite/libgomp.c/pr35196.c: New test.
4139 * testsuite/libgomp.fortran/pr35130.f90: New test.
4140 * testsuite/libgomp.c/pr35130.c: New test.
4142 2008-01-25 Jakub Jelinek <jakub@redhat.com>
4145 * testsuite/libgomp.c/pr33880.c: New test.
4146 * testsuite/libgomp.fortran/pr33880.f90: New test.
4148 2008-01-24 David Edelsohn <edelsohn@gnu.org>
4150 * configure: Regenerate.
4152 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4154 * configure.ac: Move futex checking into ../config/futex.m4.
4155 * configure: Rebuilt.
4156 * aclocal.m4: Rebuilt.
4157 * Makefile.in: Rebuilt.
4159 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
4160 2007-10-15 ../config/tls.m4 change.
4162 2007-12-19 Jakub Jelinek <jakub@redhat.com>
4165 * testsuite/libgomp.c/pr34513.c: New test.
4166 * testsuite/libgomp.c++/pr34513.C: New test.
4168 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
4171 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
4173 2007-12-04 Jakub Jelinek <jakub@redhat.com>
4175 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
4177 2007-12-03 Jakub Jelinek <jakub@redhat.com>
4179 * testsuite/libgomp.c/private-1.c: New test.
4181 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
4182 Paolo Bonzini <bonzini@gnu.org>
4184 * Makefile.am: Use space as vpath separator. Use 'vpath %'
4185 instead of 'VPATH ='.
4186 * Makefile.in: Regenerate.
4188 2007-11-23 Matthias Klose <doko@ubuntu.com>
4190 * configure.ac: Adjust makeinfo version check.
4191 * configure: Regenerate.
4193 2007-11-10 Jakub Jelinek <jakub@redhat.com>
4196 * testsuite/libgomp.fortran/pr34020.f90: New test.
4198 2007-11-06 Jakub Jelinek <jakub@redhat.com>
4201 * testsuite/libgomp.c++/atomic-1.C: New test.
4203 2007-10-25 Jakub Jelinek <jakub@redhat.com>
4206 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4207 Make x and y integers rather than (implicit) reals. Add private (j)
4208 clause to the last omp parallel.
4210 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4212 * configure: Regenerate following changes to ../config/tls.m4.
4214 2007-09-28 Jakub Jelinek <jakub@redhat.com>
4216 * testsuite/libgomp.fortran/stack.f90: New test.
4218 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4220 * config/mingw32/proc.c: New file.
4222 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
4224 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
4225 (main): Use __get_cpuid to get i386 target fetaures.
4226 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
4227 (main): Use __get_cpuid to get x86_64 target fetaures.
4229 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
4232 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
4233 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
4235 2007-07-12 Jakub Jelinek <jakub@redhat.com>
4238 * testsuite/libgomp.fortran/pr32550.f90: New test.
4239 * testsuite/libgomp.fortran/crayptr2.f90: New test.
4241 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
4243 * aclocal.m4: Regenerated.
4245 2007-07-05 Tobias Burnus <burnus@net-b.de>
4248 * testsuite/libgomp.fortran/pr32359.f90: New.
4250 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4253 * sections.c (GOMP_parallel_sections_start): Only decrease
4254 number of threads to COUNT if dyn_var is true.
4255 * testsuite/libgomp.c/pr32468.c: New test.
4257 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4260 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
4262 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4265 * testsuite/libgomp.c/pr32362-1.c: New test.
4266 * testsuite/libgomp.c/pr32362-2.c: New test.
4267 * testsuite/libgomp.c/pr32362-3.c: New test.
4269 2007-06-07 Jakub Jelinek <jakub@redhat.com>
4271 * team.c (gomp_team_start): Fix setting up thread_attr
4274 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
4276 * configure: Regenerate.
4278 2007-05-23 Steve Ellcey <sje@cup.hp.com>
4280 * Makefile.in: Regenerate.
4281 * configure: Regenerate.
4282 * aclocal.m4: Regenerate.
4283 * testsuite/Makefile.in: Regenerate.
4285 2007-05-04 Jakub Jelinek <jakub@redhat.com>
4287 * config/linux/proc.c: New file.
4290 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4292 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
4294 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4296 2007-04-16 Matthias Klose <doko@debian.org>
4298 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4299 flags if not building with -m64.
4300 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4301 flag for i?86-*-* targets, if current target matches -m64.
4303 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4305 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4306 * Makefile.in: Regenerate.
4308 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4311 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4313 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4315 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4317 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4319 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4320 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4321 (parse_affinity): New function.
4322 (initialize_env): Call it and gomp_init_affinity.
4323 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4324 create new pthread_attr_t and call gomp_init_thread_affinity
4325 on it for each thread before passing the attribute to pthread_create.
4326 * config/linux/affinity.c: New file.
4327 * config/posix/affinity.c: New file.
4328 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4329 * configure: Rebuilt.
4330 * config.h.in: Rebuilt.
4331 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4332 * Makefile.in: Rebuilt.
4334 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4336 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4338 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4339 and use it if found.
4341 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4343 * testsuite/config/default.exp: New file.
4344 * testsuite/lib/libgomp.exp: New file.
4345 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4346 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4347 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4348 (libgomp_load): Remove.
4349 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4350 always_ld_library_path, not ld_library_path. Set additional_flags
4351 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4352 (target_compile): Do not call libgomp_init. Append lang_library_path
4353 and lang_link_flags to options.
4354 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4355 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4357 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4358 always_ld_library_path. Set LD_LIBRARY_PATH here.
4359 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4360 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4361 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4363 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4364 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4365 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4366 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4367 * testsuite/libgomp.c/atomic-10.c: Ditto.
4369 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4371 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4372 dg-final cleanup-modules line.
4373 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4374 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4375 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4376 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4377 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4378 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4379 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4381 2007-03-18 Andreas Schwab <schwab@suse.de>
4383 * acinclude.m4: Adjust regular expression for ld version
4385 * configure: Regenerate.
4387 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4389 * Makefile.am: Add install-pdf target as copied from
4390 automake v1.10 rules.
4391 * Makefile.in: Regenerate
4393 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4396 * configure: Regenerate.
4399 * testsuite/libgomp.c++/pr30703.C: New test.
4401 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4404 2006-07-05 Eric Christopher <echristo@apple.com>
4405 * configure.ac: Depend addition of -pthread on host OS.
4406 * configure: Regenerate.
4408 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4410 * libgomp.texi: Fix spacing after abbreviations.
4412 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4415 * configure.ac: Add check for makeinfo
4416 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4417 if an appropiate version of makeinfo is found.
4418 * aclocal.m4: Regenerated.
4419 * configure: Regenerated.
4420 * Makefile.in: Regenerated.
4421 * testsuite/Makefile.in: Regenerated.
4423 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4426 * libgomp.texi: More about implementation-dependent settings.
4428 2007-01-26 Tobias Burnus <burnus@net-b.de>
4430 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4432 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4435 * testsuite/libgomp.c/pr30494.c: New test.
4437 2007-01-15 Tom Tromey <tromey@redhat.com>
4439 * configure: Rebuilt.
4440 * configure.ac: Fixed comment.
4442 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4444 * libgomp.texi: Document implementation specific default values of
4445 environment variables.
4447 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4450 * libgomp.texi: New file.
4451 * configure.ac: Add --enable-generated-files-in-srcdir option.
4452 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4454 * Makefile.in: Regenerated.
4455 * config.h.in: Regenerated.
4456 * testsuite/Makefile.in: Regenerated.
4459 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4462 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4464 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4466 * configure: Regenerate.
4468 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4471 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4472 start if there shouldn't be any loop iterations.
4473 (gomp_loop_ordered_static_start): Remove start == end test.
4474 * testsuite/libgomp.c/pr29947-1.c: New test.
4475 * testsuite/libgomp.c/pr29947-2.c: New test.
4477 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4479 * configure.tgt: Force initial-exec TLS model on Linux only.
4481 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4483 * configure: Regenerated.
4485 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4487 * env.c (parse_schedule): Reject out of range values.
4488 (parse_unsigned_long): Reject out of range, negative or zero values.
4490 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4493 * testsuite/libgomp.fortran/pr29629.f90: New test.
4495 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4498 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4499 * config/posix95: New directory.
4500 * config/posix95/omp-lock.h: New file.
4501 * config/posix95/lock.c: Likewise.
4503 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4505 * aclocal.m4: Regenerate.
4506 * configure: Regenerate.
4508 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4510 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4513 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4515 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4517 * configure: Regenerate.
4518 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4520 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4524 * testsuite/libgomp.c/nestedfn-4.c: New test.
4525 * testsuite/libgomp.c/nestedfn-5.c: New test.
4526 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4529 * testsuite/libgomp.fortran/condinc1.f: New test.
4530 * testsuite/libgomp.fortran/condinc2.f: New test.
4531 * testsuite/libgomp.fortran/condinc3.f90: New test.
4532 * testsuite/libgomp.fortran/condinc4.f90: New test.
4533 * testsuite/libgomp.fortran/condinc1.inc: New file.
4535 2006-09-18 Tom Tromey <tromey@redhat.com>
4537 * configure: Rebuilt.
4539 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4542 PR preprocessor/14634
4543 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4545 * configure: Regenerate.
4547 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4549 * testsuite/libgomp.fortran/reduction3.f90: Change
4550 -2147483648 to -huge(i)-1 to avoid overflow.
4551 * testsuite/libgomp.fortran/reduction4.f90: Change
4552 Z'ffffffff' to not(0) to avoid overflow.
4554 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4557 * Makefile.am (libsubincludedir): New.
4558 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4559 * Makefile.in: Regenerate.
4561 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4564 * env.c: Include ctype.h.
4565 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4566 leading and/or trailing whitespace and compare strings case
4569 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4572 * testsuite/libgomp.fortran/pr28390.f: New test.
4574 2006-07-05 Eric Christopher <echristo@apple.com>
4576 * configure.ac: Depend addition of -pthread on host OS.
4577 * configure: Regenerate.
4579 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4581 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4582 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4585 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4589 * configure.ac: If neither --enable-linux-futex nor
4590 --disable-linux-futex is passed, determine the default by checking
4591 for compiling and/or running against NPTL. With --enable-linux-futex,
4592 check if SYS_gettid and SYS_futex are defined.
4593 * configure: Rebuilt.
4595 2006-06-14 Richard Henderson <rth@redhat.com>
4598 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4599 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4601 2006-06-09 Richard Henderson <rth@redhat.com>
4603 * env.c (gomp_nthreads_var): Change to unsigned long.
4604 (gomp_run_sched_chunk): Likewise.
4605 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4606 (initialize_env): Initialize gomp_thread_attr.
4607 * libgomp.h (gomp_nthreads_var): Update decl.
4608 (gomp_run_sched_chunk): Likewise.
4609 (gomp_thread_attr): Declare.
4610 * team.c (gomp_thread_attr): Export.
4611 (initialize_team): Don't initialize it.
4613 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4616 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4617 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4619 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4621 * config/mingw32/time.c: New file.
4622 * configure.tgt: Use it.
4624 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4626 * Makefile.am: Add install-html target. Add install-html to .PHONY
4627 * Makefile.in: Regenerate.
4629 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4632 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4633 * testsuite/libgomp.c/critical-1.c: Likewise.
4634 * testsuite/libgomp.c/loop-1.c: Likewise.
4635 * testsuite/libgomp.c/loop-2.c: Likewise.
4636 * testsuite/libgomp.c/single-1.c: Likewise.
4637 * testsuite/libgomp.c/ordered-1.c: Likewise.
4638 * testsuite/libgomp.c/ordered-2.c: Likewise.
4640 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4643 * libgomp.fortran/pr27416-1.f90: New test.
4645 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4648 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4649 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4651 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4654 * testsuite/libgomp.c/pr26943-1.c: New test.
4655 * testsuite/libgomp.c/pr26943-2.c: New test.
4656 * testsuite/libgomp.c/pr26943-3.c: New test.
4657 * testsuite/libgomp.c/pr26943-4.c: New test.
4658 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4659 * testsuite/libgomp.c++/pr26943.C: New test.
4661 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4664 * testsuite/libgomp.c++/pr27337.C: New test.
4666 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4669 * testsuite/libgomp.c/pr26171.c: New test.
4671 2006-04-25 Richard Henderson <rth@redhat.com>
4674 * configure.ac: Use GCC_CHECK_TLS.
4675 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4676 * Makefile.in, aclocal.m4, configure: Regenerate.
4678 2006-04-10 Matthias Klose <doko@debian.org>
4680 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4681 directory names containing underscores.
4683 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4686 * testsuite/libgomp.c++/pr26691.C: New test.
4688 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4690 * testsuite/libgomp.fortran/retval2.f90: New test.
4692 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4694 * testsuite/libgomp.c++: New directory.
4696 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4698 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4699 * config/posix/sem.c: Implement the above.
4701 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4703 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4704 define HAVE_BROKEN_POSIX_SEMAPHORES.
4705 * configure: Rebuilt.
4706 * config.h.in: Rebuilt.
4708 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4711 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4712 for the other pthread check.
4713 * configure: Regenerate.
4714 * config.h.in: Regenerate.
4716 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4720 * Makefile.am (fincludedir): New variable.
4721 (nodist_include_HEADERS): Remove Fortran files.
4722 (nodist_finclude_HEADERS): New variable.
4723 * Makefile.in: Regenerated.
4725 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4727 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4728 Remove tests for returning assumed character length arrays.
4730 2006-02-12 Roger Sayle <roger@eyesopen.com>
4731 John David Anglin <dave@hiauly1.hia.nrc.ca>
4734 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4736 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4738 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4740 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4742 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4743 part of LD_LIBRARY_PATH manually.
4745 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4748 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4751 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4754 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4755 * configure.ac (PERL): Don't set.
4756 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4757 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4758 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4759 * omp.h.in: Wrap the new configure substitutions with @ characters.
4760 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4761 * aclocal.m4, configure, Makefile.in: Regenerate.
4762 * mkomp_h.pl: Delete.
4764 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4767 * configure.ac: Use GCC_HEADER_STDINT.
4768 * libgomp.h: Include gstdint.h.
4769 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4770 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4772 2006-01-24 Richard Henderson <rth@redhat.com>
4775 * configure.ac: Add AM_MAINTAINER_MODE.
4776 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4778 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4780 * Makefile.in: Regenerate.
4781 * testsuite/Makefile.in: Regenerate.
4782 * aclocal.m4: Regenerate.
4784 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4786 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4788 * configure.ac: Add check for loadavg.h.
4789 (link_gomp): Adjust comment.
4790 * configure: Regenerate.
4791 * config.h.in: Regenerate.
4793 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4796 * configure.ac: Remove check for alloca.h.
4797 * configure: Regenerate.
4798 * config.h.in: Regenerate.
4799 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4800 * team.c: Remove use of alloca.h.
4801 Call gomp_alloca instead of alloca.
4803 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4806 * team.c: Add include of alloca.h.
4807 * configure.ac: Add check for alloca.h.
4808 * configure: Regenerate.
4809 * config.h.in: Regenerate.
4811 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4814 * testsuite/libgomp.fortran/pr25219.f90: New test.
4816 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4818 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4819 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4820 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4821 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4822 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4823 testsuite/libgomp.fortran/threadprivate1.f90,
4824 testsuite/libgomp.fortran/threadprivate2.f90,
4825 testsuite/libgomp.fortran/threadprivate3.f90,
4826 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4827 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4828 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4829 effective-target to TLS runtime.
4831 * testsuite/libgomp.fortran/pr25162.f: Require
4832 effective-target TLS runtime.
4834 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4836 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4837 * testsuite/libgomp.c/nestedfn-3.c: New test.
4839 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4842 * testsuite/libgomp.fortran/pr25162.f: New test.
4844 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4846 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4847 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4849 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4851 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4852 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4853 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4854 single.c, team.c, work.c, config/linux/alpha/futex.h,
4855 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4856 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4857 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4858 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4859 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4860 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4861 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4864 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4866 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4867 to nodist_noinst_HEADERS.
4868 * Makefile.in: Rebuilt.
4870 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4871 add integer count field.
4872 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4873 omp_nest_lock_t type change.
4874 (omp_init_nest_lock): Likewise. Initialize count to 0.
4875 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4877 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4879 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4880 Increment count if successful and return the new nesting level.
4881 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4882 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4883 * testsuite/libgomp.c/lib-1.c: New test.
4884 * testsuite/libgomp.fortran/lib1.f90: New test.
4885 * testsuite/libgomp.fortran/lib2.f: New test.
4886 * testsuite/libgomp.fortran/lib3.f: New test.
4888 2005-11-17 Richard Henderson <rth@redhat.com>
4891 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4892 * configure.ac (link_gomp): New. Substitute it.
4893 (AC_CONFIG_FILES): Add libgomp.spec.
4894 * libgomp.spec.in: New file.
4895 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4896 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4898 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4900 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4901 reduction(-:var) behaving the same as reduction(+:var).
4902 * testsuite/libgomp.c/reduction-4.c: New test.
4904 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4906 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4907 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4908 testsuite/libgomp.c/copyin-3.c,
4909 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4910 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4911 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4912 testsuite/libgomp.c++/pr24455.C,
4913 testsuite/libgomp.fortran/threadprivate1.f90,
4914 testsuite/libgomp.fortran/threadprivate2.f90,
4915 testsuite/libgomp.fortran/threadprivate3.f90,
4916 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4917 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4918 testsuite/libgomp.fortran/omp_parse3.f90: Require
4919 effective-target TLS.
4921 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4925 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4928 * team.c (initialize_team): Pass NULL rather than free as
4929 pthread_key_create destructor. Initialize thread specific data
4930 pointer in initial thread to a static local variable rather than
4933 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4935 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4936 its location to ld_library_path.
4938 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4940 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4942 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4944 * testsuite/libgomp.c: Rename from libgomp.dg.
4946 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4948 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4949 threadprivate variable 'i'.
4951 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4953 * config/linux/s390/futex.h: New file.
4954 * configure.tgt: Use it.
4956 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4957 before the parallel.
4959 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4962 * testsuite/libgomp.c++/master-1.C: New test.
4964 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4966 * testsuite/libgomp.dg/copyin-3.c: New test.
4968 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4970 * testsuite/libgomp.fortran/retval1.f90: New test.
4971 * testsuite/libgomp.fortran/vla7.f90: New test.
4973 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4975 * testsuite/libgomp.fortran/vla2.f90: New test.
4976 * testsuite/libgomp.fortran/vla3.f90: New test.
4977 * testsuite/libgomp.fortran/vla4.f90: New test.
4978 * testsuite/libgomp.fortran/vla5.f90: New test.
4979 * testsuite/libgomp.fortran/vla6.f90: New test.
4981 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4983 * config/linux/sparc/futex.h: New file.
4984 * configure.tgt: Use it.
4985 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4987 * critical.c: Include stdlib.h.
4988 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4989 ignoring return value.
4990 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4991 LIBGOMP_CHECK_SYNC_BUILTINS check.
4992 * configure: Rebuilt.
4994 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4996 * testsuite/libgomp.fortran/vla1.f90: New test.
4998 2005-10-31 Richard Henderson <rth@redhat.com>
5000 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5001 setting 's' in different threads.
5003 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5005 * libgomp.h (attribute_hidden, ialias): Define.
5006 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5007 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5008 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5009 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5010 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5011 omp_test_lock, omp_test_nest_lock): Likewise.
5012 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5013 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5014 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5015 omp_test_lock, omp_test_nest_lock): Likewise.
5016 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5017 omp_get_dynamic, omp_get_nested): Likewise.
5018 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5019 omp_get_thread_num, omp_in_parallel): Likewise.
5020 * fortran.c (ialias_redirect): Define.
5021 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5022 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5023 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5024 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5025 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5026 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5027 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5028 omp_get_wtime): Add ialias_redirect.
5030 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5032 * fortran.c: Include stdlib.h.
5034 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5036 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5037 * Makefile.in: Regenerated.
5039 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5041 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5042 * libgomp_f.h.in (omp_check_defines): New function.
5043 * env.c: Include libgomp_f.h.
5044 (initialize_env): Call omp_check_defines.
5046 * testsuite/libgomp.dg/copyin-2.c: New test.
5047 * testsuite/libgomp.c++/copyin-2.C: New test.
5048 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5050 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5051 * testsuite/libgomp.fortran/sharing2.f90: New test.
5053 * testsuite/libgomp.dg/copyin-1.c: New test.
5054 * testsuite/libgomp.c++/copyin-1.C: New test.
5056 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5058 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5060 * testsuite/libgomp.fortran/workshare1.f90: New test.
5062 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5064 * libgomp.fortran/sharing1.f90: New test.
5066 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5069 * testsuite/libgomp.c++/loop-7.C: New test.
5071 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5073 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5074 * testsuite/libgomp.fortran/reduction6.f90: New test.
5075 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5077 2005-10-23 Richard Henderson <rth@redhat.com>
5079 * testsuite/libgomp.c++/ctor-1.C: New.
5080 * testsuite/libgomp.c++/ctor-2.C: New.
5081 * testsuite/libgomp.c++/ctor-3.C: New.
5082 * testsuite/libgomp.c++/ctor-4.C: New.
5083 * testsuite/libgomp.c++/ctor-5.C: New.
5084 * testsuite/libgomp.c++/ctor-6.C: New.
5085 * testsuite/libgomp.c++/ctor-7.C: New.
5086 * testsuite/libgomp.c++/ctor-8.C: New.
5087 * testsuite/libgomp.c++/ctor-9.C: New.
5089 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5092 * testsuite/libgomp.c++/pr24455-1.C: New test.
5093 * testsuite/libgomp.c++/pr24455.C: New test.
5094 * testsuite/libgomp.dg/pr24455-1.c: New test.
5095 * testsuite/libgomp.dg/pr24455.c: New test.
5097 2005-10-20 Richard Henderson <rth@redhat.com>
5099 * testsuite/libgomp.c++/loop-6.C: New.
5100 * testsuite/libgomp.dg/loop-3.c: New.
5102 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5104 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5106 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5109 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5111 * testsuite/libgomp.fortran/jacobi.f: New test.
5113 2005-10-19 Richard Henderson <rth@redhat.com>
5115 * configure.tgt (i?86-linux): Default to with_arch instead of
5116 CFLAGS. Add -mtune to match target_cpu.
5117 (x86_64-linux): Tune to i686.
5119 * fortran.c (omp_test_nest_lock_): Fix typo.
5121 2005-10-19 Jakub Jelinek <jakub@redhat.com>
5123 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5124 gomp_ordered_sync): Do nothing if team->nthreads == 1.
5125 * testsuite/libgomp.dg/ordered-3.c: New test.
5127 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
5128 Remove volatile keyword.
5130 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
5131 in COMMON block to avoid warnings on 64-bit targets.
5133 2005-10-18 Diego Novillo <dnovillo@redhat.com>
5135 * testsuite/libgomp.dg/shared-3.c: New test.
5137 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5139 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
5140 * testsuite/libgomp.fortran/reduction5.f90: New test.
5142 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5144 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
5146 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
5147 flush loop now that __sync_synchronize has proper memory barrier.
5148 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
5149 Add -ffixed-form to dg-options.
5151 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5153 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
5154 from subdirectories.
5155 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
5156 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
5157 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
5158 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
5159 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
5160 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
5161 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
5162 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
5163 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
5164 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
5165 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
5166 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
5167 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
5168 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
5169 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
5170 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
5171 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
5172 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
5173 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
5174 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
5175 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
5176 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
5177 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
5178 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
5179 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
5181 2005-10-17 Jakub Jelinek <jakub@redhat.com>
5183 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
5184 lang_library_path exists. Use find instead of glob to gather tests.
5185 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
5187 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5189 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
5190 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
5191 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
5192 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
5193 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
5194 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
5195 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
5196 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
5197 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
5198 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
5199 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
5200 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
5201 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
5203 2005-10-15 Jakub Jelinek <jakub@redhat.com>
5205 * testsuite/libgomp.dg/vla-1.c: New test.
5207 * testsuite/libgomp.fortran/reference2.f90: New test.
5209 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5210 declaration of omp_get_thread_num.
5211 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
5214 * testsuite/libgomp.fortran/reduction1.f90: New test.
5215 * testsuite/libgomp.fortran/reduction2.f90: New test.
5216 * testsuite/libgomp.fortran/reduction3.f90: New test.
5217 * testsuite/libgomp.fortran/reduction4.f90: New test.
5219 2005-10-13 Richard Henderson <rth@redhat.com>
5221 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
5222 * Makefile.in: Regenerate.
5223 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
5224 * libgomp.h: Include bar.h.
5225 (struct gomp_barrier): Remove.
5226 (struct gomp_team): Add barrier. Replace master_barrier with
5227 master_release. Replace threads with ordered_release.
5228 (struct gomp_thread): Replace barrier with release.
5229 * ordered.c (gomp_ordered_first): Update for ordered_release change.
5230 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
5231 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
5232 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
5233 (GOMP_single_copy_end): Likewise.
5234 * team.c (gomp_threads_dock): New.
5235 (gomp_barrier_init, gomp_barrier_destroy): Remove.
5236 (gomp_thread_start): Use gomp_barrier_wait.
5237 (new_team, free_team): Update for gomp_team changes.
5238 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
5239 (gomp_team_end): Use gomp_barrier_wait.
5240 (initialize_team): Update for gomp_thread changes.
5241 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
5242 (gomp_work_share_end_nowait): Use atomic ops when available.
5243 * config/linux/bar.c, config/linux/bar.h: New files.
5244 * config/posix/bar.c, config/posix/bar.h: New files.
5246 2005-10-13 Jakub Jelinek <jakub@redhat.com>
5248 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
5249 * testsuite/libgomp.dg/single-2.c: New test.
5251 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
5252 lang_link_flags): Unset, so that they aren't inherited from previously
5255 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
5257 2005-10-12 Richard Henderson <rth@redhat.com>
5259 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
5260 (libgomp_init): Use lang_test_file, lang_library_path, and
5261 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
5263 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
5264 (lang_test_file, lang_link_flags): New.
5265 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
5267 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
5268 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
5269 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
5270 testsuite/libgomp.c++/parallel-1.C,
5271 testsuite/libgomp.c++/reduction-1.C,
5272 testsuite/libgomp.c++/reduction-2.C,
5273 testsuite/libgomp.c++/reduction-3.C,
5274 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
5275 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
5276 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5277 New files, largely cribbed from the C testsuite.
5279 2005-10-12 Jakub Jelinek <jakub@redhat.com>
5281 * testsuite/libgomp.fortran/character1.f90: New test.
5282 * testsuite/libgomp.fortran/character2.f90: New test.
5284 * testsuite/libgomp.dg/nested-1.c: New test.
5285 * testsuite/libgomp.dg/nested-2.c: New test.
5286 * testsuite/libgomp.fortran/do1.f90: New test.
5287 * testsuite/libgomp.fortran/do2.f90: New test.
5289 * testsuite/libgomp.fortran/reference1.f90: New test.
5291 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5293 * testsuite/libgomp.dg/reduction-1.c: New test.
5294 * testsuite/libgomp.dg/reduction-2.c: New test.
5295 * testsuite/libgomp.dg/reduction-3.c: New test.
5297 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5299 * testsuite/libgomp.dg/atomic-1.c: New test.
5300 * testsuite/libgomp.dg/atomic-2.c: New test.
5302 2005-10-09 Richard Henderson <rth@redhat.com>
5304 * critical.c (atomic_lock): New.
5305 (initialize_critical): Initialize it.
5306 (GOMP_atomic_start, GOMP_atomic_end): New.
5307 * libgomp.map: Export them.
5308 * libgomp_g.h: Declare them.
5310 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5312 2005-10-02 Richard Henderson <rth@redhat.com>
5314 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5315 to XCFLAGS instead of CFLAGS.
5317 2005-09-30 Richard Henderson <rth@redhat.com>
5319 * configure.ac: Determine whether -pthread or -lpthread is needed.
5320 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5321 * Makefine.in, configure: Rebuild.
5323 2005-09-28 Richard Henderson <rth@redhat.com>
5325 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5326 * testsuite/libgomp.dg/omp-single-3.c: New test.
5328 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5330 * testsuite/libgomp.dg/omp-single-2.c: New test.
5331 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5333 2005-09-27 Richard Henderson <rth@redhat.com>
5335 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5336 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5338 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5340 * testsuite/libgomp.dg/omp-loop03.c: New test.
5342 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5344 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5346 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5348 * testsuite/libgomp.dg/omp-single-1.c: New test.
5349 * testsuite/libgomp.dg/shared-1.c: Return 0.
5350 Add prototype for abort.
5351 * testsuite/libgomp.dg/shared-2.c: Likewise.
5353 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5355 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5358 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5360 * testsuite/libgomp.dg/shared-1.c: New test.
5361 * testsuite/libgomp.dg/shared-2.c: New test.
5363 2005-09-24 Richard Henderson <rth@redhat.com>
5365 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5367 2005-09-24 Richard Henderson <rth@redhat.com>
5369 * iter.c (gomp_iter_static_next): Round up when computing number
5370 of iterations. Don't bother distributing a remainder equally.
5372 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5373 Don't call srand. Zero b before testing.
5376 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5378 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5379 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5381 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5383 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5384 without !$omp end do, followed immediately by subroutine end.
5386 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5388 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5390 2005-09-22 Richard Henderson <rth@redhat.com>
5392 * critical.c (GOMP_critical_name_start): Change argument to void**.
5393 Reuse the pointer space if the mutex fits.
5394 (GOMP_critical_name_end): Likewise.
5395 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5396 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5397 (GOMP_critical_name_end): Likewise.
5398 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5399 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5401 2005-09-20 Richard Henderson <rth@redhat.com>
5403 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5404 (create_lock_lock): New.
5405 (initialize_critical): Initialize it.
5406 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5407 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5409 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5411 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5413 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5415 * testsuite/libgomp.dg/omp-loop01.c: New test.
5416 * testsuite/libgomp.dg/omp-loop02.c: New test.
5418 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5420 * configure.ac (AC_PROG_FC): Add.
5421 (USE_FORTRAN): New automake conditional.
5422 * configure: Rebuilt.
5423 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5424 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5425 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5426 Add rules to build them.
5427 * Makefile.in: Rebuilt.
5428 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5430 * libgomp.map: Add Fortran wrappers.
5431 * libgomp_f.h.in: New file.
5432 * omp_lib.h.in: New file.
5433 * omp_lib.f90.in: New file.
5434 * fortran.c: New file.
5435 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5436 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5437 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5438 libgfortran has been built.
5439 * testsuite/libgomp.fortran/fortran.exp: New file.
5440 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5441 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5442 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5443 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5444 * testsuite/libgomp.fortran/omp_hello.f: New test.
5445 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5446 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5447 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5448 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5449 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5450 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5451 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5452 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5454 2005-08-30 Richard Henderson <rth@redhat.com>
5456 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5457 function for when aliases are not usable.
5458 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5459 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5460 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5461 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5462 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5463 GOMP_loop_ordered_guided_next): Likewise.
5464 * ordered.c (GOMP_ordered_start): Likewise.
5466 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5468 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5469 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5470 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5471 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5472 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5473 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5474 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5475 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5476 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5478 2005-07-07 Eric Christopher <echristo@redhat.com>
5479 Diego Novillo <dnovillo@redhat.com>
5481 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5482 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5484 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5485 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5486 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5487 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5488 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5489 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5490 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5492 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5494 * TOPLEVEL.patch: Remove.
5496 2005-05-16 Richard Henderson <rth@redhat.com>
5498 * configure.ac: Test for clock_gettime.
5499 * config.h.in, configure: Rebuild.
5500 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5501 (omp_get_wtime): Use clock_gettime if available.
5502 (omp_get_wtick): Use clock_getres if available.
5504 2005-05-11 Richard Henderson <rth@redhat.com>
5506 * config/linux/ia64/futex.h: New file.
5507 * configure.tgt: Use it.
5509 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5511 2005-05-07 Richard Henderson <rth@redhat.com>
5513 * config/linux/powerpc/futex.h: New file.
5514 * configure.tgt: Use it.
5516 * config/linux/i486/futex.h: Merge ...
5517 * config/linux/x86_64/futex.h: ... into ...
5518 * config/linux/x86/futex.h: ... here.
5519 * configure.tgt: Update to match.
5521 2005-05-06 Richard Henderson <rth@redhat.com>
5523 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5524 * config/linux/i486/futex.h: Likewise.
5525 * config/linux/x86_64/futex.h: Likewise.
5527 * config/linux/lock.c: New file.
5528 * config/linux/omp-lock.h: New file.
5530 * critical.c, env.h: Don't include omp.h
5531 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5532 * config/posix/time.c: Likewise.
5533 * config/posix/omp-lock.h: New file.
5534 * libgomp.h: Include omp-lock.h and omp.h.
5535 * Makefile.am (nodist_include_HEADERS): New.
5537 * configure.ac (PERL): New.
5538 * mkomp_h.pl: New file.
5539 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5541 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5543 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5544 build directory. Re-add -march=i486 hack.
5546 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5547 (libgomp_link_flags): Remove.
5548 (libgomp_initialized): Remove.
5549 (libgomp_init): Don't protect from reinitialization. Copy code
5550 from libstdc++ for getting the multilib set correctly.
5552 2005-05-05 Richard Henderson <rth@redhat.com>
5554 * config/linux/alpha/futex.h: New file.
5555 * configure.tgt (alpha*-*-linux*): Use it.
5557 * config/posix/mutex.c: New file.
5558 * config/posix/sem.c: Use libgomp.h.
5560 * configure.tgt (x86_64-linux): Also test CC for -m32.
5561 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5563 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5566 * Makefile.am (SUBDIRS): New.
5567 (libgomp_la_LDFLAGS): Add -lpthread.
5568 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5569 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5571 * libgomp_g.h: New file.
5572 * libgomp.h: Split out all public declarations to libgomp_g.h.
5573 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5574 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5575 * config/linux/sem.h: Likewise.
5576 * config/posix/sem.h: Likewise.
5578 * Makefile.am (AM_LDFLAGS): New.
5579 (libgomp_version_script): Split out from ...
5580 (libgomp_la_LDFLAGS): ... here.
5581 (libgomp_version_info): New.
5582 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5583 (LIBGOMP_ENABLE): New.
5584 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5585 (LIBGOMP_ENABLE_SYMVERS): New.
5586 * configure.ac (AC_INIT): Version 1.0.
5587 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5588 (enable-linux-futex): Likewise. Rename from enable-futex.
5589 (libtool_VERSION): New.
5590 (LIBGOMP_ENABLE_SYMVERS): Use it.
5591 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5592 * Makefile.in, aclocal.m4, configure: Rebuild.
5594 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5595 (gomp_mutex_unlock_slow): Fix typo.
5596 * config/linux/sem.c: Similarly.
5597 (gomp_sem_post_slow): Fix typo.
5598 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5599 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5600 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5602 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5603 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5604 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5605 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5606 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5607 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5608 LDFLAGS. Pull enable_futex check to top-level.
5609 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5610 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5612 First attempt at real configury.
5613 * Makefile, config.h: Remove file.
5614 * Makefile.am, Makefile.in: New file.
5615 * acinclude.m4 aclocal.m4: New file.
5616 * configure.ac, configure.tgt, configure: New file.
5618 * config/posix/lock.c: Rename from sys-lock.c.
5619 * config/posix/mutex.h: Rename from sys-mutex.h.
5620 * config/posix/sem.c: Rename from sys-sem.c.
5621 * config/posix/sem.h: Rename from sys-sem.h.
5622 * config/posix/proc.c: Rename from sys-proc.c.
5623 * config/posix/time.c: Rename from sys-proc.c.
5625 * config/linux/mutex.c: New file.
5626 * config/linux/mutex.h: New file.
5627 * config/linux/sem.c: New file.
5628 * config/linux/sem.h: New file.
5629 * config/linux/i486/futex.h: New file.
5630 * config/linux/x86_64/futex.h: New file.
5632 2005-05-04 Richard Henderson <rth@redhat.com>
5634 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5635 * libgomp.h: Declare them.
5636 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5637 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5639 2005-05-04 Richard Henderson <rth@redhat.com>
5641 * libgomp-1 code drop
5643 2005-05-04 Richard Henderson <rth@redhat.com>
5645 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5646 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5647 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5648 (gomp_iter_static_next): Update.
5649 (gomp_ordered_static_next): Update.
5650 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5651 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5652 totally empty range.
5653 (gomp_loop_ordered_static_next): Refine test for calling
5654 gomp_ordered_static_next.
5655 * testsuite/ordered-1.c: Add case for more threads than iterations.
5657 * iter.c (gomp_iter_runtime_next_locked): Remove.
5658 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5659 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5660 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5661 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5662 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5663 gomp_loop_ordered_guided_next): Downcase name, make static, add
5664 an external alias with the old name.
5665 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5666 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5667 switch and call one of the above static functions.
5668 * libgomp.h: Update.
5670 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5671 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5672 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5673 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5674 GOMP_loop_ordered_guided_start): Update to match.
5675 * sections.c (GOMP_sections_start): Likewise.
5676 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5678 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5679 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5680 Use bounds check instead of modulus.
5681 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5682 (gomp_ordered_last): Don't sync with ordered_owner here.
5683 (gomp_ordered_next): Likewise.
5684 (gomp_ordered_static_loop_next): Likewise.
5685 * loop.c, libgomp.h: Update to match.
5687 * libgomp.h (GOMP_barrier): Declare.
5689 * testsuite/barrier-1.c: New file.
5690 * testsuite/critical-1.c: New file.
5691 * testsuite/ordered-2.c: New file.
5692 * testsuite/ordered-1.c: New file.
5693 * testsuite/sections-1.c: New file.
5694 * testsuite/single-1.c: New file.
5695 * testsuite/Makefile (TESTS): Add them.
5697 2005-05-04 Richard Henderson <rth@redhat.com>
5699 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5700 * loop.c (GOMP_loop_static_start): If not the startup thread,
5701 acquire the mutex to wait for initialization complete.
5702 (GOMP_loop_ordered_static_start): Likewise.
5703 (GOMP_loop_ordered_runtime_start): Likewise.
5704 (GOMP_loop_ordered_static_first): Remove.
5705 (GOMP_loop_ordered_dynamic_first): Remove.
5706 (GOMP_loop_ordered_guided_first): Remove.
5707 (GOMP_loop_ordered_runtime_first): Remove.
5708 * ordered.c (gomp_ordered_loop_first): Post to own release when
5709 we're the first thread.
5710 (gomp_ordered_loop_last): Wait on release if not owner.
5711 (gomp_ordered_loop_next): Likewise.
5712 (gomp_ordered_static_loop_init): New.
5713 (gomp_ordered_static_loop_next): Use ordered_owner.
5714 (GOMP_ordered_start): Likewise.
5715 * work.c (gomp_new_work_share): Initialize ordered_owner.
5717 2005-05-03 Richard Henderson <rth@redhat.com>
5719 * Makefile (OPT): New.
5722 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5723 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5724 * libgomp.h, libgomp.map, NOTES: Update to match.
5726 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5727 Add initialized and thr members.
5728 (gomp_thread_start): Pause when initially spawned to wait for
5729 the whole team to be created.
5730 (gomp_team_start): Release team members at the end.
5732 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5733 (f_foo_1): Use GOMP_loop_end.
5734 (f_foo_2): Use GOMP_loop_end_nowait.
5736 * testsuite/loop-2.c: New file.
5737 * testsuite/Makefile (TESTS): Add it.
5739 2005-05-03 Richard Henderson <rth@redhat.com>
5741 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5742 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5743 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5746 * testsuite/Makefile: New file.
5747 * testsuite/loop-1.c: New file.
5749 2005-05-03 Richard Henderson <rth@redhat.com>
5751 Initial implementation and checkin.