12010-05-22 Release Manager 2 3 * GCC 4.3.5 released. 4 52010-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 6 7 PR other/43620 8 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 9 * configure: Regenerate. 10 * aclocal.m4: Regenerate. 11 * config.h.in: Regenerate. 12 * Makefile.in: Regenerate. 13 * testsuite/Makefile.in: Regenerate. 14 152009-08-19 Tobias Burnus <burnus@net-b.de> 16 17 PR fortran/41102 18 omp_lib.h.in: Fix -std=f95 errors. 19 202009-08-14 Uros Bizjak <ubizjak@gmail.com> 21 22 Backport from mainline: 23 2008-12-26 Uros Bizjak <ubizjak@gmail.com> 24 25 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets. 26 272009-08-04 Release Manager 28 29 * GCC 4.3.4 released. 30 312009-01-24 Release Manager 32 33 * GCC 4.3.3 released. 34 352008-12-05 Janis Johnson <janis187@us.ibm.com> 36 37 Backport from mainline: 38 2008-05-15 Janis Johnson <janis187@us.ibm.com> 39 40 * testsuite/lib/libgomp.exp: Load new torture support. 41 422008-12-02 Janis Johnson <janis187@us.ibm.com> 43 44 Backport from mainline: 45 2008-11-26 Janis Johnson <janis187@us.ibm.com> 46 47 PR testsuite/28870 48 * testsuite/lib/libgomp.exp: Include new timeout library files. 49 (libgomp_target_compile): Set timeout value from new proc. 50 512008-08-27 Release Manager 52 53 * GCC 4.3.2 released. 54 552008-06-12 Jakub Jelinek <jakub@redhat.com> 56 57 PR middle-end/36506 58 * testsuite/libgomp.c/reduction-5.c: New test. 59 602008-06-06 Release Manager 61 62 * GCC 4.3.1 released. 63 642008-05-23 Jakub Jelinek <jakub@redhat.com> 65 66 PR c++/36308 67 * testsuite/libgomp.c++/ctor-11.C: New test. 68 * testsuite/libgomp.c++/ctor-12.C: New test. 69 702008-05-07 Jakub Jelinek <jakub@redhat.com> 71 72 PR middle-end/36106 73 * testsuite/libgomp.c/atomic-5.c: New test. 74 * testsuite/libgomp.c/atomic-6.c: New test. 75 * testsuite/libgomp.c/autopar-1.c: New test. 76 772008-03-18 Jakub Jelinek <jakub@redhat.com> 78 79 PR middle-end/35611 80 * testsuite/libgomp.c/atomic-4.c: New test. 81 82 PR libgomp/35625 83 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end. 84 (gomp_iter_guided_next): Likewise. 85 * testsuite/libgomp.c/pr35625.c: New test. 86 872008-03-13 Jakub Jelinek <jakub@redhat.com> 88 89 PR middle-end/35185 90 * testsuite/libgomp.c++/pr35185.C: New test. 91 922008-03-12 Jakub Jelinek <jakub@redhat.com> 93 94 PR middle-end/35549 95 * testsuite/libgomp.c/pr35549.c: New test. 96 972008-03-06 Jakub Jelinek <jakub@redhat.com> 98 99 * testsuite/libgomp.c/atomic-3.c: New test. 100 1012008-03-05 Release Manager 102 103 * GCC 4.3.0 released. 104 1052008-02-15 Jakub Jelinek <jakub@redhat.com> 106 107 PR middle-end/35196 108 * testsuite/libgomp.c/pr35196.c: New test. 109 110 PR middle-end/35130 111 * testsuite/libgomp.fortran/pr35130.f90: New test. 112 * testsuite/libgomp.c/pr35130.c: New test. 113 1142008-01-25 Jakub Jelinek <jakub@redhat.com> 115 116 PR middle-end/33880 117 * testsuite/libgomp.c/pr33880.c: New test. 118 * testsuite/libgomp.fortran/pr33880.f90: New test. 119 1202008-01-24 David Edelsohn <edelsohn@gnu.org> 121 122 * configure: Regenerate. 123 1242008-01-08 Jakub Jelinek <jakub@redhat.com> 125 126 * configure.ac: Move futex checking into ../config/futex.m4. 127 * configure: Rebuilt. 128 * aclocal.m4: Rebuilt. 129 * Makefile.in: Rebuilt. 130 131 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match 132 2007-10-15 ../config/tls.m4 change. 133 1342007-12-19 Jakub Jelinek <jakub@redhat.com> 135 136 PR c++/34513 137 * testsuite/libgomp.c/pr34513.c: New test. 138 * testsuite/libgomp.c++/pr34513.C: New test. 139 1402007-12-17 Jack Howarth <howarth@bromo.med.uc.edu> 141 142 PR target/32765 143 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin. 144 1452007-12-04 Jakub Jelinek <jakub@redhat.com> 146 147 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes. 148 1492007-12-03 Jakub Jelinek <jakub@redhat.com> 150 151 * testsuite/libgomp.c/private-1.c: New test. 152 1532007-11-29 Andris Pavenis <andris.pavenis@iki.fi> 154 Paolo Bonzini <bonzini@gnu.org> 155 156 * Makefile.am: Use space as vpath separator. Use 'vpath %' 157 instead of 'VPATH ='. 158 * Makefile.in: Regenerate. 159 1602007-11-23 Matthias Klose <doko@ubuntu.com> 161 162 * configure.ac: Adjust makeinfo version check. 163 * configure: Regenerate. 164 1652007-11-10 Jakub Jelinek <jakub@redhat.com> 166 167 PR fortran/34020 168 * testsuite/libgomp.fortran/pr34020.f90: New test. 169 1702007-11-06 Jakub Jelinek <jakub@redhat.com> 171 172 PR c++/33894 173 * testsuite/libgomp.c++/atomic-1.C: New test. 174 1752007-10-25 Jakub Jelinek <jakub@redhat.com> 176 177 PR libgomp/33275 178 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate): 179 Make x and y integers rather than (implicit) reals. Add private (j) 180 clause to the last omp parallel. 181 1822007-10-15 Maciej W. Rozycki <macro@linux-mips.org> 183 184 * configure: Regenerate following changes to ../config/tls.m4. 185 1862007-09-28 Jakub Jelinek <jakub@redhat.com> 187 188 * testsuite/libgomp.fortran/stack.f90: New test. 189 1902007-09-10 Danny Smith <dannysmith@users.sourceforge.net> 191 192 * config/mingw32/proc.c: New file. 193 1942007-09-05 Uros Bizjak <ubizjak@gmail.com> 195 196 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets. 197 (main): Use __get_cpuid to get i386 target fetaures. 198 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets. 199 (main): Use __get_cpuid to get x86_64 target fetaures. 200 2012007-08-15 Jack Howarth <howarth@bromo.med.uc.edu> 202 203 PR target/32765 204 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin. 205 * testsuite/libgomp.fortran/crayptr2.f90: Likwise. 206 2072007-07-12 Jakub Jelinek <jakub@redhat.com> 208 209 PR fortran/32550 210 * testsuite/libgomp.fortran/pr32550.f90: New test. 211 * testsuite/libgomp.fortran/crayptr2.f90: New test. 212 2132007-07-05 H.J. Lu <hongjiu.lu@intel.com> 214 215 * aclocal.m4: Regenerated. 216 2172007-07-05 Tobias Burnus <burnus@net-b.de> 218 219 PR fortran/32359 220 * testsuite/libgomp.fortran/pr32359.f90: New. 221 2222007-07-02 Jakub Jelinek <jakub@redhat.com> 223 224 PR libgomp/32468 225 * sections.c (GOMP_parallel_sections_start): Only decrease 226 number of threads to COUNT if dyn_var is true. 227 * testsuite/libgomp.c/pr32468.c: New test. 228 2292007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 230 231 PR libgomp/26308 232 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX. 233 2342007-06-21 Jakub Jelinek <jakub@redhat.com> 235 236 PR middle-end/32362 237 * testsuite/libgomp.c/pr32362-1.c: New test. 238 * testsuite/libgomp.c/pr32362-2.c: New test. 239 * testsuite/libgomp.c/pr32362-3.c: New test. 240 2412007-06-07 Jakub Jelinek <jakub@redhat.com> 242 243 * team.c (gomp_team_start): Fix setting up thread_attr 244 stack size. 245 2462007-06-02 Paolo Bonzini <bonzini@gnu.org> 247 248 * configure: Regenerate. 249 2502007-05-23 Steve Ellcey <sje@cup.hp.com> 251 252 * Makefile.in: Regenerate. 253 * configure: Regenerate. 254 * aclocal.m4: Regenerate. 255 * testsuite/Makefile.in: Regenerate. 256 2572007-05-04 Jakub Jelinek <jakub@redhat.com> 258 259 * config/linux/proc.c: New file. 260 261 PR libgomp/28482 262 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux. 263 2642007-04-19 Daniel Franke <franke.daniel@gmail.com> 265 266 * libgomp.texi (GOMP_CPU_AFFINITY): Updated. 267 2682007-04-16 Matthias Klose <doko@debian.org> 269 270 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific 271 flags if not building with -m64. 272 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march 273 flag for i?86-*-* targets, if current target matches -m64. 274 2752007-04-14 Steve Ellcey <sje@cup.hp.com> 276 277 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. 278 * Makefile.in: Regenerate. 279 2802007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 281 282 PR testsuite/31369 283 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting 284 ld_library_path. 285 * testsuite/libgomp.fortran/fortran.exp: Likewise. 286 2872007-04-04 Jakub Jelinek <jakub@redhat.com> 288 289 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern 290 decls. 291 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes. 292 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables. 293 (parse_affinity): New function. 294 (initialize_env): Call it and gomp_init_affinity. 295 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL, 296 create new pthread_attr_t and call gomp_init_thread_affinity 297 on it for each thread before passing the attribute to pthread_create. 298 * config/linux/affinity.c: New file. 299 * config/posix/affinity.c: New file. 300 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test. 301 * configure: Rebuilt. 302 * config.h.in: Rebuilt. 303 * Makefile.am (libgomp_la_SOURCES): Add affinity.c. 304 * Makefile.in: Rebuilt. 305 3062007-03-23 Andreas Tobler <a.tobler@schweiz.org> 307 308 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for 309 *-*-darwin*. 310 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library 311 and use it if found. 312 3132007-03-18 Uros Bizjak <ubizjak@gmail.com> 314 315 * testsuite/config/default.exp: New file. 316 * testsuite/lib/libgomp.exp: New file. 317 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init, 318 libgomp_target_compile, libgomp_option_help, libgomp_option_proc, 319 load_lib *, load_gcc_lib *): Move to libgomp.exp. 320 (libgomp_load): Remove. 321 * testsuite/lib/libgomp.exp (libgomp_init): Compute 322 always_ld_library_path, not ld_library_path. Set additional_flags 323 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets. 324 (target_compile): Do not call libgomp_init. Append lang_library_path 325 and lang_link_flags to options. 326 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set 327 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH 328 here. 329 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from 330 always_ld_library_path. Set LD_LIBRARY_PATH here. 331 * testsuite/libgomp.fortran/fortran.exp: Ditto. 332 * testsuite/libgomp.c/atomic-1.c: Set dg-options to 333 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for 334 CX8 flag. 335 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for 336 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3. 337 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options. 338 * testsuite/libgomp.c/pr29947-1.c: Ditto. 339 * testsuite/libgomp.c/atomic-10.c: Ditto. 340 3412007-03-21 Jakub Jelinek <jakub@redhat.com> 342 343 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add 344 dg-final cleanup-modules line. 345 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise. 346 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise. 347 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise. 348 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise. 349 * testsuite/libgomp.fortran/reduction5.f90: Likewise. 350 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise. 351 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. 352 3532007-03-18 Andreas Schwab <schwab@suse.de> 354 355 * acinclude.m4: Adjust regular expression for ld version 356 extraction. 357 * configure: Regenerate. 358 3592007-03-01 Brooks Moses <brooks.moses@codesourcery.com> 360 361 * Makefile.am: Add install-pdf target as copied from 362 automake v1.10 rules. 363 * Makefile.in: Regenerate 364 3652007-02-07 Jakub Jelinek <jakub@redhat.com> 366 367 PR libgomp/28486 368 * configure: Regenerate. 369 370 PR c++/30703 371 * testsuite/libgomp.c++/pr30703.C: New test. 372 3732007-02-02 Jakub Jelinek <jakub@redhat.com> 374 375 Revert: 376 2006-07-05 Eric Christopher <echristo@apple.com> 377 * configure.ac: Depend addition of -pthread on host OS. 378 * configure: Regenerate. 379 3802007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 381 382 * libgomp.texi: Fix spacing after abbreviations. 383 3842007-01-31 Daniel Franke <franke.daniel@gmail.com> 385 386 PR libgomp/30546 387 * configure.ac: Add check for makeinfo 388 * Makefile.am: Redefined target libgomp.info, build libgomp.info only 389 if an appropiate version of makeinfo is found. 390 * aclocal.m4: Regenerated. 391 * configure: Regenerated. 392 * Makefile.in: Regenerated. 393 * testsuite/Makefile.in: Regenerated. 394 3952007-01-29 Daniel Franke <franke.daniel@gmail.com> 396 397 PR libgomp/30540 398 * libgomp.texi: More about implementation-dependent settings. 399 4002007-01-26 Tobias Burnus <burnus@net-b.de> 401 402 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension. 403 4042007-01-24 Jakub Jelinek <jakub@redhat.com> 405 406 PR middle-end/30494 407 * testsuite/libgomp.c/pr30494.c: New test. 408 4092007-01-15 Tom Tromey <tromey@redhat.com> 410 411 * configure: Rebuilt. 412 * configure.ac: Fixed comment. 413 4142007-01-14 Daniel Franke <franke.daniel@gmail.com> 415 416 * libgomp.texi: Document implementation specific default values of 417 environment variables. 418 4192006-12-21 Daniel Franke <franke.daniel@gmail.com> 420 421 PR libgomp/28209 422 * libgomp.texi: New file. 423 * configure.ac: Add --enable-generated-files-in-srcdir option. 424 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy 425 files to srcdir. 426 * Makefile.in: Regenerated. 427 * config.h.in: Regenerated. 428 * testsuite/Makefile.in: Regenerated. 429 * NOTES: Removed. 430 4312006-12-04 Daniel Franke <franke.daniel@gmail.com> 432 433 PR libgomp/29949 434 * env.c (omp_set_num_threads): Set illegal thread count to 1. 435 4362006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr> 437 438 * configure: Regenerate. 439 4402006-12-04 Jakub Jelinek <jakub@redhat.com> 441 442 PR libgomp/29947 443 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to 444 start if there shouldn't be any loop iterations. 445 (gomp_loop_ordered_static_start): Remove start == end test. 446 * testsuite/libgomp.c/pr29947-1.c: New test. 447 * testsuite/libgomp.c/pr29947-2.c: New test. 448 4492006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr> 450 451 * configure.tgt: Force initial-exec TLS model on Linux only. 452 4532006-11-13 Daniel Jacobowitz <dan@codesourcery.com> 454 455 * configure: Regenerated. 456 4572006-11-09 Uros Bizjak <ubizjak@gmail.com> 458 459 * env.c (parse_schedule): Reject out of range values. 460 (parse_unsigned_long): Reject out of range, negative or zero values. 461 4622006-10-29 Jakub Jelinek <jakub@redhat.com> 463 464 PR fortran/29629 465 * testsuite/libgomp.fortran/pr29629.f90: New test. 466 4672006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr> 468 469 PR libgomp/29494 470 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6. 471 * config/posix95: New directory. 472 * config/posix95/omp-lock.h: New file. 473 * config/posix95/lock.c: Likewise. 474 4752006-10-14 Geoffrey Keating <geoffk@apple.com> 476 477 * aclocal.m4: Regenerate. 478 * configure: Regenerate. 479 4802006-10-05 Danny Smith <dannysmith@users.sourceforge.net> 481 482 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from 483 '<' to '<='. 484 4852006-10-05 Danny Smith <dannysmith@users.sourceforge.net> 486 487 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from 488 test. 489 * configure: Regenerate. 490 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias. 491 4922006-09-26 Jakub Jelinek <jakub@redhat.com> 493 494 PR middle-end/25261 495 PR middle-end/28790 496 * testsuite/libgomp.c/nestedfn-4.c: New test. 497 * testsuite/libgomp.c/nestedfn-5.c: New test. 498 * testsuite/libgomp.fortran/nestedfn3.f90: New test. 499 500 PR fortran/29097 501 * testsuite/libgomp.fortran/condinc1.f: New test. 502 * testsuite/libgomp.fortran/condinc2.f: New test. 503 * testsuite/libgomp.fortran/condinc3.f90: New test. 504 * testsuite/libgomp.fortran/condinc4.f90: New test. 505 * testsuite/libgomp.fortran/condinc1.inc: New file. 506 5072006-09-18 Tom Tromey <tromey@redhat.com> 508 509 * configure: Rebuilt. 510 5112006-09-13 Joseph S. Myers <joseph@codesourcery.com> 512 513 PR c/28768 514 PR preprocessor/14634 515 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument 516 to AC_DEFINE. 517 * configure: Regenerate. 518 5192006-09-08 Steven G. Kargl <kargl@gcc.gnu.org> 520 521 * testsuite/libgomp.fortran/reduction3.f90: Change 522 -2147483648 to -huge(i)-1 to avoid overflow. 523 * testsuite/libgomp.fortran/reduction4.f90: Change 524 Z'ffffffff' to not(0) to avoid overflow. 525 5262006-08-26 Joseph S. Myers <joseph@codesourcery.com> 527 528 PR libgomp/25938 529 * Makefile.am (libsubincludedir): New. 530 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS. 531 * Makefile.in: Regenerate. 532 5332006-08-17 Jakub Jelinek <jakub@redhat.com> 534 535 PR libgomp/28725 536 * env.c: Include ctype.h. 537 (parse_schedule, parse_unsigned_long, parse_boolean): Allow 538 leading and/or trailing whitespace and compare strings case 539 insensitively. 540 5412006-07-16 Jakub Jelinek <jakub@redhat.com> 542 543 PR fortran/28390 544 * testsuite/libgomp.fortran/pr28390.f: New test. 545 5462006-07-05 Eric Christopher <echristo@apple.com> 547 548 * configure.ac: Depend addition of -pthread on host OS. 549 * configure: Regenerate. 550 5512006-06-21 Jakub Jelinek <jakub@redhat.com> 552 553 * critical.c (GOMP_critical_name_start): Fix *pptr initialization 554 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is 555 defined. 556 5572006-06-20 Jakub Jelinek <jakub@redhat.com> 558 559 PR libgomp/26175 560 PR libgomp/26477 561 * configure.ac: If neither --enable-linux-futex nor 562 --disable-linux-futex is passed, determine the default by checking 563 for compiling and/or running against NPTL. With --enable-linux-futex, 564 check if SYS_gettid and SYS_futex are defined. 565 * configure: Rebuilt. 566 5672006-06-14 Richard Henderson <rth@redhat.com> 568 569 PR libgomp/28008 570 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when 571 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment. 572 5732006-06-09 Richard Henderson <rth@redhat.com> 574 575 * env.c (gomp_nthreads_var): Change to unsigned long. 576 (gomp_run_sched_chunk): Likewise. 577 (parse_unsigned_long): Rename from parse_num_threads and generalize. 578 (initialize_env): Initialize gomp_thread_attr. 579 * libgomp.h (gomp_nthreads_var): Update decl. 580 (gomp_run_sched_chunk): Likewise. 581 (gomp_thread_attr): Declare. 582 * team.c (gomp_thread_attr): Export. 583 (initialize_team): Don't initialize it. 584 5852006-06-09 Jakub Jelinek <jakub@redhat.com> 586 587 PR fortran/27916 588 * testsuite/libgomp.fortran/pr27916-1.f90: New test. 589 * testsuite/libgomp.fortran/pr27916-2.f90: New test. 590 5912006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr> 592 593 * config/mingw32/time.c: New file. 594 * configure.tgt: Use it. 595 5962006-05-23 Carlos O'Donell <carlos@codesourcery.com> 597 598 * Makefile.am: Add install-html target. Add install-html to .PHONY 599 * Makefile.in: Regenerate. 600 6012006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 602 603 PR libgomp/27612 604 * testsuite/libgomp.c/sections-1.c: Require sync_int_long. 605 * testsuite/libgomp.c/critical-1.c: Likewise. 606 * testsuite/libgomp.c/loop-1.c: Likewise. 607 * testsuite/libgomp.c/loop-2.c: Likewise. 608 * testsuite/libgomp.c/single-1.c: Likewise. 609 * testsuite/libgomp.c/ordered-1.c: Likewise. 610 * testsuite/libgomp.c/ordered-2.c: Likewise. 611 6122006-05-15 Jakub Jelinek <jakub@redhat.com> 613 614 PR middle-end/27416 615 * libgomp.fortran/pr27416-1.f90: New test. 616 6172006-05-03 Jakub Jelinek <jakub@redhat.com> 618 619 PR fortran/27395 620 * testsuite/libgomp.fortran/pr27395-1.f90: New test. 621 * testsuite/libgomp.fortran/pr27395-2.f90: New test. 622 6232006-05-02 Jakub Jelinek <jakub@redhat.com> 624 625 PR c++/26943 626 * testsuite/libgomp.c/pr26943-1.c: New test. 627 * testsuite/libgomp.c/pr26943-2.c: New test. 628 * testsuite/libgomp.c/pr26943-3.c: New test. 629 * testsuite/libgomp.c/pr26943-4.c: New test. 630 * testsuite/libgomp.c++/pr27337.C: Remove barrier. 631 * testsuite/libgomp.c++/pr26943.C: New test. 632 6332006-05-02 Jakub Jelinek <jakub@redhat.com> 634 635 PR middle-end/27337 636 * testsuite/libgomp.c++/pr27337.C: New test. 637 6382006-04-26 Jakub Jelinek <jakub@redhat.com> 639 640 PR c/26171 641 * testsuite/libgomp.c/pr26171.c: New test. 642 6432006-04-25 Richard Henderson <rth@redhat.com> 644 645 PR libgomp/25865 646 * configure.ac: Use GCC_CHECK_TLS. 647 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove. 648 * Makefile.in, aclocal.m4, configure: Regenerate. 649 6502006-04-10 Matthias Klose <doko@debian.org> 651 652 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib 653 directory names containing underscores. 654 6552006-03-21 Jakub Jelinek <jakub@redhat.com> 656 657 PR c++/26691 658 * testsuite/libgomp.c++/pr26691.C: New test. 659 6602006-03-13 Jakub Jelinek <jakub@redhat.com> 661 662 * testsuite/libgomp.fortran/retval2.f90: New test. 663 6642006-03-09 Diego Novillo <dnovillo@redhat.com> 665 666 * testsuite/libgomp.c++: New directory. 667 6682006-02-25 Shantonu Sen <ssen@opendarwin.org> 669 670 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions. 671 * config/posix/sem.c: Implement the above. 672 6732006-02-25 Andreas Tobler <a.tobler@schweiz.ch> 674 675 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and 676 define HAVE_BROKEN_POSIX_SEMAPHORES. 677 * configure: Rebuilt. 678 * config.h.in: Rebuilt. 679 6802006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr> 681 682 PR bootstrap/26161 683 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment 684 for the other pthread check. 685 * configure: Regenerate. 686 * config.h.in: Regenerate. 687 6882006-02-15 Jakub Jelinek <jakub@redhat.com> 689 690 PR libgomp/25938 691 PR libgomp/25984 692 * Makefile.am (fincludedir): New variable. 693 (nodist_include_HEADERS): Remove Fortran files. 694 (nodist_finclude_HEADERS): New variable. 695 * Makefile.in: Regenerated. 696 6972006-02-13 Jakub Jelinek <jakub@redhat.com> 698 699 * testsuite/libgomp.fortran/vla7.f90: Add -w to options. 700 Remove tests for returning assumed character length arrays. 701 7022006-02-12 Roger Sayle <roger@eyesopen.com> 703 John David Anglin <dave@hiauly1.hia.nrc.ca> 704 705 PR libgomp/25936 706 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems. 707 7082006-02-08 Ulrich Weigand <uweigand@de.ibm.com> 709 710 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library. 711 7122006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr> 713 714 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related 715 part of LD_LIBRARY_PATH manually. 716 7172006-02-03 H.J. Lu <hongjiu.lu@intel.com> 718 719 PR libgomp/25852 720 * testsuite/lib/libgomp-dg.exp (blddir): Set it in 721 libgomp_init. 722 7232005-01-25 Paolo Bonzini <bonzini@gnu.org> 724 725 PR libgomp/25884 726 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove. 727 * configure.ac (PERL): Don't set. 728 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here. 729 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE, 730 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions. 731 * omp.h.in: Wrap the new configure substitutions with @ characters. 732 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise. 733 * aclocal.m4, configure, Makefile.in: Regenerate. 734 * mkomp_h.pl: Delete. 735 7362005-01-24 Paolo Bonzini <bonzini@gnu.org> 737 738 PR libgomp/25259 739 * configure.ac: Use GCC_HEADER_STDINT. 740 * libgomp.h: Include gstdint.h. 741 * libgomp_f.h.in: Don't include stdint.h or inttypes.h. 742 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild. 743 7442006-01-24 Richard Henderson <rth@redhat.com> 745 746 PR libgomp/25942 747 * configure.ac: Add AM_MAINTAINER_MODE. 748 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild. 749 7502006-01-24 Diego Novillo <dnovillo@redhat.com> 751 752 * Makefile.in: Regenerate. 753 * testsuite/Makefile.in: Regenerate. 754 * aclocal.m4: Regenerate. 755 7562006-01-23 Andreas Tobler <a.tobler@schweiz.ch> 757 758 * config/posix/proc.c: Conditional include of sys/loadavg.h for 759 Solaris. 760 * configure.ac: Add check for loadavg.h. 761 (link_gomp): Adjust comment. 762 * configure: Regenerate. 763 * config.h.in: Regenerate. 764 7652006-01-21 Steve Ellcey <sje@cup.hp.com> 766 767 PR libgomp/25877 768 * configure.ac: Remove check for alloca.h. 769 * configure: Regenerate. 770 * config.h.in: Regenerate. 771 * libgomp.h: define gomp_alloca to be __builtin_alloca. 772 * team.c: Remove use of alloca.h. 773 Call gomp_alloca instead of alloca. 774 7752006-01-20 Steve Ellcey <sje@cup.hp.com> 776 777 PR libgomp/25877 778 * team.c: Add include of alloca.h. 779 * configure.ac: Add check for alloca.h. 780 * configure: Regenerate. 781 * config.h.in: Regenerate. 782 7832006-01-17 Jakub Jelinek <jakub@redhat.com> 784 785 PR fortran/25219 786 * testsuite/libgomp.fortran/pr25219.f90: New test. 787 7882005-12-05 Uros Bizjak <uros@kss-loka.si> 789 790 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c, 791 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c, 792 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C, 793 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C, 794 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C, 795 testsuite/libgomp.fortran/threadprivate1.f90, 796 testsuite/libgomp.fortran/threadprivate2.f90, 797 testsuite/libgomp.fortran/threadprivate3.f90, 798 testsuite/libgomp.fortran/appendix-a/a.22.7.f9, 799 testsuite/libgomp.fortran/appendix-a/a.22.8.f9, 800 testsuite/libgomp.fortran/omp_parse3.f90: Change required 801 effective-target to TLS runtime. 802 803 * testsuite/libgomp.fortran/pr25162.f: Require 804 effective-target TLS runtime. 805 8062005-12-01 Jakub Jelinek <jakub@redhat.com> 807 808 * testsuite/libgomp.fortran/nestedfn2.f90: New test. 809 * testsuite/libgomp.c/nestedfn-3.c: New test. 810 8112005-11-30 Jakub Jelinek <jakub@redhat.com> 812 813 PR fortran/25162 814 * testsuite/libgomp.fortran/pr25162.f: New test. 815 8162005-11-28 Jakub Jelinek <jakub@redhat.com> 817 818 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to 819 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed. 820 8212005-11-25 Jakub Jelinek <jakub@redhat.com> 822 823 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c, 824 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in, 825 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c, 826 single.c, team.c, work.c, config/linux/alpha/futex.h, 827 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h, 828 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h, 829 config/linux/powerpc/futex.h, config/linux/s390/futex.h, 830 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h, 831 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h, 832 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c, 833 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update 834 FSF address. 835 8362005-11-18 Jakub Jelinek <jakub@redhat.com> 837 838 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS 839 to nodist_noinst_HEADERS. 840 * Makefile.in: Rebuilt. 841 842 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct, 843 add integer count field. 844 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for 845 omp_nest_lock_t type change. 846 (omp_init_nest_lock): Likewise. Initialize count to 0. 847 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change. 848 Increment count. 849 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change. 850 Decrement count. 851 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change. 852 Increment count if successful and return the new nesting level. 853 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level. 854 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type. 855 * testsuite/libgomp.c/lib-1.c: New test. 856 * testsuite/libgomp.fortran/lib1.f90: New test. 857 * testsuite/libgomp.fortran/lib2.f: New test. 858 * testsuite/libgomp.fortran/lib3.f: New test. 859 8602005-11-17 Richard Henderson <rth@redhat.com> 861 862 PR 24845 863 * Makefile.am (nodist_toolexeclib_HEADERS): New. 864 * configure.ac (link_gomp): New. Substitute it. 865 (AC_CONFIG_FILES): Add libgomp.spec. 866 * libgomp.spec.in: New file. 867 * Makefile.in, testsuite/Makefile.in, configure: Rebuild. 868 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags. 869 8702005-11-18 Jakub Jelinek <jakub@redhat.com> 871 872 * testsuite/libgomp.fortran/reduction1.f90: Adjust for 873 reduction(-:var) behaving the same as reduction(+:var). 874 * testsuite/libgomp.c/reduction-4.c: New test. 875 8762005-11-15 Uros Bizjak <uros@kss-loka.si> 877 878 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c, 879 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c, 880 testsuite/libgomp.c/copyin-3.c, 881 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C, 882 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C, 883 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C, 884 testsuite/libgomp.c++/pr24455.C, 885 testsuite/libgomp.fortran/threadprivate1.f90, 886 testsuite/libgomp.fortran/threadprivate2.f90, 887 testsuite/libgomp.fortran/threadprivate3.f90, 888 testsuite/libgomp.fortran/appendix-a/a.22.7.f9, 889 testsuite/libgomp.fortran/appendix-a/a.22.8.f9, 890 testsuite/libgomp.fortran/omp_parse3.f90: Require 891 effective-target TLS. 892 8932005-11-14 Diego Novillo <dnovillo@redhat.com> 894 895 * HEADER: Remove. 896 8972005-11-13 Jakub Jelinek <jakub@redhat.com> 898 899 PR libgomp/24797 900 * team.c (initialize_team): Pass NULL rather than free as 901 pthread_key_create destructor. Initialize thread specific data 902 pointer in initial thread to a static local variable rather than 903 malloced memory. 904 9052005-11-11 Uros Bizjak <uros@kss-loka.si> 906 907 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append 908 its location to ld_library_path. 909 9102005-11-10 Diego Novillo <dnovillo@redhat.com> 911 912 * testsuite/libgomp.c/c.exp: Rename from dg.exp. 913 9142005-11-10 Diego Novillo <dnovillo@redhat.com> 915 916 * testsuite/libgomp.c: Rename from libgomp.dg. 917 9182005-11-09 Diego Novillo <dnovillo@redhat.com> 919 920 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for 921 threadprivate variable 'i'. 922 9232005-11-09 Jakub Jelinek <jakub@redhat.com> 924 925 * config/linux/s390/futex.h: New file. 926 * configure.tgt: Use it. 927 928 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization 929 before the parallel. 930 9312005-11-08 Jakub Jelinek <jakub@redhat.com> 932 933 PR c++/24734 934 * testsuite/libgomp.c++/master-1.C: New test. 935 9362005-11-07 Jakub Jelinek <jakub@redhat.com> 937 938 * testsuite/libgomp.dg/copyin-3.c: New test. 939 9402005-11-07 Jakub Jelinek <jakub@redhat.com> 941 942 * testsuite/libgomp.fortran/retval1.f90: New test. 943 * testsuite/libgomp.fortran/vla7.f90: New test. 944 9452005-11-06 Jakub Jelinek <jakub@redhat.com> 946 947 * testsuite/libgomp.fortran/vla2.f90: New test. 948 * testsuite/libgomp.fortran/vla3.f90: New test. 949 * testsuite/libgomp.fortran/vla4.f90: New test. 950 * testsuite/libgomp.fortran/vla5.f90: New test. 951 * testsuite/libgomp.fortran/vla6.f90: New test. 952 9532005-11-01 Jakub Jelinek <jakub@redhat.com> 954 955 * config/linux/sparc/futex.h: New file. 956 * configure.tgt: Use it. 957 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing. 958 959 * critical.c: Include stdlib.h. 960 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about 961 ignoring return value. 962 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after 963 LIBGOMP_CHECK_SYNC_BUILTINS check. 964 * configure: Rebuilt. 965 9662005-10-31 Jakub Jelinek <jakub@redhat.com> 967 968 * testsuite/libgomp.fortran/vla1.f90: New test. 969 9702005-10-31 Richard Henderson <rth@redhat.com> 971 972 * testsuite/libgomp.fortran/character2.f90: Fix race condition 973 setting 's' in different threads. 974 9752005-10-31 Jakub Jelinek <jakub@redhat.com> 976 977 * libgomp.h (attribute_hidden, ialias): Define. 978 * config/posix/proc.c (omp_get_num_procs): Add ialias. 979 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise. 980 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock, 981 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock, 982 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock, 983 omp_test_lock, omp_test_nest_lock): Likewise. 984 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock, 985 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock, 986 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock, 987 omp_test_lock, omp_test_nest_lock): Likewise. 988 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads, 989 omp_get_dynamic, omp_get_nested): Likewise. 990 * parallel.c (omp_get_num_threads, omp_get_max_threads, 991 omp_get_thread_num, omp_in_parallel): Likewise. 992 * fortran.c (ialias_redirect): Define. 993 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock, 994 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, 995 omp_unset_lock, omp_unset_nest_lock, omp_test_lock, 996 omp_test_nest_lock, omp_set_dynamic, omp_set_nested, 997 omp_set_num_threads, omp_get_dynamic, omp_get_nested, 998 omp_in_parallel, omp_get_max_threads, omp_get_num_procs, 999 omp_get_num_threads, omp_get_thread_num, omp_get_wtick, 1000 omp_get_wtime): Add ialias_redirect. 1001 10022005-10-30 Jakub Jelinek <jakub@redhat.com> 1003 1004 * fortran.c: Include stdlib.h. 1005 10062005-10-29 Jakub Jelinek <jakub@redhat.com> 1007 1008 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h. 1009 * Makefile.in: Regenerated. 1010 10112005-10-28 Jakub Jelinek <jakub@redhat.com> 1012 1013 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE. 1014 * libgomp_f.h.in (omp_check_defines): New function. 1015 * env.c: Include libgomp_f.h. 1016 (initialize_env): Call omp_check_defines. 1017 1018 * testsuite/libgomp.dg/copyin-2.c: New test. 1019 * testsuite/libgomp.c++/copyin-2.C: New test. 1020 * testsuite/libgomp.fortran/threadprivate3.f90: New test. 1021 1022 * testsuite/libgomp.fortran/threadprivate2.f90: New test. 1023 * testsuite/libgomp.fortran/sharing2.f90: New test. 1024 1025 * testsuite/libgomp.dg/copyin-1.c: New test. 1026 * testsuite/libgomp.c++/copyin-1.C: New test. 1027 10282005-10-26 Jakub Jelinek <jakub@redhat.com> 1029 1030 * testsuite/libgomp.fortran/crayptr1.f90: New test. 1031 1032 * testsuite/libgomp.fortran/workshare1.f90: New test. 1033 1034 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile 1035 only test. 1036 * libgomp.fortran/sharing1.f90: New test. 1037 10382005-10-24 Jakub Jelinek <jakub@redhat.com> 1039 1040 PR c++/24502 1041 * testsuite/libgomp.c++/loop-7.C: New test. 1042 1043 * testsuite/libgomp.dg/nestedfn-2.c: New test. 1044 1045 * testsuite/libgomp.dg/nestedfn-1.c: New test. 1046 * testsuite/libgomp.fortran/reduction6.f90: New test. 1047 * testsuite/libgomp.fortran/nestedfn1.f90: New test. 1048 10492005-10-23 Richard Henderson <rth@redhat.com> 1050 1051 * testsuite/libgomp.c++/ctor-1.C: New. 1052 * testsuite/libgomp.c++/ctor-2.C: New. 1053 * testsuite/libgomp.c++/ctor-3.C: New. 1054 * testsuite/libgomp.c++/ctor-4.C: New. 1055 * testsuite/libgomp.c++/ctor-5.C: New. 1056 * testsuite/libgomp.c++/ctor-6.C: New. 1057 * testsuite/libgomp.c++/ctor-7.C: New. 1058 * testsuite/libgomp.c++/ctor-8.C: New. 1059 * testsuite/libgomp.c++/ctor-9.C: New. 1060 10612005-10-21 Diego Novillo <dnovillo@redhat.com> 1062 1063 PR 24455 1064 * testsuite/libgomp.c++/pr24455-1.C: New test. 1065 * testsuite/libgomp.c++/pr24455.C: New test. 1066 * testsuite/libgomp.dg/pr24455-1.c: New test. 1067 * testsuite/libgomp.dg/pr24455.c: New test. 1068 10692005-10-20 Richard Henderson <rth@redhat.com> 1070 1071 * testsuite/libgomp.c++/loop-6.C: New. 1072 * testsuite/libgomp.dg/loop-3.c: New. 1073 10742005-10-20 Jakub Jelinek <jakub@redhat.com> 1075 1076 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j 1077 explicitly private. 1078 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i 1079 explicitly shared. 1080 10812005-10-19 Diego Novillo <dnovillo@redhat.com> 1082 1083 * testsuite/libgomp.fortran/jacobi.f: New test. 1084 10852005-10-19 Richard Henderson <rth@redhat.com> 1086 1087 * configure.tgt (i?86-linux): Default to with_arch instead of 1088 CFLAGS. Add -mtune to match target_cpu. 1089 (x86_64-linux): Tune to i686. 1090 1091 * fortran.c (omp_test_nest_lock_): Fix typo. 1092 10932005-10-19 Jakub Jelinek <jakub@redhat.com> 1094 1095 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next, 1096 gomp_ordered_sync): Do nothing if team->nthreads == 1. 1097 * testsuite/libgomp.dg/ordered-3.c: New test. 1098 1099 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort. 1100 Remove volatile keyword. 1101 1102 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables 1103 in COMMON block to avoid warnings on 64-bit targets. 1104 11052005-10-18 Diego Novillo <dnovillo@redhat.com> 1106 1107 * testsuite/libgomp.dg/shared-3.c: New test. 1108 11092005-10-18 Jakub Jelinek <jakub@redhat.com> 1110 1111 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed. 1112 * testsuite/libgomp.fortran/reduction5.f90: New test. 1113 11142005-10-18 Jakub Jelinek <jakub@redhat.com> 1115 1116 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to 1117 dg-options. 1118 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable 1119 flush loop now that __sync_synchronize has proper memory barrier. 1120 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo. 1121 Add -ffixed-form to dg-options. 1122 11232005-10-17 Diego Novillo <dnovillo@redhat.com> 1124 1125 * testsuite/libgomp.fortran/fortran.exp: Also gather tests 1126 from subdirectories. 1127 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test. 1128 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test. 1129 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test. 1130 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test. 1131 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test. 1132 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test. 1133 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test. 1134 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test. 1135 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test. 1136 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test. 1137 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test. 1138 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test. 1139 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test. 1140 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test. 1141 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test. 1142 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test. 1143 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test. 1144 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test. 1145 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test. 1146 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test. 1147 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test. 1148 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test. 1149 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test. 1150 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test. 1151 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test. 1152 11532005-10-17 Jakub Jelinek <jakub@redhat.com> 1154 1155 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if 1156 lang_library_path exists. Use find instead of glob to gather tests. 1157 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed. 1158 11592005-10-17 Diego Novillo <dnovillo@redhat.com> 1160 1161 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test. 1162 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test. 1163 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test. 1164 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test. 1165 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test. 1166 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test. 1167 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test. 1168 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test. 1169 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test. 1170 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test. 1171 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test. 1172 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test. 1173 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file. 1174 11752005-10-15 Jakub Jelinek <jakub@redhat.com> 1176 1177 * testsuite/libgomp.dg/vla-1.c: New test. 1178 1179 * testsuite/libgomp.fortran/reference2.f90: New test. 1180 1181 * testsuite/libgomp.fortran/character2.f90: Remove explicit 1182 declaration of omp_get_thread_num. 1183 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add 1184 use omp_lib. 1185 1186 * testsuite/libgomp.fortran/reduction1.f90: New test. 1187 * testsuite/libgomp.fortran/reduction2.f90: New test. 1188 * testsuite/libgomp.fortran/reduction3.f90: New test. 1189 * testsuite/libgomp.fortran/reduction4.f90: New test. 1190 11912005-10-13 Richard Henderson <rth@redhat.com> 1192 1193 * Makefile.am (libgomp_la_SOURCES): Add bar.c. 1194 * Makefile.in: Regenerate. 1195 * barrier.c (GOMP_barrier): Use gomp_barrier_wait. 1196 * libgomp.h: Include bar.h. 1197 (struct gomp_barrier): Remove. 1198 (struct gomp_team): Add barrier. Replace master_barrier with 1199 master_release. Replace threads with ordered_release. 1200 (struct gomp_thread): Replace barrier with release. 1201 * ordered.c (gomp_ordered_first): Update for ordered_release change. 1202 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init, 1203 gomp_ordered_static_next, gomp_ordered_sync): Likewise. 1204 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait. 1205 (GOMP_single_copy_end): Likewise. 1206 * team.c (gomp_threads_dock): New. 1207 (gomp_barrier_init, gomp_barrier_destroy): Remove. 1208 (gomp_thread_start): Use gomp_barrier_wait. 1209 (new_team, free_team): Update for gomp_team changes. 1210 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit. 1211 (gomp_team_end): Use gomp_barrier_wait. 1212 (initialize_team): Update for gomp_thread changes. 1213 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start. 1214 (gomp_work_share_end_nowait): Use atomic ops when available. 1215 * config/linux/bar.c, config/linux/bar.h: New files. 1216 * config/posix/bar.c, config/posix/bar.h: New files. 1217 12182005-10-13 Jakub Jelinek <jakub@redhat.com> 1219 1220 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL. 1221 * testsuite/libgomp.dg/single-2.c: New test. 1222 1223 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file, 1224 lang_link_flags): Unset, so that they aren't inherited from previously 1225 sourced *.exp. 1226 1227 * testsuite/libgomp.fortran/threadprivate1.f90: New test. 1228 12292005-10-12 Richard Henderson <rth@redhat.com> 1230 1231 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel. 1232 (libgomp_init): Use lang_test_file, lang_library_path, and 1233 lang_link_flags, set by the subdirectory files. Add -fopenmp here. 1234 1235 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New. 1236 (lang_test_file, lang_link_flags): New. 1237 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove. 1238 1239 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C, 1240 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C, 1241 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C, 1242 testsuite/libgomp.c++/parallel-1.C, 1243 testsuite/libgomp.c++/reduction-1.C, 1244 testsuite/libgomp.c++/reduction-2.C, 1245 testsuite/libgomp.c++/reduction-3.C, 1246 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C, 1247 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C, 1248 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C: 1249 New files, largely cribbed from the C testsuite. 1250 12512005-10-12 Jakub Jelinek <jakub@redhat.com> 1252 1253 * testsuite/libgomp.fortran/character1.f90: New test. 1254 * testsuite/libgomp.fortran/character2.f90: New test. 1255 1256 * testsuite/libgomp.dg/nested-1.c: New test. 1257 * testsuite/libgomp.dg/nested-2.c: New test. 1258 * testsuite/libgomp.fortran/do1.f90: New test. 1259 * testsuite/libgomp.fortran/do2.f90: New test. 1260 1261 * testsuite/libgomp.fortran/reference1.f90: New test. 1262 12632005-10-11 Jakub Jelinek <jakub@redhat.com> 1264 1265 * testsuite/libgomp.dg/reduction-1.c: New test. 1266 * testsuite/libgomp.dg/reduction-2.c: New test. 1267 * testsuite/libgomp.dg/reduction-3.c: New test. 1268 12692005-10-10 Jakub Jelinek <jakub@redhat.com> 1270 1271 * testsuite/libgomp.dg/atomic-1.c: New test. 1272 * testsuite/libgomp.dg/atomic-2.c: New test. 1273 12742005-10-09 Richard Henderson <rth@redhat.com> 1275 1276 * critical.c (atomic_lock): New. 1277 (initialize_critical): Initialize it. 1278 (GOMP_atomic_start, GOMP_atomic_end): New. 1279 * libgomp.map: Export them. 1280 * libgomp_g.h: Declare them. 1281 1282 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite. 1283 12842005-10-02 Richard Henderson <rth@redhat.com> 1285 1286 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror 1287 to XCFLAGS instead of CFLAGS. 1288 12892005-09-30 Richard Henderson <rth@redhat.com> 1290 1291 * configure.ac: Determine whether -pthread or -lpthread is needed. 1292 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread. 1293 * Makefine.in, configure: Rebuild. 1294 12952005-09-28 Richard Henderson <rth@redhat.com> 1296 1297 * testsuite/libgomp.dg/omp-loop03.c: Fix return code. 1298 * testsuite/libgomp.dg/omp-single-3.c: New test. 1299 13002005-09-28 Diego Novillo <dnovillo@redhat.com> 1301 1302 * testsuite/libgomp.dg/omp-single-2.c: New test. 1303 * testsuite/libgomp.dg/shared-2.c: Fix return code. 1304 13052005-09-27 Richard Henderson <rth@redhat.com> 1306 1307 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier. 1308 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule. 1309 13102005-09-27 Jakub Jelinek <jakub@redhat.com> 1311 1312 * testsuite/libgomp.dg/omp-loop03.c: New test. 1313 13142005-09-27 Diego Novillo <dnovillo@redhat.com> 1315 1316 * testsuite/libgomp.dg/omp-parallel-for.c: New test. 1317 13182005-09-27 Diego Novillo <dnovillo@redhat.com> 1319 1320 * testsuite/libgomp.dg/omp-single-1.c: New test. 1321 * testsuite/libgomp.dg/shared-1.c: Return 0. 1322 Add prototype for abort. 1323 * testsuite/libgomp.dg/shared-2.c: Likewise. 1324 13252005-09-26 Jakub Jelinek <jakub@redhat.com> 1326 1327 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming 1328 constructs. 1329 13302005-09-26 Diego Novillo <dnovillo@redhat.com> 1331 1332 * testsuite/libgomp.dg/shared-1.c: New test. 1333 * testsuite/libgomp.dg/shared-2.c: New test. 1334 13352005-09-24 Richard Henderson <rth@redhat.com> 1336 1337 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error. 1338 13392005-09-24 Richard Henderson <rth@redhat.com> 1340 1341 * iter.c (gomp_iter_static_next): Round up when computing number 1342 of iterations. Don't bother distributing a remainder equally. 1343 1344 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main. 1345 Don't call srand. Zero b before testing. 1346 (main): New. 1347 13482005-09-24 Jakub Jelinek <jakub@redhat.com> 1349 1350 * testsuite/libgomp.fortran/omp_atomic1.f90: New test. 1351 * testsuite/libgomp.fortran/omp_atomic2.f90: New test. 1352 13532005-09-23 Jakub Jelinek <jakub@redhat.com> 1354 1355 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do 1356 without !$omp end do, followed immediately by subroutine end. 1357 13582005-09-23 Diego Novillo <dnovillo@redhat.com> 1359 1360 * testsuite/libgomp.dg/omp-parallel-if.c: New test. 1361 13622005-09-22 Richard Henderson <rth@redhat.com> 1363 1364 * critical.c (GOMP_critical_name_start): Change argument to void**. 1365 Reuse the pointer space if the mutex fits. 1366 (GOMP_critical_name_end): Likewise. 1367 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0. 1368 * libgomp_g.h (GOMP_critical_name_start): Update decl. 1369 (GOMP_critical_name_end): Likewise. 1370 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New. 1371 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New. 1372 13732005-09-20 Richard Henderson <rth@redhat.com> 1374 1375 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New. 1376 (create_lock_lock): New. 1377 (initialize_critical): Initialize it. 1378 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New. 1379 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare. 1380 13812005-09-20 Diego Novillo <dnovillo@redhat.com> 1382 1383 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h. 1384 13852005-09-20 Diego Novillo <dnovillo@redhat.com> 1386 1387 * testsuite/libgomp.dg/omp-loop01.c: New test. 1388 * testsuite/libgomp.dg/omp-loop02.c: New test. 1389 13902005-09-20 Jakub Jelinek <jakub@redhat.com> 1391 1392 * configure.ac (AC_PROG_FC): Add. 1393 (USE_FORTRAN): New automake conditional. 1394 * configure: Rebuilt. 1395 * Makefile.am (libgomp_la_SOURCES): Add fortran.c. 1396 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h. 1397 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod. 1398 Add rules to build them. 1399 * Makefile.in: Rebuilt. 1400 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and 1401 OMP_NEST_LOCK_KIND. 1402 * libgomp.map: Add Fortran wrappers. 1403 * libgomp_f.h.in: New file. 1404 * omp_lib.h.in: New file. 1405 * omp_lib.f90.in: New file. 1406 * fortran.c: New file. 1407 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files. 1408 Append libgfortran directory to LD_LIBRARY_PATH if it exists. 1409 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if 1410 libgfortran has been built. 1411 * testsuite/libgomp.fortran/fortran.exp: New file. 1412 * testsuite/libgomp.fortran/omp_cond1.f: New test. 1413 * testsuite/libgomp.fortran/omp_cond2.f: New test. 1414 * testsuite/libgomp.fortran/omp_cond3.F90: New test. 1415 * testsuite/libgomp.fortran/omp_cond4.F90: New test. 1416 * testsuite/libgomp.fortran/omp_hello.f: New test. 1417 * testsuite/libgomp.fortran/omp_orphan.f: New test. 1418 * testsuite/libgomp.fortran/omp_parse1.f90: New test. 1419 * testsuite/libgomp.fortran/omp_parse2.f90: New test. 1420 * testsuite/libgomp.fortran/omp_parse3.f90: New test. 1421 * testsuite/libgomp.fortran/omp_parse4.f90: New test. 1422 * testsuite/libgomp.fortran/omp_reduction.f: New test. 1423 * testsuite/libgomp.fortran/omp_workshare1.f: New test. 1424 * testsuite/libgomp.fortran/omp_workshare2.f: New test. 1425 14262005-08-30 Richard Henderson <rth@redhat.com> 1427 1428 * loop.c (GOMP_loop_static_start): Provide fallback wrapper 1429 function for when aliases are not usable. 1430 (GOMP_loop_dynamic_start, GOMP_loop_guided_start, 1431 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start, 1432 GOMP_loop_ordered_guided_start, GOMP_loop_static_next, 1433 GOMP_loop_dynamic_next, GOMP_loop_guided_next, 1434 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next, 1435 GOMP_loop_ordered_guided_next): Likewise. 1436 * ordered.c (GOMP_ordered_start): Likewise. 1437 14382005-08-01 Diego Novillo <dnovillo@redhat.com> 1439 1440 * testsuite/libgomp.dg/dg.exp: Use -O2 for now. 1441 * testsuite/libgomp.dg/omp_hello.c: Fix return code 1442 * testsuite/libgomp.dg/omp_matvec.c: Likewise. 1443 * testsuite/libgomp.dg/omp_orphan.c: Likewise 1444 * testsuite/libgomp.dg/omp_reduction.c: Likewise 1445 * testsuite/libgomp.dg/omp_workshare1.c: Likewise 1446 * testsuite/libgomp.dg/omp_workshare2.c: Likewise 1447 * testsuite/libgomp.dg/omp_workshare3.c: Likewise 1448 * testsuite/libgomp.dg/omp_workshare4.c: Likewise 1449 14502005-07-07 Eric Christopher <echristo@redhat.com> 1451 Diego Novillo <dnovillo@redhat.com> 1452 1453 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS. 1454 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix 1455 up code. 1456 * testsuite/libgomp.dg/omp_matvec.c: Ditto. 1457 * testsuite/libgomp.dg/omp_orphan.c: Ditto. 1458 * testsuite/libgomp.dg/omp_reduction.c: Ditto. 1459 * testsuite/libgomp.dg/omp_workshare1.c: Ditto. 1460 * testsuite/libgomp.dg/omp_workshare2.c: Ditto. 1461 * testsuite/libgomp.dg/omp_workshare3.c: Ditto. 1462 * testsuite/libgomp.dg/omp_workshare4.c: Ditto. 1463 14642005-06-13 Diego Novillo <dnovillo@redhat.com> 1465 1466 * TOPLEVEL.patch: Remove. 1467 14682005-05-16 Richard Henderson <rth@redhat.com> 1469 1470 * configure.ac: Test for clock_gettime. 1471 * config.h.in, configure: Rebuild. 1472 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern. 1473 (omp_get_wtime): Use clock_gettime if available. 1474 (omp_get_wtick): Use clock_getres if available. 1475 14762005-05-11 Richard Henderson <rth@redhat.com> 1477 1478 * config/linux/ia64/futex.h: New file. 1479 * configure.tgt: Use it. 1480 1481 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline. 1482 14832005-05-07 Richard Henderson <rth@redhat.com> 1484 1485 * config/linux/powerpc/futex.h: New file. 1486 * configure.tgt: Use it. 1487 1488 * config/linux/i486/futex.h: Merge ... 1489 * config/linux/x86_64/futex.h: ... into ... 1490 * config/linux/x86/futex.h: ... here. 1491 * configure.tgt: Update to match. 1492 14932005-05-06 Richard Henderson <rth@redhat.com> 1494 1495 * config/linux/alpha/futex.h: Conditionally define SYS_futex. 1496 * config/linux/i486/futex.h: Likewise. 1497 * config/linux/x86_64/futex.h: Likewise. 1498 1499 * config/linux/lock.c: New file. 1500 * config/linux/omp-lock.h: New file. 1501 1502 * critical.c, env.h: Don't include omp.h 1503 * config/posix/lock.c: Include libgomp.h instead of omp.h. 1504 * config/posix/time.c: Likewise. 1505 * config/posix/omp-lock.h: New file. 1506 * libgomp.h: Include omp-lock.h and omp.h. 1507 * Makefile.am (nodist_include_HEADERS): New. 1508 (omp.h): New rule. 1509 * configure.ac (PERL): New. 1510 * mkomp_h.pl: New file. 1511 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t 1512 with templates. 1513 * Makefile.in, configure, testsuite/Makefile.in: Rebuild. 1514 1515 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into 1516 build directory. Re-add -march=i486 hack. 1517 1518 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove. 1519 (libgomp_link_flags): Remove. 1520 (libgomp_initialized): Remove. 1521 (libgomp_init): Don't protect from reinitialization. Copy code 1522 from libstdc++ for getting the multilib set correctly. 1523 15242005-05-05 Richard Henderson <rth@redhat.com> 1525 1526 * config/linux/alpha/futex.h: New file. 1527 * configure.tgt (alpha*-*-linux*): Use it. 1528 1529 * config/posix/mutex.c: New file. 1530 * config/posix/sem.c: Use libgomp.h. 1531 1532 * configure.tgt (x86_64-linux): Also test CC for -m32. 1533 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage. 1534 1535 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add / 1536 after $gccpath. 1537 1538 * Makefile.am (SUBDIRS): New. 1539 (libgomp_la_LDFLAGS): Add -lpthread. 1540 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies. 1541 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild. 1542 1543 * libgomp_g.h: New file. 1544 * libgomp.h: Split out all public declarations to libgomp_g.h. 1545 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN. 1546 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN. 1547 * config/linux/sem.h: Likewise. 1548 * config/posix/sem.h: Likewise. 1549 1550 * Makefile.am (AM_LDFLAGS): New. 1551 (libgomp_version_script): Split out from ... 1552 (libgomp_la_LDFLAGS): ... here. 1553 (libgomp_version_info): New. 1554 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE. 1555 (LIBGOMP_ENABLE): New. 1556 (LIBGOMP_CHECK_LINKER_FEATURES): New. 1557 (LIBGOMP_ENABLE_SYMVERS): New. 1558 * configure.ac (AC_INIT): Version 1.0. 1559 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE. 1560 (enable-linux-futex): Likewise. Rename from enable-futex. 1561 (libtool_VERSION): New. 1562 (LIBGOMP_ENABLE_SYMVERS): Use it. 1563 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations. 1564 * Makefile.in, aclocal.m4, configure: Rebuild. 1565 1566 * config/linux/mutex.c: Include libgomp.h instead of mutex.h. 1567 (gomp_mutex_unlock_slow): Fix typo. 1568 * config/linux/sem.c: Similarly. 1569 (gomp_sem_post_slow): Fix typo. 1570 * config/linux/sem.h (gomp_sem_post_slow): Fix typo. 1571 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code. 1572 [__PIC__] (sys_futex0): Don't use tmp output in asm. 1573 1574 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS. 1575 (libgomp_la_LDFLAGS): Add top_srcdir to path. 1576 * acinclude.m4: Copy libtool.m4 stuff from libgfortran. 1577 * configure.ac: Check for getloadavg. Substitute XCFLAGS and 1578 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS. 1579 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and 1580 LDFLAGS. Pull enable_futex check to top-level. 1581 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN. 1582 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. 1583 1584 First attempt at real configury. 1585 * Makefile, config.h: Remove file. 1586 * Makefile.am, Makefile.in: New file. 1587 * acinclude.m4 aclocal.m4: New file. 1588 * configure.ac, configure.tgt, configure: New file. 1589 1590 * config/posix/lock.c: Rename from sys-lock.c. 1591 * config/posix/mutex.h: Rename from sys-mutex.h. 1592 * config/posix/sem.c: Rename from sys-sem.c. 1593 * config/posix/sem.h: Rename from sys-sem.h. 1594 * config/posix/proc.c: Rename from sys-proc.c. 1595 * config/posix/time.c: Rename from sys-proc.c. 1596 1597 * config/linux/mutex.c: New file. 1598 * config/linux/mutex.h: New file. 1599 * config/linux/sem.c: New file. 1600 * config/linux/sem.h: New file. 1601 * config/linux/i486/futex.h: New file. 1602 * config/linux/x86_64/futex.h: New file. 1603 16042005-05-04 Richard Henderson <rth@redhat.com> 1605 1606 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New. 1607 * libgomp.h: Declare them. 1608 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start, 1609 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them. 1610 16112005-05-04 Richard Henderson <rth@redhat.com> 1612 1613 * libgomp-1 code drop 1614 16152005-05-04 Richard Henderson <rth@redhat.com> 1616 1617 * iter.c (gomp_iter_static_next): Return tri-state on 0. 1618 * ordered.c (gomp_ordered_static_next): Remove not_last argument. 1619 * libgomp.h (struct gomp_team_state): Make static_trip unsigned. 1620 (gomp_iter_static_next): Update. 1621 (gomp_ordered_static_next): Update. 1622 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next. 1623 (gomp_loop_ordered_static_start): Likewise. Exit early for a 1624 totally empty range. 1625 (gomp_loop_ordered_static_next): Refine test for calling 1626 gomp_ordered_static_next. 1627 * testsuite/ordered-1.c: Add case for more threads than iterations. 1628 1629 * iter.c (gomp_iter_runtime_next_locked): Remove. 1630 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start, 1631 gomp_loop_guided_start, gomp_loop_ordered_static_start, 1632 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start, 1633 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next, 1634 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next, 1635 gomp_loop_ordered_guided_next): Downcase name, make static, add 1636 an external alias with the old name. 1637 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start, 1638 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a 1639 switch and call one of the above static functions. 1640 * libgomp.h: Update. 1641 1642 * work.c (gomp_work_share_start): Lock the mutex for !first too. 1643 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start, 1644 GOMP_loop_guided_start, GOMP_loop_runtime_start, 1645 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start, 1646 GOMP_loop_ordered_guided_start): Update to match. 1647 * sections.c (GOMP_sections_start): Likewise. 1648 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise. 1649 1650 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next, 1651 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//. 1652 Use bounds check instead of modulus. 1653 (gomp_ordered_sync): Split out of GOMP_ordered_start. 1654 (gomp_ordered_last): Don't sync with ordered_owner here. 1655 (gomp_ordered_next): Likewise. 1656 (gomp_ordered_static_loop_next): Likewise. 1657 * loop.c, libgomp.h: Update to match. 1658 1659 * libgomp.h (GOMP_barrier): Declare. 1660 1661 * testsuite/barrier-1.c: New file. 1662 * testsuite/critical-1.c: New file. 1663 * testsuite/ordered-2.c: New file. 1664 * testsuite/ordered-1.c: New file. 1665 * testsuite/sections-1.c: New file. 1666 * testsuite/single-1.c: New file. 1667 * testsuite/Makefile (TESTS): Add them. 1668 16692005-05-04 Richard Henderson <rth@redhat.com> 1670 1671 * libgomp.h (struct gomp_work_share): Add ordered_owner. 1672 * loop.c (GOMP_loop_static_start): If not the startup thread, 1673 acquire the mutex to wait for initialization complete. 1674 (GOMP_loop_ordered_static_start): Likewise. 1675 (GOMP_loop_ordered_runtime_start): Likewise. 1676 (GOMP_loop_ordered_static_first): Remove. 1677 (GOMP_loop_ordered_dynamic_first): Remove. 1678 (GOMP_loop_ordered_guided_first): Remove. 1679 (GOMP_loop_ordered_runtime_first): Remove. 1680 * ordered.c (gomp_ordered_loop_first): Post to own release when 1681 we're the first thread. 1682 (gomp_ordered_loop_last): Wait on release if not owner. 1683 (gomp_ordered_loop_next): Likewise. 1684 (gomp_ordered_static_loop_init): New. 1685 (gomp_ordered_static_loop_next): Use ordered_owner. 1686 (GOMP_ordered_start): Likewise. 1687 * work.c (gomp_new_work_share): Initialize ordered_owner. 1688 16892005-05-03 Richard Henderson <rth@redhat.com> 1690 1691 * Makefile (OPT): New. 1692 (CFLAGS): Use it. 1693 1694 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New. 1695 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New. 1696 * libgomp.h, libgomp.map, NOTES: Update to match. 1697 1698 * team.c (struct gomp_thread_start_data): Remove ts, fn, data. 1699 Add initialized and thr members. 1700 (gomp_thread_start): Pause when initially spawned to wait for 1701 the whole team to be created. 1702 (gomp_team_start): Release team members at the end. 1703 1704 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100. 1705 (f_foo_1): Use GOMP_loop_end. 1706 (f_foo_2): Use GOMP_loop_end_nowait. 1707 1708 * testsuite/loop-2.c: New file. 1709 * testsuite/Makefile (TESTS): Add it. 1710 17112005-05-03 Richard Henderson <rth@redhat.com> 1712 1713 * iter.c (gomp_iter_static_next): Fix overflow check typo. 1714 (gomp_iter_dynamic_next_locked): Fix overflow check thinko. 1715 * team.c (new_team): Initialize oldest_live_gen to 1 if no 1716 initial work_share. 1717 1718 * testsuite/Makefile: New file. 1719 * testsuite/loop-1.c: New file. 1720 17212005-05-03 Richard Henderson <rth@redhat.com> 1722 1723 Initial implementation and checkin. 1724