1 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
3 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
4 of EPS parameter from integer to real.
5 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6 type of EPS parameter from integer to real.
8 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
10 * team.c (get_last_team): New.
11 (gomp_new_team): Recycle last non-nested team if possible.
12 (gomp_team_end): Move team work share list free lock destruction
14 (free_team): ... here.
16 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
18 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
19 and ref from int to double. Replaced their comparison with
20 an inequality of their difference and EPS.
21 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
22 comparison of pri and a reference number with an inequality of their
24 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
25 the comparison of sum and sum_ref with an inequality of their
27 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
28 the comparison of pri and a reference number with an inequality of
29 their difference and EPS.
31 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
33 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
34 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
35 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
36 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
37 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
38 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
39 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
40 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
41 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
42 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
43 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
44 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
45 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
47 (vec_mult): Likewise. Add #pragma omp taskwait.
48 (main): Adjust caller.
49 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
50 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
51 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
52 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
53 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
54 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
55 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
56 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
57 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
58 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
59 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
60 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
61 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
62 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
63 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
64 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
65 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
66 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
67 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
68 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
69 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
70 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
71 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
72 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
73 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
74 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
75 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
76 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
77 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
78 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
79 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
80 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
81 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
82 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
83 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
84 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
85 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
86 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
87 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
88 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
89 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
90 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
91 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
92 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
93 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
94 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
95 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
96 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
97 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
98 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
99 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
100 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
101 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
102 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
103 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
104 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
105 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
106 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
107 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
108 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
109 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
110 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
111 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
112 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
113 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
114 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
115 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
116 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
117 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
118 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
119 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
120 (vec_mult): Add !$omp taskwait.
121 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
122 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
123 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
124 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
125 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
126 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
127 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
128 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
129 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
130 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
131 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
132 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
133 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
134 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
135 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
136 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
137 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
138 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
139 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
140 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
141 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
142 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
143 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
144 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
145 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
146 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
147 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
148 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
149 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
150 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
151 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
152 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
153 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
154 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
155 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
156 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
157 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
158 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
159 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
160 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
161 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
162 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
163 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
164 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
165 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
166 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
167 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
168 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
169 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
170 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
171 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
172 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
173 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
174 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
175 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
176 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
177 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
178 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
179 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
180 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
181 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
182 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
183 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
184 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
185 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
186 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
187 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
189 2015-07-10 Tom de Vries <tom@codesourcery.com>
191 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
192 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
194 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
197 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
198 in a 64-bit configuration.
199 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
200 offloading testing if no such device is available.
201 * testsuite/libgomp.oacc-c/c.exp: Likewise.
202 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
204 2015-07-08 Tom de Vries <tom@codesourcery.com>
206 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
208 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
210 2015-07-07 Tom de Vries <tom@codesourcery.com>
212 PR tree-optimization/66642
213 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
214 iteration count case.
215 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
216 function, factor out of ...
217 (main): ... here. Test low iteration count case.
219 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
221 * libgomp.h (gomp_thread_pool): Comment last_team field.
223 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
225 * testsuite/libgomp.c++/pr66702-1.C: Require
226 vect_simd_clones effective target.
227 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
229 2015-06-30 Tom de Vries <tom@codesourcery.com>
231 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
232 already set. Use DEFAULT_CFLAGS in dg-runtest.
233 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
236 2015-06-30 Tom de Vries <tom@codesourcery.com>
238 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
239 already set. Use DEFAULT_CFLAGS in dg-runtest.
240 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
241 * testsuite/libgomp.c++/pr64824.C: Same.
242 * testsuite/libgomp.c++/pr64868.C: Same.
243 * testsuite/libgomp.c++/pr66199-1.C: Same.
244 * testsuite/libgomp.c++/pr66199-2.C: Same.
245 * testsuite/libgomp.c++/target-2.C: Same.
246 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
247 -std=<standard> option.
248 * testsuite/libgomp.c++/udr-11.C: Same.
249 * testsuite/libgomp.c++/udr-12.C: Same.
250 * testsuite/libgomp.c++/udr-13.C: Same.
251 * testsuite/libgomp.c++/udr-14.C: Same.
252 * testsuite/libgomp.c++/udr-15.C: Same.
253 * testsuite/libgomp.c++/udr-16.C: Same.
254 * testsuite/libgomp.c++/udr-17.C: Same.
255 * testsuite/libgomp.c++/udr-18.C: Same.
256 * testsuite/libgomp.c++/udr-19.C: Same.
257 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
258 * testsuite/libgomp.c++/simd-1.C: Same.
259 * testsuite/libgomp.c++/simd-2.C: Same.
260 * testsuite/libgomp.c++/simd-3.C: Same.
261 * testsuite/libgomp.c++/simd-4.C: Same.
262 * testsuite/libgomp.c++/simd-5.C: Same.
263 * testsuite/libgomp.c++/simd-6.C: Same.
264 * testsuite/libgomp.c++/simd-7.C: Same.
265 * testsuite/libgomp.c++/simd-8.C: Same.
266 * testsuite/libgomp.c++/simd-9.C: Same.
267 * testsuite/libgomp.c++/simd10.C: Same.
268 * testsuite/libgomp.c++/simd11.C: Same.
269 * testsuite/libgomp.c++/simd12.C: Same.
270 * testsuite/libgomp.c++/simd13.C: Same.
272 2015-06-30 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.c++/pr66702-1.C: New test.
276 * testsuite/libgomp.c++/pr66702-2.C: New test.
278 2015-06-30 Tom de Vries <tom@codesourcery.com>
280 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
281 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
282 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
283 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
285 2015-06-30 Tom de Vries <tom@codesourcery.com>
287 PR tree-optimization/66652
288 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
289 using restrict pointers.
290 (main): Add arguments to calls to f.
291 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
293 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
295 * configure.ac: Fix check for header <sys/sysctl.h>.
296 * configure: Regenerate.
297 * config.h.in: Likewise.
299 2015-06-23 Tom de Vries <tom@codesourcery.com>
301 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
303 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
305 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
307 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
311 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
312 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
314 2015-06-15 Tom de Vries <tom@codesourcery.com>
316 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
317 dg-additional-options for any remaining options.
318 * testsuite/libgomp.c/atomic-2.c: Same.
319 * testsuite/libgomp.c/atomic-4.c: Same.
320 * testsuite/libgomp.c/atomic-5.c: Same.
321 * testsuite/libgomp.c/atomic-6.c: Same.
322 * testsuite/libgomp.c/autopar-1.c: Same.
323 * testsuite/libgomp.c/copyin-1.c: Same.
324 * testsuite/libgomp.c/copyin-2.c: Same.
325 * testsuite/libgomp.c/copyin-3.c: Same.
326 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
327 * testsuite/libgomp.c/nestedfn-5.c: Same.
328 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
329 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
330 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
331 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
332 * testsuite/libgomp.c/pr32362-1.c: Same.
333 * testsuite/libgomp.c/pr32362-2.c: Same.
334 * testsuite/libgomp.c/pr32362-3.c: Same.
335 * testsuite/libgomp.c/pr39591-1.c: Same.
336 * testsuite/libgomp.c/pr39591-2.c: Same.
337 * testsuite/libgomp.c/pr39591-3.c: Same.
338 * testsuite/libgomp.c/pr58392.c: Same.
339 * testsuite/libgomp.c/pr58756.c: Same.
340 * testsuite/libgomp.c/simd-1.c: Same.
341 * testsuite/libgomp.c/simd-10.c: Same.
342 * testsuite/libgomp.c/simd-11.c: Same.
343 * testsuite/libgomp.c/simd-12.c: Same.
344 * testsuite/libgomp.c/simd-13.c: Same.
345 * testsuite/libgomp.c/simd-14.c: Same.
346 * testsuite/libgomp.c/simd-15.c: Same.
347 * testsuite/libgomp.c/simd-2.c: Same.
348 * testsuite/libgomp.c/simd-3.c: Same.
349 * testsuite/libgomp.c/simd-4.c: Same.
350 * testsuite/libgomp.c/simd-5.c: Same.
351 * testsuite/libgomp.c/simd-6.c: Same.
352 * testsuite/libgomp.c/simd-7.c: Same.
353 * testsuite/libgomp.c/simd-8.c: Same.
354 * testsuite/libgomp.c/simd-9.c: Same.
356 2015-06-15 Tom de Vries <tom@codesourcery.com>
358 * testsuite/libgomp.c/pr35625.c: Fix typo.
360 2015-06-15 Tom de Vries <tom@codesourcery.com>
362 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
364 * testsuite/libgomp.c/atomic-3.c: Same.
365 * testsuite/libgomp.c/debug-1.c: Same.
366 * testsuite/libgomp.c/nqueens-1.c: Same.
367 * testsuite/libgomp.c/pr26171.c: Same.
368 * testsuite/libgomp.c/pr48591.c: Same.
369 * testsuite/libgomp.c/pr64824.c: Same.
370 * testsuite/libgomp.c/pr64868.c: Same.
371 * testsuite/libgomp.c/pr66133.c: Same.
372 * testsuite/libgomp.c/pr66199-1.c: Same.
373 * testsuite/libgomp.c/pr66199-2.c: Same.
374 * testsuite/libgomp.c/target-8.c: Same.
376 2015-06-15 Tom de Vries <tom@codesourcery.com>
378 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
380 * testsuite/libgomp.c/for-1.c: Same.
381 * testsuite/libgomp.c/for-2.c: Same.
382 * testsuite/libgomp.c/for-3.c: Same.
383 * testsuite/libgomp.c/pr35625.c: Same.
384 * testsuite/libgomp.c/pr39154.c: Same.
385 * testsuite/libgomp.c/simd-16.c: Same.
386 * testsuite/libgomp.c/simd-17.c: Same.
388 2015-06-13 Tom de Vries <tom@codesourcery.com>
390 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
392 2015-06-13 Tom de Vries <tom@codesourcery.com>
394 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
395 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
396 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
398 (main): Use N instead of hardcoded constants.
400 2015-06-05 Tom de Vries <tom@codesourcery.com>
402 merge from gomp4 branch:
403 2015-05-28 Tom de Vries <tom@codesourcery.com>
405 PR tree-optimization/65443
406 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
407 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
408 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
410 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
412 * testsuite/libgomp.graphite/bounds.c: Adjust for
413 cleanup-tree-dump removal.
414 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
415 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
416 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
417 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
418 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
419 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
420 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
421 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
422 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
423 * testsuite/libgomp.graphite/pr41118.c: Likewise.
425 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
427 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
428 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
429 (futex_wake) [!__x86_64__]: Ditto.
431 2015-05-28 Julian Brown <julian@codesourcery.com>
433 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
434 function comment. Only call gomp_fatal if new argument is true.
435 (acc_dev_num_out_of_range): New function.
436 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
437 acc_dev_num_out_of_range as appropriate.
438 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
439 (acc_get_device_num, acc_set_device_num): Update calls to
441 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
444 2015-05-28 Julian Brown <julian@codesourcery.com>
447 * oacc-init.c (plugin/plugin-host.h): Include.
448 (acc_on_device): Check whether we're in an offloaded region for
450 plugin. Don't use __builtin_acc_on_device.
451 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
452 nonshm_exec flag in thread-local data.
453 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
454 data for host_nonshm plugin.
455 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
456 for host_nonshm plugin.
457 * plugin/plugin-host.h: New.
459 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
461 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
463 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
465 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
467 (FUTEX_PRIVATE_FLAG): Remove L suffix.
468 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
471 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
473 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
475 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
477 * target.c (gomp_map_pointer): New function abstracting out
478 GOMP_MAP_POINTER handling.
479 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
482 2015-05-19 Jakub Jelinek <jakub@redhat.com>
485 * testsuite/libgomp.c/pr66199-1.c: New test.
486 * testsuite/libgomp.c/pr66199-2.c: New test.
487 * testsuite/libgomp.c++/pr66199-1.C: New test.
488 * testsuite/libgomp.c++/pr66199-2.C: New test.
489 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
490 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
492 2015-05-19 Julian Brown <julian@codesourcery.com>
494 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
497 2015-05-13 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/libgomp.c/pr66133.c: New test.
502 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
504 * Makefile.in: Regenerated with automake-1.11.6.
505 * aclocal.m4: Likewise.
506 * config.h.in: Likewise.
507 * configure: Likewise.
508 * testsuite/Makefile.in: Likewise.
510 2015-05-08 Jason Merrill <jason@redhat.com>
512 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
515 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
517 2015-05-06 Julian Brown <julian@codesourcery.com>
519 * oacc-init.c (acc_device_lock): Add explanatory comment.
520 (resolve_device): Add comment about locking requirement.
521 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
522 gomp_init_device and gomp_fini_device calls.
523 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
524 (acc_get_device_num, acc_set_device_num): Add locking around
525 resolve_device and gomp_init_device calls.
527 2015-05-06 Julian Brown <julian@codesourcery.com>
529 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
530 goacc_thread_lock on error paths.
531 * oacc-mem.c (lookup_host): Remove locking from function. Note
532 locking requirement for caller in function comment.
533 (lookup_dev): Likewise.
534 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
535 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
536 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
539 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
543 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
544 don't expect "0x" prefix for "%p" format specifier, don't expect
545 "(nil)" for NULL pointer.
546 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
547 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
548 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
549 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
550 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
551 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
552 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
553 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
554 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
555 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
556 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
557 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
558 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
559 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
560 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
561 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
562 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
563 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
564 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
565 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
566 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
567 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
568 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
569 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
570 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
571 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
572 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
573 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
574 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
575 accurately specify what we're looking for.
576 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
578 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
579 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
580 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
582 2015-04-30 James Norris <jnorris@codesourcery.com>
585 * testsuite/lib/libgomp.exp
586 (check_effective_target_openacc_host_selected)
587 (check_effective_target_openacc_host_nonshm_selected): New
589 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
591 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
594 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
595 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
596 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
597 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
599 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
601 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
602 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
603 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
609 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
622 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
624 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
625 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
626 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
628 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
635 2015-04-08 Julian Brown <julian@codesourcery.com>
637 * libgomp.h (target_mem_desc: Remove mem_map field.
638 (acc_dispatch_t): Remove open_device_func, close_device_func,
639 get_device_num_func, set_device_num_func, target_data members.
640 Change create_thread_data_func argument to device number instead of
642 * oacc-async.c (assert.h): Include.
643 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
644 (acc_wait_all, acc_wait_all_async): Use current host thread's
645 active device, not base_dev.
646 * oacc-cuda.c (acc_get_current_cuda_device)
647 (acc_get_current_cuda_context, acc_get_cuda_stream)
648 (acc_set_cuda_stream): Likewise.
649 * oacc-host.c (host_dispatch): Don't set open_device_func,
650 close_device_func, get_device_num_func or set_device_num_func.
651 * oacc-init.c (base_dev, init_key): Remove.
652 (cached_base_dev): New.
653 (name_of_acc_device_t): New.
654 (acc_init_1): Initialise default-numbered device, not zeroth.
655 (acc_shutdown_1): Close all devices of a given type.
656 (goacc_destroy_thread): Don't use base_dev.
657 (lazy_open, lazy_init, lazy_init_and_open): Remove.
658 (goacc_attach_host_thread_to_device): New.
659 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
660 (acc_get_num_devices): Don't use base_dev.
661 (acc_set_device_type): Reimplement.
662 (acc_get_device_type): Don't use base_dev.
663 (acc_get_device_num): Tweak logic.
664 (acc_set_device_num): Likewise.
665 (acc_on_device): Use acc_get_device_type.
666 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
667 (goacc_lazy_initialize): Reimplement with acc_init and
668 goacc_attach_host_thread_to_device.
669 * oacc-int.h (goacc_thread): Add base_dev field.
670 (base_dev): Remove extern declaration.
671 (goacc_attach_host_thread_to_device): Add prototype.
672 * oacc-mem.c (acc_malloc): Use current thread's device instead of
674 (acc_free): Likewise.
675 (acc_memcpy_to_device): Likewise.
676 (acc_memcpy_from_device): Likewise.
677 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
678 goacc_lazy_initialize (throughout).
679 (GOACC_parallel): Use tgt_offset to locate target functions.
680 * target.c (gomp_map_vars): Don't set tgt->mem_map.
681 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
682 (gomp_load_plugin_for_device): Remove open_device, close_device,
683 get_device_num, set_device_num openacc hook initialisation. Don't set
685 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
686 (GOMP_OFFLOAD_openacc_close_device)
687 (GOMP_OFFLOAD_openacc_get_device_num)
688 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
689 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
691 * plugin/plugin-nvptx.c (ptx_inited): Remove.
692 (instantiated_devices, ptx_dev_lock): New.
693 (struct ptx_image_data): New.
694 (ptx_devices, ptx_images, ptx_image_lock): New.
695 (fini_streams_for_device): Reorder cuStreamDestroy call.
696 (nvptx_get_num_devices): Remove forward declaration.
697 (nvptx_init): Change return type to bool.
698 (nvptx_fini): Remove.
699 (nvptx_attach_host_thread_to_device): New.
700 (nvptx_open_device): Return struct ptx_device* instead of void*.
701 (nvptx_close_device): Change argument type to struct ptx_device*,
703 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
704 (kernel_target_data, kernel_host_table): Remove static globals.
705 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
706 (GOMP_OFFLOAD_init_device): Reimplement.
707 (GOMP_OFFLOAD_fini_device): Likewise.
708 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
709 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
710 (GOMP_OFFLOAD_host2dev): Use ORD argument.
711 (GOMP_OFFLOAD_openacc_open_device)
712 (GOMP_OFFLOAD_openacc_close_device)
713 (GOMP_OFFLOAD_openacc_set_device_num)
714 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
715 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
719 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
721 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
723 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
724 * libgomp.h (struct gomp_memory_mapping): Remove.
725 (struct target_mem_desc): Change type of mem_map from
726 gomp_memory_mapping * to splay_tree_s *.
727 (struct gomp_device_descr): Remove register_image_func, get_table_func.
728 Add load_image_func, unload_image_func.
729 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
730 Remove offload_regions_registered.
731 (gomp_init_tables): Remove.
732 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
734 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
735 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
736 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
737 offload_regions_registered.
738 Initialize load_image_func, unload_image_func, mem_map.root.
739 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
740 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
741 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
742 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
743 gomp_memory_mapping *. Use dev's lock and splay_tree.
744 (lookup_dev): Use dev's lock.
745 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
746 (acc_is_present): Likewise.
747 (acc_map_data): Likewise.
748 (acc_unmap_data): Likewise. Use dev's lock.
749 (present_create_copy): Likewise.
750 (delete_copyout): Pass dev to lookup_host instead of mem_map.
751 (update_dev_host): Likewise.
752 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
753 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
754 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
755 (GOMP_OFFLOAD_get_table): Remove
756 (GOMP_OFFLOAD_load_image): New function.
757 (GOMP_OFFLOAD_unload_image): New function.
758 * target.c (register_lock): New mutex for offload image registration.
759 (num_devices): Do not guard with PLUGIN_SUPPORT.
760 (gomp_realloc_unlock): New static function.
761 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
763 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
764 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
765 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
767 (gomp_unmap_vars): Likewise.
768 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
769 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
770 (gomp_offload_image_to_device): New static function.
771 (GOMP_offload_register): Add mutex lock.
772 Call gomp_offload_image_to_device for all initialized devices.
773 Replace gomp_realloc with gomp_realloc_unlock.
774 (GOMP_offload_unregister): New function.
775 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
776 get_table_func from the plugin with calls to init_device_func and
777 gomp_offload_image_to_device.
778 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
780 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
781 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
782 (GOMP_target_data): Do not call gomp_init_tables.
783 (GOMP_target_update): Likewise. Remove argument from gomp_update.
784 (gomp_load_plugin_for_device): Replace register_image and get_table
785 with load_image and unload_image in DLSYM ().
786 (gomp_register_images_for_device): Remove function.
787 (gomp_target_init): Do not initialize current_device.mem_map.*,
788 current_device.offload_regions_registered.
789 Remove call to gomp_register_images_for_device.
790 Do not free offload_images and num_offload_images.
792 2015-03-30 Jakub Jelinek <jakub@redhat.com>
795 * testsuite/libgomp.fortran/pr65597.f90: New test.
797 2015-03-27 Tom de Vries <tom@codesourcery.com>
800 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
801 (init, check): New function.
802 (foo): Change return type to void.
803 (main): Call init and check.
805 2015-03-27 Tom de Vries <tom@codesourcery.com>
808 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
809 (foo): Use M for non-inner loops to scale down test-case.
811 2015-03-25 Kai Tietz <ktietz@redhat.com>
814 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
815 (GOACC_data_start): Likewise.
816 * target.c (gomp_map_vars): Likewise.
818 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
820 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
823 2015-03-19 Jakub Jelinek <jakub@redhat.com>
825 * testsuite/libgomp.c/target-10.c: New test.
826 * testsuite/libgomp.c++/target-4.C: New test.
828 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
830 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
831 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
833 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
835 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
836 * configure.ac (*-*-rtems*): Assume Pthread is supported.
837 (pthread.h): Check for this header file.
838 * configure: Regenerate.
840 2015-02-25 Tom de Vries <tom@codesourcery.com>
842 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
843 (check_reduction_op, check_reduction_macro, max, min):
845 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
847 (main): Use new functions.
849 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
851 * target.c (gomp_load_plugin_for_device): Use const char * instead of
852 char * for variables holding dlerror return values.
855 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
857 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
859 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
860 Cesar Philippidis <cesar@codesourcery.com>
862 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
863 GOACC_ctaid, and GOACC_nctaid routines.
865 2015-02-11 Jakub Jelinek <jakub@redhat.com>
868 * testsuite/libgomp.c/atomic-18.c: New test.
869 * testsuite/libgomp.c++/atomic-16.C: New test.
871 2015-02-04 Jakub Jelinek <jakub@redhat.com>
875 * testsuite/libgomp.c/pr64824.c: New test.
876 * testsuite/libgomp.c/pr64868.c: New test.
877 * testsuite/libgomp.c++/pr64824.C: New test.
878 * testsuite/libgomp.c++/pr64868.C: New test.
880 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
883 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
885 * config/aix/plugin-suffix.h: Delete.
887 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
890 * configure.tgt (*-*-aix*): Use config_path "aix posix".
891 (*-*-darwin*): Use config_path "bsd darwin posix".
892 (*-*-hpux*): Use config_path "hpux posix".
893 * target.c: Add include of plugin-suffix.h and use
895 * config/aix/plugin-suffix.h: New file.
896 * config/darwin/plugin-suffix.h: New file.
897 * config/hpux/plugin-suffix.h: New file.
898 * config/posix/plugin-suffix.h: New file.
900 2015-01-23 Jakub Jelinek <jakub@redhat.com>
903 * libgomp.c/pr64734.c: New test.
905 2015-01-23 Tom de Vries <tom@codesourcery.com>
908 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
910 2015-01-23 Tom de Vries <tom@codesourcery.com>
913 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
916 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
919 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
920 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
921 formal parameter. Update all users.
922 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
923 Document unused formal parameter.
925 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
927 * oacc-parallel.c: Don't include <alloca.h>.
928 (GOACC_parallel): Use gomp_alloca instead of alloca.
930 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
932 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
934 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
935 James Norris <jnorris@codesourcery.com>
936 Tom de Vries <tom@codesourcery.com>
937 Julian Brown <julian@codesourcery.com>
938 Cesar Philippidis <cesar@codesourcery.com>
939 Nathan Sidwell <nathan@codesourcery.com>
940 Tobias Burnus <burnus@net-b.de>
942 * Makefile.am (search_path): Add $(top_srcdir)/../include.
943 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
944 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
945 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
946 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
947 Include $(top_srcdir)/plugin/Makefrag.am.
948 (nodist_libsubinclude_HEADERS): Add openacc.h.
949 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
950 openacc.f90, openacc.mod, openacc_kinds.mod.
951 (omp_lib.mod): Generalize into...
952 (%.mod): ... this new rule.
953 (openacc_kinds.mod, openacc.mod): New rules.
954 * plugin/configfrag.ac: New file.
955 * configure.ac: Move plugin/offloading support into it. Include
956 it. Instantiate testsuite/libgomp-test-support.pt.exp.
957 * plugin/Makefrag.am: New file.
958 * testsuite/Makefile.am (OFFLOAD_TARGETS)
959 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
961 (libgomp-test-support.exp): New rule.
962 (all-local): Depend on it.
963 * Makefile.in: Regenerate.
964 * testsuite/Makefile.in: Regenerate.
965 * config.h.in: Likewise.
966 * configure: Likewise.
967 * configure.tgt: Harden shell syntax.
968 * env.c: Include "oacc-int.h".
969 (parse_acc_device_type): New function.
970 (gomp_debug_var, goacc_device_type, goacc_device_num): New
972 (initialize_env): Initialize those. Call
973 goacc_runtime_initialize.
974 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
975 (gomp_fatal): Call gomp_vfatal.
976 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
977 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
978 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
979 (splay_tree_node, splay_tree, splay_tree_key)
980 (struct target_mem_desc, struct splay_tree_key_s)
981 (struct gomp_memory_mapping, struct acc_dispatch_t)
982 (struct gomp_device_descr, gomp_acc_insert_pointer)
983 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
984 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
985 (gomp_free_memmap, gomp_fini_device): New declarations.
986 (gomp_vdebug, gomp_debug): New macros.
987 Include "splay-tree.h".
988 * libgomp.map (OACC_2.0): New symbol version. Use for
989 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
990 acc_set_device_type_h_, acc_get_device_type,
991 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
992 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
993 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
994 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
995 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
996 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
997 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
998 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
999 acc_copyin_array_h_, acc_present_or_copyin,
1000 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
1001 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
1002 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
1003 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
1004 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
1005 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
1006 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
1007 acc_update_device, acc_update_device_32_h_,
1008 acc_update_device_64_h_, acc_update_device_array_h_,
1009 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
1010 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
1011 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
1012 acc_is_present_64_h_, acc_is_present_array_h_,
1013 acc_memcpy_to_device, acc_memcpy_from_device,
1014 acc_get_current_cuda_device, acc_get_current_cuda_context,
1015 acc_get_cuda_stream, acc_set_cuda_stream.
1016 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1017 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1018 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1019 GOACC_get_num_threads.
1020 (GOMP_PLUGIN_1.0): New symbol version. Use for
1021 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1022 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1023 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1024 GOMP_PLUGIN_acc_thread.
1025 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1026 environment variable.
1027 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1028 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1029 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1030 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1031 (splay_tree_remove): New declarations.
1032 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1033 (splay_tree_remove, splay_tree_lookup): Move into...
1034 * splay-tree.c: ... this new file.
1035 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1036 (splay_tree_node, splay_tree, splay_tree_key)
1037 (struct target_mem_desc, struct splay_tree_key_s)
1038 (struct gomp_device_descr): Don't declare.
1039 (num_devices_openmp): New variable.
1040 (gomp_get_num_devices ): Use it.
1041 (gomp_init_targets_once): New function.
1042 (gomp_get_num_devices ): Use it.
1043 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1044 (gomp_fini_device, gomp_register_image_for_device): New functions.
1045 (gomp_map_vars): Add devaddrs parameter.
1046 (gomp_update): Add mm parameter.
1047 (gomp_init_device): Move most of it into...
1048 (gomp_init_tables): ... this new function.
1049 (gomp_register_images_for_device): Remove function.
1050 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1051 Make them hidden instead of static.
1052 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1053 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1054 (GOMP_target_end_data, GOMP_target_update)
1055 (gomp_load_plugin_for_device, gomp_target_init): Update for
1057 * oacc-async.c: New file.
1058 * oacc-cuda.c: Likewise.
1059 * oacc-host.c: Likewise.
1060 * oacc-init.c: Likewise.
1061 * oacc-int.h: Likewise.
1062 * oacc-mem.c: Likewise.
1063 * oacc-parallel.c: Likewise.
1064 * oacc-plugin.c: Likewise.
1065 * oacc-plugin.h: Likewise.
1066 * oacc-ptx.h: Likewise.
1067 * openacc.f90: Likewise.
1068 * openacc.h: Likewise.
1069 * openacc_lib.h: Likewise.
1070 * plugin/plugin-host.c: Likewise.
1071 * plugin/plugin-nvptx.c: Likewise.
1072 * libgomp-plugin.c: Likewise.
1073 * libgomp-plugin.h: Likewise.
1074 * libgomp_target.h: Remove file after merging content into the
1075 former file. Update all users.
1076 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1077 (offload_targets_s, offload_targets_s_openacc): New variables.
1078 (check_effective_target_openacc_nvidia_accel_present)
1079 (check_effective_target_openacc_nvidia_accel_selected): New
1081 (libgomp_init): Update for OpenACC changes.
1082 * testsuite/libgomp-test-support.exp.in: New file.
1083 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1084 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1085 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1086 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1087 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1088 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1089 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1090 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1091 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1092 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1093 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1094 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1095 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1096 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1097 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1098 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1099 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1100 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1101 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1102 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1103 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1104 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1105 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1106 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1108 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1109 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1110 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1111 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1112 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1113 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1114 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1115 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1116 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1117 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1118 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1119 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1120 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1121 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1122 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1124 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
1129 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1130 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1131 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1132 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1133 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1134 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1135 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1136 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1138 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1139 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1140 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1141 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1142 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
1143 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1144 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
1145 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1146 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1147 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1148 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
1149 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
1150 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1151 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1152 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1153 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
1154 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1155 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1156 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1157 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
1158 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
1159 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1160 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1161 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
1162 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
1163 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
1164 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
1165 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1166 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1167 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1168 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
1169 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
1170 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1171 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1172 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
1173 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1174 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1175 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
1176 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1177 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1178 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1179 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1180 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1182 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1184 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
1185 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1186 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1187 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1188 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1189 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1190 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1201 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1203 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1207 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1208 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1209 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1210 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
1211 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
1213 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
1214 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
1215 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
1217 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1218 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1219 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1220 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1221 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1224 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1225 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1226 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1227 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1228 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
1229 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1230 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1231 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1232 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1233 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1234 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1235 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1236 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1237 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1238 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1239 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1240 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1241 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1242 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1243 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1244 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1245 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1246 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1247 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1248 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1249 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1250 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1251 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1252 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1253 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1254 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1255 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1256 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1257 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1258 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1259 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1260 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1261 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1262 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1263 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1264 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1265 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1266 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1267 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1268 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1269 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1270 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1271 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1272 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1273 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1274 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1275 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1276 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1277 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1278 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1279 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1280 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1281 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1282 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1283 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1285 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1286 Julian Brown <julian@codesourcery.com>
1287 David Malcolm <dmalcolm@redhat.com>
1289 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
1290 to "GNU Offloading and Multi Processing Runtime Library". Change
1292 * configure: Regenerate.
1293 * libgomp.texi: Update.
1295 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
1297 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1299 * configure: Regenerate.
1301 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1302 "intelmic" in $offload_targets.
1304 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1306 Update copyright years.
1308 * libgomp.texi: Bump @copying's copyright year.
1310 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1312 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1313 Move load of target-supportes.exp earlier.
1315 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1317 * testsuite/libgomp.c/target-9.c: New test.
1319 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1321 * config.h.in: Regenerate.
1322 * configure: Regenerate.
1323 * configure.ac: Add GCC_CHECK_EMUTLS.
1324 * libgomp.h: Add check for USE_EMUTLS: this case
1325 is equal to HAVE_TLS.
1328 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1330 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1332 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1333 Ilya Verbin <ilya.verbin@intel.com>
1335 * testsuite/libgomp.c/target-critical-1.c: New test.
1337 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1339 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1340 to dg-options unless expensive testing is on.
1341 (TESTITERS): Define to N if not defined.
1342 (main): Use TESTITERS instead of N.
1343 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1344 dg-additional-options depending on whether expensive testing is on.
1345 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1346 Decrease N to 100000 and CHUNKSZ to 10000.
1348 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1351 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1352 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1354 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1356 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1358 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1361 * configure: Regenerated.
1363 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1365 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1366 vect_simd_clones effective target.
1367 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1369 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1371 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1372 of 32 as block_size.
1373 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1374 instead of 32 as block_size.
1376 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1377 Ilya Verbin <ilya.verbin@intel.com>
1379 * Makefile.in: Regenerate.
1380 * configure: Regenerate.
1381 * configure.ac: Set up offload_additional_options,
1382 offload_additional_lib_paths and offload_targets.
1383 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1384 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1385 * testsuite/Makefile.in: Regenerate.
1386 * testsuite/lib/libgomp.exp (libgomp_init): Append
1387 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1388 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1389 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1391 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1392 Ilya Verbin <ilya.verbin@intel.com>
1393 Kirill Yukhin <kirill.yukhin@intel.com>
1394 Ilya Tocar <ilya.tocar@intel.com>
1396 * testsuite/lib/libgomp.exp
1397 (check_effective_target_offload_device): New.
1398 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1399 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1400 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1401 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1402 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1403 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1404 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1405 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1406 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1407 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1408 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1409 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1410 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1411 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1412 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1413 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1414 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1415 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1416 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1417 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1418 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1419 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1420 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1421 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1422 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1423 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1424 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1425 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1426 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1427 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1428 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1429 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1430 * testsuite/libgomp.c/target-7.c: Fix test.
1431 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1432 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1433 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1434 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1435 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1436 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1437 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1438 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1439 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1440 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1441 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1442 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1443 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1444 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1445 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1446 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1447 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1448 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1449 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1450 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1451 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1452 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1453 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1454 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1455 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1456 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1457 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1458 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1459 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1460 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1461 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1463 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1464 Ilya Verbin <ilya.verbin@intel.com>
1465 Thomas Schwinge <thomas@codesourcery.com>
1466 Andrey Turetskiy <andrey.turetskiy@intel.com>
1468 * libgomp.map (GOMP_4.0.1): New symbol version.
1469 Add GOMP_offload_register.
1470 * libgomp_target.h: New file.
1471 * splay-tree.h: New file.
1472 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1473 (gomp_target_init): New forward declaration.
1474 (gomp_is_initialized): New static variable.
1475 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1476 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1478 (offload_images, num_offload_images, devices, num_devices): New static
1480 (splay_compare): New static function.
1481 (struct gomp_device_descr): New structure.
1482 (gomp_get_num_devices): Call gomp_target_init.
1483 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1484 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1485 (GOMP_offload_register): New function.
1486 (GOMP_target): Arrange for host callback to be performed in a separate
1487 initial thread and contention group, inheriting ICVs from
1488 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1489 Add device initialization and lookup for target function in splay tree.
1490 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1491 (GOMP_target_end_data): Call gomp_unmap_vars.
1492 (GOMP_target_update): Add device initialization and call gomp_update.
1493 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1494 (gomp_target_init): New static functions.
1496 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1497 Thomas Schwinge <thomas@codesourcery.com>
1498 Ilya Verbin <ilya.verbin@intel.com>
1499 Andrey Turetskiy <andrey.turetskiy@intel.com>
1501 * config.h.in: Regenerate.
1502 * configure: Regenerate.
1503 * configure.ac: Check for libdl, required for plugin support.
1504 (PLUGIN_SUPPORT): Define if plugins are supported.
1505 (enable_offload_targets): Support Intel MIC targets.
1506 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1508 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1511 * configure: Regenerate.
1513 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1515 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1517 2014-10-06 Marek Polacek <polacek@redhat.com>
1519 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1520 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1521 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1522 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1524 2014-10-06 Marek Polacek <polacek@redhat.com>
1526 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1527 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1528 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1529 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1530 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1531 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1532 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1533 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1534 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1535 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1536 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1537 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1538 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1539 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1540 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1541 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1542 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1543 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1546 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1549 * testsuite/libgomp.c/pr61200.c: New test.
1551 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1554 * testsuite/libgomp.c++/pr63248.C: New test.
1556 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1558 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1559 is not zero, but taskgroup->children is NULL and there are
1560 any task->children, schedule those instead of waiting.
1561 * testsuite/libgomp.c/depend-6.c: New test.
1562 * testsuite/libgomp.c/depend-7.c: New test.
1563 * testsuite/libgomp.c/depend-8.c: New test.
1564 * testsuite/libgomp.c/depend-9.c: New test.
1565 * testsuite/libgomp.c/depend-10.c: New test.
1567 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1569 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1570 (struct gomp_taskwait): New type.
1571 (struct gomp_task): Add taskwait and parent_depends_on, remove
1572 in_taskwait and taskwait_sem fields.
1573 (gomp_finish_task): Don't destroy taskwait_sem.
1574 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1575 taskwait and parent_depends_on.
1576 (GOMP_task): For if (0) tasks with depend clause that depend on
1577 earlier tasks don't defer them, instead call
1578 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1579 Initialize redundant_out field, for redundant out entries just
1580 move them at the end of linked list instead of removing them
1581 completely, and set redundant_out flag instead of redundant.
1582 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1584 (gomp_task_run_post_handle_dependers): If parent is in
1585 gomp_task_maybe_wait_for_dependencies and newly runnable task
1586 is not parent_depends_on, queue it in parent->children linked
1587 list after all runnable tasks with parent_depends_on set.
1588 Adjust for addition of taskwait indirection.
1589 (gomp_task_run_post_remove_parent): If parent is in
1590 gomp_task_maybe_wait_for_dependencies and task to be removed
1591 is parent_depends_on, decrement n_depend and if needed awake
1592 parent. Adjust for addition of taskwait indirection.
1593 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1594 (gomp_task_maybe_wait_for_dependencies): New function.
1595 * testsuite/libgomp.c/depend-5.c: New test.
1597 2014-07-13 Tobias Burnus <burnus@net-b.de>
1599 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1600 with TS 18508/Fortran 2015.
1602 2014-07-06 Marek Polacek <polacek@redhat.com>
1605 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1607 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1609 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1610 matches regex $lang_source_re, add $lang_include_flags to options.
1611 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1612 * testsuite/libgomp.c++/c++.exp: Likewise.
1613 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1614 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1616 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1618 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1620 * testsuite/libgomp.fortran/fortran.exp: Explain
1621 gfortran-dg-runtest usage.
1623 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.fortran/simd5.f90: New test.
1626 * testsuite/libgomp.fortran/simd6.f90: New test.
1627 * testsuite/libgomp.fortran/simd7.f90: New test.
1629 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c/for-2.c: Define SC to static for
1632 #pragma omp for simd testing.
1633 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1634 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1636 * testsuite/libgomp.c/simd-14.c: New test.
1637 * testsuite/libgomp.c/simd-15.c: New test.
1638 * testsuite/libgomp.c/simd-16.c: New test.
1639 * testsuite/libgomp.c/simd-17.c: New test.
1640 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1641 #pragma omp for simd testing.
1642 * testsuite/libgomp.c++/simd10.C: New test.
1643 * testsuite/libgomp.c++/simd11.C: New test.
1644 * testsuite/libgomp.c++/simd12.C: New test.
1645 * testsuite/libgomp.c++/simd13.C: New test.
1647 * testsuite/libgomp.fortran/aligned1.f03: New test.
1648 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1649 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1650 tasks with !$omp parallel !$omp single.
1651 * testsuite/libgomp.fortran/target8.f90: New test.
1652 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1653 not to use trim in the combiner, instead call elemental function.
1654 (fn): New elemental function.
1655 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1657 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1659 * testsuite/libgomp.fortran/udr12.f90: New test.
1660 * testsuite/libgomp.fortran/udr13.f90: New test.
1661 * testsuite/libgomp.fortran/udr14.f90: New test.
1662 * testsuite/libgomp.fortran/udr15.f90: New test.
1664 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1666 * omp_lib.f90.in (openmp_version): Set to 201307.
1667 * omp_lib.h.in (openmp_version): Likewise.
1668 * testsuite/libgomp.c/target-8.c: New test.
1669 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1670 and inbranch clauses.
1671 * testsuite/libgomp.fortran/depend-3.f90: New test.
1672 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1674 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1675 * testsuite/libgomp.fortran/target1.f90: New test.
1676 * testsuite/libgomp.fortran/target2.f90: New test.
1677 * testsuite/libgomp.fortran/target3.f90: New test.
1678 * testsuite/libgomp.fortran/target4.f90: New test.
1679 * testsuite/libgomp.fortran/target5.f90: New test.
1680 * testsuite/libgomp.fortran/target6.f90: New test.
1681 * testsuite/libgomp.fortran/target7.f90: New test.
1683 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1686 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1687 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1688 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1689 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1690 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1691 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1692 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1693 * testsuite/libgomp.fortran/associate1.f90: New test.
1694 * testsuite/libgomp.fortran/associate2.f90: New test.
1695 * testsuite/libgomp.fortran/procptr1.f90: New test.
1697 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.fortran/simd1.f90: New test.
1700 * testsuite/libgomp.fortran/udr1.f90: New test.
1701 * testsuite/libgomp.fortran/udr2.f90: New test.
1702 * testsuite/libgomp.fortran/udr3.f90: New test.
1703 * testsuite/libgomp.fortran/udr4.f90: New test.
1704 * testsuite/libgomp.fortran/udr5.f90: New test.
1705 * testsuite/libgomp.fortran/udr6.f90: New test.
1706 * testsuite/libgomp.fortran/udr7.f90: New test.
1707 * testsuite/libgomp.fortran/udr8.f90: New test.
1708 * testsuite/libgomp.fortran/udr9.f90: New test.
1709 * testsuite/libgomp.fortran/udr10.f90: New test.
1710 * testsuite/libgomp.fortran/udr11.f90: New test.
1712 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1714 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1715 vect_simd_clones effective target.
1716 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1718 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1721 * testsuite/libgomp.c++/simd-9.C: New test.
1723 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1725 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1726 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1727 texts according to their @menu entry positions.
1729 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1731 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1732 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1733 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1734 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1735 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1736 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1737 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1738 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1739 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1740 * testsuite/libgomp.fortran/depend-1.f90: New test.
1741 * testsuite/libgomp.fortran/depend-2.f90: New test.
1742 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1743 * testsuite/libgomp.fortran/simd1.f90: New test.
1744 * testsuite/libgomp.fortran/simd2.f90: New test.
1745 * testsuite/libgomp.fortran/simd3.f90: New test.
1746 * testsuite/libgomp.fortran/simd4.f90: New test.
1747 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1749 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1751 * testsuite/libgomp.c/simd-10.c: New test.
1752 * testsuite/libgomp.c/simd-11.c: New test.
1753 * testsuite/libgomp.c/simd-12.c: New test.
1754 * testsuite/libgomp.c/simd-13.c: New test.
1756 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1758 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1759 atomic type clauses in any order and optional comma in between.
1760 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1761 * testsuite/libgomp.c/atomic-17.c: Likewise.
1763 * testsuite/libgomp.c/simd-7.c: New test.
1764 * testsuite/libgomp.c/simd-8.c: New test.
1765 * testsuite/libgomp.c/simd-9.c: New test.
1766 * testsuite/libgomp.c/loop-16.c: New test.
1768 2014-04-02 Richard Henderson <rth@redhat.com>
1770 * config/linux/futex.h (futex_wait): Get error value from errno.
1771 (futex_wake): Likewise.
1773 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1776 * testsuite/libgomp.c++/udr-11.C: New test.
1777 * testsuite/libgomp.c++/udr-12.C: New test.
1778 * testsuite/libgomp.c++/udr-13.C: New test.
1779 * testsuite/libgomp.c++/udr-14.C: New test.
1780 * testsuite/libgomp.c++/udr-15.C: New test.
1781 * testsuite/libgomp.c++/udr-16.C: New test.
1782 * testsuite/libgomp.c++/udr-17.C: New test.
1783 * testsuite/libgomp.c++/udr-18.C: New test.
1784 * testsuite/libgomp.c++/udr-19.C: New test.
1786 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1788 Update copyright years
1790 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1792 * hashtab.h: Use the standard form for the copyright notice.
1794 2014-01-02 Tobias Burnus <burnus@net-b.de>
1796 * libgomp.texi: Bump @copying's copyright year.
1798 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1800 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1801 alloca () with __builtin_alloca ().
1802 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1803 * testsuite/libgomp.c/lock-3.c: Likewise.
1804 * testsuite/libgomp.c/pr48591.c: Likewise.
1806 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1809 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1812 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1815 * testsuite/libgomp.c/pr58756.c: New test.
1817 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1820 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1823 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1825 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1827 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1828 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1829 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1830 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1833 * libgomp_g.h: Include <stddef.h> for size_t.
1835 * libgomp.spec.in: Update comment about libgomp's dependencies.
1836 * configure.ac: Likewise.
1837 * configure: Regenerate.
1839 2013-10-16 Tobias Burnus <burnus@net-b.de>
1841 * libgomp.texi: (Runtime Library Routines): Update references for
1842 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1843 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1844 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1845 (Environment Variables): Update references for OpenMP 4.0. Add
1846 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1847 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1850 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1852 * env.c (parse_bind_var): Initialize value to avoid
1853 (false positive) warning.
1855 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1858 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1860 (gomp_init_num_threads): Move i variable declaration into
1861 #ifdef CPU_ALLOC_SIZE block.
1862 * config/linux/affinity.c (gomp_affinity_init_level): Test
1863 gomp_places_list_len == 0 rather than gomp_places_list == 0
1864 when checking for topology reading error.
1865 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1866 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1867 gomp_places_list, only parse env var and always return false.
1868 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1869 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1870 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1871 and either of these variables were parsed correctly into a places
1874 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1875 Jakub Jelinek <jakub@redhat.com>
1877 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1878 of 5 loopfn matches.
1879 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1880 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1881 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1882 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1883 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1884 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1885 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1886 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1888 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1890 * Makefile.am (omp_lib.mod): Streamline rule.
1891 * Makefile.in: Regenerate.
1893 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1896 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1897 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1898 * testsuite/libgomp.fortran/lib2.f: Likewise.
1899 * testsuite/libgomp.fortran/lib3.f: Likewise.
1901 * configure.ac: Typo fix.
1902 * configure: Regenerate.
1904 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1905 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1907 * omp.h.in: Don't touch the user's namespace.
1909 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1910 Tobias Burnus <burnus@net-b.de>
1911 Richard Henderson <rth@redhat.com>
1913 * target.c: New file.
1914 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1915 * Makefile.in: Regenerated.
1916 * libgomp_g.h (GOMP_task): Add depend argument.
1917 (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,
1920 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1921 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1922 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1923 GOMP_taskgroup_start, GOMP_taskgroup_end,
1924 GOMP_parallel_sections): New prototypes.
1925 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1926 (omp_is_initial_device_): New function.
1927 (ULP, STR1, STR2, ialias_redirect): Removed.
1928 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1929 omp_set_default_device_8_, omp_get_default_device_,
1930 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1932 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1933 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1934 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1936 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1937 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1938 omp_set_default_device, omp_set_default_device_,
1939 omp_set_default_device_8_, omp_get_default_device,
1940 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1941 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1942 omp_get_team_num_): Export @@OMP_4.0.
1943 * team.c (struct gomp_thread_start_data): Add place field.
1944 (gomp_thread_start): Clear thr->thread_pool and
1945 thr->task before returning. Use gomp_team_barrier_wait_final
1946 instead of gomp_team_barrier_wait. Initialize thr->place.
1947 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1948 team_cancelled and task_queued_count fields.
1949 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1950 before calling pthread_exit.
1951 (gomp_free_thread): No longer static. Use
1952 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1953 (gomp_team_start): Add flags argument. Set
1954 thr->thread_pool->threads_busy to nthreads immediately after creating
1955 new pool. Use gomp_managed_threads_lock instead of
1956 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1957 (gomp_team_end): Use gomp_managed_threads_lock instead of
1958 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1959 of gomp_team_barrier_wait. If team->team_cancelled, call
1960 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1961 rather than thr->ts.work_share.
1962 (initialize_team): Don't call gomp_sem_init here.
1963 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1965 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1966 * env.c (gomp_global_icv): Add default_device_var, target_data and
1967 bind_var initializers.
1968 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1969 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1970 gomp_places_list_len): New variables.
1971 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1972 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1974 (gomp_cancel_var): New global variable.
1975 (parse_int): New function.
1976 (handle_omp_display_env): New function.
1977 (initialize_env): Use it. Initialize default_device_var.
1978 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1979 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1980 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1981 been successfully parsed (and call gomp_init_affinity in that case).
1982 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1983 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1984 omp_get_team_num, omp_is_initial_device): New functions.
1985 * libgomp.h: Include stdlib.h.
1986 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1988 (struct target_mem_desc): Forward declare.
1989 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1990 and thread_limit_var fields.
1991 (gomp_get_num_devices): New prototype.
1992 (gomp_cancel_var): New extern decl.
1993 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1994 team_cancelled and task_queued_count fields. Add comments about
1995 task_{,queued_,running_}count.
1996 (gomp_cancel_kind): New enum.
1997 (gomp_work_share_end_cancel): New prototype.
1998 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1999 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
2001 (struct gomp_taskgroup): New type.
2002 (struct gomp_task_depend_entry,
2003 struct gomp_dependers_vec): New types.
2004 (gomp_finish_task): Free depend_hash if non-NULL.
2005 (struct gomp_team_state): Add place_partition_off
2006 and place_partition_len fields.
2007 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2008 gomp_places_list_len): New extern decls.
2009 (struct gomp_thread): Add place field.
2010 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2011 (gomp_init_thread_affinity): Add place argument.
2012 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2013 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2014 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2015 gomp_affinity_init_level, gomp_affinity_print_place): New
2017 (gomp_team_start): Add flags argument.
2018 (gomp_thread_limit_var, gomp_remaining_threads_count,
2019 gomp_remaining_threads_lock): Remove.
2020 (gomp_managed_threads_lock): New variable.
2021 (struct gomp_thread_pool): Add threads_busy field.
2022 (gomp_free_thread): New prototype.
2023 * task.c: Include hashtab.h.
2024 (hash_entry_type): New typedef.
2025 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2026 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2027 copy_ctors_done and taskgroup fields.
2028 (GOMP_task): Add depend argument, handle depend clauses. If
2029 gomp_team_barrier_cancelled or if it's taskgroup has been
2030 cancelled, don't queue or start new tasks. Set copy_ctors_done
2031 field if needed. Initialize taskgroup field. If copy_ctors_done
2032 and already cancelled, don't discard the task. If taskgroup is
2033 non-NULL, enqueue the task into taskgroup queue. Increment
2034 num_children field in taskgroup. Increment task_queued_count.
2035 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2036 gomp_task_run_post_remove_taskgroup): New inline functions.
2037 (gomp_task_run_post_handle_depend_hash,
2038 gomp_task_run_post_handle_dependers,
2039 gomp_task_run_post_handle_depend): New functions.
2040 (GOMP_taskwait): Use them. If more than one new tasks
2041 have been queued, wake other threads if needed.
2042 (gomp_barrier_handle_tasks): Likewise. If
2043 gomp_team_barrier_cancelled, don't start any new tasks, just free
2045 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2047 (omp_proc_bind_kind, omp_proc_bind_false,
2048 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2049 omp_proc_bind_spread): New params.
2050 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2051 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2052 omp_get_team_num, omp_is_initial_device): New interfaces.
2053 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2054 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2055 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2056 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2057 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2058 useless use omp_lib_kinds.
2059 * omp.h.in (omp_proc_bind_t): New typedef.
2060 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2061 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2062 omp_get_team_num, omp_is_initial_device): New prototypes.
2063 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2064 through to gomp_team_start.
2065 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2066 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2067 Adjust gomp_parallel_loop_start callers.
2068 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2069 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2070 GOMP_loop_end_cancel): New functions.
2071 (GOMP_parallel_end): Add ialias_redirect.
2072 * hashtab.h: New file.
2073 * libgomp.texi (Environment Variables): Minor cleanup,
2074 update section refs to OpenMP 4.0rc2.
2075 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2076 environment variables.
2077 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2078 team->work_shares_to_free to thr->ts.work_share before calling
2080 (gomp_work_share_end_cancel): New function.
2081 * config/linux/proc.c: Include errno.h.
2082 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2083 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2084 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2085 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2086 gomp_cpuset_size is sizeof (cpu_set_t).
2087 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2088 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2089 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2090 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2091 contain any logical CPUs.
2092 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2093 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2094 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2095 pthread_getaffinity_np. Check gomp_places_list instead of
2096 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2097 * config/linux/bar.c (gomp_barrier_wait_end,
2098 gomp_barrier_wait_last): Use BAR_* defines.
2099 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2100 from state where needed. Set work_share_cancelled to 0 on last
2102 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2103 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2105 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2106 Add cpusetsize argument.
2107 (gomp_cpuset_size, gomp_cpusetp): Declare.
2108 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2109 (affinity_counter): Remove.
2110 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2111 if CPU_ALLOC_SIZE isn't defined.
2112 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2113 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2114 bind current thread to the first place.
2115 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2116 pthread_setaffinity_np to gomp_places_list[place].
2117 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2118 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2119 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2120 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2121 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2122 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2123 (gomp_barrier_t): Add awaited_final field.
2124 (gomp_barrier_init): Initialize awaited_final field.
2125 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2126 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
2128 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
2130 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
2131 gomp_team_barrier_cancelled): New inline functions.
2132 (gomp_barrier_last_thread,
2133 gomp_team_barrier_set_task_pending,
2134 gomp_team_barrier_clear_task_pending,
2135 gomp_team_barrier_set_waiting_for_tasks,
2136 gomp_team_barrier_waiting_for_tasks,
2137 gomp_team_barrier_done): Use BAR_* defines.
2138 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
2139 (gomp_barrier_wait_end): Use BAR_* defines.
2140 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
2141 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
2143 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
2144 gomp_team_barrier_cancel): New functions.
2145 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
2147 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2148 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2149 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2150 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
2151 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2152 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2153 (gomp_barrier_t): Add cancellable field.
2154 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
2155 gomp_team_barrier_cancel): New prototypes.
2156 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
2157 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
2158 gomp_team_barrier_cancelled): New inline functions.
2159 (gomp_barrier_wait_start, gomp_barrier_last_thread,
2160 gomp_team_barrier_set_task_pending,
2161 gomp_team_barrier_clear_task_pending,
2162 gomp_team_barrier_set_waiting_for_tasks,
2163 gomp_team_barrier_waiting_for_tasks,
2164 gomp_team_barrier_done): Use BAR_* defines.
2165 * barrier.c (GOMP_barrier_cancel): New function.
2166 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
2167 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2168 omp_proc_bind_spread): New params.
2169 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2170 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2171 omp_get_team_num, omp_is_initial_device): New externals.
2172 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
2174 (gomp_resolve_num_threads): Adjust for thread_limit now being in
2175 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2176 infinity. If not nested, just return minimum of max_num_threads
2177 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
2178 to the returned value. Otherwise, don't update atomically
2179 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
2180 (GOMP_parallel_end): Adjust for thread_limit now being in
2181 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2182 infinity. Adjust threads_busy in the pool rather than
2183 gomp_remaining_threads_count. Remember team->nthreads and call
2184 gomp_team_end before adjusting threads_busy, if not nested
2185 afterwards, just set it to 1 non-atomically. Add ialias.
2186 (GOMP_parallel_start): Adjust gomp_team_start caller.
2187 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
2188 * testsuite/libgomp.c/affinity-1.c: New test.
2189 * testsuite/libgomp.c/atomic-15.c: New test.
2190 * testsuite/libgomp.c/atomic-16.c: New test.
2191 * testsuite/libgomp.c/atomic-17.c: New test.
2192 * testsuite/libgomp.c/cancel-for-1.c: New test.
2193 * testsuite/libgomp.c/cancel-for-2.c: New test.
2194 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
2195 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
2196 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
2197 * testsuite/libgomp.c/cancel-sections-1.c: New test.
2198 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
2199 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
2200 * testsuite/libgomp.c/depend-1.c: New test.
2201 * testsuite/libgomp.c/depend-2.c: New test.
2202 * testsuite/libgomp.c/depend-3.c: New test.
2203 * testsuite/libgomp.c/depend-4.c: New test.
2204 * testsuite/libgomp.c/for-1.c: New test.
2205 * testsuite/libgomp.c/for-1.h: New file.
2206 * testsuite/libgomp.c/for-2.c: New test.
2207 * testsuite/libgomp.c/for-2.h: New file.
2208 * testsuite/libgomp.c/for-3.c: New test.
2209 * testsuite/libgomp.c/pr58392.c: New test.
2210 * testsuite/libgomp.c/simd-1.c: New test.
2211 * testsuite/libgomp.c/simd-2.c: New test.
2212 * testsuite/libgomp.c/simd-3.c: New test.
2213 * testsuite/libgomp.c/simd-4.c: New test.
2214 * testsuite/libgomp.c/simd-5.c: New test.
2215 * testsuite/libgomp.c/simd-6.c: New test.
2216 * testsuite/libgomp.c/target-1.c: New test.
2217 * testsuite/libgomp.c/target-2.c: New test.
2218 * testsuite/libgomp.c/target-3.c: New test.
2219 * testsuite/libgomp.c/target-4.c: New test.
2220 * testsuite/libgomp.c/target-5.c: New test.
2221 * testsuite/libgomp.c/target-6.c: New test.
2222 * testsuite/libgomp.c/target-7.c: New test.
2223 * testsuite/libgomp.c/taskgroup-1.c: New test.
2224 * testsuite/libgomp.c/thread-limit-1.c: New test.
2225 * testsuite/libgomp.c/thread-limit-2.c: New test.
2226 * testsuite/libgomp.c/thread-limit-3.c: New test.
2227 * testsuite/libgomp.c/udr-1.c: New test.
2228 * testsuite/libgomp.c/udr-2.c: New test.
2229 * testsuite/libgomp.c/udr-3.c: New test.
2230 * testsuite/libgomp.c++/affinity-1.C: New test.
2231 * testsuite/libgomp.c++/atomic-10.C: New test.
2232 * testsuite/libgomp.c++/atomic-11.C: New test.
2233 * testsuite/libgomp.c++/atomic-12.C: New test.
2234 * testsuite/libgomp.c++/atomic-13.C: New test.
2235 * testsuite/libgomp.c++/atomic-14.C: New test.
2236 * testsuite/libgomp.c++/atomic-15.C: New test.
2237 * testsuite/libgomp.c++/cancel-for-1.C: New test.
2238 * testsuite/libgomp.c++/cancel-for-2.C: New test.
2239 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
2240 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
2241 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
2242 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
2243 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
2244 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
2245 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
2246 * testsuite/libgomp.c++/cancel-test.h: New file.
2247 * testsuite/libgomp.c++/for-9.C: New test.
2248 * testsuite/libgomp.c++/for-10.C: New test.
2249 * testsuite/libgomp.c++/for-11.C: New test.
2250 * testsuite/libgomp.c++/simd-1.C: New test.
2251 * testsuite/libgomp.c++/simd-2.C: New test.
2252 * testsuite/libgomp.c++/simd-3.C: New test.
2253 * testsuite/libgomp.c++/simd-4.C: New test.
2254 * testsuite/libgomp.c++/simd-5.C: New test.
2255 * testsuite/libgomp.c++/simd-6.C: New test.
2256 * testsuite/libgomp.c++/simd-7.C: New test.
2257 * testsuite/libgomp.c++/simd-8.C: New test.
2258 * testsuite/libgomp.c++/target-1.C: New test.
2259 * testsuite/libgomp.c++/target-2.C: New test.
2260 * testsuite/libgomp.c++/target-2-aux.cc: New file.
2261 * testsuite/libgomp.c++/target-3.C: New test.
2262 * testsuite/libgomp.c++/taskgroup-1.C: New test.
2263 * testsuite/libgomp.c++/udr-1.C: New test.
2264 * testsuite/libgomp.c++/udr-2.C: New test.
2265 * testsuite/libgomp.c++/udr-3.C: New test.
2266 * testsuite/libgomp.c++/udr-4.C: New test.
2267 * testsuite/libgomp.c++/udr-5.C: New test.
2268 * testsuite/libgomp.c++/udr-6.C: New test.
2269 * testsuite/libgomp.c++/udr-7.C: New test.
2270 * testsuite/libgomp.c++/udr-8.C: New test.
2271 * testsuite/libgomp.c++/udr-9.C: New test.
2273 2013-09-20 Jakub Jelinek <jakub@redhat.com>
2276 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
2279 2013-09-20 Alan Modra <amodra@gmail.com>
2281 * configure: Regenerate.
2283 2013-09-19 Jakub Jelinek <jakub@redhat.com>
2285 * testsuite/libgomp.c/sections-2.c: New test.
2287 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2289 * testsuite/libgomp.fortran/strassen.f90:
2290 Add dg-skip-if aarch64_tiny.
2292 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2293 Cesar Philippidis <cesar@codesourcery.com>
2295 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2296 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2297 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2298 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2299 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2300 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2301 Use dg-runtest rather than gfortran-dg-runtest.
2303 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2305 * testsuite/libgomp.c/icv-2.c: Extend current handling of
2306 Linux-based x86 systems to cover all GNU systems.
2307 * testsuite/libgomp.c/lock-3.c: Likewise.
2308 * testsuite/libgomp.c/pr48591.c: Likewise.
2310 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
2312 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2313 GNU/Hurd, as done for Linux-based systems.
2315 * config/posix/ptrlock.h: Fix comment.
2317 2013-05-27 Tobias Burnus <burnus@net-b.de>
2320 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2321 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2322 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2323 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2324 omp_destroy_nest_lock): Correct arguments to match the one in
2326 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2327 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2328 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2329 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2331 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2333 * testsuite/libgomp.c/loop-13.c: New test.
2334 * testsuite/libgomp.c/loop-14.c: New test.
2335 * testsuite/libgomp.c/loop-15.c: New test.
2336 * testsuite/libgomp.c++/loop-13.C: New test.
2337 * testsuite/libgomp.c++/loop-14.C: New test.
2338 * testsuite/libgomp.c++/loop-15.C: New test.
2340 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2343 * testsuite/libgomp.c++/pr56217.C: New test.
2345 2013-02-01 Alan Modra <amodra@gmail.com>
2347 * task.c (GOMP_task, GOMP_taskwait): Comment.
2349 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2350 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2353 * config/linux/wait.h (do_spin): Use atomic load for addr.
2354 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2355 for intptr and ptrlock.
2356 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2359 2013-01-22 Alan Modra <amodra@gmail.com>
2363 * task.c (GOMP_task): Revert 2011-12-09 change.
2364 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2365 barrier to read task->children..
2366 (gomp_barrier_handle_tasks): ..and matching atomic store with
2367 release barrier here when setting parent->children to NULL.
2369 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2370 Tobias Burnus <burnus@net-b.de>
2373 * testsuite/libgomp.fortran/fortran.exp: Use
2374 -fintrinsic-modules-path= instead of
2375 -fintrinsic-modules-path.
2377 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2379 Update copyright years.
2381 2012-12-19 Tobias Burnus <burnus@net-b.de>
2383 * testsuite/libgomp.fortran/fortran.exp: Set
2384 -fintrinsic-modules-path.
2386 2012-12-19 Tobias Burnus <burnus@net-b.de>
2388 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2389 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2391 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2394 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2395 if pool had any threads_used.
2397 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2399 * testsuite/libgomp.c++/pr24455.C: Use
2400 -Wl,-undefined,dynamic_lookup on darwin.
2402 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2404 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2406 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2408 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2410 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2411 Jim MacArthur <jim.macarthur@arm.com>
2412 Marcus Shawcroft <marcus.shawcroft@arm.com>
2413 Nigel Stephens <nigel.stephens@arm.com>
2414 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2415 Richard Earnshaw <rearnsha@arm.com>
2416 Sofiane Naci <sofiane.naci@arm.com>
2417 Stephen Thomas <stephen.thomas@arm.com>
2418 Tejas Belagod <tejas.belagod@arm.com>
2419 Yufeng Zhang <yufeng.zhang@arm.com>
2421 * configure.tgt: Add AArch64.
2423 2012-10-04 Jason Merrill <jason@redhat.com>
2425 * testsuite/libgomp.c++/tls-init1.C: New.
2427 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2429 * configure: Regenerated.
2431 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2433 * config/linux/mips/futex.h (sys_futex0): Change to static
2434 function with noinline, nomips16 attributes under MIPS16. Adjust
2435 asm statement to place 'li v0,SYS_futex' immediately before
2438 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2440 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2441 conflict with index.html on case-insensitive file systems.
2443 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2445 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2446 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2448 2012-07-02 Richard Guenther <rguenther@suse.de>
2449 Michael Matz <matz@suse.de>
2450 Tobias Grosser <tobias@grosser.es>
2451 Sebastian Pop <sebpop@gmail.com>
2453 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2454 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2455 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2456 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2458 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2460 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2462 2012-06-22 Richard Guenther <rguenther@suse.de>
2464 Merge from graphite branch
2465 2012-01-13 Tobias Grosser <tobias@grosser.es>
2467 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2468 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2470 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2474 use GOMP_barrier () call instead.
2475 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2476 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2477 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2478 call GOMP_barrier instead.
2479 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2481 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2484 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2485 argument to memset call.
2487 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2489 * configure: Regenerated.
2491 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2493 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2495 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2498 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2500 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2503 * testsuite/libgomp.c/pr52547.c: New test.
2505 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2507 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2509 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2511 * configure.tgt (mips-sgi-irix6*): Remove.
2513 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2515 * configure.tgt (alpha*-dec-osf*): Remove.
2517 * config/osf/sem.h: Remove.
2518 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2520 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2522 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2524 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2527 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2528 Remove ENABLE_SYMVERS_SOL2.
2529 * configure: Regenerate.
2530 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2531 (PREPROCESS): New variable.
2532 (libgomp.ver): New target.
2533 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2534 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2535 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2537 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2538 * Makefile.in: Regenerate.
2540 2012-02-14 Walter Lee <walt@tilera.com>
2542 * configure.tgt: Handle tilegx and tilepro.
2543 * config/linux/tile/futex.h: New file.
2545 2012-02-08 Richard Guenther <rguenther@suse.de>
2547 PR tree-optimization/46886
2548 * testsuite/libgomp.c/pr46886.c: New testcase.
2550 2012-01-25 Matthias Klose <doko@ubuntu.com>
2552 * config/linux/arm: Remove empty directory.
2553 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2555 2011-12-09 Alan Modra <amodra@gmail.com>
2558 * task.c (GOMP_taskwait): Don't access task->children outside of
2559 task_lock mutex region.
2560 (GOMP_task): Likewise.
2562 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2565 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2567 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2568 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2569 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2570 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2571 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2573 2011-12-02 Alan Modra <amodra@gmail.com>
2575 * config/linux/affinity.c: Use atomic rather than sync builtin.
2576 * config/linux/lock.c: Likewise.
2577 * config/linux/ptrlock.h: Likewise.
2578 * config/linux/ptrlock.c: Likewise.
2579 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2580 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2581 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2582 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2583 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2584 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2585 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2586 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2587 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2588 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2590 2011-11-30 Alan Modra <amodra@gmail.com>
2593 * config/linux/bar.h: Use atomic rather than sync builtins.
2594 * config/linux/bar.c: Likewise. Add missing acquire
2595 synchronisation on generation field.
2596 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2599 2011-11-30 Alan Modra <amodra@gmail.com>
2601 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2602 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2603 * config/linux/mutex.h: Use atomic rather than sync builtins.
2604 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2605 * config/linux/omp-lock.h: Comment fix.
2606 * config/linux/arm/mutex.h: Delete.
2607 * config/linux/powerpc/mutex.h: Delete.
2608 * config/linux/ia64/mutex.h: Delete.
2609 * config/linux/mips/mutex.h: Delete.
2611 2011-11-30 Alan Modra <amodra@gmail.com>
2614 * config/linux/sem.h: Rewrite.
2615 * config/linux/sem.c: Rewrite.
2617 2011-11-28 Richard Henderson <rth@redhat.com>
2619 * libgomp.h (enum memmodel): New.
2621 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2623 * configure: Regenerate.
2625 2011-10-10 Matthias Klose <doko@ubuntu.com>
2627 * config/posix95: Remove empty directory.
2629 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2631 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2633 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2636 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2637 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2639 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2641 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2643 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2646 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2648 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2650 * config/linux/proc.h: New.
2651 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2652 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2653 (gomp_init_num_threads): Update call to cpuset_popcount.
2654 (get_num_procs): Ditto.
2655 * config/linux/affinity.c (gomp_init_affinity): Call
2656 gomp_cpuset_popcount.
2658 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2662 * omp.h.in (omp_in_final): New prototype.
2663 * omp_lib.f90.in (omp_in_final): New interface.
2664 (omp_integer_kind, omp_logical_kind): Remove
2665 and replace all its uses in the module with 4.
2666 (openmp_version): Change to 201107.
2667 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2668 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2669 kind for the parameters.
2670 (omp_in_final): New external.
2671 (openmp_version): Change to 201107.
2672 * task.c (omp_in_final): New function.
2673 (gomp_init_task): Initialize final_task.
2674 (GOMP_task): Remove unused attribute from flags. Handle final
2676 (GOMP_taskyield): New function.
2677 (omp_in_final): Return true if if (false) or final (true) task
2678 or descendant of final (true).
2679 * fortran.c (omp_in_final_): New function.
2680 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2681 (GOMP_3.0): Export GOMP_taskyield.
2682 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2684 (parse_unsigned_long_list): New function.
2685 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2686 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2687 even if parse_affinity returned false.
2688 * config/linux/affinity.c (gomp_init_affinity): Handle
2689 gomp_cpu_affinity_len == 0.
2690 * libgomp_g.h (GOMP_taskyield): New prototype.
2691 * libgomp.h (struct gomp_task): Add final_task field.
2692 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2693 * team.c (gomp_team_start): Override new task's nthreads_var icv
2694 if list form OMP_NUM_THREADS has been used and it has value for
2695 the new nesting level.
2697 * testsuite/libgomp.c/atomic-11.c: New test.
2698 * testsuite/libgomp.c/atomic-12.c: New test.
2699 * testsuite/libgomp.c/atomic-13.c: New test.
2700 * testsuite/libgomp.c/atomic-14.c: New test.
2701 * testsuite/libgomp.c/reduction-6.c: New test.
2702 * testsuite/libgomp.c/task-5.c: New test.
2703 * testsuite/libgomp.c++/atomic-2.C: New test.
2704 * testsuite/libgomp.c++/atomic-3.C: New test.
2705 * testsuite/libgomp.c++/atomic-4.C: New test.
2706 * testsuite/libgomp.c++/atomic-5.C: New test.
2707 * testsuite/libgomp.c++/atomic-6.C: New test.
2708 * testsuite/libgomp.c++/atomic-7.C: New test.
2709 * testsuite/libgomp.c++/atomic-8.C: New test.
2710 * testsuite/libgomp.c++/atomic-9.C: New test.
2711 * testsuite/libgomp.c++/task-8.C: New test.
2712 * testsuite/libgomp.c++/reduction-4.C: New test.
2713 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2714 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2715 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2716 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2717 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2718 * testsuite/libgomp.fortran/pointer1.f90: New test.
2719 * testsuite/libgomp.fortran/pointer2.f90: New test.
2720 * testsuite/libgomp.fortran/task4.f90: New test.
2722 2011-08-02 Tobias Burnus <burnus@net-b.de>
2724 * libgomp.texi: Update OpenMP spec references to 3.1.
2725 (omp_in_final,OMP_PROC_BIND): New sections.
2726 (OMP_NUM_THREADS): Document that the value can be now a list.
2727 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2729 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2731 * config/linux/x86/futex.h: Check __x86_64__ instead of
2734 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2738 * testsuite/libgomp.c/pr49897-1.c: New test.
2739 * testsuite/libgomp.c/pr49897-2.c: New test.
2740 * testsuite/libgomp.c/pr49898-1.c: New test.
2741 * testsuite/libgomp.c/pr49898-2.c: New test.
2743 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2745 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2746 for ia32 instead of ilp32.
2748 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2749 * testsuite/libgomp.c/atomic-6.c: Likewise.
2751 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2753 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2754 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2756 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2759 * config/osf/sem.h: New file.
2760 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2762 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2765 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2768 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2770 * config/linux/wait.h (do_spin): New inline, largely copied
2771 from do_wait, just don't do futex_wait here, instead return true if
2773 (do_wait): Implement using do_spin.
2774 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2776 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2777 __sync_bool_compare_and_swap, pass the oldval to
2778 gomp_mutex_lock_slow.
2779 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2780 If all mutex contenders are just spinning and not sleeping, don't
2781 change state to 2 unnecessarily. Optimize the loop when state has
2782 already become 2 to use just one atomic operation per loop instead
2784 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2786 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2787 __sync_bool_compare_and_swap, pass the oldval to
2788 gomp_mutex_lock_slow.
2790 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2793 * iter.c (gomp_iter_static_next): For chunk size 0
2794 only use n ceil/ nthreads size for the first
2795 n % nthreads threads in the team instead of
2796 all threads except for the last few ones which
2797 get less work or none at all.
2798 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2799 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2800 chunk argument, set run_sched_modifier to 0 for static
2801 resp. 1 for other kinds. If chunk argument is 0
2802 and not static, set value to 1.
2804 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2807 * testsuite/libgomp.c++/pr49043.C: New test.
2810 * testsuite/libgomp.c++/pr48869.C: New test.
2812 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2815 * fortran.c: Include limits.h.
2817 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2819 (omp_set_num_threads_8_, omp_set_schedule_8_,
2820 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2821 omp_get_team_size_8_): Use TO_INT macro.
2822 * testsuite/libgomp.fortran/pr48894.f90: New test.
2824 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2827 * testsuite/libgomp.c/pr48591.c: New test.
2829 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2832 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2833 * configure: Regenerate.
2835 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2838 * testsuite/libgomp.fortran/task3.f90: New test.
2840 2011-02-24 Tobias Burnus <burnus@net-b.de>
2842 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2844 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2847 * libgomp.texi (omp_get_wtime): Don't say time in the past
2850 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2853 * testsuite/libgomp.fortran/fortran.exp: Check for both
2854 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2855 but $blddir != "", still append ${blddir}/${lang_library_path}
2858 2011-02-16 Tobias Burnus <burnus@net-b.de>
2861 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2862 of libquadmath.a before adding its libpath to ldflags.
2864 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2867 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2868 to FUTEX_WAIT futex syscall.
2869 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2871 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2873 * configure: Regenerate.
2875 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2878 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2880 2011-01-16 Gerald Pfeifer
2882 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2884 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2887 * libgomp.fortran/allocatable6.f90: New test.
2889 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2891 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2892 * configure: Regenerate.
2894 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2898 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2899 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2900 * aclocal.m4: Regenerate.
2901 * configure: Regenerate.
2902 * Makefile.in: Regenerate.
2903 * testsuite/Makefile.in: Regenerate.
2905 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2908 * libgomp.fortran/pr46753.f90: New test.
2911 * env.c (initialize_env): Default to spin count 300000
2912 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2916 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2917 at the end if sync builtins aren't supported.
2919 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2921 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2923 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2925 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2927 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2929 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2931 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2932 Tobias Burnus <burnus@net-b.de>
2936 * configure: Regenerate.
2938 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2940 * config/linux/futex.h: New.
2941 * config/linux/arm/mutex.h: New.
2942 * configure.tgt (arm*-*-linux*): Add config path.
2944 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2946 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2948 2010-09-23 Tobias Burnus <burnus@net-b.de>
2950 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2951 Change Fortran datatype to LOGICAL.
2952 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2953 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2955 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2957 * configure: Regenerate.
2959 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2961 * libgomp.texi: Add function keyword to a couple of Fortran
2962 interfaces, use integer instead of int for Fortran.
2964 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2966 * libgomp.texi: Fix spelling and pasto problems throughout.
2967 Adjust prototypes to match code.
2969 2010-07-24 Tobias Burnus <burnus@net-b.de>
2971 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2972 silence -fwhole-file warning.
2974 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2976 * configure.tgt (*-*-solaris2.[56]*): Removed.
2978 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2980 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2981 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2982 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2983 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2984 targetting solaris2*.
2985 * configure: Regenerate.
2986 * config.h.in: Regenerate.
2988 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2989 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2990 Add libgomp_version_dep.
2991 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2993 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2994 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2995 * Makefile.in: Regenerate.
2997 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2998 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2999 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
3000 to common block, protected by
3001 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3003 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3005 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
3007 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
3010 * configure: Regenerate.
3012 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3015 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3016 * configure: Regenerate.
3017 * Makefile.in: Regenerate.
3018 * testsuite/Makefile.in: Regenerate.
3020 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3023 * testsuite/libgomp.c/pr43893.c: New test.
3024 * testsuite/libgomp.c++/pr43893.C: New test.
3026 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3029 * testsuite/libgomp.fortran/vla8.f90: New test.
3031 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3034 * config/linux/affinity.c (gomp_init_affinity): Decrease
3035 gomp_available_cpus if affinity mask confines the process to fewer
3037 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3038 non-NULL, just return gomp_available_cpus.
3041 * sections.c (gomp_sections_init): Initialize ws->mode.
3043 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3045 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3046 not unused bar variable.
3047 * configure: Regenerate.
3049 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3051 * Makefile.in: Regenerate.
3052 * aclocal.m4: Regenerate.
3053 * testsuite/Makefile.in: Regenerate.
3055 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3058 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3059 (initialize_env): Adjust callers.
3060 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3061 when the argument is 0.
3063 * testsuite/libgomp.c/pr42942.c: New test.
3065 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3069 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3070 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3072 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3074 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3075 * testsuite/libgomp.c++/task-6.C: Likewise.
3077 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3079 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3081 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3083 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3084 * configure: Regenerate.
3086 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3089 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3091 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3093 * configure.ac: Test for executability of GFORTRAN.
3094 * configure: Regenerate.
3096 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3098 * configure: Regenerate.
3100 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3103 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3105 2010-01-03 Richard Guenther <rguenther@suse.de>
3107 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3109 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3111 * testsuite/libgomp.graphite/pr4118.c: New.
3113 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3115 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3116 for darwin, protect the test with require-effective-target tls_runtime.
3117 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3119 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3122 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3123 link spec %s substitutions for static libraries.
3125 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
3128 * libgomp.graphite/force-parallel-2.c: Reduce array size.
3130 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3132 * Makefile.in: Regenerate.
3133 * configure: Regenerate.
3134 * testsuite/Makefile.in: Regenerate.
3136 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
3138 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
3139 settings for LC_ALL and LANG.
3141 2009-11-25 Jakub Jelinek <jakub@redhat.com>
3144 * testsuite/libgomp.fortran/pr42162.f90: New test.
3146 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3149 * testsuite/libgomp.c/pr42029.c: New test.
3151 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3153 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
3154 *s. Accept ld version without text in ()s.
3155 * configure: Regenerated.
3157 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3159 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
3161 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3164 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
3165 or a hyphen (happens with fortran language disabled).
3166 * configure: Regenerate.
3168 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3170 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
3171 use sed script portable to Solaris /bin/sed for extracting ld
3173 * configure: Regenerate.
3175 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3177 * testsuite/libgomp.graphite/bounds.c: New test.
3179 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3181 * Makefile.am (libgomp_la_LINK): New.
3182 * Makefile.in: Regenerate.
3184 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3186 * configure.ac (AC_PREREQ): Bump to 2.64.
3188 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3190 * Makefile.am (install-html, install-pdf): Remove.
3191 * Makefile.in: Regenerate.
3193 * Makefile.in: Regenerate.
3194 * aclocal.m4: Regenerate.
3195 * config.h.in: Regenerate.
3196 * configure: Regenerate.
3197 * testsuite/Makefile.in: Regenerate.
3199 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3201 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
3202 * Makefile.in: Regenerate.
3204 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
3206 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
3207 * Makefile.in: Regenerate.
3209 2009-08-19 Tobias Burnus <burnus@net-b.de>
3212 omp_lib.h.in: Fix -std=f95 errors.
3215 2009-08-14 David Edelsohn <edelsohn@gnu.org>
3217 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
3218 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
3219 * testsuite/libgomp.graphite/graphite.exp: New.
3221 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3223 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3226 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3228 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
3229 needed memory barrier semantics.
3230 * config/linux/mips/mutex.h: New file.
3232 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3234 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
3236 2009-07-16 Joseph Myers <joseph@codesourcery.com>
3238 * configure: Regenerate.
3240 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
3245 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
3246 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
3247 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
3249 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3251 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
3252 options when choosing a multilib.
3254 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3256 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
3257 ld_library_path. Use add_path. Add just find_libgcc_s to
3258 ld_library_path, not every libgcc multilib directory.
3259 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
3260 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
3261 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
3263 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
3265 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
3267 * Makefile.am (LTLDFLAGS): Define.
3269 * Makefile.in: Regenerate.
3271 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
3274 * testsuite/libgomp.fortran/fortran.exp: Don't link with
3275 libgfortranbegin, check existence of libgfortran.a instead of
3278 2009-05-20 Jakub Jelinek <jakub@redhat.com>
3281 * team.c (gomp_thread_start): Destroy thr->release semaphore.
3282 (gomp_free_pool_helper): Likewise.
3284 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
3285 Jakub Jelinek <jakub@redhat.com>
3288 * testsuite/libgomp.fortran/workshare2.f90: New test.
3290 2009-04-09 Nick Clifton <nickc@redhat.com>
3292 * iter.c: Change copyright header to refer to version 3 of the
3293 GNU General Public License with version 3.1 of the GCC Runtime
3294 Library Exception and to point readers at the COPYING3 and
3295 COPYING3.RUNTIME files and the FSF's license web page.
3296 * alloc.c: Likewise.
3297 * barrier.c: Likewise.
3298 * config/bsd/proc.c: Likewise.
3299 * config/linux/affinity.c: Likewise.
3300 * config/linux/alpha/futex.h: Likewise.
3301 * config/linux/bar.c: Likewise.
3302 * config/linux/bar.h: Likewise.
3303 * config/linux/ia64/futex.h: Likewise.
3304 * config/linux/ia64/mutex.h: Likewise.
3305 * config/linux/lock.c: Likewise.
3306 * config/linux/mips/futex.h: Likewise.
3307 * config/linux/mutex.c: Likewise.
3308 * config/linux/mutex.h: Likewise.
3309 * config/linux/powerpc/futex.h: Likewise.
3310 * config/linux/proc.c: Likewise.
3311 * config/linux/ptrlock.c: Likewise.
3312 * config/linux/ptrlock.h: Likewise.
3313 * config/linux/s390/futex.h: Likewise.
3314 * config/linux/sem.c: Likewise.
3315 * config/linux/sem.h: Likewise.
3316 * config/linux/sparc/futex.h: Likewise.
3317 * config/linux/wait.h: Likewise.
3318 * config/linux/x86/futex.h: Likewise.
3319 * config/mingw32/proc.c: Likewise.
3320 * config/mingw32/time.c: Likewise.
3321 * config/posix/affinity.c: Likewise.
3322 * config/posix/bar.c: Likewise.
3323 * config/posix/bar.h: Likewise.
3324 * config/posix/lock.c: Likewise.
3325 * config/posix/mutex.h: Likewise.
3326 * config/posix/proc.c: Likewise.
3327 * config/posix/ptrlock.h: Likewise.
3328 * config/posix/sem.c: Likewise.
3329 * config/posix/sem.h: Likewise.
3330 * config/posix/time.c: Likewise.
3331 * config/posix95/lock.c: Likewise.
3332 * critical.c: Likewise.
3334 * error.c: Likewise.
3335 * fortran.c: Likewise.
3336 * iter_ull.c: Likewise.
3337 * libgomp.h: Likewise.
3338 * libgomp_f.h.in: Likewise.
3339 * libgomp_g.h: Likewise.
3341 * loop_ull.c: Likewise.
3342 * omp.h.in: Likewise.
3343 * omp_lib.f90.in: Likewise.
3344 * omp_lib.h.in: Likewise.
3345 * ordered.c: Likewise.
3346 * parallel.c: Likewise.
3347 * sections.c: Likewise.
3348 * single.c: Likewise.
3353 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3355 * testsuite/config/default.exp: Change copyright header to refer to
3356 version 3 of the GNU General Public License and to point readers
3357 at the COPYING3 file and the FSF's license web page.
3359 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3362 * libgomp.c++/pr39573.C: New test.
3364 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3367 * testsuite/libgomp.c/pr39591-1.c: New test.
3368 * testsuite/libgomp.c/pr39591-2.c: New test.
3369 * testsuite/libgomp.c/pr39591-3.c: New test.
3371 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3373 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3374 * testsuite/libgomp.c/atomic-6.c: Ditto.
3376 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3379 * testsuite/libgomp.c/loop-12.c: New test.
3380 * testsuite/libgomp.c/loop-11.c: New test.
3381 * testsuite/libgomp.c++/loop-11.C: New test.
3382 * testsuite/libgomp.c++/loop-12.C: New test.
3383 * testsuite/libgomp.c++/for-8.C: New test.
3385 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3387 * configure: Regenerate.
3389 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3392 * testsuite/libgomp.c/pr39154.c: New test.
3394 2009-01-30 Ian Lance Taylor <iant@google.com>
3396 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3397 libgomp_ld_is_gold. Get gold version number.
3398 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3399 * configure: Rebuild.
3401 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3403 * testsuite/lib/libgomp.exp: Add -B option for targets that
3404 use libgfortran.a%s in their specs.
3406 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3409 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3410 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3411 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3412 * configure: Regenerated.
3413 * config.h.in: Likewise.
3415 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3418 * testsuite/libgomp.c/pr38650.c: New test.
3419 * testsuite/libgomp.c++/pr38650.C: New test.
3421 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3423 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3425 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3427 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3429 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3431 * configure: Regenerate.
3433 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3436 * testsuite/libgomp.c/pr36802-1.c: New test.
3437 * testsuite/libgomp.c/pr36802-2.c: New test.
3438 * testsuite/libgomp.c/pr36802-3.c: New test.
3440 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3443 * config/linux/powerpc/mutex.h: New.
3445 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3448 * testsuite/libgomp.c++/for-7.C: New test.
3451 * testsuite/libgomp.c++/for-6.C: New test.
3453 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3456 * testsuite/lib/libgomp.exp: Include new timeout library files.
3457 (libgomp_target_compile): Set timeout value from new proc.
3459 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3462 * config/linux/ia64/mutex.h: New.
3464 2008-11-04 Tobias Burnus <burnus@net-b.de>
3467 * libgomp.texi (Runtime library routines, environment variables):
3468 Update for OpenMP version 3.0.
3470 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3471 Steve Ellcey <sje@cup.hp.com>
3473 * configure: Regenerate for new libtool.
3474 * Makefile.in: Ditto.
3475 * testsuite/Makefile.in: Ditto.
3477 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3478 Andreas Tobler <a.tobler@schweiz.org>
3480 * config/bsd/proc.c: New file.
3481 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3482 * configure.ac: Check for header <sys/sysctl.h>
3483 * configure: Regenerate.
3484 * config.h.in: Likewise.
3486 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3488 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3490 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3492 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3493 * Makefile.in: Regenerated.
3494 * testsuite/Makefile.in: Regenerated.
3496 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3498 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3499 depend on blddir if blddir exists.
3500 (libgomp_target_compile): Likewise.
3501 * testsuite/libgomp.c++/c++.exp: Likewise.
3502 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3504 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3506 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3507 Do not list GPL as Invariant Section.
3509 2008-07-28 Ilie Garbacea <ilie@mips.com>
3510 Chao-ying Fu <fu@mips.com>
3512 * configure.tgt: Enable futex for MIPS.
3513 * config/linux/mips/futex.h: New file.
3515 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3517 * team.c (gomp_team_end): Free team immediately if it has
3520 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3522 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3523 * testsuite/libgomp.fortran/fortran.exp: Same.
3524 * testsuite/libgomp.c/c.exp: Same.
3525 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3526 directory to library path first.
3528 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3530 * env.c (parse_stacksize): Add cast to avoid warning.
3531 (parse_spincount): Likewise.
3533 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3535 * testsuite/libgomp.c/loop-10.c: New test.
3536 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3537 * libgomp.c++/loop-6.C (main): Likewise.
3540 * testsuite/libgomp.c/debug-1.c: New test.
3542 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3544 * testsuite/libgomp.c/nqueens-1.c: New test.
3547 * testsuite/libgomp.c++/task-7.C: New function.
3549 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3551 * configure: Regenerate.
3553 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3555 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3556 mutex when HAVE_SYNC_BUILTINS isn't defined.
3558 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3560 * libgomp.texi (omp_test_lock): Fix typo.
3562 2008-06-12 Tobias Burnus <burnus@net-b.de>
3564 * omp_lib.f90.in: Add "implicit none".
3566 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3569 * testsuite/libgomp.c/reduction-5.c: New test.
3571 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3573 * libgomp.h (struct gomp_task): Add in_tied_task field.
3574 * task.c (gomp_init_task): Initialize it.
3575 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3576 unconditionally. Don't call gomp_team_barrier_wake if
3577 current task is implicit or if(0) from implicit and number of
3578 running tasks is equal to nthreads - 1.
3581 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3582 omp_get_team_size_8): Fix pastos.
3585 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3586 * configure: Regenerated.
3587 * config.h.in: Regenerated.
3588 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3591 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3594 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3595 (GOMP_loop_ull_dynamic_start): Likewise.
3596 (GOMP_loop_ull_guided_start): Likewise.
3597 (GOMP_loop_ull_ordered_static_start): Likewise.
3598 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3599 (GOMP_loop_ull_ordered_guided_start): Likewise.
3601 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3602 Richard Henderson <rth@redhat.com>
3603 Ulrich Drepper <drepper@redhat.com>
3604 Jakob Blomer <jakob.blomer@ira.uka.de>
3606 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3607 Substitute also OMP_*LOCK_25*.
3608 * configure: Regenerated.
3609 * config.h.in: Regenerated.
3610 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3611 ptrlock.c and task.c.
3612 * Makefile.in: Regenerated.
3613 * testsuite/Makefile.in: Regenerated.
3615 * loop_ull.c: New file.
3616 * iter_ull.c: New file.
3617 * libgomp.h: Include ptrlock.h.
3618 (enum gomp_task_kind): New type.
3619 (struct gomp_team): Add task_lock, task_queue, task_count,
3620 task_running_count, single_count fields. Add
3621 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3622 Remove work_share_lock, generation_mask,
3623 oldest_live_gen, num_live_gen and init_work_shares fields, add
3624 work work_share_list_alloc, work_share_list_free and work_share_chunk
3625 fields. Change work_shares from pointer to pointers into an array.
3626 Change ordered_release field into gomp_sem_t ** from flexible array
3627 member. Add implicit_task and initial_work_shares fields.
3628 Move close to the end of the struct.
3629 (struct gomp_team_state): Add single_count, last_work_share,
3630 active_level and level fields, remove work_share_generation.
3631 (gomp_barrier_handle_tasks): New prototype.
3632 (gomp_finish_task): New inline function.
3633 (struct gomp_work_share): Move chunk_size, end, incr into
3634 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3635 next_ll fields. Reshuffle fields. Add next_alloc,
3636 next_ws, next_free and inline_ordered_team_ids fields, change
3637 ordered_team_ids into pointer from flexible array member.
3638 Add mode field. Put lock and next into a different cache line
3639 from most of the write-once fields.
3640 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3641 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3642 gomp_iter_ull_guided_next): New prototypes.
3643 (gomp_new_icv): New prototype.
3644 (struct gomp_thread): Add thread_pool and task fields.
3645 (struct gomp_thread_pool): New type.
3646 (gomp_new_team): New prototype.
3647 (gomp_team_start): Change type of last argument.
3648 (gomp_new_work_share): Removed.
3649 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3650 (gomp_work_share_init_done): New static inline.
3651 (gomp_throttled_spin_count_var, gomp_available_cpus,
3652 gomp_managed_threads): New extern decls.
3653 (gomp_init_task): New prototype.
3654 (gomp_spin_count_var): New extern var decl.
3655 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3656 or no alias support, or if not PIC.
3657 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3658 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3659 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3660 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3661 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3662 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3663 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3664 gomp_test_nest_lock_25): New prototypes.
3665 (omp_lock_symver, strong_alias): Define.
3666 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3668 (gomp_end_task): New.
3669 (struct gomp_task_icv, gomp_global_icv): New.
3670 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3671 (struct gomp_task): New.
3672 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3673 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3675 (gomp_schedule_type): Reorder enum to match
3677 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3679 (gomp_thread_start): Add gomp_team_barrier_wait call.
3680 For non-nested case remove clearing of docked thread thr fields.
3681 Use pool fields instead of global gomp_* variables. Use
3682 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3683 Create tasks for each member thread.
3684 (free_team): Only destroy team barrier, task_lock here and free it.
3685 (gomp_free_thread): Free last_team if non-NULL.
3686 (gomp_team_end): Call gomp_team_barrier_wait instead of
3687 gomp_barrier_wait. For nested case call one extra
3688 gomp_barrier_wait. Move here some destruction from free_team.
3689 Call free_team on pool->last_team if any, rather than freeing
3690 current team. Destroy work_share_list_free_lock ifndef
3692 (gomp_new_icv): New function.
3693 (gomp_threads, gomp_threads_size, gomp_threads_used,
3694 gomp_threads_dock): Removed.
3695 (gomp_thread_destructor): New variable.
3696 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3698 (gomp_team_start): Create new pool if current thread doesn't have
3699 one. Use pool fields instead of global gomp_* variables.
3700 Initialize thread_pool field for new threads. Clear single_count.
3701 Change last argument from ws to team, don't create
3702 new team, set ts.work_share to &team->work_shares[0] and clear
3703 ts.last_work_share. Don't clear ts.work_share_generation.
3704 If number of threads changed, adjust atomically gomp_managed_threads.
3705 Use gomp_init_task instead of gomp_new_task,
3706 set thr->task to the corresponding implicit_task array entry.
3707 Create tasks for each member thread. Initialize ts.level.
3708 (initialize_team): Call pthread_key_create on
3709 gomp_thread_destructor.
3710 (team_destructor): New function.
3711 (new_team): Removed.
3712 (gomp_new_team): New function.
3713 (free_team): Free gomp_work_share blocks chained through next_alloc,
3714 instead of freeing work_shares and destroying work_share_lock.
3715 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3716 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3717 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3718 of gomp_barrier_wait.
3719 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3720 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3721 if gomp_work_share_start returned true. Don't unlock ws->lock.
3722 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3723 of gomp_barrier_wait.
3724 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3725 gomp_work_share_init_done if gomp_work_share_start returned true.
3726 Don't unlock ws->lock.
3727 * work.c: Include stddef.h.
3728 (free_work_share): Use work_share_list_free_lock instead
3729 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3730 Call gomp_fini_work_share and then either free ws if orphaned, or
3731 put it into work_share_list_free list of the current team.
3732 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3734 (gomp_work_share_start, gomp_work_share_end,
3735 gomp_work_share_end_nowait): Rewritten.
3736 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3737 (openmp_version): Set to 200805.
3738 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3739 omp_sched_guided, omp_sched_auto): New parameters.
3740 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3741 omp_set_max_active_levels, omp_get_max_active_levels,
3742 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3743 omp_get_active_level): New interfaces.
3744 * omp_lib.h.in (openmp_version): Set to 200805.
3745 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3746 omp_sched_guided, omp_sched_auto): New parameters.
3747 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3748 omp_set_max_active_levels, omp_get_max_active_levels,
3749 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3750 omp_get_active_level): New externals.
3751 * loop.c: Include limits.h.
3752 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3754 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3755 Likewise. Use gomp_icv.
3756 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3757 ts.static_trip here.
3758 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3759 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3760 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3761 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3762 don't unlock ws->lock, otherwise lock it.
3763 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3764 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3765 (gomp_parallel_loop_start): Call gomp_new_team instead of
3766 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3767 Adjust gomp_team_start caller. Pass 0 as second argument to
3768 gomp_resolve_num_threads.
3769 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3770 If adding ws->chunk_size nthreads + 1 times after end won't
3771 overflow, set ws->mode to 1.
3772 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3773 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3774 GOMP_loop_ull_ordered_static_start,
3775 GOMP_loop_ull_ordered_dynamic_start,
3776 GOMP_loop_ull_ordered_guided_start,
3777 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3778 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3779 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3780 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3781 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3783 * libgomp.map: Export lock routines also @@OMP_2.0.
3784 (GOMP_loop_ordered_dynamic_first,
3785 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3786 GOMP_loop_ordered_static_first): Remove.
3787 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3788 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3789 GOMP_loop_ull_ordered_dynamic_next,
3790 GOMP_loop_ull_ordered_dynamic_start,
3791 GOMP_loop_ull_ordered_guided_next,
3792 GOMP_loop_ull_ordered_guided_start,
3793 GOMP_loop_ull_ordered_runtime_next,
3794 GOMP_loop_ull_ordered_runtime_start,
3795 GOMP_loop_ull_ordered_static_next,
3796 GOMP_loop_ull_ordered_static_start,
3797 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3798 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3799 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3800 (omp_set_schedule, omp_get_schedule,
3801 omp_get_thread_limit, omp_set_max_active_levels,
3802 omp_get_max_active_levels, omp_get_level,
3803 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3804 omp_set_schedule_, omp_set_schedule_8_,
3805 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3806 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3807 omp_get_max_active_levels_, omp_get_level_,
3808 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3809 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3810 New exports @@OMP_3.0.
3811 * omp.h.in (omp_sched_t): New type.
3812 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3813 omp_set_max_active_levels, omp_get_max_active_levels,
3814 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3815 omp_get_active_level): New prototypes.
3816 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3817 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3818 gomp_thread_limit_var, gomp_remaining_threads_count,
3819 gomp_remaining_threads_lock): New variables.
3820 (parse_spincount): New function.
3821 (initialize_env): Call gomp_init_num_threads unconditionally.
3822 Initialize gomp_available_cpus. Call parse_spincount,
3823 initialize gomp_{,throttled_}spin_count_var
3824 depending on presence and value of OMP_WAIT_POLICY and
3825 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3826 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3827 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3828 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3829 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3830 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3831 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3832 (gomp_global_icv): New.
3833 (parse_schedule): Use it. Parse "auto".
3834 (omp_set_num_threads): Use gomp_icv.
3835 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3837 (omp_get_max_threads): Move from parallel.c.
3838 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3839 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3841 (parse_stacksize, parse_wait_policy): New functions.
3842 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3843 both wrappers for compatibility and new locks.
3844 (omp_set_schedule, omp_get_schedule,
3845 omp_get_thread_limit, omp_set_max_active_levels,
3846 omp_get_max_active_levels, omp_get_level,
3847 omp_get_ancestor_thread_num, omp_get_team_size,
3848 omp_get_active_level): New ialias_redirect.
3849 (omp_set_schedule_, omp_set_schedule_8_,
3850 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3851 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3852 omp_get_max_active_levels_, omp_get_level_,
3853 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3854 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3856 * parallel.c: Include limits.h.
3857 (gomp_resolve_num_threads): Add count argument. Rewritten.
3858 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3859 argument to gomp_team_start. Pass 0 as second argument to
3860 gomp_resolve_num_threads.
3861 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3862 if gomp_thread_limit_var != ULONG_MAX.
3863 (omp_in_parallel): Implement using ts.active_level.
3864 (omp_get_max_threads): Move to env.c.
3865 (omp_get_level, omp_get_ancestor_thread_num,
3866 omp_get_team_size, omp_get_active_level): New functions,
3868 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3869 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3870 gomp_iter_dynamic_next instead of the _locked variant and don't take
3871 lock around it, otherwise acquire it before calling
3872 gomp_iter_dynamic_next_locked.
3873 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3874 gomp_iter_dynamic_next instead of the _locked variant and don't take
3876 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3877 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3878 Adjust gomp_team_start caller. Pass count as second argument to
3879 gomp_resolve_num_threads, don't adjust num_threads after the call.
3881 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3882 ws->chunk_size by incr.
3883 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3885 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3887 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3888 (omp_check_defines): Check even the compat defines.
3889 * config/linux/ptrlock.c: New file.
3890 * config/linux/ptrlock.h: New file.
3891 * config/linux/wait.h: New file.
3892 * config/posix/ptrlock.c: New file.
3893 * config/posix/ptrlock.h: New file.
3894 * config/linux/bar.h (gomp_team_barrier_wait,
3895 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3896 (gomp_team_barrier_set_task_pending,
3897 gomp_team_barrier_clear_task_pending,
3898 gomp_team_barrier_set_waiting_for_tasks,
3899 gomp_team_barrier_waiting_for_tasks,
3900 gomp_team_barrier_done): New inlines.
3901 (gomp_barrier_t): Rewritten.
3902 (gomp_barrier_state_t): New typedef.
3903 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3904 gomp_barrier_wait_start): Rewritten.
3905 (gomp_barrier_wait_end): Change second argument to
3906 gomp_barrier_state_t.
3907 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3909 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3911 (gomp_barrier_wait_end): Rewritten.
3912 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3913 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3914 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3915 (gomp_barrier_state_t): New typedef.
3916 (gomp_team_barrier_wait,
3917 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3918 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3919 into the return value. Return gomp_barrier_state_t.
3920 (gomp_team_barrier_set_task_pending,
3921 gomp_team_barrier_clear_task_pending,
3922 gomp_team_barrier_set_waiting_for_tasks,
3923 gomp_team_barrier_waiting_for_tasks,
3924 gomp_team_barrier_done): New inlines.
3925 (gomp_barrier_wait_end): Change second argument to
3926 gomp_barrier_state_t.
3927 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3929 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3930 (gomp_barrier_wait_end): Change second argument to
3931 gomp_barrier_state_t.
3932 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3933 gomp_team_barrier_wake): New functions.
3934 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3936 (gomp_futex_wake, gomp_futex_wait): New variables.
3937 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3938 * config/linux/lock.c: Rewrite to make locks task owned,
3939 for backwards compatibility provide the old entrypoints
3940 if symbol versioning. Include wait.h instead of libgomp.h and
3942 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3943 * config/posix95/lock.c: Rewrite to make locks task owned,
3944 for backwards compatibility provide the old entrypoints
3945 if symbol versioning.
3946 * config/posix/lock.c: Rewrite to make locks task owned,
3947 for backwards compatibility provide the old entrypoints
3948 if symbol versioning.
3949 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3950 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3951 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3952 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3953 (sys_futex0): Return error code.
3954 (futex_wake, futex_wait): If ENOSYS was returned, clear
3955 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3956 (cpu_relax, atomic_write_barrier): New static inlines.
3957 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3967 (sys_futex0): Return error code.
3968 (futex_wake, futex_wait): If ENOSYS was returned, clear
3969 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3970 (cpu_relax, atomic_write_barrier): New static inlines.
3971 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3972 (sys_futex0): Return error code.
3973 (futex_wake, futex_wait): If ENOSYS was returned, clear
3974 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3975 (cpu_relax, atomic_write_barrier): New static inlines.
3976 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3977 (sys_futex0): Return error code.
3978 (futex_wake, futex_wait): If ENOSYS was returned, clear
3979 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3980 (cpu_relax, atomic_write_barrier): New static inlines.
3981 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3983 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3984 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3985 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3987 (omp_nest_lock_t): Change owner into void *, add lock field.
3988 * config/posix95/omp-lock.h: Include semaphore.h.
3989 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3990 (omp_lock_t): Use sem_t instead of mutex if semaphores
3992 (omp_nest_lock_t): Likewise. Change owner to void *.
3993 * config/posix/omp-lock.h: Include semaphore.h.
3994 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3995 (omp_lock_t): Use sem_t instead of mutex if semaphores
3997 (omp_nest_lock_t): Likewise. Add owner field.
3999 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4001 * testsuite/libgomp.c/collapse-1.c: New test.
4002 * testsuite/libgomp.c/collapse-2.c: New test.
4003 * testsuite/libgomp.c/collapse-3.c: New test.
4004 * testsuite/libgomp.c/icv-1.c: New test.
4005 * testsuite/libgomp.c/icv-2.c: New test.
4006 * testsuite/libgomp.c/lib-2.c: New test.
4007 * testsuite/libgomp.c/lock-1.c: New test.
4008 * testsuite/libgomp.c/lock-2.c: New test.
4009 * testsuite/libgomp.c/lock-3.c: New test.
4010 * testsuite/libgomp.c/loop-4.c: New test.
4011 * testsuite/libgomp.c/loop-5.c: New test.
4012 * testsuite/libgomp.c/loop-6.c: New test.
4013 * testsuite/libgomp.c/loop-7.c: New test.
4014 * testsuite/libgomp.c/loop-8.c: New test.
4015 * testsuite/libgomp.c/loop-9.c: New test.
4016 * testsuite/libgomp.c/nested-3.c: New test.
4017 * testsuite/libgomp.c/nestedfn-6.c: New test.
4018 * testsuite/libgomp.c/sort-1.c: New test.
4019 * testsuite/libgomp.c/task-1.c: New test.
4020 * testsuite/libgomp.c/task-2.c: New test.
4021 * testsuite/libgomp.c/task-3.c: New test.
4022 * testsuite/libgomp.c/task-4.c: New test.
4023 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4024 to C++ testsuite default compiler options.
4025 * testsuite/libgomp.c++/collapse-1.C: New test.
4026 * testsuite/libgomp.c++/collapse-2.C: New test.
4027 * testsuite/libgomp.c++/ctor-10.C: New test.
4028 * testsuite/libgomp.c++/for-1.C: New test.
4029 * testsuite/libgomp.c++/for-2.C: New test.
4030 * testsuite/libgomp.c++/for-3.C: New test.
4031 * testsuite/libgomp.c++/for-4.C: New test.
4032 * testsuite/libgomp.c++/for-5.C: New test.
4033 * testsuite/libgomp.c++/loop-8.C: New test.
4034 * testsuite/libgomp.c++/loop-9.C: New test.
4035 * testsuite/libgomp.c++/loop-10.C: New test.
4036 * testsuite/libgomp.c++/task-1.C: New test.
4037 * testsuite/libgomp.c++/task-2.C: New test.
4038 * testsuite/libgomp.c++/task-3.C: New test.
4039 * testsuite/libgomp.c++/task-4.C: New test.
4040 * testsuite/libgomp.c++/task-5.C: New test.
4041 * testsuite/libgomp.c++/task-6.C: New test.
4042 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4043 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4044 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4045 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4046 * testsuite/libgomp.fortran/collapse1.f90: New test.
4047 * testsuite/libgomp.fortran/collapse2.f90: New test.
4048 * testsuite/libgomp.fortran/collapse3.f90: New test.
4049 * testsuite/libgomp.fortran/collapse4.f90: New test.
4050 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4051 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4052 * testsuite/libgomp.fortran/lib4.f90: New test.
4053 * testsuite/libgomp.fortran/lock-1.f90: New test.
4054 * testsuite/libgomp.fortran/lock-2.f90: New test.
4055 * testsuite/libgomp.fortran/nested1.f90: New test.
4056 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4057 * testsuite/libgomp.fortran/strassen.f90: New test.
4058 * testsuite/libgomp.fortran/tabs1.f90: New test.
4059 * testsuite/libgomp.fortran/tabs2.f: New test.
4060 * testsuite/libgomp.fortran/task1.f90: New test.
4061 * testsuite/libgomp.fortran/task2.f90: New test.
4062 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4063 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4064 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4065 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4066 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4068 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4071 * testsuite/libgomp.c++/ctor-11.C: New test.
4072 * testsuite/libgomp.c++/ctor-12.C: New test.
4074 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4076 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4078 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4081 * testsuite/libgomp.c/atomic-5.c: New test.
4082 * testsuite/libgomp.c/atomic-6.c: New test.
4083 * testsuite/libgomp.c/autopar-1.c: New test.
4085 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4087 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4088 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4089 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4090 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4091 * configure: Regenerate.
4092 * Makefile.in, testsuite/Makefile.in: Likewise.
4094 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4097 * aclocal.m4: Regenerate.
4098 * configure: Regenerate.
4100 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4103 * testsuite/libgomp.c/atomic-4.c: New test.
4106 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4107 (gomp_iter_guided_next): Likewise.
4108 * testsuite/libgomp.c/pr35625.c: New test.
4110 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4112 * aclocal.m4: Regenerate.
4113 * configure: Likewise.
4114 * Makefile.in: Likewise.
4115 * testsuite/Makefile.in: Likewise.
4117 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4120 * testsuite/libgomp.c++/pr35185.C: New test.
4122 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4125 * testsuite/libgomp.c/pr35549.c: New test.
4127 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4129 * testsuite/libgomp.c/atomic-3.c: New test.
4131 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4134 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
4137 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
4140 * configure.ac: Add ACX_HEADER_STRING.
4141 * env.c: Include strings.h.
4142 * aclocal.m4: Regenerate.
4143 * config.h.in: Regenerate.
4144 * configure: Regenerate.
4145 * Makefile.in: Regenerate.
4146 * testsuite/Makefile.in: Regenerate.
4148 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4151 * testsuite/libgomp.c/pr35196.c: New test.
4154 * testsuite/libgomp.fortran/pr35130.f90: New test.
4155 * testsuite/libgomp.c/pr35130.c: New test.
4157 2008-01-25 Jakub Jelinek <jakub@redhat.com>
4160 * testsuite/libgomp.c/pr33880.c: New test.
4161 * testsuite/libgomp.fortran/pr33880.f90: New test.
4163 2008-01-24 David Edelsohn <edelsohn@gnu.org>
4165 * configure: Regenerate.
4167 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4169 * configure.ac: Move futex checking into ../config/futex.m4.
4170 * configure: Rebuilt.
4171 * aclocal.m4: Rebuilt.
4172 * Makefile.in: Rebuilt.
4174 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
4175 2007-10-15 ../config/tls.m4 change.
4177 2007-12-19 Jakub Jelinek <jakub@redhat.com>
4180 * testsuite/libgomp.c/pr34513.c: New test.
4181 * testsuite/libgomp.c++/pr34513.C: New test.
4183 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
4186 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
4188 2007-12-04 Jakub Jelinek <jakub@redhat.com>
4190 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
4192 2007-12-03 Jakub Jelinek <jakub@redhat.com>
4194 * testsuite/libgomp.c/private-1.c: New test.
4196 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
4197 Paolo Bonzini <bonzini@gnu.org>
4199 * Makefile.am: Use space as vpath separator. Use 'vpath %'
4200 instead of 'VPATH ='.
4201 * Makefile.in: Regenerate.
4203 2007-11-23 Matthias Klose <doko@ubuntu.com>
4205 * configure.ac: Adjust makeinfo version check.
4206 * configure: Regenerate.
4208 2007-11-10 Jakub Jelinek <jakub@redhat.com>
4211 * testsuite/libgomp.fortran/pr34020.f90: New test.
4213 2007-11-06 Jakub Jelinek <jakub@redhat.com>
4216 * testsuite/libgomp.c++/atomic-1.C: New test.
4218 2007-10-25 Jakub Jelinek <jakub@redhat.com>
4221 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4222 Make x and y integers rather than (implicit) reals. Add private (j)
4223 clause to the last omp parallel.
4225 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4227 * configure: Regenerate following changes to ../config/tls.m4.
4229 2007-09-28 Jakub Jelinek <jakub@redhat.com>
4231 * testsuite/libgomp.fortran/stack.f90: New test.
4233 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4235 * config/mingw32/proc.c: New file.
4237 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
4239 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
4240 (main): Use __get_cpuid to get i386 target fetaures.
4241 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
4242 (main): Use __get_cpuid to get x86_64 target fetaures.
4244 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
4247 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
4248 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
4250 2007-07-12 Jakub Jelinek <jakub@redhat.com>
4253 * testsuite/libgomp.fortran/pr32550.f90: New test.
4254 * testsuite/libgomp.fortran/crayptr2.f90: New test.
4256 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
4258 * aclocal.m4: Regenerated.
4260 2007-07-05 Tobias Burnus <burnus@net-b.de>
4263 * testsuite/libgomp.fortran/pr32359.f90: New.
4265 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4268 * sections.c (GOMP_parallel_sections_start): Only decrease
4269 number of threads to COUNT if dyn_var is true.
4270 * testsuite/libgomp.c/pr32468.c: New test.
4272 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4275 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
4277 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4280 * testsuite/libgomp.c/pr32362-1.c: New test.
4281 * testsuite/libgomp.c/pr32362-2.c: New test.
4282 * testsuite/libgomp.c/pr32362-3.c: New test.
4284 2007-06-07 Jakub Jelinek <jakub@redhat.com>
4286 * team.c (gomp_team_start): Fix setting up thread_attr
4289 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
4291 * configure: Regenerate.
4293 2007-05-23 Steve Ellcey <sje@cup.hp.com>
4295 * Makefile.in: Regenerate.
4296 * configure: Regenerate.
4297 * aclocal.m4: Regenerate.
4298 * testsuite/Makefile.in: Regenerate.
4300 2007-05-04 Jakub Jelinek <jakub@redhat.com>
4302 * config/linux/proc.c: New file.
4305 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4307 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
4309 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4311 2007-04-16 Matthias Klose <doko@debian.org>
4313 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4314 flags if not building with -m64.
4315 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4316 flag for i?86-*-* targets, if current target matches -m64.
4318 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4320 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4321 * Makefile.in: Regenerate.
4323 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4326 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4328 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4330 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4332 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4334 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4335 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4336 (parse_affinity): New function.
4337 (initialize_env): Call it and gomp_init_affinity.
4338 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4339 create new pthread_attr_t and call gomp_init_thread_affinity
4340 on it for each thread before passing the attribute to pthread_create.
4341 * config/linux/affinity.c: New file.
4342 * config/posix/affinity.c: New file.
4343 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4344 * configure: Rebuilt.
4345 * config.h.in: Rebuilt.
4346 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4347 * Makefile.in: Rebuilt.
4349 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4351 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4353 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4354 and use it if found.
4356 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4358 * testsuite/config/default.exp: New file.
4359 * testsuite/lib/libgomp.exp: New file.
4360 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4361 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4362 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4363 (libgomp_load): Remove.
4364 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4365 always_ld_library_path, not ld_library_path. Set additional_flags
4366 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4367 (target_compile): Do not call libgomp_init. Append lang_library_path
4368 and lang_link_flags to options.
4369 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4370 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4372 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4373 always_ld_library_path. Set LD_LIBRARY_PATH here.
4374 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4375 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4376 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4378 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4379 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4380 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4381 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4382 * testsuite/libgomp.c/atomic-10.c: Ditto.
4384 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4386 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4387 dg-final cleanup-modules line.
4388 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4389 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4390 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4391 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4392 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4393 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4394 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4396 2007-03-18 Andreas Schwab <schwab@suse.de>
4398 * acinclude.m4: Adjust regular expression for ld version
4400 * configure: Regenerate.
4402 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4404 * Makefile.am: Add install-pdf target as copied from
4405 automake v1.10 rules.
4406 * Makefile.in: Regenerate
4408 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4411 * configure: Regenerate.
4414 * testsuite/libgomp.c++/pr30703.C: New test.
4416 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4419 2006-07-05 Eric Christopher <echristo@apple.com>
4420 * configure.ac: Depend addition of -pthread on host OS.
4421 * configure: Regenerate.
4423 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4425 * libgomp.texi: Fix spacing after abbreviations.
4427 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4430 * configure.ac: Add check for makeinfo
4431 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4432 if an appropiate version of makeinfo is found.
4433 * aclocal.m4: Regenerated.
4434 * configure: Regenerated.
4435 * Makefile.in: Regenerated.
4436 * testsuite/Makefile.in: Regenerated.
4438 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4441 * libgomp.texi: More about implementation-dependent settings.
4443 2007-01-26 Tobias Burnus <burnus@net-b.de>
4445 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4447 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4450 * testsuite/libgomp.c/pr30494.c: New test.
4452 2007-01-15 Tom Tromey <tromey@redhat.com>
4454 * configure: Rebuilt.
4455 * configure.ac: Fixed comment.
4457 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4459 * libgomp.texi: Document implementation specific default values of
4460 environment variables.
4462 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4465 * libgomp.texi: New file.
4466 * configure.ac: Add --enable-generated-files-in-srcdir option.
4467 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4469 * Makefile.in: Regenerated.
4470 * config.h.in: Regenerated.
4471 * testsuite/Makefile.in: Regenerated.
4474 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4477 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4479 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4481 * configure: Regenerate.
4483 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4486 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4487 start if there shouldn't be any loop iterations.
4488 (gomp_loop_ordered_static_start): Remove start == end test.
4489 * testsuite/libgomp.c/pr29947-1.c: New test.
4490 * testsuite/libgomp.c/pr29947-2.c: New test.
4492 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4494 * configure.tgt: Force initial-exec TLS model on Linux only.
4496 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4498 * configure: Regenerated.
4500 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4502 * env.c (parse_schedule): Reject out of range values.
4503 (parse_unsigned_long): Reject out of range, negative or zero values.
4505 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4508 * testsuite/libgomp.fortran/pr29629.f90: New test.
4510 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4513 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4514 * config/posix95: New directory.
4515 * config/posix95/omp-lock.h: New file.
4516 * config/posix95/lock.c: Likewise.
4518 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4520 * aclocal.m4: Regenerate.
4521 * configure: Regenerate.
4523 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4525 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4528 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4530 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4532 * configure: Regenerate.
4533 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4535 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4539 * testsuite/libgomp.c/nestedfn-4.c: New test.
4540 * testsuite/libgomp.c/nestedfn-5.c: New test.
4541 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4544 * testsuite/libgomp.fortran/condinc1.f: New test.
4545 * testsuite/libgomp.fortran/condinc2.f: New test.
4546 * testsuite/libgomp.fortran/condinc3.f90: New test.
4547 * testsuite/libgomp.fortran/condinc4.f90: New test.
4548 * testsuite/libgomp.fortran/condinc1.inc: New file.
4550 2006-09-18 Tom Tromey <tromey@redhat.com>
4552 * configure: Rebuilt.
4554 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4557 PR preprocessor/14634
4558 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4560 * configure: Regenerate.
4562 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4564 * testsuite/libgomp.fortran/reduction3.f90: Change
4565 -2147483648 to -huge(i)-1 to avoid overflow.
4566 * testsuite/libgomp.fortran/reduction4.f90: Change
4567 Z'ffffffff' to not(0) to avoid overflow.
4569 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4572 * Makefile.am (libsubincludedir): New.
4573 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4574 * Makefile.in: Regenerate.
4576 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4579 * env.c: Include ctype.h.
4580 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4581 leading and/or trailing whitespace and compare strings case
4584 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4587 * testsuite/libgomp.fortran/pr28390.f: New test.
4589 2006-07-05 Eric Christopher <echristo@apple.com>
4591 * configure.ac: Depend addition of -pthread on host OS.
4592 * configure: Regenerate.
4594 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4596 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4597 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4600 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4604 * configure.ac: If neither --enable-linux-futex nor
4605 --disable-linux-futex is passed, determine the default by checking
4606 for compiling and/or running against NPTL. With --enable-linux-futex,
4607 check if SYS_gettid and SYS_futex are defined.
4608 * configure: Rebuilt.
4610 2006-06-14 Richard Henderson <rth@redhat.com>
4613 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4614 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4616 2006-06-09 Richard Henderson <rth@redhat.com>
4618 * env.c (gomp_nthreads_var): Change to unsigned long.
4619 (gomp_run_sched_chunk): Likewise.
4620 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4621 (initialize_env): Initialize gomp_thread_attr.
4622 * libgomp.h (gomp_nthreads_var): Update decl.
4623 (gomp_run_sched_chunk): Likewise.
4624 (gomp_thread_attr): Declare.
4625 * team.c (gomp_thread_attr): Export.
4626 (initialize_team): Don't initialize it.
4628 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4631 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4632 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4634 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4636 * config/mingw32/time.c: New file.
4637 * configure.tgt: Use it.
4639 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4641 * Makefile.am: Add install-html target. Add install-html to .PHONY
4642 * Makefile.in: Regenerate.
4644 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4647 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4648 * testsuite/libgomp.c/critical-1.c: Likewise.
4649 * testsuite/libgomp.c/loop-1.c: Likewise.
4650 * testsuite/libgomp.c/loop-2.c: Likewise.
4651 * testsuite/libgomp.c/single-1.c: Likewise.
4652 * testsuite/libgomp.c/ordered-1.c: Likewise.
4653 * testsuite/libgomp.c/ordered-2.c: Likewise.
4655 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4658 * libgomp.fortran/pr27416-1.f90: New test.
4660 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4663 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4664 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4666 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4669 * testsuite/libgomp.c/pr26943-1.c: New test.
4670 * testsuite/libgomp.c/pr26943-2.c: New test.
4671 * testsuite/libgomp.c/pr26943-3.c: New test.
4672 * testsuite/libgomp.c/pr26943-4.c: New test.
4673 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4674 * testsuite/libgomp.c++/pr26943.C: New test.
4676 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4679 * testsuite/libgomp.c++/pr27337.C: New test.
4681 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4684 * testsuite/libgomp.c/pr26171.c: New test.
4686 2006-04-25 Richard Henderson <rth@redhat.com>
4689 * configure.ac: Use GCC_CHECK_TLS.
4690 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4691 * Makefile.in, aclocal.m4, configure: Regenerate.
4693 2006-04-10 Matthias Klose <doko@debian.org>
4695 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4696 directory names containing underscores.
4698 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4701 * testsuite/libgomp.c++/pr26691.C: New test.
4703 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4705 * testsuite/libgomp.fortran/retval2.f90: New test.
4707 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4709 * testsuite/libgomp.c++: New directory.
4711 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4713 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4714 * config/posix/sem.c: Implement the above.
4716 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4718 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4719 define HAVE_BROKEN_POSIX_SEMAPHORES.
4720 * configure: Rebuilt.
4721 * config.h.in: Rebuilt.
4723 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4726 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4727 for the other pthread check.
4728 * configure: Regenerate.
4729 * config.h.in: Regenerate.
4731 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4735 * Makefile.am (fincludedir): New variable.
4736 (nodist_include_HEADERS): Remove Fortran files.
4737 (nodist_finclude_HEADERS): New variable.
4738 * Makefile.in: Regenerated.
4740 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4742 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4743 Remove tests for returning assumed character length arrays.
4745 2006-02-12 Roger Sayle <roger@eyesopen.com>
4746 John David Anglin <dave@hiauly1.hia.nrc.ca>
4749 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4751 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4753 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4755 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4757 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4758 part of LD_LIBRARY_PATH manually.
4760 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4763 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4766 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4769 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4770 * configure.ac (PERL): Don't set.
4771 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4772 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4773 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4774 * omp.h.in: Wrap the new configure substitutions with @ characters.
4775 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4776 * aclocal.m4, configure, Makefile.in: Regenerate.
4777 * mkomp_h.pl: Delete.
4779 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4782 * configure.ac: Use GCC_HEADER_STDINT.
4783 * libgomp.h: Include gstdint.h.
4784 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4785 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4787 2006-01-24 Richard Henderson <rth@redhat.com>
4790 * configure.ac: Add AM_MAINTAINER_MODE.
4791 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4793 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4795 * Makefile.in: Regenerate.
4796 * testsuite/Makefile.in: Regenerate.
4797 * aclocal.m4: Regenerate.
4799 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4801 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4803 * configure.ac: Add check for loadavg.h.
4804 (link_gomp): Adjust comment.
4805 * configure: Regenerate.
4806 * config.h.in: Regenerate.
4808 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4811 * configure.ac: Remove check for alloca.h.
4812 * configure: Regenerate.
4813 * config.h.in: Regenerate.
4814 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4815 * team.c: Remove use of alloca.h.
4816 Call gomp_alloca instead of alloca.
4818 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4821 * team.c: Add include of alloca.h.
4822 * configure.ac: Add check for alloca.h.
4823 * configure: Regenerate.
4824 * config.h.in: Regenerate.
4826 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4829 * testsuite/libgomp.fortran/pr25219.f90: New test.
4831 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4833 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4834 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4835 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4836 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4837 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4838 testsuite/libgomp.fortran/threadprivate1.f90,
4839 testsuite/libgomp.fortran/threadprivate2.f90,
4840 testsuite/libgomp.fortran/threadprivate3.f90,
4841 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4842 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4843 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4844 effective-target to TLS runtime.
4846 * testsuite/libgomp.fortran/pr25162.f: Require
4847 effective-target TLS runtime.
4849 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4851 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4852 * testsuite/libgomp.c/nestedfn-3.c: New test.
4854 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4857 * testsuite/libgomp.fortran/pr25162.f: New test.
4859 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4861 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4862 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4864 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4866 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4867 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4868 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4869 single.c, team.c, work.c, config/linux/alpha/futex.h,
4870 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4871 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4872 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4873 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4874 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4875 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4876 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4879 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4881 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4882 to nodist_noinst_HEADERS.
4883 * Makefile.in: Rebuilt.
4885 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4886 add integer count field.
4887 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4888 omp_nest_lock_t type change.
4889 (omp_init_nest_lock): Likewise. Initialize count to 0.
4890 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4892 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4894 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4895 Increment count if successful and return the new nesting level.
4896 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4897 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4898 * testsuite/libgomp.c/lib-1.c: New test.
4899 * testsuite/libgomp.fortran/lib1.f90: New test.
4900 * testsuite/libgomp.fortran/lib2.f: New test.
4901 * testsuite/libgomp.fortran/lib3.f: New test.
4903 2005-11-17 Richard Henderson <rth@redhat.com>
4906 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4907 * configure.ac (link_gomp): New. Substitute it.
4908 (AC_CONFIG_FILES): Add libgomp.spec.
4909 * libgomp.spec.in: New file.
4910 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4911 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4913 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4915 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4916 reduction(-:var) behaving the same as reduction(+:var).
4917 * testsuite/libgomp.c/reduction-4.c: New test.
4919 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4921 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4922 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4923 testsuite/libgomp.c/copyin-3.c,
4924 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4925 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4926 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4927 testsuite/libgomp.c++/pr24455.C,
4928 testsuite/libgomp.fortran/threadprivate1.f90,
4929 testsuite/libgomp.fortran/threadprivate2.f90,
4930 testsuite/libgomp.fortran/threadprivate3.f90,
4931 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4932 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4933 testsuite/libgomp.fortran/omp_parse3.f90: Require
4934 effective-target TLS.
4936 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4940 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4943 * team.c (initialize_team): Pass NULL rather than free as
4944 pthread_key_create destructor. Initialize thread specific data
4945 pointer in initial thread to a static local variable rather than
4948 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4950 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4951 its location to ld_library_path.
4953 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4955 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4957 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4959 * testsuite/libgomp.c: Rename from libgomp.dg.
4961 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4963 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4964 threadprivate variable 'i'.
4966 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4968 * config/linux/s390/futex.h: New file.
4969 * configure.tgt: Use it.
4971 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4972 before the parallel.
4974 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4977 * testsuite/libgomp.c++/master-1.C: New test.
4979 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4981 * testsuite/libgomp.dg/copyin-3.c: New test.
4983 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4985 * testsuite/libgomp.fortran/retval1.f90: New test.
4986 * testsuite/libgomp.fortran/vla7.f90: New test.
4988 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4990 * testsuite/libgomp.fortran/vla2.f90: New test.
4991 * testsuite/libgomp.fortran/vla3.f90: New test.
4992 * testsuite/libgomp.fortran/vla4.f90: New test.
4993 * testsuite/libgomp.fortran/vla5.f90: New test.
4994 * testsuite/libgomp.fortran/vla6.f90: New test.
4996 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4998 * config/linux/sparc/futex.h: New file.
4999 * configure.tgt: Use it.
5000 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
5002 * critical.c: Include stdlib.h.
5003 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
5004 ignoring return value.
5005 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
5006 LIBGOMP_CHECK_SYNC_BUILTINS check.
5007 * configure: Rebuilt.
5009 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5011 * testsuite/libgomp.fortran/vla1.f90: New test.
5013 2005-10-31 Richard Henderson <rth@redhat.com>
5015 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5016 setting 's' in different threads.
5018 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5020 * libgomp.h (attribute_hidden, ialias): Define.
5021 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5022 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5023 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5024 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5025 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5026 omp_test_lock, omp_test_nest_lock): Likewise.
5027 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5028 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5029 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5030 omp_test_lock, omp_test_nest_lock): Likewise.
5031 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5032 omp_get_dynamic, omp_get_nested): Likewise.
5033 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5034 omp_get_thread_num, omp_in_parallel): Likewise.
5035 * fortran.c (ialias_redirect): Define.
5036 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5037 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5038 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5039 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5040 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5041 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5042 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5043 omp_get_wtime): Add ialias_redirect.
5045 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5047 * fortran.c: Include stdlib.h.
5049 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5051 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5052 * Makefile.in: Regenerated.
5054 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5056 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5057 * libgomp_f.h.in (omp_check_defines): New function.
5058 * env.c: Include libgomp_f.h.
5059 (initialize_env): Call omp_check_defines.
5061 * testsuite/libgomp.dg/copyin-2.c: New test.
5062 * testsuite/libgomp.c++/copyin-2.C: New test.
5063 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5065 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5066 * testsuite/libgomp.fortran/sharing2.f90: New test.
5068 * testsuite/libgomp.dg/copyin-1.c: New test.
5069 * testsuite/libgomp.c++/copyin-1.C: New test.
5071 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5073 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5075 * testsuite/libgomp.fortran/workshare1.f90: New test.
5077 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5079 * libgomp.fortran/sharing1.f90: New test.
5081 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5084 * testsuite/libgomp.c++/loop-7.C: New test.
5086 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5088 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5089 * testsuite/libgomp.fortran/reduction6.f90: New test.
5090 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5092 2005-10-23 Richard Henderson <rth@redhat.com>
5094 * testsuite/libgomp.c++/ctor-1.C: New.
5095 * testsuite/libgomp.c++/ctor-2.C: New.
5096 * testsuite/libgomp.c++/ctor-3.C: New.
5097 * testsuite/libgomp.c++/ctor-4.C: New.
5098 * testsuite/libgomp.c++/ctor-5.C: New.
5099 * testsuite/libgomp.c++/ctor-6.C: New.
5100 * testsuite/libgomp.c++/ctor-7.C: New.
5101 * testsuite/libgomp.c++/ctor-8.C: New.
5102 * testsuite/libgomp.c++/ctor-9.C: New.
5104 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5107 * testsuite/libgomp.c++/pr24455-1.C: New test.
5108 * testsuite/libgomp.c++/pr24455.C: New test.
5109 * testsuite/libgomp.dg/pr24455-1.c: New test.
5110 * testsuite/libgomp.dg/pr24455.c: New test.
5112 2005-10-20 Richard Henderson <rth@redhat.com>
5114 * testsuite/libgomp.c++/loop-6.C: New.
5115 * testsuite/libgomp.dg/loop-3.c: New.
5117 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5119 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5121 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5124 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5126 * testsuite/libgomp.fortran/jacobi.f: New test.
5128 2005-10-19 Richard Henderson <rth@redhat.com>
5130 * configure.tgt (i?86-linux): Default to with_arch instead of
5131 CFLAGS. Add -mtune to match target_cpu.
5132 (x86_64-linux): Tune to i686.
5134 * fortran.c (omp_test_nest_lock_): Fix typo.
5136 2005-10-19 Jakub Jelinek <jakub@redhat.com>
5138 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5139 gomp_ordered_sync): Do nothing if team->nthreads == 1.
5140 * testsuite/libgomp.dg/ordered-3.c: New test.
5142 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
5143 Remove volatile keyword.
5145 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
5146 in COMMON block to avoid warnings on 64-bit targets.
5148 2005-10-18 Diego Novillo <dnovillo@redhat.com>
5150 * testsuite/libgomp.dg/shared-3.c: New test.
5152 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5154 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
5155 * testsuite/libgomp.fortran/reduction5.f90: New test.
5157 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5159 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
5161 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
5162 flush loop now that __sync_synchronize has proper memory barrier.
5163 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
5164 Add -ffixed-form to dg-options.
5166 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5168 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
5169 from subdirectories.
5170 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
5171 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
5172 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
5173 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
5174 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
5175 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
5176 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
5177 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
5178 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
5179 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
5180 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
5181 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
5182 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
5183 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
5184 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
5185 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
5186 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
5187 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
5188 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
5189 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
5190 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
5191 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
5192 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
5193 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
5194 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
5196 2005-10-17 Jakub Jelinek <jakub@redhat.com>
5198 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
5199 lang_library_path exists. Use find instead of glob to gather tests.
5200 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
5202 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5204 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
5205 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
5206 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
5207 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
5208 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
5209 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
5210 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
5211 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
5212 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
5213 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
5214 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
5215 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
5216 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
5218 2005-10-15 Jakub Jelinek <jakub@redhat.com>
5220 * testsuite/libgomp.dg/vla-1.c: New test.
5222 * testsuite/libgomp.fortran/reference2.f90: New test.
5224 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5225 declaration of omp_get_thread_num.
5226 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
5229 * testsuite/libgomp.fortran/reduction1.f90: New test.
5230 * testsuite/libgomp.fortran/reduction2.f90: New test.
5231 * testsuite/libgomp.fortran/reduction3.f90: New test.
5232 * testsuite/libgomp.fortran/reduction4.f90: New test.
5234 2005-10-13 Richard Henderson <rth@redhat.com>
5236 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
5237 * Makefile.in: Regenerate.
5238 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
5239 * libgomp.h: Include bar.h.
5240 (struct gomp_barrier): Remove.
5241 (struct gomp_team): Add barrier. Replace master_barrier with
5242 master_release. Replace threads with ordered_release.
5243 (struct gomp_thread): Replace barrier with release.
5244 * ordered.c (gomp_ordered_first): Update for ordered_release change.
5245 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
5246 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
5247 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
5248 (GOMP_single_copy_end): Likewise.
5249 * team.c (gomp_threads_dock): New.
5250 (gomp_barrier_init, gomp_barrier_destroy): Remove.
5251 (gomp_thread_start): Use gomp_barrier_wait.
5252 (new_team, free_team): Update for gomp_team changes.
5253 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
5254 (gomp_team_end): Use gomp_barrier_wait.
5255 (initialize_team): Update for gomp_thread changes.
5256 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
5257 (gomp_work_share_end_nowait): Use atomic ops when available.
5258 * config/linux/bar.c, config/linux/bar.h: New files.
5259 * config/posix/bar.c, config/posix/bar.h: New files.
5261 2005-10-13 Jakub Jelinek <jakub@redhat.com>
5263 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
5264 * testsuite/libgomp.dg/single-2.c: New test.
5266 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
5267 lang_link_flags): Unset, so that they aren't inherited from previously
5270 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
5272 2005-10-12 Richard Henderson <rth@redhat.com>
5274 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
5275 (libgomp_init): Use lang_test_file, lang_library_path, and
5276 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
5278 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
5279 (lang_test_file, lang_link_flags): New.
5280 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
5282 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
5283 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
5284 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
5285 testsuite/libgomp.c++/parallel-1.C,
5286 testsuite/libgomp.c++/reduction-1.C,
5287 testsuite/libgomp.c++/reduction-2.C,
5288 testsuite/libgomp.c++/reduction-3.C,
5289 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
5290 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
5291 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5292 New files, largely cribbed from the C testsuite.
5294 2005-10-12 Jakub Jelinek <jakub@redhat.com>
5296 * testsuite/libgomp.fortran/character1.f90: New test.
5297 * testsuite/libgomp.fortran/character2.f90: New test.
5299 * testsuite/libgomp.dg/nested-1.c: New test.
5300 * testsuite/libgomp.dg/nested-2.c: New test.
5301 * testsuite/libgomp.fortran/do1.f90: New test.
5302 * testsuite/libgomp.fortran/do2.f90: New test.
5304 * testsuite/libgomp.fortran/reference1.f90: New test.
5306 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5308 * testsuite/libgomp.dg/reduction-1.c: New test.
5309 * testsuite/libgomp.dg/reduction-2.c: New test.
5310 * testsuite/libgomp.dg/reduction-3.c: New test.
5312 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5314 * testsuite/libgomp.dg/atomic-1.c: New test.
5315 * testsuite/libgomp.dg/atomic-2.c: New test.
5317 2005-10-09 Richard Henderson <rth@redhat.com>
5319 * critical.c (atomic_lock): New.
5320 (initialize_critical): Initialize it.
5321 (GOMP_atomic_start, GOMP_atomic_end): New.
5322 * libgomp.map: Export them.
5323 * libgomp_g.h: Declare them.
5325 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5327 2005-10-02 Richard Henderson <rth@redhat.com>
5329 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5330 to XCFLAGS instead of CFLAGS.
5332 2005-09-30 Richard Henderson <rth@redhat.com>
5334 * configure.ac: Determine whether -pthread or -lpthread is needed.
5335 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5336 * Makefine.in, configure: Rebuild.
5338 2005-09-28 Richard Henderson <rth@redhat.com>
5340 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5341 * testsuite/libgomp.dg/omp-single-3.c: New test.
5343 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5345 * testsuite/libgomp.dg/omp-single-2.c: New test.
5346 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5348 2005-09-27 Richard Henderson <rth@redhat.com>
5350 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5351 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5353 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5355 * testsuite/libgomp.dg/omp-loop03.c: New test.
5357 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5359 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5361 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5363 * testsuite/libgomp.dg/omp-single-1.c: New test.
5364 * testsuite/libgomp.dg/shared-1.c: Return 0.
5365 Add prototype for abort.
5366 * testsuite/libgomp.dg/shared-2.c: Likewise.
5368 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5370 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5373 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5375 * testsuite/libgomp.dg/shared-1.c: New test.
5376 * testsuite/libgomp.dg/shared-2.c: New test.
5378 2005-09-24 Richard Henderson <rth@redhat.com>
5380 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5382 2005-09-24 Richard Henderson <rth@redhat.com>
5384 * iter.c (gomp_iter_static_next): Round up when computing number
5385 of iterations. Don't bother distributing a remainder equally.
5387 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5388 Don't call srand. Zero b before testing.
5391 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5393 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5394 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5396 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5398 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5399 without !$omp end do, followed immediately by subroutine end.
5401 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5403 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5405 2005-09-22 Richard Henderson <rth@redhat.com>
5407 * critical.c (GOMP_critical_name_start): Change argument to void**.
5408 Reuse the pointer space if the mutex fits.
5409 (GOMP_critical_name_end): Likewise.
5410 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5411 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5412 (GOMP_critical_name_end): Likewise.
5413 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5414 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5416 2005-09-20 Richard Henderson <rth@redhat.com>
5418 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5419 (create_lock_lock): New.
5420 (initialize_critical): Initialize it.
5421 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5422 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5424 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5426 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5428 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5430 * testsuite/libgomp.dg/omp-loop01.c: New test.
5431 * testsuite/libgomp.dg/omp-loop02.c: New test.
5433 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5435 * configure.ac (AC_PROG_FC): Add.
5436 (USE_FORTRAN): New automake conditional.
5437 * configure: Rebuilt.
5438 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5439 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5440 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5441 Add rules to build them.
5442 * Makefile.in: Rebuilt.
5443 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5445 * libgomp.map: Add Fortran wrappers.
5446 * libgomp_f.h.in: New file.
5447 * omp_lib.h.in: New file.
5448 * omp_lib.f90.in: New file.
5449 * fortran.c: New file.
5450 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5451 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5452 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5453 libgfortran has been built.
5454 * testsuite/libgomp.fortran/fortran.exp: New file.
5455 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5456 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5457 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5458 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5459 * testsuite/libgomp.fortran/omp_hello.f: New test.
5460 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5461 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5462 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5463 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5464 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5465 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5466 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5467 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5469 2005-08-30 Richard Henderson <rth@redhat.com>
5471 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5472 function for when aliases are not usable.
5473 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5474 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5475 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5476 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5477 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5478 GOMP_loop_ordered_guided_next): Likewise.
5479 * ordered.c (GOMP_ordered_start): Likewise.
5481 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5483 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5484 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5485 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5486 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5487 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5488 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5489 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5490 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5491 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5493 2005-07-07 Eric Christopher <echristo@redhat.com>
5494 Diego Novillo <dnovillo@redhat.com>
5496 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5497 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5499 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5500 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5501 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5502 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5503 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5504 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5505 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5507 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5509 * TOPLEVEL.patch: Remove.
5511 2005-05-16 Richard Henderson <rth@redhat.com>
5513 * configure.ac: Test for clock_gettime.
5514 * config.h.in, configure: Rebuild.
5515 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5516 (omp_get_wtime): Use clock_gettime if available.
5517 (omp_get_wtick): Use clock_getres if available.
5519 2005-05-11 Richard Henderson <rth@redhat.com>
5521 * config/linux/ia64/futex.h: New file.
5522 * configure.tgt: Use it.
5524 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5526 2005-05-07 Richard Henderson <rth@redhat.com>
5528 * config/linux/powerpc/futex.h: New file.
5529 * configure.tgt: Use it.
5531 * config/linux/i486/futex.h: Merge ...
5532 * config/linux/x86_64/futex.h: ... into ...
5533 * config/linux/x86/futex.h: ... here.
5534 * configure.tgt: Update to match.
5536 2005-05-06 Richard Henderson <rth@redhat.com>
5538 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5539 * config/linux/i486/futex.h: Likewise.
5540 * config/linux/x86_64/futex.h: Likewise.
5542 * config/linux/lock.c: New file.
5543 * config/linux/omp-lock.h: New file.
5545 * critical.c, env.h: Don't include omp.h
5546 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5547 * config/posix/time.c: Likewise.
5548 * config/posix/omp-lock.h: New file.
5549 * libgomp.h: Include omp-lock.h and omp.h.
5550 * Makefile.am (nodist_include_HEADERS): New.
5552 * configure.ac (PERL): New.
5553 * mkomp_h.pl: New file.
5554 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5556 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5558 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5559 build directory. Re-add -march=i486 hack.
5561 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5562 (libgomp_link_flags): Remove.
5563 (libgomp_initialized): Remove.
5564 (libgomp_init): Don't protect from reinitialization. Copy code
5565 from libstdc++ for getting the multilib set correctly.
5567 2005-05-05 Richard Henderson <rth@redhat.com>
5569 * config/linux/alpha/futex.h: New file.
5570 * configure.tgt (alpha*-*-linux*): Use it.
5572 * config/posix/mutex.c: New file.
5573 * config/posix/sem.c: Use libgomp.h.
5575 * configure.tgt (x86_64-linux): Also test CC for -m32.
5576 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5578 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5581 * Makefile.am (SUBDIRS): New.
5582 (libgomp_la_LDFLAGS): Add -lpthread.
5583 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5584 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5586 * libgomp_g.h: New file.
5587 * libgomp.h: Split out all public declarations to libgomp_g.h.
5588 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5589 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5590 * config/linux/sem.h: Likewise.
5591 * config/posix/sem.h: Likewise.
5593 * Makefile.am (AM_LDFLAGS): New.
5594 (libgomp_version_script): Split out from ...
5595 (libgomp_la_LDFLAGS): ... here.
5596 (libgomp_version_info): New.
5597 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5598 (LIBGOMP_ENABLE): New.
5599 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5600 (LIBGOMP_ENABLE_SYMVERS): New.
5601 * configure.ac (AC_INIT): Version 1.0.
5602 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5603 (enable-linux-futex): Likewise. Rename from enable-futex.
5604 (libtool_VERSION): New.
5605 (LIBGOMP_ENABLE_SYMVERS): Use it.
5606 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5607 * Makefile.in, aclocal.m4, configure: Rebuild.
5609 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5610 (gomp_mutex_unlock_slow): Fix typo.
5611 * config/linux/sem.c: Similarly.
5612 (gomp_sem_post_slow): Fix typo.
5613 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5614 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5615 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5617 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5618 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5619 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5620 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5621 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5622 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5623 LDFLAGS. Pull enable_futex check to top-level.
5624 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5625 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5627 First attempt at real configury.
5628 * Makefile, config.h: Remove file.
5629 * Makefile.am, Makefile.in: New file.
5630 * acinclude.m4 aclocal.m4: New file.
5631 * configure.ac, configure.tgt, configure: New file.
5633 * config/posix/lock.c: Rename from sys-lock.c.
5634 * config/posix/mutex.h: Rename from sys-mutex.h.
5635 * config/posix/sem.c: Rename from sys-sem.c.
5636 * config/posix/sem.h: Rename from sys-sem.h.
5637 * config/posix/proc.c: Rename from sys-proc.c.
5638 * config/posix/time.c: Rename from sys-proc.c.
5640 * config/linux/mutex.c: New file.
5641 * config/linux/mutex.h: New file.
5642 * config/linux/sem.c: New file.
5643 * config/linux/sem.h: New file.
5644 * config/linux/i486/futex.h: New file.
5645 * config/linux/x86_64/futex.h: New file.
5647 2005-05-04 Richard Henderson <rth@redhat.com>
5649 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5650 * libgomp.h: Declare them.
5651 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5652 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5654 2005-05-04 Richard Henderson <rth@redhat.com>
5656 * libgomp-1 code drop
5658 2005-05-04 Richard Henderson <rth@redhat.com>
5660 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5661 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5662 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5663 (gomp_iter_static_next): Update.
5664 (gomp_ordered_static_next): Update.
5665 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5666 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5667 totally empty range.
5668 (gomp_loop_ordered_static_next): Refine test for calling
5669 gomp_ordered_static_next.
5670 * testsuite/ordered-1.c: Add case for more threads than iterations.
5672 * iter.c (gomp_iter_runtime_next_locked): Remove.
5673 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5674 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5675 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5676 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5677 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5678 gomp_loop_ordered_guided_next): Downcase name, make static, add
5679 an external alias with the old name.
5680 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5681 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5682 switch and call one of the above static functions.
5683 * libgomp.h: Update.
5685 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5686 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5687 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5688 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5689 GOMP_loop_ordered_guided_start): Update to match.
5690 * sections.c (GOMP_sections_start): Likewise.
5691 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5693 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5694 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5695 Use bounds check instead of modulus.
5696 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5697 (gomp_ordered_last): Don't sync with ordered_owner here.
5698 (gomp_ordered_next): Likewise.
5699 (gomp_ordered_static_loop_next): Likewise.
5700 * loop.c, libgomp.h: Update to match.
5702 * libgomp.h (GOMP_barrier): Declare.
5704 * testsuite/barrier-1.c: New file.
5705 * testsuite/critical-1.c: New file.
5706 * testsuite/ordered-2.c: New file.
5707 * testsuite/ordered-1.c: New file.
5708 * testsuite/sections-1.c: New file.
5709 * testsuite/single-1.c: New file.
5710 * testsuite/Makefile (TESTS): Add them.
5712 2005-05-04 Richard Henderson <rth@redhat.com>
5714 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5715 * loop.c (GOMP_loop_static_start): If not the startup thread,
5716 acquire the mutex to wait for initialization complete.
5717 (GOMP_loop_ordered_static_start): Likewise.
5718 (GOMP_loop_ordered_runtime_start): Likewise.
5719 (GOMP_loop_ordered_static_first): Remove.
5720 (GOMP_loop_ordered_dynamic_first): Remove.
5721 (GOMP_loop_ordered_guided_first): Remove.
5722 (GOMP_loop_ordered_runtime_first): Remove.
5723 * ordered.c (gomp_ordered_loop_first): Post to own release when
5724 we're the first thread.
5725 (gomp_ordered_loop_last): Wait on release if not owner.
5726 (gomp_ordered_loop_next): Likewise.
5727 (gomp_ordered_static_loop_init): New.
5728 (gomp_ordered_static_loop_next): Use ordered_owner.
5729 (GOMP_ordered_start): Likewise.
5730 * work.c (gomp_new_work_share): Initialize ordered_owner.
5732 2005-05-03 Richard Henderson <rth@redhat.com>
5734 * Makefile (OPT): New.
5737 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5738 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5739 * libgomp.h, libgomp.map, NOTES: Update to match.
5741 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5742 Add initialized and thr members.
5743 (gomp_thread_start): Pause when initially spawned to wait for
5744 the whole team to be created.
5745 (gomp_team_start): Release team members at the end.
5747 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5748 (f_foo_1): Use GOMP_loop_end.
5749 (f_foo_2): Use GOMP_loop_end_nowait.
5751 * testsuite/loop-2.c: New file.
5752 * testsuite/Makefile (TESTS): Add it.
5754 2005-05-03 Richard Henderson <rth@redhat.com>
5756 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5757 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5758 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5761 * testsuite/Makefile: New file.
5762 * testsuite/loop-1.c: New file.
5764 2005-05-03 Richard Henderson <rth@redhat.com>
5766 Initial implementation and checkin.