OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [ChangeLog] - Blame information for rev 761

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 735 jeremybenn
2012-02-27  Rainer Orth  
2
 
3
        PR libstdc++/52188
4
        * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
5
        Remove ENABLE_SYMVERS_SOL2.
6
        * configure: Regenerate.
7
        * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8
        (PREPROCESS): New variable.
9
        (libgomp.ver): New target.
10
        [LIBGOMP_BUILD_VERSIONED_SHLIB &&
11
        LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
12
        LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13
        Use libgomp.ver.
14
        [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
15
        * Makefile.in: Regenerate.
16
 
17
2012-02-14  Walter Lee  
18
 
19
        * configure.tgt: Handle tilegx and tilepro.
20
        * config/linux/tile/futex.h: New file.
21
 
22
2012-02-08  Richard Guenther  
23
 
24
        PR tree-optimization/46886
25
        * testsuite/libgomp.c/pr46886.c: New testcase.
26
 
27
2012-01-25  Matthias Klose  
28
 
29
        * config/linux/arm: Remove empty directory.
30
        * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
31
 
32
2011-12-09  Alan Modra  
33
 
34
        PR libgomp/51376
35
        * task.c (GOMP_taskwait): Don't access task->children outside of
36
        task_lock mutex region.
37
        (GOMP_task): Likewise.
38
 
39
2011-12-06  Jakub Jelinek  
40
 
41
        PR libgomp/51132
42
        * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
43
        to file scope.
44
        * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
45
        * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
46
        * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
47
        * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
48
        * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
49
 
50
2011-12-02  Alan Modra  
51
 
52
        * config/linux/affinity.c: Use atomic rather than sync builtin.
53
        * config/linux/lock.c: Likewise.
54
        * config/linux/ptrlock.h: Likewise.
55
        * config/linux/ptrlock.c: Likewise.
56
        * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
57
        * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
58
        * config/linux/futex.h (atomic_write_barrier): Delete unused function.
59
        * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
60
        * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
61
        * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
62
        * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
63
        * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
64
        * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
65
        * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
66
 
67
2011-11-30  Alan Modra  
68
 
69
        PR libgomp/51298
70
        * config/linux/bar.h: Use atomic rather than sync builtins.
71
        * config/linux/bar.c: Likewise.  Add missing acquire
72
        synchronisation on generation field.
73
        * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
74
        double unlock.
75
 
76
2011-11-30  Alan Modra  
77
 
78
        * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
79
        * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
80
        * config/linux/mutex.h: Use atomic rather than sync builtins.
81
        * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
82
        * config/linux/omp-lock.h: Comment fix.
83
        * config/linux/arm/mutex.h: Delete.
84
        * config/linux/powerpc/mutex.h: Delete.
85
        * config/linux/ia64/mutex.h: Delete.
86
        * config/linux/mips/mutex.h: Delete.
87
 
88
2011-11-30  Alan Modra  
89
 
90
        PR libgomp/51249
91
        * config/linux/sem.h: Rewrite.
92
        * config/linux/sem.c: Rewrite.
93
 
94
2011-11-28  Richard Henderson  
95
 
96
        * libgomp.h (enum memmodel): New.
97
 
98
2011-11-21  Andreas Tobler  
99
 
100
        * configure: Regenerate.
101
 
102
2011-10-10  Matthias Klose  
103
 
104
        * config/posix95: Remove empty directory.
105
 
106
2011-08-26  Jakub Jelinek  
107
 
108
        * testsuite/libgomp.fortran/threadprivate4.f90: New test.
109
 
110
2011-08-19  Jakub Jelinek  
111
 
112
        PR fortran/49792
113
        * testsuite/libgomp.fortran/pr49792-1.f90: New test.
114
        * testsuite/libgomp.fortran/pr49792-2.f90: New test.
115
 
116
2011-08-08  Rainer Orth  
117
 
118
        * config/posix95/lock.c, posix95/omp-lock.h: Remove.
119
 
120
2011-08-05  Rainer Orth  
121
 
122
        PR libgomp/49965
123
        * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
124
 
125
2011-08-03  Uros Bizjak  
126
 
127
        * config/linux/proc.h: New.
128
        * config/linux/proc.c: Include "proc.h".  Do not include .
129
        (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
130
        (gomp_init_num_threads): Update call to cpuset_popcount.
131
        (get_num_procs): Ditto.
132
        * config/linux/affinity.c (gomp_init_affinity): Call
133
        gomp_cpuset_popcount.
134
 
135
2011-08-02  Jakub Jelinek  
136
 
137
        PR fortran/42041
138
        PR fortran/46752
139
        * omp.h.in (omp_in_final): New prototype.
140
        * omp_lib.f90.in (omp_in_final): New interface.
141
        (omp_integer_kind, omp_logical_kind): Remove
142
        and replace all its uses in the module with 4.
143
        (openmp_version): Change to 201107.
144
        * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
145
        omp_sched_guided, omp_sched_auto): Use omp_sched_kind
146
        kind for the parameters.
147
        (omp_in_final): New external.
148
        (openmp_version): Change to 201107.
149
        * task.c (omp_in_final): New function.
150
        (gomp_init_task): Initialize final_task.
151
        (GOMP_task): Remove unused attribute from flags.  Handle final
152
        tasks.
153
        (GOMP_taskyield): New function.
154
        (omp_in_final): Return true if if (false) or final (true) task
155
        or descendant of final (true).
156
        * fortran.c (omp_in_final_): New function.
157
        * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
158
        (GOMP_3.0): Export GOMP_taskyield.
159
        * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
160
        variables.
161
        (parse_unsigned_long_list): New function.
162
        (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
163
        with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
164
        even if parse_affinity returned false.
165
        * config/linux/affinity.c (gomp_init_affinity): Handle
166
        gomp_cpu_affinity_len == 0.
167
        * libgomp_g.h (GOMP_taskyield): New prototype.
168
        * libgomp.h (struct gomp_task): Add final_task field.
169
        (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
170
        * team.c (gomp_team_start): Override new task's nthreads_var icv
171
        if list form OMP_NUM_THREADS has been used and it has value for
172
        the new nesting level.
173
 
174
        * testsuite/libgomp.c/atomic-11.c: New test.
175
        * testsuite/libgomp.c/atomic-12.c: New test.
176
        * testsuite/libgomp.c/atomic-13.c: New test.
177
        * testsuite/libgomp.c/atomic-14.c: New test.
178
        * testsuite/libgomp.c/reduction-6.c: New test.
179
        * testsuite/libgomp.c/task-5.c: New test.
180
        * testsuite/libgomp.c++/atomic-2.C: New test.
181
        * testsuite/libgomp.c++/atomic-3.C: New test.
182
        * testsuite/libgomp.c++/atomic-4.C: New test.
183
        * testsuite/libgomp.c++/atomic-5.C: New test.
184
        * testsuite/libgomp.c++/atomic-6.C: New test.
185
        * testsuite/libgomp.c++/atomic-7.C: New test.
186
        * testsuite/libgomp.c++/atomic-8.C: New test.
187
        * testsuite/libgomp.c++/atomic-9.C: New test.
188
        * testsuite/libgomp.c++/task-8.C: New test.
189
        * testsuite/libgomp.c++/reduction-4.C: New test.
190
        * testsuite/libgomp.fortran/allocatable7.f90: New test.
191
        * testsuite/libgomp.fortran/allocatable8.f90: New test.
192
        * testsuite/libgomp.fortran/crayptr3.f90: New test.
193
        * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
194
        * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
195
        * testsuite/libgomp.fortran/pointer1.f90: New test.
196
        * testsuite/libgomp.fortran/pointer2.f90: New test.
197
        * testsuite/libgomp.fortran/task4.f90: New test.
198
 
199
2011-08-02  Tobias Burnus  
200
 
201
        * libgomp.texi: Update OpenMP spec references to 3.1.
202
        (omp_in_final,OMP_PROC_BIND): New sections.
203
        (OMP_NUM_THREADS): Document that the value can be now a list.
204
        (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
205
 
206
2011-08-02  H.J. Lu  
207
 
208
        * config/linux/x86/futex.h: Check __x86_64__ instead of
209
        __LP64__.
210
 
211
2011-07-29  Jakub Jelinek  
212
 
213
        PR middle-end/49897
214
        PR middle-end/49898
215
        * testsuite/libgomp.c/pr49897-1.c: New test.
216
        * testsuite/libgomp.c/pr49897-2.c: New test.
217
        * testsuite/libgomp.c/pr49898-1.c: New test.
218
        * testsuite/libgomp.c/pr49898-2.c: New test.
219
 
220
2011-07-28  H.J. Lu  
221
 
222
        * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
223
        for ia32 instead of ilp32.
224
 
225
        * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
226
        * testsuite/libgomp.c/atomic-6.c: Likewise.
227
 
228
2011-07-23  Sebastian Pop  
229
 
230
        * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
231
        * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
232
 
233
2011-07-25  Rainer Orth  
234
 
235
        PR libgomp/45351
236
        * config/osf/sem.h: New file.
237
        * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
238
 
239
2011-07-18  Rainer Orth  
240
 
241
        PR target/49541
242
        * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
243
        ldflags.
244
 
245
2011-07-15  Jakub Jelinek  
246
 
247
        * config/linux/wait.h (do_spin): New inline, largely copied
248
        from do_wait, just don't do futex_wait here, instead return true if
249
        it should be done.
250
        (do_wait): Implement using do_spin.
251
        * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
252
        to prototype.
253
        (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
254
        __sync_bool_compare_and_swap, pass the oldval to
255
        gomp_mutex_lock_slow.
256
        * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
257
        If all mutex contenders are just spinning and not sleeping, don't
258
        change state to 2 unnecessarily.  Optimize the loop when state has
259
        already become 2 to use just one atomic operation per loop instead
260
        of two.
261
        * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
262
        to prototype.
263
        (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
264
        __sync_bool_compare_and_swap, pass the oldval to
265
        gomp_mutex_lock_slow.
266
 
267
2011-06-22  Jakub Jelinek  
268
 
269
        PR libgomp/49490
270
        * iter.c (gomp_iter_static_next): For chunk size 0
271
        only use n ceil/ nthreads size for the first
272
        n % nthreads threads in the team instead of
273
        all threads except for the last few ones which
274
        get less work or none at all.
275
        * iter_ull.c (gomp_iter_ull_static_next): Likewise.
276
        * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
277
        chunk argument, set run_sched_modifier to 0 for static
278
        resp. 1 for other kinds.  If chunk argument is 0
279
        and not static, set value to 1.
280
 
281
2011-05-19  Jakub Jelinek  
282
 
283
        PR c++/49043
284
        * testsuite/libgomp.c++/pr49043.C: New test.
285
 
286
        PR c++/48869
287
        * testsuite/libgomp.c++/pr48869.C: New test.
288
 
289
2011-05-06  Jakub Jelinek  
290
 
291
        PR fortran/48894
292
        * fortran.c: Include limits.h.
293
        (TO_INT): Define.
294
        (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
295
        *set.
296
        (omp_set_num_threads_8_, omp_set_schedule_8_,
297
        omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
298
        omp_get_team_size_8_): Use TO_INT macro.
299
        * testsuite/libgomp.fortran/pr48894.f90: New test.
300
 
301
2011-04-13  Jakub Jelinek  
302
 
303
        PR middle-end/48591
304
        * testsuite/libgomp.c/pr48591.c: New test.
305
 
306
2011-03-21  Rainer Orth  
307
 
308
        PR bootstrap/48135
309
        * acinclude.m4 (enable_symvers): Handle --disable-symvers.
310
        * configure: Regenerate.
311
 
312
2011-02-27  Jakub Jelinek  
313
 
314
        PR fortran/47886
315
        * testsuite/libgomp.fortran/task3.f90: New test.
316
 
317
2011-02-24  Tobias Burnus  
318
 
319
        * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
320
 
321
2011-02-23  Jakub Jelinek  
322
 
323
        PR libgomp/47854
324
        * libgomp.texi (omp_get_wtime): Don't say time in the past
325
        must be Unix Epoch.
326
 
327
2011-02-18  Jakub Jelinek  
328
 
329
        PR libgomp/47804
330
        * testsuite/libgomp.fortran/fortran.exp: Check for both
331
        libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
332
        but $blddir != "", still append ${blddir}/${lang_library_path}
333
        to ld_library_path.
334
 
335
2011-02-16  Tobias Burnus  
336
 
337
        PR libgomp/47758
338
        * testsuite/libgomp.fortran/fortran.exp: Check for the existence
339
        of libquadmath.a before adding its libpath to ldflags.
340
 
341
2011-02-14  Jakub Jelinek  
342
 
343
        PR libgomp/47731
344
        * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
345
        to FUTEX_WAIT futex syscall.
346
        * config/linux/wait.h: Include  instead of "futex.h".
347
 
348
2011-02-13  Ralf Wildenhues  
349
 
350
        * configure: Regenerate.
351
 
352
2011-01-20  Benjamin Kosnik  
353
 
354
        PR libstdc++/36104
355
        * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
356
 
357
2011-01-16  Gerald Pfeifer
358
 
359
        * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
360
 
361
2010-12-14  Jakub Jelinek  
362
 
363
        PR fortran/46874
364
        * libgomp.fortran/allocatable6.f90: New test.
365
 
366
2010-12-06  Rainer Orth  
367
 
368
        * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
369
        * configure: Regenerate.
370
 
371
2010-12-06  Dave Korn  
372
 
373
        PR target/40125
374
        PR lto/46695
375
        * configure.ac: Invoke ACX_LT_HOST_FLAGS.
376
        * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
377
        * aclocal.m4: Regenerate.
378
        * configure: Regenerate.
379
        * Makefile.in: Regenerate.
380
        * testsuite/Makefile.in: Regenerate.
381
 
382
2010-12-02  Jakub Jelinek  
383
 
384
        PR fortran/46753
385
        * libgomp.fortran/pr46753.f90: New test.
386
 
387
        PR libgomp/43706
388
        * env.c (initialize_env): Default to spin count 300000
389
        instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
390
        is specified.
391
 
392
        PR libgomp/45240
393
        * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
394
        at the end if sync builtins aren't supported.
395
 
396
2010-12-01  Rainer Orth  
397
 
398
        * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
399
 
400
2010-12-01  Rainer Orth  
401
 
402
        * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
403
 
404
2010-11-24  Iain Sandoe  
405
 
406
        * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
407
 
408
2010-11-16  Francois-Xavier Coudert  
409
            Tobias Burnus  
410
 
411
        PR fortran/32049
412
        * configure.ac:
413
        * configure: Regenerate.
414
 
415
2010-10-06  Marcus Shawcroft  
416
 
417
        * config/linux/futex.h: New.
418
        * config/linux/arm/mutex.h: New.
419
        * configure.tgt (arm*-*-linux*): Add config path.
420
 
421
2010-09-30  Sebastian Pop  
422
 
423
        * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
424
 
425
2010-09-23  Tobias Burnus  
426
 
427
        * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
428
        Change Fortran datatype to LOGICAL.
429
        (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
430
        omp_unset_nested_lock): Use intent(inout) instead of intent(out).
431
 
432
2010-08-21  Ralf Wildenhues  
433
 
434
        * configure: Regenerate.
435
 
436
2010-07-26  Jakub Jelinek  
437
 
438
        * libgomp.texi: Add function keyword to a couple of Fortran
439
        interfaces, use integer instead of int for Fortran.
440
 
441
2010-07-26  Aldy Hernandez  
442
 
443
        * libgomp.texi: Fix spelling and pasto problems throughout.
444
        Adjust prototypes to match code.
445
 
446
2010-07-24  Tobias Burnus  
447
 
448
        * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
449
        silence -fwhole-file warning.
450
 
451
2010-07-23  Rainer Orth  
452
 
453
        * configure.tgt (*-*-solaris2.[56]*): Removed.
454
 
455
2010-07-05  Rainer Orth  
456
 
457
        * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
458
        Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
459
        LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
460
        (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
461
        targetting solaris2*.
462
        * configure: Regenerate.
463
        * config.h.in: Regenerate.
464
 
465
        * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
466
        libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
467
        Add libgomp_version_dep.
468
        [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
469
        versioning.
470
        [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
471
        (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
472
        * Makefile.in: Regenerate.
473
 
474
        * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
475
        HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
476
        * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
477
        to common block, protected by
478
        HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
479
 
480
2010-06-10  Gerald Pfeifer  
481
 
482
        * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
483
 
484
2010-06-09  Iain Sandoe  
485
 
486
        PR bootstrap/43170
487
        * configure: Regenerate.
488
 
489
2010-05-04  Ralf Wildenhues  
490
 
491
        PR other/43620
492
        * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
493
        * configure: Regenerate.
494
        * Makefile.in: Regenerate.
495
        * testsuite/Makefile.in: Regenerate.
496
 
497
2010-04-26  Jakub Jelinek  
498
 
499
        PR c/43893
500
        * testsuite/libgomp.c/pr43893.c: New test.
501
        * testsuite/libgomp.c++/pr43893.C: New test.
502
 
503
2010-04-21  Jakub Jelinek  
504
 
505
        PR middle-end/43570
506
        * testsuite/libgomp.fortran/vla8.f90: New test.
507
 
508
2010-04-20  Jakub Jelinek  
509
 
510
        PR libgomp/43706
511
        * config/linux/affinity.c (gomp_init_affinity): Decrease
512
        gomp_available_cpus if affinity mask confines the process to fewer
513
        CPUs.
514
        * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
515
        non-NULL, just return gomp_available_cpus.
516
 
517
        PR libgomp/43569
518
        * sections.c (gomp_sections_init): Initialize ws->mode.
519
 
520
2010-04-14  Uros Bizjak  
521
 
522
        * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
523
        not unused bar variable.
524
        * configure: Regenerate.
525
 
526
2010-04-02  Ralf Wildenhues  
527
 
528
        * Makefile.in: Regenerate.
529
        * aclocal.m4: Regenerate.
530
        * testsuite/Makefile.in: Regenerate.
531
 
532
2010-03-22  Jakub Jelinek  
533
 
534
        PR libgomp/42942
535
        * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
536
        (initialize_env): Adjust callers.
537
        (omp_set_max_active_levels): Set gomp_max_active_levels_var even
538
        when the argument is 0.
539
 
540
        * testsuite/libgomp.c/pr42942.c: New test.
541
 
542
2010-03-08  Tobias Grosser  
543
 
544
        PR middle-end/42644
545
        PR middle-end/42130
546
        * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
547
        * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
548
 
549
2010-01-29  Rainer Orth  
550
 
551
        * testsuite/libgomp.c++/task-1.C: Renamed err to e.
552
        * testsuite/libgomp.c++/task-6.C: Likewise.
553
 
554
2010-01-28  Steve Ellcey  
555
 
556
        * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
557
 
558
2010-01-26  Paolo Bonzini  
559
 
560
        * configure.ac: Test for executability of _the first word_ of GFORTRAN.
561
        * configure: Regenerate.
562
 
563
2010-01-26  Jakub Jelinek  
564
 
565
        PR fortran/42866
566
        * testsuite/libgomp.fortran/allocatable5.f90: New test.
567
 
568
2010-01-20  Paolo Bonzini  
569
 
570
        * configure.ac: Test for executability of GFORTRAN.
571
        * configure: Regenerate.
572
 
573
2010-01-05  Rainer Orth  
574
 
575
        * configure: Regenerate.
576
 
577
2010-01-04  H.J. Lu  
578
 
579
        PR libgomp/42602
580
        * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
581
 
582
2010-01-03  Richard Guenther  
583
 
584
        * testsuite/libgomp.fortran/recursion1.f90: New testcase.
585
 
586
2009-12-23  Sebastian Pop  
587
 
588
        * testsuite/libgomp.graphite/pr4118.c: New.
589
 
590
2009-12-22  Iain Sandoe  
591
 
592
        * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
593
        for darwin, protect the test with require-effective-target tls_runtime.
594
        * testsuite/libgomp.fortran/pr32550.f90: Ditto.
595
 
596
2009-12-22  Iain Sandoe  
597
 
598
        PR target/41605
599
        * testsuite/lib/libgomp.exp: Provide -B options to allow for
600
        link spec %s substitutions for static libraries.
601
 
602
2009-12-18  Jack Howarth 
603
 
604
        PR testsuite/42135
605
        * libgomp.graphite/force-parallel-2.c: Reduce array size.
606
 
607
2009-12-05  Ralf Wildenhues  
608
 
609
        * Makefile.in: Regenerate.
610
        * configure: Regenerate.
611
        * testsuite/Makefile.in: Regenerate.
612
 
613
2009-11-30  Dave Korn  
614
 
615
        * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
616
        settings for LC_ALL and LANG.
617
 
618
2009-11-25  Jakub Jelinek  
619
 
620
        PR fortran/42162
621
        * testsuite/libgomp.fortran/pr42162.f90: New test.
622
 
623
2009-11-13  Jakub Jelinek  
624
 
625
        PR middle-end/42029
626
        * testsuite/libgomp.c/pr42029.c: New test.
627
 
628
2009-10-26  Jakub Jelinek  
629
 
630
        * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
631
        *s.  Accept ld version without text in ()s.
632
        * configure: Regenerated.
633
 
634
2009-10-22  Razya Ladelsky  
635
 
636
        * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
637
 
638
2009-10-17  Ralf Wildenhues  
639
 
640
        PR libgomp/41418
641
        * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
642
        or a hyphen (happens with fortran language disabled).
643
        * configure: Regenerate.
644
 
645
2009-09-30  Ralf Wildenhues  
646
 
647
        * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
648
        use sed script portable to Solaris /bin/sed for extracting ld
649
        version.
650
        * configure: Regenerate.
651
 
652
2009-09-17  Alexander Monakov  
653
 
654
        * testsuite/libgomp.graphite/bounds.c: New test.
655
 
656
2009-09-11  Ralf Wildenhues  
657
 
658
        * Makefile.am (libgomp_la_LINK): New.
659
        * Makefile.in: Regenerate.
660
 
661
2009-08-24  Ralf Wildenhues  
662
 
663
        * configure.ac (AC_PREREQ): Bump to 2.64.
664
 
665
2009-08-22  Ralf Wildenhues  
666
 
667
        * Makefile.am (install-html, install-pdf): Remove.
668
        * Makefile.in: Regenerate.
669
 
670
        * Makefile.in: Regenerate.
671
        * aclocal.m4: Regenerate.
672
        * config.h.in: Regenerate.
673
        * configure: Regenerate.
674
        * testsuite/Makefile.in: Regenerate.
675
 
676
2009-08-22  Ralf Wildenhues  
677
 
678
        * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
679
        * Makefile.in: Regenerate.
680
 
681
2009-08-20  Dave Korn  
682
 
683
        * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
684
        * Makefile.in: Regenerate.
685
 
686
2009-08-19  Tobias Burnus  
687
 
688
        PR fortran/41102
689
        omp_lib.h.in: Fix -std=f95 errors.
690
 
691
 
692
2009-08-14  David Edelsohn  
693
 
694
        * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
695
        * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
696
        * testsuite/libgomp.graphite/graphite.exp: New.
697
 
698
2009-08-05  Andreas Tobler  
699
 
700
        * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
701
        only build.
702
 
703
2009-08-04  David Daney  
704
 
705
        * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
706
        needed memory barrier semantics.
707
        * config/linux/mips/mutex.h: New file.
708
 
709
2009-07-30  Ralf Wildenhues  
710
 
711
        * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
712
 
713
2009-07-16  Joseph Myers  
714
 
715
        * configure: Regenerate.
716
 
717
2009-07-11  Richard Sandiford  
718
 
719
        PR testsuite/40699
720
        PR testsuite/40707
721
        PR testsuite/40709
722
        * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
723
        * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
724
        testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
725
 
726
2009-07-02  Richard Sandiford  
727
 
728
        * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
729
        options when choosing a multilib.
730
 
731
2009-06-30  Richard Sandiford  
732
 
733
        * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
734
        ld_library_path.  Use add_path.  Add just find_libgcc_s to
735
        ld_library_path, not every libgcc multilib directory.
736
        * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
737
        gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
738
        * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
739
        Use add_path.
740
        * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
741
 
742
2009-06-09  Nathan Froyd  
743
 
744
        * Makefile.am (LTLDFLAGS): Define.
745
        (LINK): Define.
746
        * Makefile.in: Regenerate.
747
 
748
2009-05-27  Janne Blomqvist  
749
 
750
        PR fortran/39718
751
        * testsuite/libgomp.fortran/fortran.exp: Don't link with
752
        libgfortranbegin, check existence of libgfortran.a instead of
753
        libgfortranbegin.a.
754
 
755
2009-05-20  Jakub Jelinek  
756
 
757
        PR libgomp/40174
758
        * team.c (gomp_thread_start): Destroy thr->release semaphore.
759
        (gomp_free_pool_helper): Likewise.
760
 
761
2009-04-20  Vasilis Liaskovitis  
762
            Jakub Jelinek  
763
 
764
        PR fortran/35423
765
        * testsuite/libgomp.fortran/workshare2.f90: New test.
766
 
767
2009-04-09  Nick Clifton  
768
 
769
        * iter.c: Change copyright header to refer to version 3 of the
770
        GNU General Public License with version 3.1 of the GCC Runtime
771
        Library Exception and to point readers at the COPYING3 and
772
        COPYING3.RUNTIME files and the FSF's license web page.
773
        * alloc.c: Likewise.
774
        * barrier.c: Likewise.
775
        * config/bsd/proc.c: Likewise.
776
        * config/linux/affinity.c: Likewise.
777
        * config/linux/alpha/futex.h: Likewise.
778
        * config/linux/bar.c: Likewise.
779
        * config/linux/bar.h: Likewise.
780
        * config/linux/ia64/futex.h: Likewise.
781
        * config/linux/ia64/mutex.h: Likewise.
782
        * config/linux/lock.c: Likewise.
783
        * config/linux/mips/futex.h: Likewise.
784
        * config/linux/mutex.c: Likewise.
785
        * config/linux/mutex.h: Likewise.
786
        * config/linux/powerpc/futex.h: Likewise.
787
        * config/linux/proc.c: Likewise.
788
        * config/linux/ptrlock.c: Likewise.
789
        * config/linux/ptrlock.h: Likewise.
790
        * config/linux/s390/futex.h: Likewise.
791
        * config/linux/sem.c: Likewise.
792
        * config/linux/sem.h: Likewise.
793
        * config/linux/sparc/futex.h: Likewise.
794
        * config/linux/wait.h: Likewise.
795
        * config/linux/x86/futex.h: Likewise.
796
        * config/mingw32/proc.c: Likewise.
797
        * config/mingw32/time.c: Likewise.
798
        * config/posix/affinity.c: Likewise.
799
        * config/posix/bar.c: Likewise.
800
        * config/posix/bar.h: Likewise.
801
        * config/posix/lock.c: Likewise.
802
        * config/posix/mutex.h: Likewise.
803
        * config/posix/proc.c: Likewise.
804
        * config/posix/ptrlock.h: Likewise.
805
        * config/posix/sem.c: Likewise.
806
        * config/posix/sem.h: Likewise.
807
        * config/posix/time.c: Likewise.
808
        * config/posix95/lock.c: Likewise.
809
        * critical.c: Likewise.
810
        * env.c: Likewise.
811
        * error.c: Likewise.
812
        * fortran.c: Likewise.
813
        * iter_ull.c: Likewise.
814
        * libgomp.h: Likewise.
815
        * libgomp_f.h.in: Likewise.
816
        * libgomp_g.h: Likewise.
817
        * loop.c: Likewise.
818
        * loop_ull.c: Likewise.
819
        * omp.h.in: Likewise.
820
        * omp_lib.f90.in: Likewise.
821
        * omp_lib.h.in: Likewise.
822
        * ordered.c: Likewise.
823
        * parallel.c: Likewise.
824
        * sections.c: Likewise.
825
        * single.c: Likewise.
826
        * task.c: Likewise.
827
        * team.c: Likewise.
828
        * work.c: Likewise.
829
 
830
2009-04-09  Jakub Jelinek  
831
 
832
        * testsuite/config/default.exp: Change copyright header to refer to
833
        version 3 of the GNU General Public License and to point readers
834
        at the COPYING3 file and the FSF's license web page.
835
 
836
2009-04-08  Jakub Jelinek  
837
 
838
        PR middle-end/39573
839
        * libgomp.c++/pr39573.C: New test.
840
 
841
2009-04-01  Jakub Jelinek  
842
 
843
        PR other/39591
844
        * testsuite/libgomp.c/pr39591-1.c: New test.
845
        * testsuite/libgomp.c/pr39591-2.c: New test.
846
        * testsuite/libgomp.c/pr39591-3.c: New test.
847
 
848
2009-03-25  Uros Bizjak  
849
 
850
        * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
851
        * testsuite/libgomp.c/atomic-6.c: Ditto.
852
 
853
2009-03-23  Jakub Jelinek  
854
 
855
        PR c/39495
856
        * testsuite/libgomp.c/loop-12.c: New test.
857
        * testsuite/libgomp.c/loop-11.c: New test.
858
        * testsuite/libgomp.c++/loop-11.C: New test.
859
        * testsuite/libgomp.c++/loop-12.C: New test.
860
        * testsuite/libgomp.c++/for-8.C: New test.
861
 
862
2009-03-01  Ralf Wildenhues  
863
 
864
        * configure: Regenerate.
865
 
866
2009-02-11  Jakub Jelinek  
867
 
868
        PR middle-end/39154
869
        * testsuite/libgomp.c/pr39154.c: New test.
870
 
871
2009-01-30  Ian Lance Taylor  
872
 
873
        * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
874
        libgomp_ld_is_gold.  Get gold version number.
875
        (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
876
        * configure: Rebuild.
877
 
878
2009-01-19  Iain Sandoe  
879
 
880
        * testsuite/lib/libgomp.exp: Add -B option for targets that
881
        use libgfortran.a%s in their specs.
882
 
883
2009-01-07  Jakub Jelinek  
884
 
885
        PR libgomp/38086
886
        * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
887
        * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
888
        HAVE_AS_SYMVER_DIRECTIVE is not defined.
889
        * configure: Regenerated.
890
        * config.h.in: Likewise.
891
 
892
2008-12-28  Jakub Jelinek  
893
 
894
        PR c++/38650
895
        * testsuite/libgomp.c/pr38650.c: New test.
896
        * testsuite/libgomp.c++/pr38650.C: New test.
897
 
898
2008-12-27  Jakub Jelinek  
899
 
900
        * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
901
 
902
2008-12-26  Uros Bizjak  
903
 
904
        * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
905
 
906
2008-12-18  Ralf Wildenhues  
907
 
908
        * configure: Regenerate.
909
 
910
2008-12-08  Jakub Jelinek  
911
 
912
        PR middle-end/36802
913
        * testsuite/libgomp.c/pr36802-1.c: New test.
914
        * testsuite/libgomp.c/pr36802-2.c: New test.
915
        * testsuite/libgomp.c/pr36802-3.c: New test.
916
 
917
2008-12-01  Janis Johnson  
918
 
919
        PR libgomp/38270
920
        * config/linux/powerpc/mutex.h: New.
921
 
922
2008-12-01  Jakub Jelinek  
923
 
924
        PR c++/38257
925
        * testsuite/libgomp.c++/for-7.C: New test.
926
 
927
        PR c++/38348
928
        * testsuite/libgomp.c++/for-6.C: New test.
929
 
930
2008-11-26  Janis Johnson  
931
 
932
        PR testsuite/28870
933
        * testsuite/lib/libgomp.exp: Include new timeout library files.
934
        (libgomp_target_compile): Set timeout value from new proc.
935
 
936
2008-11-13  Steve Ellcey  
937
 
938
        PR libgomp/37938
939
        * config/linux/ia64/mutex.h: New.
940
 
941
2008-11-04  Tobias Burnus  
942
 
943
        PR libgomp/37935
944
        * libgomp.texi (Runtime library routines, environment variables):
945
        Update for OpenMP version 3.0.
946
 
947
2008-09-26  Peter O'Gorman  
948
            Steve Ellcey  
949
 
950
        * configure: Regenerate for new libtool.
951
        * Makefile.in: Ditto.
952
        * testsuite/Makefile.in: Ditto.
953
 
954
2008-09-19  Jakub Jelinek  
955
            Andreas Tobler  
956
 
957
        * config/bsd/proc.c: New file.
958
        * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
959
        * configure.ac: Check for header 
960
        * configure: Regenerate.
961
        * config.h.in: Likewise.
962
 
963
2008-09-05  Janis Johnson  
964
 
965
        * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
966
 
967
2008-08-31  Aaron W. LaFramboise  
968
 
969
        * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
970
        * Makefile.in: Regenerated.
971
        * testsuite/Makefile.in: Regenerated.
972
 
973
2008-08-21  Nathan Froyd  
974
 
975
        * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
976
        depend on blddir if blddir exists.
977
        (libgomp_target_compile): Likewise.
978
        * testsuite/libgomp.c++/c++.exp: Likewise.
979
        * testsuite/libgomp.fortran/fortran.exp: Likewise.
980
 
981
2008-07-30  Ralf Wildenhues  
982
 
983
        * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
984
        Do not list GPL as Invariant Section.
985
 
986
2008-07-28  Ilie Garbacea  
987
            Chao-ying Fu  
988
 
989
        * configure.tgt: Enable futex for MIPS.
990
        * config/linux/mips/futex.h: New file.
991
 
992
2008-07-16  Jakub Jelinek  
993
 
994
        * team.c (gomp_team_end): Free team immediately if it has
995
        just one thread.
996
 
997
2008-07-08  David Edelsohn  
998
 
999
        * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1000
        * testsuite/libgomp.fortran/fortran.exp: Same.
1001
        * testsuite/libgomp.c/c.exp: Same.
1002
        * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1003
        directory to library path first.
1004
 
1005
2008-06-29  Krister Walfridsson  
1006
 
1007
        * env.c (parse_stacksize): Add cast to avoid warning.
1008
        (parse_spincount): Likewise.
1009
 
1010
2008-06-27  Jakub Jelinek  
1011
 
1012
        * testsuite/libgomp.c/loop-10.c: New test.
1013
        * libgomp.c/loop-3.c (main): Add lastprivate clause.
1014
        * libgomp.c++/loop-6.C (main): Likewise.
1015
 
1016
        PR debug/36617
1017
        * testsuite/libgomp.c/debug-1.c: New test.
1018
 
1019
2008-06-19  Jakub Jelinek  
1020
 
1021
        * testsuite/libgomp.c/nqueens-1.c: New test.
1022
 
1023
        PR c++/36523
1024
        * testsuite/libgomp.c++/task-7.C: New function.
1025
 
1026
2008-06-17  Ralf Wildenhues  
1027
 
1028
        * configure: Regenerate.
1029
 
1030
2008-06-15  John David Anglin  
1031
 
1032
        * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1033
        mutex when HAVE_SYNC_BUILTINS isn't defined.
1034
 
1035
2008-06-15  Ralf Wildenhues  
1036
 
1037
        * libgomp.texi (omp_test_lock): Fix typo.
1038
 
1039
2008-06-12  Tobias Burnus  
1040
 
1041
        * omp_lib.f90.in: Add "implicit none".
1042
 
1043
2008-06-12  Jakub Jelinek  
1044
 
1045
        PR middle-end/36506
1046
        * testsuite/libgomp.c/reduction-5.c: New test.
1047
 
1048
2008-06-11  Jakub Jelinek  
1049
 
1050
        * libgomp.h (struct gomp_task): Add in_tied_task field.
1051
        * task.c (gomp_init_task): Initialize it.
1052
        (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1053
        unconditionally.  Don't call gomp_team_barrier_wake if
1054
        current task is implicit or if(0) from implicit and number of
1055
        running tasks is equal to nthreads - 1.
1056
 
1057
        PR libgomp/36471
1058
        * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1059
        omp_get_team_size_8): Fix pastos.
1060
 
1061
        PR libgomp/36469
1062
        * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1063
        * configure: Regenerated.
1064
        * config.h.in: Regenerated.
1065
        * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1066
        defined.
1067
 
1068
2008-06-06  Andreas Tobler  
1069
 
1070
        PR bootstrap/36452
1071
        * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1072
        (GOMP_loop_ull_dynamic_start): Likewise.
1073
        (GOMP_loop_ull_guided_start): Likewise.
1074
        (GOMP_loop_ull_ordered_static_start): Likewise.
1075
        (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1076
        (GOMP_loop_ull_ordered_guided_start): Likewise.
1077
 
1078
2008-06-06  Jakub Jelinek  
1079
            Richard Henderson  
1080
            Ulrich Drepper  
1081
            Jakob Blomer  
1082
 
1083
        * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1084
        Substitute also OMP_*LOCK_25*.
1085
        * configure: Regenerated.
1086
        * config.h.in: Regenerated.
1087
        * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1088
        ptrlock.c and task.c.
1089
        * Makefile.in: Regenerated.
1090
        * testsuite/Makefile.in: Regenerated.
1091
        * task.c: New file.
1092
        * loop_ull.c: New file.
1093
        * iter_ull.c: New file.
1094
        * libgomp.h: Include ptrlock.h.
1095
        (enum gomp_task_kind): New type.
1096
        (struct gomp_team): Add task_lock, task_queue, task_count,
1097
        task_running_count, single_count fields.  Add
1098
        work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1099
        Remove work_share_lock, generation_mask,
1100
        oldest_live_gen, num_live_gen and init_work_shares fields, add
1101
        work work_share_list_alloc, work_share_list_free and work_share_chunk
1102
        fields.  Change work_shares from pointer to pointers into an array.
1103
        Change ordered_release field into gomp_sem_t ** from flexible array
1104
        member.  Add implicit_task and initial_work_shares fields.
1105
        Move close to the end of the struct.
1106
        (struct gomp_team_state): Add single_count, last_work_share,
1107
        active_level and level fields, remove work_share_generation.
1108
        (gomp_barrier_handle_tasks): New prototype.
1109
        (gomp_finish_task): New inline function.
1110
        (struct gomp_work_share): Move chunk_size, end, incr into
1111
        transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1112
        next_ll fields.  Reshuffle fields.  Add next_alloc,
1113
        next_ws, next_free and inline_ordered_team_ids fields, change
1114
        ordered_team_ids into pointer from flexible array member.
1115
        Add mode field.  Put lock and next into a different cache line
1116
        from most of the write-once fields.
1117
        (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1118
        gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1119
        gomp_iter_ull_guided_next): New prototypes.
1120
        (gomp_new_icv): New prototype.
1121
        (struct gomp_thread): Add thread_pool and task fields.
1122
        (struct gomp_thread_pool): New type.
1123
        (gomp_new_team): New prototype.
1124
        (gomp_team_start): Change type of last argument.
1125
        (gomp_new_work_share): Removed.
1126
        (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1127
        (gomp_work_share_init_done): New static inline.
1128
        (gomp_throttled_spin_count_var, gomp_available_cpus,
1129
        gomp_managed_threads): New extern decls.
1130
        (gomp_init_task): New prototype.
1131
        (gomp_spin_count_var): New extern var decl.
1132
        (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1133
        or no alias support, or if not PIC.
1134
        (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1135
        gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1136
        gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1137
        gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1138
        gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1139
        gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1140
        gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1141
        gomp_test_nest_lock_25): New prototypes.
1142
        (omp_lock_symver, strong_alias): Define.
1143
        (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1144
        decls.
1145
        (gomp_end_task): New.
1146
        (struct gomp_task_icv, gomp_global_icv): New.
1147
        (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1148
        (struct gomp_task): New.
1149
        (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1150
        gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1151
        (gomp_icv): New.
1152
        (gomp_schedule_type): Reorder enum to match
1153
        omp_sched_t.
1154
        * team.c (struct gomp_thread_start_data): Add thread_pool and task
1155
        fields.
1156
        (gomp_thread_start): Add gomp_team_barrier_wait call.
1157
        For non-nested case remove clearing of docked thread thr fields.
1158
        Use pool fields instead of global gomp_* variables.  Use
1159
        gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1160
        Create tasks for each member thread.
1161
        (free_team): Only destroy team barrier, task_lock here and free it.
1162
        (gomp_free_thread): Free last_team if non-NULL.
1163
        (gomp_team_end): Call gomp_team_barrier_wait instead of
1164
        gomp_barrier_wait.  For nested case call one extra
1165
        gomp_barrier_wait.  Move here some destruction from free_team.
1166
        Call free_team on pool->last_team if any, rather than freeing
1167
        current team.  Destroy work_share_list_free_lock ifndef
1168
        HAVE_SYNC_BUILTINS.
1169
        (gomp_new_icv): New function.
1170
        (gomp_threads, gomp_threads_size, gomp_threads_used,
1171
        gomp_threads_dock): Removed.
1172
        (gomp_thread_destructor): New variable.
1173
        (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1174
        functions.
1175
        (gomp_team_start): Create new pool if current thread doesn't have
1176
        one.  Use pool fields instead of global gomp_* variables.
1177
        Initialize thread_pool field for new threads.  Clear single_count.
1178
        Change last argument from ws to team, don't create
1179
        new team, set ts.work_share to &team->work_shares[0] and clear
1180
        ts.last_work_share.  Don't clear ts.work_share_generation.
1181
        If number of threads changed, adjust atomically gomp_managed_threads.
1182
        Use gomp_init_task instead of gomp_new_task,
1183
        set thr->task to the corresponding implicit_task array entry.
1184
        Create tasks for each member thread.  Initialize ts.level.
1185
        (initialize_team): Call pthread_key_create on
1186
        gomp_thread_destructor.
1187
        (team_destructor): New function.
1188
        (new_team): Removed.
1189
        (gomp_new_team): New function.
1190
        (free_team): Free gomp_work_share blocks chained through next_alloc,
1191
        instead of freeing work_shares and destroying work_share_lock.
1192
        (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1193
        changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1194
        * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1195
        of gomp_barrier_wait.
1196
        * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1197
        instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1198
        if gomp_work_share_start returned true.  Don't unlock ws->lock.
1199
        (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1200
        of gomp_barrier_wait.
1201
        (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1202
        gomp_work_share_init_done if gomp_work_share_start returned true.
1203
        Don't unlock ws->lock.
1204
        * work.c: Include stddef.h.
1205
        (free_work_share): Use work_share_list_free_lock instead
1206
        of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1207
        Call gomp_fini_work_share and then either free ws if orphaned, or
1208
        put it into work_share_list_free list of the current team.
1209
        (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1210
        functions.
1211
        (gomp_work_share_start, gomp_work_share_end,
1212
        gomp_work_share_end_nowait): Rewritten.
1213
        * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1214
        (openmp_version): Set to 200805.
1215
        (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1216
        omp_sched_guided, omp_sched_auto): New parameters.
1217
        (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1218
        omp_set_max_active_levels, omp_get_max_active_levels,
1219
        omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1220
        omp_get_active_level): New interfaces.
1221
        * omp_lib.h.in (openmp_version): Set to 200805.
1222
        (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1223
        omp_sched_guided, omp_sched_auto): New parameters.
1224
        (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1225
        omp_set_max_active_levels, omp_get_max_active_levels,
1226
        omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1227
        omp_get_active_level): New externals.
1228
        * loop.c: Include limits.h.
1229
        (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1230
        GFS_AUTO.
1231
        (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1232
        Likewise.  Use gomp_icv.
1233
        (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1234
        ts.static_trip here.
1235
        (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1236
        gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1237
        (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1238
        gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1239
        don't unlock ws->lock, otherwise lock it.
1240
        (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1241
        gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1242
        (gomp_parallel_loop_start): Call gomp_new_team instead of
1243
        gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1244
        Adjust gomp_team_start caller.  Pass 0 as second argument to
1245
        gomp_resolve_num_threads.
1246
        (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1247
        If adding ws->chunk_size nthreads + 1 times after end won't
1248
        overflow, set ws->mode to 1.
1249
        * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1250
        GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1251
        GOMP_loop_ull_ordered_static_start,
1252
        GOMP_loop_ull_ordered_dynamic_start,
1253
        GOMP_loop_ull_ordered_guided_start,
1254
        GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1255
        GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1256
        GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1257
        GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1258
        GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1259
        prototypes.
1260
        * libgomp.map: Export lock routines also @@OMP_2.0.
1261
        (GOMP_loop_ordered_dynamic_first,
1262
        GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1263
        GOMP_loop_ordered_static_first): Remove.
1264
        (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1265
        GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1266
        GOMP_loop_ull_ordered_dynamic_next,
1267
        GOMP_loop_ull_ordered_dynamic_start,
1268
        GOMP_loop_ull_ordered_guided_next,
1269
        GOMP_loop_ull_ordered_guided_start,
1270
        GOMP_loop_ull_ordered_runtime_next,
1271
        GOMP_loop_ull_ordered_runtime_start,
1272
        GOMP_loop_ull_ordered_static_next,
1273
        GOMP_loop_ull_ordered_static_start,
1274
        GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1275
        GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1276
        GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1277
        (omp_set_schedule, omp_get_schedule,
1278
        omp_get_thread_limit, omp_set_max_active_levels,
1279
        omp_get_max_active_levels, omp_get_level,
1280
        omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1281
        omp_set_schedule_, omp_set_schedule_8_,
1282
        omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1283
        omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1284
        omp_get_max_active_levels_, omp_get_level_,
1285
        omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1286
        omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1287
        New exports @@OMP_3.0.
1288
        * omp.h.in (omp_sched_t): New type.
1289
        (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1290
        omp_set_max_active_levels, omp_get_max_active_levels,
1291
        omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1292
        omp_get_active_level): New prototypes.
1293
        * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1294
        gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1295
        gomp_thread_limit_var, gomp_remaining_threads_count,
1296
        gomp_remaining_threads_lock): New variables.
1297
        (parse_spincount): New function.
1298
        (initialize_env): Call gomp_init_num_threads unconditionally.
1299
        Initialize gomp_available_cpus.  Call parse_spincount,
1300
        initialize gomp_{,throttled_}spin_count_var
1301
        depending on presence and value of OMP_WAIT_POLICY and
1302
        GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1303
        Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1304
        OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1305
        for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1306
        gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1307
        (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1308
        gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1309
        (gomp_global_icv): New.
1310
        (parse_schedule): Use it.  Parse "auto".
1311
        (omp_set_num_threads): Use gomp_icv.
1312
        (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1313
        Likewise.
1314
        (omp_get_max_threads): Move from parallel.c.
1315
        (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1316
        omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1317
        add ialias.
1318
        (parse_stacksize, parse_wait_policy): New functions.
1319
        * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1320
        both wrappers for compatibility and new locks.
1321
        (omp_set_schedule, omp_get_schedule,
1322
        omp_get_thread_limit, omp_set_max_active_levels,
1323
        omp_get_max_active_levels, omp_get_level,
1324
        omp_get_ancestor_thread_num, omp_get_team_size,
1325
        omp_get_active_level): New ialias_redirect.
1326
        (omp_set_schedule_, omp_set_schedule_8_,
1327
        omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1328
        omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1329
        omp_get_max_active_levels_, omp_get_level_,
1330
        omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1331
        omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1332
        New functions.
1333
        * parallel.c: Include limits.h.
1334
        (gomp_resolve_num_threads): Add count argument.  Rewritten.
1335
        (GOMP_parallel_start): Call gomp_new_team and pass that as last
1336
        argument to gomp_team_start.  Pass 0 as second argument to
1337
        gomp_resolve_num_threads.
1338
        (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1339
        if gomp_thread_limit_var != ULONG_MAX.
1340
        (omp_in_parallel): Implement using ts.active_level.
1341
        (omp_get_max_threads): Move to env.c.
1342
        (omp_get_level, omp_get_ancestor_thread_num,
1343
        omp_get_team_size, omp_get_active_level): New functions,
1344
        add ialias.
1345
        * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1346
        after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1347
        gomp_iter_dynamic_next instead of the _locked variant and don't take
1348
        lock around it, otherwise acquire it before calling
1349
        gomp_iter_dynamic_next_locked.
1350
        (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1351
        gomp_iter_dynamic_next instead of the _locked variant and don't take
1352
        lock around it.
1353
        (GOMP_parallel_sections_start): Call gomp_new_team instead of
1354
        gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1355
        Adjust gomp_team_start caller.  Pass count as second argument to
1356
        gomp_resolve_num_threads, don't adjust num_threads after the call.
1357
        Use gomp_icv.
1358
        * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1359
        ws->chunk_size by incr.
1360
        (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1361
        code.
1362
        * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1363
        types.
1364
        (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1365
        (omp_check_defines): Check even the compat defines.
1366
        * config/linux/ptrlock.c: New file.
1367
        * config/linux/ptrlock.h: New file.
1368
        * config/linux/wait.h: New file.
1369
        * config/posix/ptrlock.c: New file.
1370
        * config/posix/ptrlock.h: New file.
1371
        * config/linux/bar.h (gomp_team_barrier_wait,
1372
        gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1373
        (gomp_team_barrier_set_task_pending,
1374
        gomp_team_barrier_clear_task_pending,
1375
        gomp_team_barrier_set_waiting_for_tasks,
1376
        gomp_team_barrier_waiting_for_tasks,
1377
        gomp_team_barrier_done): New inlines.
1378
        (gomp_barrier_t): Rewritten.
1379
        (gomp_barrier_state_t): New typedef.
1380
        (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1381
        gomp_barrier_wait_start): Rewritten.
1382
        (gomp_barrier_wait_end): Change second argument to
1383
        gomp_barrier_state_t.
1384
        (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1385
        inlines.
1386
        * config/linux/bar.c: Include wait.h instead of libgomp.h and
1387
        futex.h.
1388
        (gomp_barrier_wait_end): Rewritten.
1389
        (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1390
        gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1391
        * config/posix/bar.h (gomp_barrier_t): Add generation field.
1392
        (gomp_barrier_state_t): New typedef.
1393
        (gomp_team_barrier_wait,
1394
        gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1395
        (gomp_barrier_wait_start): Or all but low 2 bits from generation
1396
        into the return value.  Return gomp_barrier_state_t.
1397
        (gomp_team_barrier_set_task_pending,
1398
        gomp_team_barrier_clear_task_pending,
1399
        gomp_team_barrier_set_waiting_for_tasks,
1400
        gomp_team_barrier_waiting_for_tasks,
1401
        gomp_team_barrier_done): New inlines.
1402
        (gomp_barrier_wait_end): Change second argument to
1403
        gomp_barrier_state_t.
1404
        (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1405
        inlines.
1406
        * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1407
        (gomp_barrier_wait_end): Change second argument to
1408
        gomp_barrier_state_t.
1409
        (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1410
        gomp_team_barrier_wake): New functions.
1411
        * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1412
        futex.h.
1413
        (gomp_futex_wake, gomp_futex_wait): New variables.
1414
        (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1415
        * config/linux/lock.c: Rewrite to make locks task owned,
1416
        for backwards compatibility provide the old entrypoints
1417
        if symbol versioning.  Include wait.h instead of libgomp.h and
1418
        futex.h.
1419
        (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1420
        * config/posix95/lock.c: Rewrite to make locks task owned,
1421
        for backwards compatibility provide the old entrypoints
1422
        if symbol versioning.
1423
        * config/posix/lock.c: Rewrite to make locks task owned,
1424
        for backwards compatibility provide the old entrypoints
1425
        if symbol versioning.
1426
        * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1427
        (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1428
        * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1429
        * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1430
        (sys_futex0): Return error code.
1431
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1432
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1433
        (cpu_relax, atomic_write_barrier): New static inlines.
1434
        * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1435
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1436
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1437
        (cpu_relax, atomic_write_barrier): New static inlines.
1438
        * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1439
        (sys_futex0): Return error code.
1440
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1441
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1442
        (cpu_relax, atomic_write_barrier): New static inlines.
1443
        * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1444
        (sys_futex0): Return error code.
1445
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1446
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1447
        (cpu_relax, atomic_write_barrier): New static inlines.
1448
        * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1449
        (sys_futex0): Return error code.
1450
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1451
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1452
        (cpu_relax, atomic_write_barrier): New static inlines.
1453
        * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1454
        (sys_futex0): Return error code.
1455
        (futex_wake, futex_wait): If ENOSYS was returned, clear
1456
        FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1457
        (cpu_relax, atomic_write_barrier): New static inlines.
1458
        * config/linux/sem.c: Include wait.h instead of libgomp.h and
1459
        futex.h.
1460
        (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1461
        * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1462
        * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1463
        types.
1464
        (omp_nest_lock_t): Change owner into void *, add lock field.
1465
        * config/posix95/omp-lock.h: Include semaphore.h.
1466
        (omp_lock_25_t, omp_nest_lock_25_t): New types.
1467
        (omp_lock_t): Use sem_t instead of mutex if semaphores
1468
        aren't broken.
1469
        (omp_nest_lock_t): Likewise.  Change owner to void *.
1470
        * config/posix/omp-lock.h: Include semaphore.h.
1471
        (omp_lock_25_t, omp_nest_lock_25_t): New types.
1472
        (omp_lock_t): Use sem_t instead of mutex if semaphores
1473
        aren't broken.
1474
        (omp_nest_lock_t): Likewise.  Add owner field.
1475
 
1476
2008-06-06  Jakub Jelinek  
1477
 
1478
        * testsuite/libgomp.c/collapse-1.c: New test.
1479
        * testsuite/libgomp.c/collapse-2.c: New test.
1480
        * testsuite/libgomp.c/collapse-3.c: New test.
1481
        * testsuite/libgomp.c/icv-1.c: New test.
1482
        * testsuite/libgomp.c/icv-2.c: New test.
1483
        * testsuite/libgomp.c/lib-2.c: New test.
1484
        * testsuite/libgomp.c/lock-1.c: New test.
1485
        * testsuite/libgomp.c/lock-2.c: New test.
1486
        * testsuite/libgomp.c/lock-3.c: New test.
1487
        * testsuite/libgomp.c/loop-4.c: New test.
1488
        * testsuite/libgomp.c/loop-5.c: New test.
1489
        * testsuite/libgomp.c/loop-6.c: New test.
1490
        * testsuite/libgomp.c/loop-7.c: New test.
1491
        * testsuite/libgomp.c/loop-8.c: New test.
1492
        * testsuite/libgomp.c/loop-9.c: New test.
1493
        * testsuite/libgomp.c/nested-3.c: New test.
1494
        * testsuite/libgomp.c/nestedfn-6.c: New test.
1495
        * testsuite/libgomp.c/sort-1.c: New test.
1496
        * testsuite/libgomp.c/task-1.c: New test.
1497
        * testsuite/libgomp.c/task-2.c: New test.
1498
        * testsuite/libgomp.c/task-3.c: New test.
1499
        * testsuite/libgomp.c/task-4.c: New test.
1500
        * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1501
        to C++ testsuite default compiler options.
1502
        * testsuite/libgomp.c++/collapse-1.C: New test.
1503
        * testsuite/libgomp.c++/collapse-2.C: New test.
1504
        * testsuite/libgomp.c++/ctor-10.C: New test.
1505
        * testsuite/libgomp.c++/for-1.C: New test.
1506
        * testsuite/libgomp.c++/for-2.C: New test.
1507
        * testsuite/libgomp.c++/for-3.C: New test.
1508
        * testsuite/libgomp.c++/for-4.C: New test.
1509
        * testsuite/libgomp.c++/for-5.C: New test.
1510
        * testsuite/libgomp.c++/loop-8.C: New test.
1511
        * testsuite/libgomp.c++/loop-9.C: New test.
1512
        * testsuite/libgomp.c++/loop-10.C: New test.
1513
        * testsuite/libgomp.c++/task-1.C: New test.
1514
        * testsuite/libgomp.c++/task-2.C: New test.
1515
        * testsuite/libgomp.c++/task-3.C: New test.
1516
        * testsuite/libgomp.c++/task-4.C: New test.
1517
        * testsuite/libgomp.c++/task-5.C: New test.
1518
        * testsuite/libgomp.c++/task-6.C: New test.
1519
        * testsuite/libgomp.fortran/allocatable1.f90: New test.
1520
        * testsuite/libgomp.fortran/allocatable2.f90: New test.
1521
        * testsuite/libgomp.fortran/allocatable3.f90: New test.
1522
        * testsuite/libgomp.fortran/allocatable4.f90: New test.
1523
        * testsuite/libgomp.fortran/collapse1.f90: New test.
1524
        * testsuite/libgomp.fortran/collapse2.f90: New test.
1525
        * testsuite/libgomp.fortran/collapse3.f90: New test.
1526
        * testsuite/libgomp.fortran/collapse4.f90: New test.
1527
        * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1528
        * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1529
        * testsuite/libgomp.fortran/lib4.f90: New test.
1530
        * testsuite/libgomp.fortran/lock-1.f90: New test.
1531
        * testsuite/libgomp.fortran/lock-2.f90: New test.
1532
        * testsuite/libgomp.fortran/nested1.f90: New test.
1533
        * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1534
        * testsuite/libgomp.fortran/strassen.f90: New test.
1535
        * testsuite/libgomp.fortran/tabs1.f90: New test.
1536
        * testsuite/libgomp.fortran/tabs2.f: New test.
1537
        * testsuite/libgomp.fortran/task1.f90: New test.
1538
        * testsuite/libgomp.fortran/task2.f90: New test.
1539
        * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1540
        * testsuite/libgomp.fortran/vla5.f90: Likewise.
1541
        * testsuite/libgomp.c/pr26943-2.c: Likewise.
1542
        * testsuite/libgomp.c/pr26943-3.c: Likewise.
1543
        * testsuite/libgomp.c/pr26943-4.c: Likewise.
1544
 
1545
2008-05-23  Jakub Jelinek  
1546
 
1547
        PR c++/36308
1548
        * testsuite/libgomp.c++/ctor-11.C: New test.
1549
        * testsuite/libgomp.c++/ctor-12.C: New test.
1550
 
1551
2008-05-15  Janis Johnson  
1552
 
1553
        * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1554
 
1555
2008-05-07  Jakub Jelinek  
1556
 
1557
        PR middle-end/36106
1558
        * testsuite/libgomp.c/atomic-5.c: New test.
1559
        * testsuite/libgomp.c/atomic-6.c: New test.
1560
        * testsuite/libgomp.c/autopar-1.c: New test.
1561
 
1562
2008-04-21  Ralf Wildenhues  
1563
 
1564
        * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1565
        (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1566
        (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1567
        (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1568
        * configure: Regenerate.
1569
        * Makefile.in, testsuite/Makefile.in: Likewise.
1570
 
1571
2008-04-18  Paolo Bonzini  
1572
 
1573
        PR bootstrap/35457
1574
        * aclocal.m4: Regenerate.
1575
        * configure: Regenerate.
1576
 
1577
2008-03-18  Jakub Jelinek  
1578
 
1579
        PR middle-end/35611
1580
        * testsuite/libgomp.c/atomic-4.c: New test.
1581
 
1582
        PR libgomp/35625
1583
        * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1584
        (gomp_iter_guided_next): Likewise.
1585
        * testsuite/libgomp.c/pr35625.c: New test.
1586
 
1587
2008-03-16  Ralf Wildenhues  
1588
 
1589
        * aclocal.m4: Regenerate.
1590
        * configure: Likewise.
1591
        * Makefile.in: Likewise.
1592
        * testsuite/Makefile.in: Likewise.
1593
 
1594
2008-03-13  Jakub Jelinek  
1595
 
1596
        PR middle-end/35185
1597
        * testsuite/libgomp.c++/pr35185.C: New test.
1598
 
1599
2008-03-12  Jakub Jelinek  
1600
 
1601
        PR middle-end/35549
1602
        * testsuite/libgomp.c/pr35549.c: New test.
1603
 
1604
2008-03-06  Jakub Jelinek  
1605
 
1606
        * testsuite/libgomp.c/atomic-3.c: New test.
1607
 
1608
2008-03-03  Francois-Xavier Coudert  
1609
 
1610
        PR fortran/33197
1611
        * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1612
        .F08 file suffixes.
1613
 
1614
2008-03-03  Peter O'Gorman  
1615
 
1616
        PR libgomp/33131
1617
        * configure.ac: Add ACX_HEADER_STRING.
1618
        * env.c: Include strings.h.
1619
        * aclocal.m4: Regenerate.
1620
        * config.h.in: Regenerate.
1621
        * configure: Regenerate.
1622
        * Makefile.in: Regenerate.
1623
        * testsuite/Makefile.in: Regenerate.
1624
 
1625
2008-02-15  Jakub Jelinek  
1626
 
1627
        PR middle-end/35196
1628
        * testsuite/libgomp.c/pr35196.c: New test.
1629
 
1630
        PR middle-end/35130
1631
        * testsuite/libgomp.fortran/pr35130.f90: New test.
1632
        * testsuite/libgomp.c/pr35130.c: New test.
1633
 
1634
2008-01-25  Jakub Jelinek  
1635
 
1636
        PR middle-end/33880
1637
        * testsuite/libgomp.c/pr33880.c: New test.
1638
        * testsuite/libgomp.fortran/pr33880.f90: New test.
1639
 
1640
2008-01-24  David Edelsohn  
1641
 
1642
        * configure: Regenerate.
1643
 
1644
2008-01-08  Jakub Jelinek  
1645
 
1646
        * configure.ac: Move futex checking into ../config/futex.m4.
1647
        * configure: Rebuilt.
1648
        * aclocal.m4: Rebuilt.
1649
        * Makefile.in: Rebuilt.
1650
 
1651
        * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1652
        2007-10-15 ../config/tls.m4 change.
1653
 
1654
2007-12-19  Jakub Jelinek  
1655
 
1656
        PR c++/34513
1657
        * testsuite/libgomp.c/pr34513.c: New test.
1658
        * testsuite/libgomp.c++/pr34513.C: New test.
1659
 
1660
2007-12-17  Jack Howarth  
1661
 
1662
        PR target/32765
1663
        * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1664
 
1665
2007-12-04  Jakub Jelinek  
1666
 
1667
        * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1668
 
1669
2007-12-03  Jakub Jelinek  
1670
 
1671
        * testsuite/libgomp.c/private-1.c: New test.
1672
 
1673
2007-11-29  Andris Pavenis 
1674
            Paolo Bonzini  
1675
 
1676
        * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1677
        instead of 'VPATH ='.
1678
        * Makefile.in: Regenerate.
1679
 
1680
2007-11-23  Matthias Klose  
1681
 
1682
        * configure.ac: Adjust makeinfo version check.
1683
        * configure: Regenerate.
1684
 
1685
2007-11-10  Jakub Jelinek  
1686
 
1687
        PR fortran/34020
1688
        * testsuite/libgomp.fortran/pr34020.f90: New test.
1689
 
1690
2007-11-06  Jakub Jelinek  
1691
 
1692
        PR c++/33894
1693
        * testsuite/libgomp.c++/atomic-1.C: New test.
1694
 
1695
2007-10-25  Jakub Jelinek  
1696
 
1697
        PR libgomp/33275
1698
        * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1699
        Make x and y integers rather than (implicit) reals.  Add private (j)
1700
        clause to the last omp parallel.
1701
 
1702
2007-10-15  Maciej W. Rozycki  
1703
 
1704
        * configure: Regenerate following changes to ../config/tls.m4.
1705
 
1706
2007-09-28  Jakub Jelinek  
1707
 
1708
        * testsuite/libgomp.fortran/stack.f90: New test.
1709
 
1710
2007-09-10  Danny Smith  
1711
 
1712
        * config/mingw32/proc.c: New file.
1713
 
1714
2007-09-05  Uros Bizjak  
1715
 
1716
        * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1717
        (main): Use __get_cpuid to get i386 target fetaures.
1718
        * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1719
        (main): Use __get_cpuid to get x86_64 target fetaures.
1720
 
1721
2007-08-15  Jack Howarth  
1722
 
1723
        PR target/32765
1724
        * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1725
        * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1726
 
1727
2007-07-12  Jakub Jelinek  
1728
 
1729
        PR fortran/32550
1730
        * testsuite/libgomp.fortran/pr32550.f90: New test.
1731
        * testsuite/libgomp.fortran/crayptr2.f90: New test.
1732
 
1733
2007-07-05  H.J. Lu  
1734
 
1735
        * aclocal.m4: Regenerated.
1736
 
1737
2007-07-05  Tobias Burnus  
1738
 
1739
        PR fortran/32359
1740
        * testsuite/libgomp.fortran/pr32359.f90: New.
1741
 
1742
2007-07-02  Jakub Jelinek  
1743
 
1744
        PR libgomp/32468
1745
        * sections.c (GOMP_parallel_sections_start): Only decrease
1746
        number of threads to COUNT if dyn_var is true.
1747
        * testsuite/libgomp.c/pr32468.c: New test.
1748
 
1749
2007-07-02  Rainer Orth  
1750
 
1751
        PR libgomp/26308
1752
        * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1753
 
1754
2007-06-21  Jakub Jelinek  
1755
 
1756
        PR middle-end/32362
1757
        * testsuite/libgomp.c/pr32362-1.c: New test.
1758
        * testsuite/libgomp.c/pr32362-2.c: New test.
1759
        * testsuite/libgomp.c/pr32362-3.c: New test.
1760
 
1761
2007-06-07  Jakub Jelinek  
1762
 
1763
        * team.c (gomp_team_start): Fix setting up thread_attr
1764
        stack size.
1765
 
1766
2007-06-02  Paolo Bonzini  
1767
 
1768
        * configure: Regenerate.
1769
 
1770
2007-05-23  Steve Ellcey  
1771
 
1772
        * Makefile.in: Regenerate.
1773
        * configure: Regenerate.
1774
        * aclocal.m4: Regenerate.
1775
        * testsuite/Makefile.in: Regenerate.
1776
 
1777
2007-05-04  Jakub Jelinek  
1778
 
1779
        * config/linux/proc.c: New file.
1780
 
1781
        PR libgomp/28482
1782
        * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1783
 
1784
2007-04-19  Daniel Franke  
1785
 
1786
        * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1787
 
1788
2007-04-16  Matthias Klose  
1789
 
1790
        * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1791
        flags if not building with -m64.
1792
        * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1793
        flag for i?86-*-* targets, if current target matches -m64.
1794
 
1795
2007-04-14  Steve Ellcey  
1796
 
1797
        * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1798
        * Makefile.in: Regenerate.
1799
 
1800
2007-04-07  John David Anglin  
1801
 
1802
        PR testsuite/31369
1803
        * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1804
        ld_library_path.
1805
        * testsuite/libgomp.fortran/fortran.exp: Likewise.
1806
 
1807
2007-04-04  Jakub Jelinek  
1808
 
1809
        * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1810
        decls.
1811
        (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1812
        * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1813
        (parse_affinity): New function.
1814
        (initialize_env): Call it and gomp_init_affinity.
1815
        * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1816
        create new pthread_attr_t and call gomp_init_thread_affinity
1817
        on it for each thread before passing the attribute to pthread_create.
1818
        * config/linux/affinity.c: New file.
1819
        * config/posix/affinity.c: New file.
1820
        * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1821
        * configure: Rebuilt.
1822
        * config.h.in: Rebuilt.
1823
        * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1824
        * Makefile.in: Rebuilt.
1825
 
1826
2007-03-23  Andreas Tobler  
1827
 
1828
        * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1829
        *-*-darwin*.
1830
        * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1831
        and use it if found.
1832
 
1833
2007-03-18  Uros Bizjak  
1834
 
1835
        * testsuite/config/default.exp: New file.
1836
        * testsuite/lib/libgomp.exp: New file.
1837
        * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1838
        libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1839
        load_lib *, load_gcc_lib *): Move to libgomp.exp.
1840
        (libgomp_load): Remove.
1841
        * testsuite/lib/libgomp.exp (libgomp_init): Compute
1842
        always_ld_library_path, not ld_library_path.  Set additional_flags
1843
        to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1844
        (target_compile): Do not call libgomp_init.  Append lang_library_path
1845
        and lang_link_flags to options.
1846
        * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1847
        ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1848
        here.
1849
        * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1850
        always_ld_library_path.  Set LD_LIBRARY_PATH here.
1851
        * testsuite/libgomp.fortran/fortran.exp: Ditto.
1852
        * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1853
        "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1854
        CX8 flag.
1855
        * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1856
        lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1857
        * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1858
        * testsuite/libgomp.c/pr29947-1.c: Ditto.
1859
        * testsuite/libgomp.c/atomic-10.c: Ditto.
1860
 
1861
2007-03-21  Jakub Jelinek  
1862
 
1863
        * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1864
        dg-final cleanup-modules line.
1865
        * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1866
        * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1867
        * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1868
        * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1869
        * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1870
        * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1871
        * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1872
 
1873
2007-03-18  Andreas Schwab  
1874
 
1875
        * acinclude.m4: Adjust regular expression for ld version
1876
        extraction.
1877
        * configure: Regenerate.
1878
 
1879
2007-03-01  Brooks Moses  
1880
 
1881
        * Makefile.am: Add install-pdf target as copied from
1882
        automake v1.10 rules.
1883
        * Makefile.in: Regenerate
1884
 
1885
2007-02-07  Jakub Jelinek  
1886
 
1887
        PR libgomp/28486
1888
        * configure: Regenerate.
1889
 
1890
        PR c++/30703
1891
        * testsuite/libgomp.c++/pr30703.C: New test.
1892
 
1893
2007-02-02  Jakub Jelinek  
1894
 
1895
        Revert:
1896
        2006-07-05  Eric Christopher  
1897
        * configure.ac: Depend addition of -pthread on host OS.
1898
        * configure: Regenerate.
1899
 
1900
2007-01-31  Ralf Wildenhues  
1901
 
1902
        * libgomp.texi: Fix spacing after abbreviations.
1903
 
1904
2007-01-31  Daniel Franke 
1905
 
1906
        PR libgomp/30546
1907
        * configure.ac: Add check for makeinfo
1908
        * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1909
        if an appropiate version of makeinfo is found.
1910
        * aclocal.m4: Regenerated.
1911
        * configure: Regenerated.
1912
        * Makefile.in: Regenerated.
1913
        * testsuite/Makefile.in: Regenerated.
1914
 
1915
2007-01-29  Daniel Franke 
1916
 
1917
        PR libgomp/30540
1918
        * libgomp.texi: More about implementation-dependent settings.
1919
 
1920
2007-01-26  Tobias Burnus  
1921
 
1922
        * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1923
 
1924
2007-01-24  Jakub Jelinek  
1925
 
1926
        PR middle-end/30494
1927
        * testsuite/libgomp.c/pr30494.c: New test.
1928
 
1929
2007-01-15  Tom Tromey  
1930
 
1931
        * configure: Rebuilt.
1932
        * configure.ac: Fixed comment.
1933
 
1934
2007-01-14  Daniel Franke  
1935
 
1936
        * libgomp.texi: Document implementation specific default values of
1937
        environment variables.
1938
 
1939
2006-12-21  Daniel Franke  
1940
 
1941
        PR libgomp/28209
1942
        * libgomp.texi: New file.
1943
        * configure.ac: Add --enable-generated-files-in-srcdir option.
1944
        * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1945
        files to srcdir.
1946
        * Makefile.in: Regenerated.
1947
        * config.h.in: Regenerated.
1948
        * testsuite/Makefile.in: Regenerated.
1949
        * NOTES: Removed.
1950
 
1951
2006-12-04  Daniel Franke  
1952
 
1953
        PR libgomp/29949
1954
        * env.c (omp_set_num_threads): Set illegal thread count to 1.
1955
 
1956
2006-12-04  Eric Botcazou  
1957
 
1958
        * configure: Regenerate.
1959
 
1960
2006-12-04  Jakub Jelinek  
1961
 
1962
        PR libgomp/29947
1963
        * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1964
        start if there shouldn't be any loop iterations.
1965
        (gomp_loop_ordered_static_start): Remove start == end test.
1966
        * testsuite/libgomp.c/pr29947-1.c: New test.
1967
        * testsuite/libgomp.c/pr29947-2.c: New test.
1968
 
1969
2006-12-02  Eric Botcazou  
1970
 
1971
        * configure.tgt: Force initial-exec TLS model on Linux only.
1972
 
1973
2006-11-13  Daniel Jacobowitz  
1974
 
1975
        * configure: Regenerated.
1976
 
1977
2006-11-09  Uros Bizjak  
1978
 
1979
        * env.c (parse_schedule): Reject out of range values.
1980
        (parse_unsigned_long): Reject out of range, negative or zero values.
1981
 
1982
2006-10-29  Jakub Jelinek  
1983
 
1984
        PR fortran/29629
1985
        * testsuite/libgomp.fortran/pr29629.f90: New test.
1986
 
1987
2006-10-24  Eric Botcazou  
1988
 
1989
        PR libgomp/29494
1990
        * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1991
        * config/posix95: New directory.
1992
        * config/posix95/omp-lock.h: New file.
1993
        * config/posix95/lock.c: Likewise.
1994
 
1995
2006-10-14  Geoffrey Keating  
1996
 
1997
        * aclocal.m4: Regenerate.
1998
        * configure: Regenerate.
1999
 
2000
2006-10-05  Danny Smith  
2001
 
2002
        * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2003
        '<' to '<='.
2004
 
2005
2006-10-05  Danny Smith  
2006
 
2007
        * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2008
        test.
2009
        * configure: Regenerate.
2010
        * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2011
 
2012
2006-09-26  Jakub Jelinek  
2013
 
2014
        PR middle-end/25261
2015
        PR middle-end/28790
2016
        * testsuite/libgomp.c/nestedfn-4.c: New test.
2017
        * testsuite/libgomp.c/nestedfn-5.c: New test.
2018
        * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2019
 
2020
        PR fortran/29097
2021
        * testsuite/libgomp.fortran/condinc1.f: New test.
2022
        * testsuite/libgomp.fortran/condinc2.f: New test.
2023
        * testsuite/libgomp.fortran/condinc3.f90: New test.
2024
        * testsuite/libgomp.fortran/condinc4.f90: New test.
2025
        * testsuite/libgomp.fortran/condinc1.inc: New file.
2026
 
2027
2006-09-18  Tom Tromey  
2028
 
2029
        * configure: Rebuilt.
2030
 
2031
2006-09-13  Joseph S. Myers  
2032
 
2033
        PR c/28768
2034
        PR preprocessor/14634
2035
        * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2036
        to AC_DEFINE.
2037
        * configure: Regenerate.
2038
 
2039
2006-09-08  Steven G. Kargl  
2040
 
2041
        * testsuite/libgomp.fortran/reduction3.f90: Change
2042
        -2147483648 to -huge(i)-1 to avoid overflow.
2043
        * testsuite/libgomp.fortran/reduction4.f90: Change
2044
        Z'ffffffff' to not(0) to avoid overflow.
2045
 
2046
2006-08-26  Joseph S. Myers  
2047
 
2048
        PR libgomp/25938
2049
        * Makefile.am (libsubincludedir): New.
2050
        (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2051
        * Makefile.in: Regenerate.
2052
 
2053
2006-08-17  Jakub Jelinek  
2054
 
2055
        PR libgomp/28725
2056
        * env.c: Include ctype.h.
2057
        (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2058
        leading and/or trailing whitespace and compare strings case
2059
        insensitively.
2060
 
2061
2006-07-16  Jakub Jelinek  
2062
 
2063
        PR fortran/28390
2064
        * testsuite/libgomp.fortran/pr28390.f: New test.
2065
 
2066
2006-07-05  Eric Christopher  
2067
 
2068
        * configure.ac: Depend addition of -pthread on host OS.
2069
        * configure: Regenerate.
2070
 
2071
2006-06-21  Jakub Jelinek  
2072
 
2073
        * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2074
        when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2075
        defined.
2076
 
2077
2006-06-20  Jakub Jelinek  
2078
 
2079
        PR libgomp/26175
2080
        PR libgomp/26477
2081
        * configure.ac: If neither --enable-linux-futex nor
2082
        --disable-linux-futex is passed, determine the default by checking
2083
        for compiling and/or running against NPTL.  With --enable-linux-futex,
2084
        check if SYS_gettid and SYS_futex are defined.
2085
        * configure: Rebuilt.
2086
 
2087
2006-06-14  Richard Henderson  
2088
 
2089
        PR libgomp/28008
2090
        * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2091
        undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2092
 
2093
2006-06-09  Richard Henderson  
2094
 
2095
        * env.c (gomp_nthreads_var): Change to unsigned long.
2096
        (gomp_run_sched_chunk): Likewise.
2097
        (parse_unsigned_long): Rename from parse_num_threads and generalize.
2098
        (initialize_env): Initialize gomp_thread_attr.
2099
        * libgomp.h (gomp_nthreads_var): Update decl.
2100
        (gomp_run_sched_chunk): Likewise.
2101
        (gomp_thread_attr): Declare.
2102
        * team.c (gomp_thread_attr): Export.
2103
        (initialize_team): Don't initialize it.
2104
 
2105
2006-06-09  Jakub Jelinek  
2106
 
2107
        PR fortran/27916
2108
        * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2109
        * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2110
 
2111
2006-06-06  Francois-Xavier Coudert  
2112
 
2113
        * config/mingw32/time.c: New file.
2114
        * configure.tgt: Use it.
2115
 
2116
2006-05-23  Carlos O'Donell  
2117
 
2118
        * Makefile.am: Add install-html target. Add install-html to .PHONY
2119
        * Makefile.in: Regenerate.
2120
 
2121
2006-05-22  John David Anglin  
2122
 
2123
        PR libgomp/27612
2124
        * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2125
        * testsuite/libgomp.c/critical-1.c: Likewise.
2126
        * testsuite/libgomp.c/loop-1.c: Likewise.
2127
        * testsuite/libgomp.c/loop-2.c: Likewise.
2128
        * testsuite/libgomp.c/single-1.c: Likewise.
2129
        * testsuite/libgomp.c/ordered-1.c: Likewise.
2130
        * testsuite/libgomp.c/ordered-2.c: Likewise.
2131
 
2132
2006-05-15  Jakub Jelinek  
2133
 
2134
        PR middle-end/27416
2135
        * libgomp.fortran/pr27416-1.f90: New test.
2136
 
2137
2006-05-03  Jakub Jelinek  
2138
 
2139
        PR fortran/27395
2140
        * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2141
        * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2142
 
2143
2006-05-02  Jakub Jelinek  
2144
 
2145
        PR c++/26943
2146
        * testsuite/libgomp.c/pr26943-1.c: New test.
2147
        * testsuite/libgomp.c/pr26943-2.c: New test.
2148
        * testsuite/libgomp.c/pr26943-3.c: New test.
2149
        * testsuite/libgomp.c/pr26943-4.c: New test.
2150
        * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2151
        * testsuite/libgomp.c++/pr26943.C: New test.
2152
 
2153
2006-05-02  Jakub Jelinek  
2154
 
2155
        PR middle-end/27337
2156
        * testsuite/libgomp.c++/pr27337.C: New test.
2157
 
2158
2006-04-26  Jakub Jelinek  
2159
 
2160
        PR c/26171
2161
        * testsuite/libgomp.c/pr26171.c: New test.
2162
 
2163
2006-04-25  Richard Henderson  
2164
 
2165
        PR libgomp/25865
2166
        * configure.ac: Use GCC_CHECK_TLS.
2167
        * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2168
        * Makefile.in, aclocal.m4, configure: Regenerate.
2169
 
2170
2006-04-10  Matthias Klose  
2171
 
2172
        * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2173
        directory names containing underscores.
2174
 
2175
2006-03-21  Jakub Jelinek  
2176
 
2177
        PR c++/26691
2178
        * testsuite/libgomp.c++/pr26691.C: New test.
2179
 
2180
2006-03-13  Jakub Jelinek  
2181
 
2182
        * testsuite/libgomp.fortran/retval2.f90: New test.
2183
 
2184
2006-03-09  Diego Novillo  
2185
 
2186
        * testsuite/libgomp.c++: New directory.
2187
 
2188
2006-02-25  Shantonu Sen  
2189
 
2190
        * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2191
        * config/posix/sem.c: Implement the above.
2192
 
2193
2006-02-25  Andreas Tobler  
2194
 
2195
        * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2196
        define HAVE_BROKEN_POSIX_SEMAPHORES.
2197
        * configure: Rebuilt.
2198
        * config.h.in: Rebuilt.
2199
 
2200
2006-02-17  Francois-Xavier Coudert  
2201
 
2202
        PR bootstrap/26161
2203
        * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2204
        for the other pthread check.
2205
        * configure: Regenerate.
2206
        * config.h.in: Regenerate.
2207
 
2208
2006-02-15  Jakub Jelinek  
2209
 
2210
        PR libgomp/25938
2211
        PR libgomp/25984
2212
        * Makefile.am (fincludedir): New variable.
2213
        (nodist_include_HEADERS): Remove Fortran files.
2214
        (nodist_finclude_HEADERS): New variable.
2215
        * Makefile.in: Regenerated.
2216
 
2217
2006-02-13  Jakub Jelinek  
2218
 
2219
        * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2220
        Remove tests for returning assumed character length arrays.
2221
 
2222
2006-02-12  Roger Sayle  
2223
            John David Anglin  
2224
 
2225
        PR libgomp/25936
2226
        * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2227
 
2228
2006-02-08  Ulrich Weigand  
2229
 
2230
        * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2231
 
2232
2006-02-07  Eric Botcazou  
2233
 
2234
        * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2235
        part of LD_LIBRARY_PATH manually.
2236
 
2237
2006-02-03  H.J. Lu  
2238
 
2239
        PR libgomp/25852
2240
        * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2241
        libgomp_init.
2242
 
2243
2005-01-25  Paolo Bonzini  
2244
 
2245
        PR libgomp/25884
2246
        * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2247
        * configure.ac (PERL): Don't set.
2248
        (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2249
        (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2250
        OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2251
        * omp.h.in: Wrap the new configure substitutions with @ characters.
2252
        * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2253
        * aclocal.m4, configure, Makefile.in: Regenerate.
2254
        * mkomp_h.pl: Delete.
2255
 
2256
2005-01-24  Paolo Bonzini  
2257
 
2258
        PR libgomp/25259
2259
        * configure.ac: Use GCC_HEADER_STDINT.
2260
        * libgomp.h: Include gstdint.h.
2261
        * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2262
        * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2263
 
2264
2006-01-24  Richard Henderson  
2265
 
2266
        PR libgomp/25942
2267
        * configure.ac: Add AM_MAINTAINER_MODE.
2268
        * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2269
 
2270
2006-01-24  Diego Novillo  
2271
 
2272
        * Makefile.in: Regenerate.
2273
        * testsuite/Makefile.in: Regenerate.
2274
        * aclocal.m4: Regenerate.
2275
 
2276
2006-01-23  Andreas Tobler  
2277
 
2278
        * config/posix/proc.c: Conditional include of sys/loadavg.h for
2279
        Solaris.
2280
        * configure.ac: Add check for loadavg.h.
2281
        (link_gomp): Adjust comment.
2282
        * configure: Regenerate.
2283
        * config.h.in: Regenerate.
2284
 
2285
2006-01-21  Steve Ellcey  
2286
 
2287
        PR libgomp/25877
2288
        * configure.ac: Remove check for alloca.h.
2289
        * configure: Regenerate.
2290
        * config.h.in: Regenerate.
2291
        * libgomp.h: define gomp_alloca to be __builtin_alloca.
2292
        * team.c: Remove use of alloca.h.
2293
        Call gomp_alloca instead of alloca.
2294
 
2295
2006-01-20  Steve Ellcey  
2296
 
2297
        PR libgomp/25877
2298
        * team.c: Add include of alloca.h.
2299
        * configure.ac: Add check for alloca.h.
2300
        * configure: Regenerate.
2301
        * config.h.in: Regenerate.
2302
 
2303
2006-01-17  Jakub Jelinek  
2304
 
2305
        PR fortran/25219
2306
        * testsuite/libgomp.fortran/pr25219.f90: New test.
2307
 
2308
2005-12-05  Uros Bizjak  
2309
 
2310
        * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2311
        testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2312
        testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2313
        testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2314
        testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2315
        testsuite/libgomp.fortran/threadprivate1.f90,
2316
        testsuite/libgomp.fortran/threadprivate2.f90,
2317
        testsuite/libgomp.fortran/threadprivate3.f90,
2318
        testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2319
        testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2320
        testsuite/libgomp.fortran/omp_parse3.f90: Change required
2321
        effective-target to TLS runtime.
2322
 
2323
        * testsuite/libgomp.fortran/pr25162.f: Require
2324
        effective-target TLS runtime.
2325
 
2326
2005-12-01  Jakub Jelinek  
2327
 
2328
        * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2329
        * testsuite/libgomp.c/nestedfn-3.c: New test.
2330
 
2331
2005-11-30  Jakub Jelinek  
2332
 
2333
        PR fortran/25162
2334
        * testsuite/libgomp.fortran/pr25162.f: New test.
2335
 
2336
2005-11-28  Jakub Jelinek  
2337
 
2338
        * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2339
        CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2340
 
2341
2005-11-25  Jakub Jelinek  
2342
 
2343
        * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2344
        libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2345
        omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2346
        single.c, team.c, work.c, config/linux/alpha/futex.h,
2347
        config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2348
        config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2349
        config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2350
        config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2351
        config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2352
        config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2353
        config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2354
        FSF address.
2355
 
2356
2005-11-18  Jakub Jelinek  
2357
 
2358
        * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2359
        to nodist_noinst_HEADERS.
2360
        * Makefile.in: Rebuilt.
2361
 
2362
        * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2363
        add integer count field.
2364
        * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2365
        omp_nest_lock_t type change.
2366
        (omp_init_nest_lock): Likewise.  Initialize count to 0.
2367
        (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2368
        Increment count.
2369
        (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2370
        Decrement count.
2371
        (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2372
        Increment count if successful and return the new nesting level.
2373
        * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2374
        * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2375
        * testsuite/libgomp.c/lib-1.c: New test.
2376
        * testsuite/libgomp.fortran/lib1.f90: New test.
2377
        * testsuite/libgomp.fortran/lib2.f: New test.
2378
        * testsuite/libgomp.fortran/lib3.f: New test.
2379
 
2380
2005-11-17  Richard Henderson  
2381
 
2382
        PR 24845
2383
        * Makefile.am (nodist_toolexeclib_HEADERS): New.
2384
        * configure.ac (link_gomp): New.  Substitute it.
2385
        (AC_CONFIG_FILES): Add libgomp.spec.
2386
        * libgomp.spec.in: New file.
2387
        * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2388
        * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2389
 
2390
2005-11-18  Jakub Jelinek  
2391
 
2392
        * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2393
        reduction(-:var) behaving the same as reduction(+:var).
2394
        * testsuite/libgomp.c/reduction-4.c: New test.
2395
 
2396
2005-11-15  Uros Bizjak  
2397
 
2398
        * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2399
        testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2400
        testsuite/libgomp.c/copyin-3.c,
2401
        testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2402
        testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2403
        testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2404
        testsuite/libgomp.c++/pr24455.C,
2405
        testsuite/libgomp.fortran/threadprivate1.f90,
2406
        testsuite/libgomp.fortran/threadprivate2.f90,
2407
        testsuite/libgomp.fortran/threadprivate3.f90,
2408
        testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2409
        testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2410
        testsuite/libgomp.fortran/omp_parse3.f90: Require
2411
        effective-target TLS.
2412
 
2413
2005-11-14  Diego Novillo  
2414
 
2415
        * HEADER: Remove.
2416
 
2417
2005-11-13  Jakub Jelinek  
2418
 
2419
        PR libgomp/24797
2420
        * team.c (initialize_team): Pass NULL rather than free as
2421
        pthread_key_create destructor.  Initialize thread specific data
2422
        pointer in initial thread to a static local variable rather than
2423
        malloced memory.
2424
 
2425
2005-11-11  Uros Bizjak  
2426
 
2427
        * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2428
        its location to ld_library_path.
2429
 
2430
2005-11-10  Diego Novillo  
2431
 
2432
        * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2433
 
2434
2005-11-10  Diego Novillo  
2435
 
2436
        * testsuite/libgomp.c: Rename from libgomp.dg.
2437
 
2438
2005-11-09  Diego Novillo  
2439
 
2440
        * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2441
        threadprivate variable 'i'.
2442
 
2443
2005-11-09  Jakub Jelinek  
2444
 
2445
        * config/linux/s390/futex.h: New file.
2446
        * configure.tgt: Use it.
2447
 
2448
        * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2449
        before the parallel.
2450
 
2451
2005-11-08  Jakub Jelinek  
2452
 
2453
        PR c++/24734
2454
        * testsuite/libgomp.c++/master-1.C: New test.
2455
 
2456
2005-11-07  Jakub Jelinek  
2457
 
2458
        * testsuite/libgomp.dg/copyin-3.c: New test.
2459
 
2460
2005-11-07  Jakub Jelinek  
2461
 
2462
        * testsuite/libgomp.fortran/retval1.f90: New test.
2463
        * testsuite/libgomp.fortran/vla7.f90: New test.
2464
 
2465
2005-11-06  Jakub Jelinek  
2466
 
2467
        * testsuite/libgomp.fortran/vla2.f90: New test.
2468
        * testsuite/libgomp.fortran/vla3.f90: New test.
2469
        * testsuite/libgomp.fortran/vla4.f90: New test.
2470
        * testsuite/libgomp.fortran/vla5.f90: New test.
2471
        * testsuite/libgomp.fortran/vla6.f90: New test.
2472
 
2473
2005-11-01  Jakub Jelinek  
2474
 
2475
        * config/linux/sparc/futex.h: New file.
2476
        * configure.tgt: Use it.
2477
        * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2478
 
2479
        * critical.c: Include stdlib.h.
2480
        * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2481
        ignoring return value.
2482
        * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2483
        LIBGOMP_CHECK_SYNC_BUILTINS check.
2484
        * configure: Rebuilt.
2485
 
2486
2005-10-31  Jakub Jelinek  
2487
 
2488
        * testsuite/libgomp.fortran/vla1.f90: New test.
2489
 
2490
2005-10-31  Richard Henderson  
2491
 
2492
        * testsuite/libgomp.fortran/character2.f90: Fix race condition
2493
        setting 's' in different threads.
2494
 
2495
2005-10-31  Jakub Jelinek  
2496
 
2497
        * libgomp.h (attribute_hidden, ialias): Define.
2498
        * config/posix/proc.c (omp_get_num_procs): Add ialias.
2499
        * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2500
        * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2501
        omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2502
        omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2503
        omp_test_lock, omp_test_nest_lock): Likewise.
2504
        * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2505
        omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2506
        omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2507
        omp_test_lock, omp_test_nest_lock): Likewise.
2508
        * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2509
        omp_get_dynamic, omp_get_nested): Likewise.
2510
        * parallel.c (omp_get_num_threads, omp_get_max_threads,
2511
        omp_get_thread_num, omp_in_parallel): Likewise.
2512
        * fortran.c (ialias_redirect): Define.
2513
        (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2514
        omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2515
        omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2516
        omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2517
        omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2518
        omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2519
        omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2520
        omp_get_wtime): Add ialias_redirect.
2521
 
2522
2005-10-30  Jakub Jelinek  
2523
 
2524
        * fortran.c: Include stdlib.h.
2525
 
2526
2005-10-29  Jakub Jelinek  
2527
 
2528
        * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2529
        * Makefile.in: Regenerated.
2530
 
2531
2005-10-28  Jakub Jelinek  
2532
 
2533
        * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2534
        * libgomp_f.h.in (omp_check_defines): New function.
2535
        * env.c: Include libgomp_f.h.
2536
        (initialize_env): Call omp_check_defines.
2537
 
2538
        * testsuite/libgomp.dg/copyin-2.c: New test.
2539
        * testsuite/libgomp.c++/copyin-2.C: New test.
2540
        * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2541
 
2542
        * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2543
        * testsuite/libgomp.fortran/sharing2.f90: New test.
2544
 
2545
        * testsuite/libgomp.dg/copyin-1.c: New test.
2546
        * testsuite/libgomp.c++/copyin-1.C: New test.
2547
 
2548
2005-10-26  Jakub Jelinek  
2549
 
2550
        * testsuite/libgomp.fortran/crayptr1.f90: New test.
2551
 
2552
        * testsuite/libgomp.fortran/workshare1.f90: New test.
2553
 
2554
        * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2555
        only test.
2556
        * libgomp.fortran/sharing1.f90: New test.
2557
 
2558
2005-10-24  Jakub Jelinek  
2559
 
2560
        PR c++/24502
2561
        * testsuite/libgomp.c++/loop-7.C: New test.
2562
 
2563
        * testsuite/libgomp.dg/nestedfn-2.c: New test.
2564
 
2565
        * testsuite/libgomp.dg/nestedfn-1.c: New test.
2566
        * testsuite/libgomp.fortran/reduction6.f90: New test.
2567
        * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2568
 
2569
2005-10-23  Richard Henderson  
2570
 
2571
        * testsuite/libgomp.c++/ctor-1.C: New.
2572
        * testsuite/libgomp.c++/ctor-2.C: New.
2573
        * testsuite/libgomp.c++/ctor-3.C: New.
2574
        * testsuite/libgomp.c++/ctor-4.C: New.
2575
        * testsuite/libgomp.c++/ctor-5.C: New.
2576
        * testsuite/libgomp.c++/ctor-6.C: New.
2577
        * testsuite/libgomp.c++/ctor-7.C: New.
2578
        * testsuite/libgomp.c++/ctor-8.C: New.
2579
        * testsuite/libgomp.c++/ctor-9.C: New.
2580
 
2581
2005-10-21  Diego Novillo  
2582
 
2583
        PR 24455
2584
        * testsuite/libgomp.c++/pr24455-1.C: New test.
2585
        * testsuite/libgomp.c++/pr24455.C: New test.
2586
        * testsuite/libgomp.dg/pr24455-1.c: New test.
2587
        * testsuite/libgomp.dg/pr24455.c: New test.
2588
 
2589
2005-10-20  Richard Henderson  
2590
 
2591
        * testsuite/libgomp.c++/loop-6.C: New.
2592
        * testsuite/libgomp.dg/loop-3.c: New.
2593
 
2594
2005-10-20  Jakub Jelinek  
2595
 
2596
        * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2597
        explicitly private.
2598
        * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2599
        explicitly shared.
2600
 
2601
2005-10-19  Diego Novillo  
2602
 
2603
        * testsuite/libgomp.fortran/jacobi.f: New test.
2604
 
2605
2005-10-19  Richard Henderson  
2606
 
2607
        * configure.tgt (i?86-linux): Default to with_arch instead of
2608
        CFLAGS.  Add -mtune to match target_cpu.
2609
        (x86_64-linux): Tune to i686.
2610
 
2611
        * fortran.c (omp_test_nest_lock_): Fix typo.
2612
 
2613
2005-10-19  Jakub Jelinek  
2614
 
2615
        * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2616
        gomp_ordered_sync): Do nothing if team->nthreads == 1.
2617
        * testsuite/libgomp.dg/ordered-3.c: New test.
2618
 
2619
        * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2620
        Remove volatile keyword.
2621
 
2622
        * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2623
        in COMMON block to avoid warnings on 64-bit targets.
2624
 
2625
2005-10-18  Diego Novillo  
2626
 
2627
        * testsuite/libgomp.dg/shared-3.c: New test.
2628
 
2629
2005-10-18  Jakub Jelinek  
2630
 
2631
        * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2632
        * testsuite/libgomp.fortran/reduction5.f90: New test.
2633
 
2634
2005-10-18  Jakub Jelinek  
2635
 
2636
        * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2637
        dg-options.
2638
        * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2639
        flush loop now that __sync_synchronize has proper memory barrier.
2640
        * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2641
        Add -ffixed-form to dg-options.
2642
 
2643
2005-10-17  Diego Novillo  
2644
 
2645
        * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2646
        from subdirectories.
2647
        * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2648
        * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2649
        * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2650
        * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2651
        * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2652
        * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2653
        * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2654
        * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2655
        * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2656
        * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2657
        * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2658
        * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2659
        * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2660
        * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2661
        * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2662
        * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2663
        * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2664
        * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2665
        * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2666
        * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2667
        * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2668
        * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2669
        * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2670
        * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2671
        * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2672
 
2673
2005-10-17  Jakub Jelinek  
2674
 
2675
        * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2676
        lang_library_path exists.  Use find instead of glob to gather tests.
2677
        * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2678
 
2679
2005-10-17  Diego Novillo  
2680
 
2681
        * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2682
        * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2683
        * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2684
        * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2685
        * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2686
        * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2687
        * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2688
        * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2689
        * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2690
        * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2691
        * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2692
        * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2693
        * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2694
 
2695
2005-10-15  Jakub Jelinek  
2696
 
2697
        * testsuite/libgomp.dg/vla-1.c: New test.
2698
 
2699
        * testsuite/libgomp.fortran/reference2.f90: New test.
2700
 
2701
        * testsuite/libgomp.fortran/character2.f90: Remove explicit
2702
        declaration of omp_get_thread_num.
2703
        * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2704
        use omp_lib.
2705
 
2706
        * testsuite/libgomp.fortran/reduction1.f90: New test.
2707
        * testsuite/libgomp.fortran/reduction2.f90: New test.
2708
        * testsuite/libgomp.fortran/reduction3.f90: New test.
2709
        * testsuite/libgomp.fortran/reduction4.f90: New test.
2710
 
2711
2005-10-13  Richard Henderson  
2712
 
2713
        * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2714
        * Makefile.in: Regenerate.
2715
        * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2716
        * libgomp.h: Include bar.h.
2717
        (struct gomp_barrier): Remove.
2718
        (struct gomp_team): Add barrier.  Replace master_barrier with
2719
        master_release.  Replace threads with ordered_release.
2720
        (struct gomp_thread): Replace barrier with release.
2721
        * ordered.c (gomp_ordered_first): Update for ordered_release change.
2722
        (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2723
        gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2724
        * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2725
        (GOMP_single_copy_end): Likewise.
2726
        * team.c (gomp_threads_dock): New.
2727
        (gomp_barrier_init, gomp_barrier_destroy): Remove.
2728
        (gomp_thread_start): Use gomp_barrier_wait.
2729
        (new_team, free_team): Update for gomp_team changes.
2730
        (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2731
        (gomp_team_end): Use gomp_barrier_wait.
2732
        (initialize_team): Update for gomp_thread changes.
2733
        * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2734
        (gomp_work_share_end_nowait): Use atomic ops when available.
2735
        * config/linux/bar.c, config/linux/bar.h: New files.
2736
        * config/posix/bar.c, config/posix/bar.h: New files.
2737
 
2738
2005-10-13  Jakub Jelinek  
2739
 
2740
        * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2741
        * testsuite/libgomp.dg/single-2.c: New test.
2742
 
2743
        * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2744
        lang_link_flags): Unset, so that they aren't inherited from previously
2745
        sourced *.exp.
2746
 
2747
        * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2748
 
2749
2005-10-12  Richard Henderson  
2750
 
2751
        * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2752
        (libgomp_init): Use lang_test_file, lang_library_path, and
2753
        lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2754
 
2755
        * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2756
        (lang_test_file, lang_link_flags): New.
2757
        (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2758
 
2759
        * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2760
        testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2761
        testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2762
        testsuite/libgomp.c++/parallel-1.C,
2763
        testsuite/libgomp.c++/reduction-1.C,
2764
        testsuite/libgomp.c++/reduction-2.C,
2765
        testsuite/libgomp.c++/reduction-3.C,
2766
        testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2767
        testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2768
        testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2769
        New files, largely cribbed from the C testsuite.
2770
 
2771
2005-10-12  Jakub Jelinek  
2772
 
2773
        * testsuite/libgomp.fortran/character1.f90: New test.
2774
        * testsuite/libgomp.fortran/character2.f90: New test.
2775
 
2776
        * testsuite/libgomp.dg/nested-1.c: New test.
2777
        * testsuite/libgomp.dg/nested-2.c: New test.
2778
        * testsuite/libgomp.fortran/do1.f90: New test.
2779
        * testsuite/libgomp.fortran/do2.f90: New test.
2780
 
2781
        * testsuite/libgomp.fortran/reference1.f90: New test.
2782
 
2783
2005-10-11  Jakub Jelinek  
2784
 
2785
        * testsuite/libgomp.dg/reduction-1.c: New test.
2786
        * testsuite/libgomp.dg/reduction-2.c: New test.
2787
        * testsuite/libgomp.dg/reduction-3.c: New test.
2788
 
2789
2005-10-10  Jakub Jelinek  
2790
 
2791
        * testsuite/libgomp.dg/atomic-1.c: New test.
2792
        * testsuite/libgomp.dg/atomic-2.c: New test.
2793
 
2794
2005-10-09  Richard Henderson  
2795
 
2796
        * critical.c (atomic_lock): New.
2797
        (initialize_critical): Initialize it.
2798
        (GOMP_atomic_start, GOMP_atomic_end): New.
2799
        * libgomp.map: Export them.
2800
        * libgomp_g.h: Declare them.
2801
 
2802
        * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2803
 
2804
2005-10-02  Richard Henderson  
2805
 
2806
        * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2807
        to XCFLAGS instead of CFLAGS.
2808
 
2809
2005-09-30  Richard Henderson  
2810
 
2811
        * configure.ac: Determine whether -pthread or -lpthread is needed.
2812
        * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2813
        * Makefine.in, configure: Rebuild.
2814
 
2815
2005-09-28  Richard Henderson  
2816
 
2817
        * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2818
        * testsuite/libgomp.dg/omp-single-3.c: New test.
2819
 
2820
2005-09-28  Diego Novillo  
2821
 
2822
        * testsuite/libgomp.dg/omp-single-2.c: New test.
2823
        * testsuite/libgomp.dg/shared-2.c: Fix return code.
2824
 
2825
2005-09-27  Richard Henderson  
2826
 
2827
        * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2828
        * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2829
 
2830
2005-09-27  Jakub Jelinek  
2831
 
2832
        * testsuite/libgomp.dg/omp-loop03.c: New test.
2833
 
2834
2005-09-27  Diego Novillo  
2835
 
2836
        * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2837
 
2838
2005-09-27  Diego Novillo  
2839
 
2840
        * testsuite/libgomp.dg/omp-single-1.c: New test.
2841
        * testsuite/libgomp.dg/shared-1.c: Return 0.
2842
        Add prototype for abort.
2843
        * testsuite/libgomp.dg/shared-2.c: Likewise.
2844
 
2845
2005-09-26  Jakub Jelinek  
2846
 
2847
        * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2848
        constructs.
2849
 
2850
2005-09-26  Diego Novillo  
2851
 
2852
        * testsuite/libgomp.dg/shared-1.c: New test.
2853
        * testsuite/libgomp.dg/shared-2.c: New test.
2854
 
2855
2005-09-24  Richard Henderson  
2856
 
2857
        * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2858
 
2859
2005-09-24  Richard Henderson  
2860
 
2861
        * iter.c (gomp_iter_static_next): Round up when computing number
2862
        of iterations.  Don't bother distributing a remainder equally.
2863
 
2864
        * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2865
        Don't call srand.  Zero b before testing.
2866
        (main): New.
2867
 
2868
2005-09-24  Jakub Jelinek  
2869
 
2870
        * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2871
        * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2872
 
2873
2005-09-23  Jakub Jelinek  
2874
 
2875
        * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2876
        without !$omp end do, followed immediately by subroutine end.
2877
 
2878
2005-09-23  Diego Novillo  
2879
 
2880
        * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2881
 
2882
2005-09-22  Richard Henderson  
2883
 
2884
        * critical.c (GOMP_critical_name_start): Change argument to void**.
2885
        Reuse the pointer space if the mutex fits.
2886
        (GOMP_critical_name_end): Likewise.
2887
        (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2888
        * libgomp_g.h (GOMP_critical_name_start): Update decl.
2889
        (GOMP_critical_name_end): Likewise.
2890
        * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2891
        * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2892
 
2893
2005-09-20  Richard Henderson  
2894
 
2895
        * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2896
        (create_lock_lock): New.
2897
        (initialize_critical): Initialize it.
2898
        * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2899
        * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2900
 
2901
2005-09-20  Diego Novillo  
2902
 
2903
        * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2904
 
2905
2005-09-20  Diego Novillo  
2906
 
2907
        * testsuite/libgomp.dg/omp-loop01.c: New test.
2908
        * testsuite/libgomp.dg/omp-loop02.c: New test.
2909
 
2910
2005-09-20  Jakub Jelinek  
2911
 
2912
        * configure.ac (AC_PROG_FC): Add.
2913
        (USE_FORTRAN): New automake conditional.
2914
        * configure: Rebuilt.
2915
        * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2916
        (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2917
        If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2918
        Add rules to build them.
2919
        * Makefile.in: Rebuilt.
2920
        * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2921
        OMP_NEST_LOCK_KIND.
2922
        * libgomp.map: Add Fortran wrappers.
2923
        * libgomp_f.h.in: New file.
2924
        * omp_lib.h.in: New file.
2925
        * omp_lib.f90.in: New file.
2926
        * fortran.c: New file.
2927
        * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2928
        Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2929
        Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2930
        libgfortran has been built.
2931
        * testsuite/libgomp.fortran/fortran.exp: New file.
2932
        * testsuite/libgomp.fortran/omp_cond1.f: New test.
2933
        * testsuite/libgomp.fortran/omp_cond2.f: New test.
2934
        * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2935
        * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2936
        * testsuite/libgomp.fortran/omp_hello.f: New test.
2937
        * testsuite/libgomp.fortran/omp_orphan.f: New test.
2938
        * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2939
        * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2940
        * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2941
        * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2942
        * testsuite/libgomp.fortran/omp_reduction.f: New test.
2943
        * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2944
        * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2945
 
2946
2005-08-30  Richard Henderson  
2947
 
2948
        * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2949
        function for when aliases are not usable.
2950
        (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2951
        GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2952
        GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2953
        GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2954
        GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2955
        GOMP_loop_ordered_guided_next): Likewise.
2956
        * ordered.c (GOMP_ordered_start): Likewise.
2957
 
2958
2005-08-01  Diego Novillo  
2959
 
2960
        * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2961
        * testsuite/libgomp.dg/omp_hello.c: Fix return code
2962
        * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2963
        * testsuite/libgomp.dg/omp_orphan.c: Likewise
2964
        * testsuite/libgomp.dg/omp_reduction.c: Likewise
2965
        * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2966
        * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2967
        * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2968
        * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2969
 
2970
2005-07-07  Eric Christopher  
2971
            Diego Novillo  
2972
 
2973
        * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2974
        * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2975
        up code.
2976
        * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2977
        * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2978
        * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2979
        * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2980
        * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2981
        * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2982
        * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2983
 
2984
2005-06-13  Diego Novillo  
2985
 
2986
        * TOPLEVEL.patch: Remove.
2987
 
2988
2005-05-16  Richard Henderson  
2989
 
2990
        * configure.ac: Test for clock_gettime.
2991
        * config.h.in, configure: Rebuild.
2992
        * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2993
        (omp_get_wtime): Use clock_gettime if available.
2994
        (omp_get_wtick): Use clock_getres if available.
2995
 
2996
2005-05-11  Richard Henderson  
2997
 
2998
        * config/linux/ia64/futex.h: New file.
2999
        * configure.tgt: Use it.
3000
 
3001
        * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3002
 
3003
2005-05-07  Richard Henderson  
3004
 
3005
        * config/linux/powerpc/futex.h: New file.
3006
        * configure.tgt: Use it.
3007
 
3008
        * config/linux/i486/futex.h: Merge ...
3009
        * config/linux/x86_64/futex.h: ... into ...
3010
        * config/linux/x86/futex.h: ... here.
3011
        * configure.tgt: Update to match.
3012
 
3013
2005-05-06  Richard Henderson  
3014
 
3015
        * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3016
        * config/linux/i486/futex.h: Likewise.
3017
        * config/linux/x86_64/futex.h: Likewise.
3018
 
3019
        * config/linux/lock.c: New file.
3020
        * config/linux/omp-lock.h: New file.
3021
 
3022
        * critical.c, env.h: Don't include omp.h
3023
        * config/posix/lock.c: Include libgomp.h instead of omp.h.
3024
        * config/posix/time.c: Likewise.
3025
        * config/posix/omp-lock.h: New file.
3026
        * libgomp.h: Include omp-lock.h and omp.h.
3027
        * Makefile.am (nodist_include_HEADERS): New.
3028
        (omp.h): New rule.
3029
        * configure.ac (PERL): New.
3030
        * mkomp_h.pl: New file.
3031
        * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3032
        with templates.
3033
        * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3034
 
3035
        * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3036
        build directory.  Re-add -march=i486 hack.
3037
 
3038
        * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3039
        (libgomp_link_flags): Remove.
3040
        (libgomp_initialized): Remove.
3041
        (libgomp_init): Don't protect from reinitialization.  Copy code
3042
        from libstdc++ for getting the multilib set correctly.
3043
 
3044
2005-05-05  Richard Henderson  
3045
 
3046
        * config/linux/alpha/futex.h: New file.
3047
        * configure.tgt (alpha*-*-linux*): Use it.
3048
 
3049
        * config/posix/mutex.c: New file.
3050
        * config/posix/sem.c: Use libgomp.h.
3051
 
3052
        * configure.tgt (x86_64-linux): Also test CC for -m32.
3053
        * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3054
 
3055
        * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3056
        after $gccpath.
3057
 
3058
        * Makefile.am (SUBDIRS): New.
3059
        (libgomp_la_LDFLAGS): Add -lpthread.
3060
        * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3061
        * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3062
 
3063
        * libgomp_g.h: New file.
3064
        * libgomp.h: Split out all public declarations to libgomp_g.h.
3065
        Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3066
        * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3067
        * config/linux/sem.h: Likewise.
3068
        * config/posix/sem.h: Likewise.
3069
 
3070
        * Makefile.am (AM_LDFLAGS): New.
3071
        (libgomp_version_script): Split out from ...
3072
        (libgomp_la_LDFLAGS): ... here.
3073
        (libgomp_version_info): New.
3074
        * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3075
        (LIBGOMP_ENABLE): New.
3076
        (LIBGOMP_CHECK_LINKER_FEATURES): New.
3077
        (LIBGOMP_ENABLE_SYMVERS): New.
3078
        * configure.ac (AC_INIT): Version 1.0.
3079
        (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3080
        (enable-linux-futex): Likewise.  Rename from enable-futex.
3081
        (libtool_VERSION): New.
3082
        (LIBGOMP_ENABLE_SYMVERS): Use it.
3083
        * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3084
        * Makefile.in, aclocal.m4, configure: Rebuild.
3085
 
3086
        * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3087
        (gomp_mutex_unlock_slow): Fix typo.
3088
        * config/linux/sem.c: Similarly.
3089
        (gomp_sem_post_slow): Fix typo.
3090
        * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3091
        * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3092
        [__PIC__] (sys_futex0): Don't use tmp output in asm.
3093
 
3094
        * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3095
        (libgomp_la_LDFLAGS): Add top_srcdir to path.
3096
        * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3097
        * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3098
        XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3099
        * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3100
        LDFLAGS.  Pull enable_futex check to top-level.
3101
        * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3102
        * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3103
 
3104
        First attempt at real configury.
3105
        * Makefile, config.h: Remove file.
3106
        * Makefile.am, Makefile.in: New file.
3107
        * acinclude.m4 aclocal.m4: New file.
3108
        * configure.ac, configure.tgt, configure: New file.
3109
 
3110
        * config/posix/lock.c: Rename from sys-lock.c.
3111
        * config/posix/mutex.h: Rename from sys-mutex.h.
3112
        * config/posix/sem.c: Rename from sys-sem.c.
3113
        * config/posix/sem.h: Rename from sys-sem.h.
3114
        * config/posix/proc.c: Rename from sys-proc.c.
3115
        * config/posix/time.c: Rename from sys-proc.c.
3116
 
3117
        * config/linux/mutex.c: New file.
3118
        * config/linux/mutex.h: New file.
3119
        * config/linux/sem.c: New file.
3120
        * config/linux/sem.h: New file.
3121
        * config/linux/i486/futex.h: New file.
3122
        * config/linux/x86_64/futex.h: New file.
3123
 
3124
2005-05-04  Richard Henderson  
3125
 
3126
        * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3127
        * libgomp.h: Declare them.
3128
        * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3129
        gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3130
 
3131
2005-05-04  Richard Henderson  
3132
 
3133
        * libgomp-1 code drop
3134
 
3135
2005-05-04  Richard Henderson  
3136
 
3137
        * iter.c (gomp_iter_static_next): Return tri-state on 0.
3138
        * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3139
        * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3140
        (gomp_iter_static_next): Update.
3141
        (gomp_ordered_static_next): Update.
3142
        * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3143
        (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3144
        totally empty range.
3145
        (gomp_loop_ordered_static_next): Refine test for calling
3146
        gomp_ordered_static_next.
3147
        * testsuite/ordered-1.c: Add case for more threads than iterations.
3148
 
3149
        * iter.c (gomp_iter_runtime_next_locked): Remove.
3150
        * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3151
        gomp_loop_guided_start, gomp_loop_ordered_static_start,
3152
        gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3153
        gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3154
        gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3155
        gomp_loop_ordered_guided_next): Downcase name, make static, add
3156
        an external alias with the old name.
3157
        (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3158
        GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3159
        switch and call one of the above static functions.
3160
        * libgomp.h: Update.
3161
 
3162
        * work.c (gomp_work_share_start): Lock the mutex for !first too.
3163
        * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3164
        GOMP_loop_guided_start, GOMP_loop_runtime_start,
3165
        GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3166
        GOMP_loop_ordered_guided_start): Update to match.
3167
        * sections.c (GOMP_sections_start): Likewise.
3168
        * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3169
 
3170
        * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3171
        gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3172
        Use bounds check instead of modulus.
3173
        (gomp_ordered_sync): Split out of GOMP_ordered_start.
3174
        (gomp_ordered_last): Don't sync with ordered_owner here.
3175
        (gomp_ordered_next): Likewise.
3176
        (gomp_ordered_static_loop_next): Likewise.
3177
        * loop.c, libgomp.h: Update to match.
3178
 
3179
        * libgomp.h (GOMP_barrier): Declare.
3180
 
3181
        * testsuite/barrier-1.c: New file.
3182
        * testsuite/critical-1.c: New file.
3183
        * testsuite/ordered-2.c: New file.
3184
        * testsuite/ordered-1.c: New file.
3185
        * testsuite/sections-1.c: New file.
3186
        * testsuite/single-1.c: New file.
3187
        * testsuite/Makefile (TESTS): Add them.
3188
 
3189
2005-05-04  Richard Henderson  
3190
 
3191
        * libgomp.h (struct gomp_work_share): Add ordered_owner.
3192
        * loop.c (GOMP_loop_static_start): If not the startup thread,
3193
        acquire the mutex to wait for initialization complete.
3194
        (GOMP_loop_ordered_static_start): Likewise.
3195
        (GOMP_loop_ordered_runtime_start): Likewise.
3196
        (GOMP_loop_ordered_static_first): Remove.
3197
        (GOMP_loop_ordered_dynamic_first): Remove.
3198
        (GOMP_loop_ordered_guided_first): Remove.
3199
        (GOMP_loop_ordered_runtime_first): Remove.
3200
        * ordered.c (gomp_ordered_loop_first): Post to own release when
3201
        we're the first thread.
3202
        (gomp_ordered_loop_last): Wait on release if not owner.
3203
        (gomp_ordered_loop_next): Likewise.
3204
        (gomp_ordered_static_loop_init): New.
3205
        (gomp_ordered_static_loop_next): Use ordered_owner.
3206
        (GOMP_ordered_start): Likewise.
3207
        * work.c (gomp_new_work_share): Initialize ordered_owner.
3208
 
3209
2005-05-03  Richard Henderson  
3210
 
3211
        * Makefile (OPT): New.
3212
        (CFLAGS): Use it.
3213
 
3214
        * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3215
        * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3216
        * libgomp.h, libgomp.map, NOTES: Update to match.
3217
 
3218
        * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3219
        Add initialized and thr members.
3220
        (gomp_thread_start): Pause when initially spawned to wait for
3221
        the whole team to be created.
3222
        (gomp_team_start): Release team members at the end.
3223
 
3224
        * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3225
        (f_foo_1): Use GOMP_loop_end.
3226
        (f_foo_2): Use GOMP_loop_end_nowait.
3227
 
3228
        * testsuite/loop-2.c: New file.
3229
        * testsuite/Makefile (TESTS): Add it.
3230
 
3231
2005-05-03  Richard Henderson  
3232
 
3233
        * iter.c (gomp_iter_static_next): Fix overflow check typo.
3234
        (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3235
        * team.c (new_team): Initialize oldest_live_gen to 1 if no
3236
        initial work_share.
3237
 
3238
        * testsuite/Makefile: New file.
3239
        * testsuite/loop-1.c: New file.
3240
 
3241
2005-05-03  Richard Henderson  
3242
 
3243
        Initial implementation and checkin.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.