aboutsummaryrefslogtreecommitdiff
path: root/libgomp
AgeCommit message (Collapse)AuthorFilesLines
2009-07-30extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand for Autoconf 2.62 or ↵Ralf Wildenhues2-1/+5
newer. config/ * extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand for Autoconf 2.62 or newer. * tls.m4 (GCC_CHECK_TLS): Fix m4 quotation. * no-executables.m4 (_AC_COMPILER_EXEEXT): Fix m4 quotation. * override.m4 (m4_copy_force, m4_rename_force): Provide macros if not defined. (AC_PREREQ): Use m4_copy_force. boehm-gc/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libada/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libffi/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libgfortran/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libgomp/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libjava/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libmudflap/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libobjc/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libssp/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. zlib/ * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force. libstdc++-v3/ * acinclude.m4 (GLIBCXX_CONFIGURE): Use m4_rename_force. From-SVN: r150269
2009-07-17tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when cross-compiling.Joseph Myers2-0/+84
config: * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when cross-compiling. libgomp: * configure: Regenerate. libjava: * configure: Regenerate. libmudflap: * configure: Regenerate. libstdc++-v3: * configure: Regenerate. From-SVN: r149725
2009-07-11re PR testsuite/40699 (All sparcv9 libjava execution tests fail on Solaris ↵Richard Sandiford5-14/+52
11/SPARC) gcc/testsuite/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * lib/gcc-defs.exp, lib/target-libpath.exp, lib/objc.exp, lib/gfortran.exp, lib/g++.exp, lib/obj-c++.exp, lib/c-torture.exp, lib/gcc-dg.exp, lib/gnat.exp, g++.dg/compat/compat.exp, g++.dg/compat/struct-layout-1.exp: Revert 2009-06-30 commit. libstdc++-v3/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * testsuite/lib/libstdc++.exp: Revert 2009-06-30 commit. libjava/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * testsuite/lib/libjava.exp: Revert 2009-06-30 commit. libgomp/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits. * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp, testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits. libffi/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * testsuite/lib/libffi-dg.exp: Revert 2009-07-02, 2009-07-01 and 2009-06-30 commits. libmudflap/ PR testsuite/40699 PR testsuite/40707 PR testsuite/40709 * testsuite/lib/libmudflap.exp: Revert 2009-06-30 commit. From-SVN: r149508
2009-07-02libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS options when choosing a ↵Richard Sandiford2-3/+15
multilib. libgomp/ * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS options when choosing a multilib. From-SVN: r149195
2009-06-30gcc-defs.exp (gcc-set-multilib-library-path): Delete.Richard Sandiford5-42/+17
gcc/testsuite/ * lib/gcc-defs.exp (gcc-set-multilib-library-path): Delete. * lib/target-libpath.exp (ld_library_path_vars): New variable. (init_ld_library_path_env_vars): New function, replacing the orig_*_saved assignments. Call it after defining it. (set_ld_library_path_env_vars): Rewrite to use ld_library_path_vars. (restore_ld_library_path_env_vars): Likewise. (add_path, find_libgcc_s): New functions. * lib/objc.exp (objc_init): Use find_libgcc_s instead of gcc-set-multilib-library-path. (objc_target_compile): Don't add "." to ld_library_path. Use add_path. * lib/gfortran.exp (gfortran_link_flags): Don't add "." to ld_library_path. Use add_path. Use find_libgcc_s instead of gcc-set-multilib-library-path. * lib/g++.exp (g++_link_flags): Likewise. * lib/obj-c++.exp (obj-c++_link_flags): Likewise. * lib/c-torture.exp: Do not manipulate ld_library_path at the top level; do it... (c-torture-execute): ...here instead. Use $ld_library_path_multilib to tell when this needs to happen. Use find_libgcc_s instead of gcc-set-multilib-library-path. * lib/gcc-dg.exp: Likewise. * lib/gnat.exp (gnat_target_compile): Don't add "." to ld_library_path. * g++.dg/compat/compat.exp (alt_ld_library_path): Don't add "." unless it is in $ALT_LD_LIBRARY_PATH. * g++.dg/compat/struct-layout-1.exp (alt_ld_library_path): Likewise. libffi/ * testsuite/lib/libffi-dg.exp (libffi-init): Don't add "." to ld_library_path. Use add_path. Add just find_libgcc_s to ld_library_path, not every libgcc multilib directory. libgomp/ * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to ld_library_path. Use add_path. Add just find_libgcc_s to ld_library_path, not every libgcc multilib directory. * testsuite/libgomp.c/c.exp (ld_library_path): Don't call gcc-set-multilib-library-path; rely on $always_ld_library_path instead. * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise. Use add_path. * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise. libjava/ * testsuite/lib/libjava.exp (libjava_init): Just add find_libgcc_s to libjava_libgcc_s_path, rather than every libgcc multilib directory. (libjava_arguments): Explain why we add "." to ld_library_path. (gcj_invoke, exec_gij, libjava_invoke): Use add_path. libmudflap/ * testsuite/lib/libmudflap.exp (libmudflap-init): Don't add "." to ld_library_path. Use add_path. Add just find_libgcc_s to ld_library_path, not every libgcc multilib directory. libstdc++-v3/ * testsuite/lib/libstdc++.exp (libstdc++_init): Don't add "." to ld_library_path. Use add_path. Add just find_libgcc_s to ld_library_path, not every libgcc multilib directory. From-SVN: r149113
2009-06-09Makefile.am (LTLDFLAGS): Define.Nathan Froyd3-2/+14
* Makefile.am (LTLDFLAGS): Define. (LINK): Define. * Makefile.in: Regenerate. From-SVN: r148311
2009-05-27Don't link to or test existence of libgfortranbeginJanne Blomqvist2-4/+11
From-SVN: r147929
2009-05-20re PR libgomp/40174 (Memory leak when using '#pragma omp parallel')Jakub Jelinek2-0/+8
PR libgomp/40174 * team.c (gomp_thread_start): Destroy thr->release semaphore. (gomp_free_pool_helper): Likewise. From-SVN: r147747
2009-04-20re PR fortran/35423 (Implement OpenMP workshare)Vasilis Liaskovitis2-0/+43
PR fortran/35423 * trans.h (OMPWS_WORKSHARE_FLAG, OMPWS_CURR_SINGLEUNIT, OMPWS_SCALARIZER_WS, OMPWS_NOWAIT): Define. (ompws_flags): New extern decl. * trans-array.c (gfc_trans_scalarized_loop_end): Build OMP_FOR for the outer dimension if ompws_flags allow it. * trans.c (gfc_generate_code): Clear ompws_flags. * trans-expr.c (gfc_trans_assignment_1): Allow worksharing array assignments inside of !$omp workshare. * trans-stmt.c (gfc_trans_where_3): Similarly for where statements and constructs. * trans-openmp.c (ompws_flags): New variable. (gfc_trans_omp_workshare): Rewritten. * testsuite/libgomp.fortran/workshare2.f90: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r146397
2009-04-09Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.Jakub Jelinek59-900/+798
From-SVN: r145841
2009-04-08re PR middle-end/39573 (Linking fails on AMD with -march=native and ↵Jakub Jelinek2-0/+44
-fopenmp, works with generic x86_64) PR middle-end/39573 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls variables. * libgomp.c++/pr39573.C: New test. From-SVN: r145772
2009-04-01re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait)Jakub Jelinek4-0/+119
PR other/39591 * omp-low.c (remove_exit_barrier): Don't optimize if there are any addressable variables in the parallel that could go out of scope while running queued tasks. * testsuite/libgomp.c/pr39591-1.c: New test. * testsuite/libgomp.c/pr39591-2.c: New test. * testsuite/libgomp.c/pr39591-3.c: New test. From-SVN: r145390
2009-03-25atomic-5.c: Cleanup cpuid usage.Uros Bizjak3-11/+18
* testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage. * testsuite/libgomp.c/atomic-6.c: Ditto. From-SVN: r145061
2009-03-23re PR c/39495 (OMP parallel loop w/ unsigned index var rejected)Jakub Jelinek6-0/+1626
PR c/39495 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression instead of c_parser_expression_conv, if original_code isn't one of the 4 allowed comparison codes, fail. * semantics.c (handle_omp_for_class_iterator): Swap cond operands and code if iter is the second operand. * parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p argument. If it is set, don't build the toplevel expression with build_x_binary_op, but build2. (cp_parser_assignment_expression, cp_parser_omp_for_incr): Adjust callers. (cp_parser_omp_for_cond): Don't assume the first operand of the comparison must be decl. * gcc.dg/gomp/pr39495-2.c: Remove xfails. * testsuite/libgomp.c/loop-12.c: New test. * testsuite/libgomp.c/loop-11.c: New test. * testsuite/libgomp.c++/loop-11.C: New test. * testsuite/libgomp.c++/loop-12.C: New test. * testsuite/libgomp.c++/for-8.C: New test. From-SVN: r145014
2009-03-01backport: Support GNU/kOpenSolaris.Ralf Wildenhues2-7/+11
Backport from git Libtool: 2009-01-19 Robert Millan <rmh@aybabtu.com> Support GNU/kOpenSolaris. * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) (_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS) (_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize GNU/kOpenSolaris. libjava/classpath/ * configure: Regenerate. libjava/ * configure: Regenerate. libssp/ * configure: Regenerate. libobjc/ * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. libgfortran/ * configure: Regenerate. boehm-gc/ * configure: Regenerate. gcc/ * configure: Regenerate. libmudflap/ * configure: Regenerate. zlib/ * configure: Regenerate. libffi/ * configure: Regenerate. libgomp/ * configure: Regenerate. From-SVN: r144527
2009-02-25Fixed location of libgomp.exp.Adam Nemet1-1/+1
From-SVN: r144433
2009-02-11re PR middle-end/39154 (Miscompilation of VLAs in nested parallel regions)Jakub Jelinek2-0/+110
PR middle-end/39154 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN bit to variable length decl's flags, add it also to its pointer replacement variable. * testsuite/libgomp.c/pr39154.c: New test. From-SVN: r144111
2009-01-31acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set libgomp_ld_is_gold.Ian Lance Taylor3-2/+22
* acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set libgomp_ld_is_gold. Get gold version number. (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning. * configure: Rebuild. From-SVN: r143822
2009-01-20darwin.h: Add static-libgfortran to LINK_SPEC.Iain Sandoe2-0/+8
2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> gcc/ * config/darwin.h: Add static-libgfortran to LINK_SPEC. gcc/testsuite/ * lib/gfortran.exp: Add -B options for targets that use libgfortran.a%s in their specs. libgomp/ * testsuite/lib/libgomp.exp: Add -B option for targets that use libgfortran.a%s in their specs. From-SVN: r143507
2009-01-07re PR libgomp/38086 (libgomp fails to build if assembler doesn't support ↵Jakub Jelinek5-1/+86
.symver) PR libgomp/38086 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check. * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if HAVE_AS_SYMVER_DIRECTIVE is not defined. * configure: Regenerated. * config.h.in: Likewise. From-SVN: r143168
2008-12-28re PR c++/38650 (Trouble with volatile and #pragma omp for)Jakub Jelinek3-0/+104
PR c++/38650 * semantics.c (finish_omp_for): Don't add CLEANUP_POINT_EXPR around volatile iteration var in condition and/or increment expression. * testsuite/libgomp.c/pr38650.c: New test. * testsuite/libgomp.c++/pr38650.C: New test. From-SVN: r142940
2008-12-27* testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.Jakub Jelinek2-1/+5
From-SVN: r142932
2008-12-26atomic-6.c: Add -mieee for alpha*-*-* targets.Uros Bizjak2-0/+5
* testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets. From-SVN: r142927
2008-12-18Backport from upstream Libtool:Ralf Wildenhues2-84/+118
* libltdl.m4 (_LT_SYS_DYNAMIC_LINKER) (_LT_LINKER_SHLIBS): Add cache variables to tests that require the linker to work. For shlibpath_overrides_runpath, this also changes the semantics to let the result from the C compiler take precedence. boehm-gc/ * configure: Regenerate. fixincludes/ * configure: Regenerate. gcc/ * configure: Regenerate. libffi/ * configure: Regenerate. libgfortran/ * configure: Regenerate. libgomp/ * configure: Regenerate. libjava/classpath/ * configure: Regenerate. libjava/ * configure: Regenerate. libmudflap/ * configure: Regenerate. libobjc/ * configure: Regenerate. libssp/ * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. zlib/ * configure: Regenerate. From-SVN: r142817
2008-12-08re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct)Jakub Jelinek4-0/+133
PR middle-end/36802 * omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl on parallel and task contexts. * testsuite/libgomp.c/pr36802-1.c: New test. * testsuite/libgomp.c/pr36802-2.c: New test. * testsuite/libgomp.c/pr36802-3.c: New test. From-SVN: r142546
2008-12-02re PR libgomp/38270 (libgomp test failures due to missing memory barrier)Janis Johnson2-0/+7
PR libgomp/38270 * config/linux/powerpc/mutex.h: New. From-SVN: r142341
2008-12-01re PR c++/38257 (ICE with auto and #pragma omp parallel)Jakub Jelinek2-0/+113
PR c++/38257 * parser.c (cp_parser_omp_for_loop): Handle auto. * pt.c (tsubst_omp_for_iterator): Likewise. * testsuite/libgomp.c++/for-7.C: New test. From-SVN: r142320
2008-12-01re PR c++/38348 (ICE from c_finish_omp_for)Jakub Jelinek2-0/+114
PR c++/38348 * c-omp.c (c_finish_omp_for): Only transform pointer ++ or -- into MODIFY_EXPR if second argument is non-NULL. * g++.dg/gomp/for-19.C: New test. * testsuite/libgomp.c++/for-6.C: New test. From-SVN: r142318
2008-11-26re PR testsuite/28870 (configuring, over-riding timeout values in testsuite)Janis Johnson2-0/+9
gcc/ PR testsuite/28870 * doc/sourcebuild.texi (Test Directives): Add dg-timeout and dg-timeout-factor. gcc/testsuite/ PR testsuite/28870 * lib/timeout.exp: New. * lib/timeout-dg.exp: New. * lib/gcc-dg.exp: Include new timeout library files. (dg-test): Unset timeout variables. * lib/gcc.exp (gcc_target_compile): Set timeout value from new proc. * lib/g++.exp (g++_target_compile): Ditto. * lib/gfortran.exp (gfortran_target_compile): Ditto. * lib/objc.exp (objc_target_compile): Ditto. * lib/obj-c++.exp (obj-c++_target_compile): Ditto. * lib/obj-c++.exp (obj-c++_target_compile): Ditto. * lib/gnat.exp (gnat_target_compile): Ditto. libstdc++-v3/ PR testsuite/28870 * testsuite/lib/libstdc++.exp: Include new timeout library files. (libstdc++_init): Define tool_timeout. (dg-test): Override DejaGnu proc. (v3_target_compile): Set timeout value from new proc. (v3_target_compile_as_c): Ditto. libmudflap/ PR testsuite/28870 * testsuite/lib/mfdg.exp (dg-test): Use new timeout support. (dg-timeout): Remove. (standard-wait): Remove. * testsuite/lib/libmudflap.exp: Include new timeout library files. (libmudflap_target_compile): Set timeout value from new proc. libgomp/ PR testsuite/28870 * testsuite/lib/libgomp.exp: Include new timeout library files. (libgomp_target_compile): Set timeout value from new proc. From-SVN: r142225
2008-11-13re PR libgomp/37938 (libgomp testsuite failures on ia64-linux)Steve Ellcey2-0/+73
PR libgomp/37938 * config/linux/ia64/mutex.h: New. From-SVN: r141830
2008-11-04re PR libgomp/37935 (omp_set_schedule not documented in libgomp.texi)Tobias Burnus2-60/+413
2008-11-04 Tobias Burnus <burnus@net-b.de> PR libgomp/37935 * libgomp.texi (Runtime library routines, environment * variables): Update for OpenMP version 3.0. From-SVN: r141583
2008-09-26configure: Regenerate for new libtool.Peter O'Gorman4-514/+1368
* configure: Regenerate for new libtool. * Makefile.in: Ditto. * testsuite/Makefile.in: Ditto. Co-Authored-By: Steve Ellcey <sje@cup.hp.com> From-SVN: r140699
2008-09-19Fix typo s/darwin/bsdAndreas Tobler1-1/+1
From-SVN: r140498
2008-09-19proc.c: New file.Jakub Jelinek5-2/+133
2008-09-19 Jakub Jelinek <jakub@redhat.com> Andreas Tobler <a.tobler@schweiz.org> * config/bsd/proc.c: New file. * configure.tgt (*-*-darwin*): Use config_path "darwin posix". * configure.ac: Check for header <sys/sysctl.h> * configure: Regenerate. * config.h.in: Likewise. Co-Authored-By: Andreas Tobler <a.tobler@schweiz.org> From-SVN: r140497
2008-09-05testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.Janis Johnson2-1/+7
From-SVN: r140043
2008-08-31Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.Aaron W. LaFramboise4-2/+13
2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com> * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined. * Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. From-SVN: r139838
2008-08-21Fix ChangeLog typoNathan Froyd1-1/+1
From-SVN: r139394
2008-08-21libgomp.exp (libgomp_init): Only set things that depend on blddir if blddir ↵Nathan Froyd4-17/+62
exists. * testsuite/libgomp.exp (libgomp_init): Only set things that depend on blddir if blddir exists. (libgomp_target_compile): Likewise. * testsuite/libgomp.c++/c++.exp: Likewise. * testsuite/libgomp.fortran/fortran.exp: Likewise. From-SVN: r139393
2008-07-30re PR ada/15479 (Ada manual problems)Ralf Wildenhues2-4/+8
gcc/ada/ PR documentation/15479 * gnat-style.texi: Remove AdaCore copyright statement and GPL statement for GNAT. Add @copying stanza, use it. Update to GFDL 1.2. Do not list GFDL as Invariant Section, do not list title as Front-Cover Text. * gnat_rm.texi: Likewise. * gnat_ugn.texi: Likewise. gcc/ * doc/cpp.texi: Update to GFDL 1.2. * doc/gcc.texi: Do not list GPL as Invariant Section. * doc/gccint.texi: Likewise. Update copyright years. * doc/install.texi: Update copyright years. gcc/fortran/ * gfc-internals.texi: Update to GFDL 1.2. Do not list GPL as Invariant Section. * gfortran.texi: Likewise. * intrinsic.texi: Do not list GPL as Invariant Section. * invoke.texi: Likewise. Update copyright years. gcc/java/ * gcj.texi: Update copyright years. Do not list GPL as Invariant Section. libgomp/ * libgomp.texi: Update to GFDL 1.2. Update copyright years. Do not list GPL as Invariant Section. From-SVN: r138293
2008-07-28configure.tgt: Enable futex for MIPS.Ilie Garbacea3-0/+85
* configure.tgt: Enable futex for MIPS. * config/linux/mips/futex.h: New file. Co-Authored-By: Chao-ying Fu <fu@mips.com> From-SVN: r138214
2008-07-16team.c (gomp_team_end): Free team immediately if it has just one thread.Jakub Jelinek2-1/+7
* team.c (gomp_team_end): Free team immediately if it has just one thread. From-SVN: r137886
2008-07-08c++.exp: Append multilib library path.David Edelsohn5-0/+15
* testsuite/libgomp.c++/c++.exp: Append multilib library path. * testsuite/libgomp.fortran/fortran.exp: Same. * testsuite/libgomp.c/c.exp: Same. * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib directory to library path first. From-SVN: r137638
2008-06-29env.c (parse_stacksize): Add cast to avoid warning.Krister Walfridsson2-2/+7
2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com> * env.c (parse_stacksize): Add cast to avoid warning. (parse_spincount): Likewise. From-SVN: r137260
2008-06-27gimplify.c (omp_is_private): Don't return true if decl is not already ↵Jakub Jelinek4-4/+40
private on #pragma omp for or #pragma... * gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma omp parallel for. * gcc.dg/gomp/pr27388-3.c: Adjust dg-final. * testsuite/libgomp.c/loop-10.c: New test. * libgomp.c/loop-3.c (main): Add lastprivate clause. * libgomp.c++/loop-6.C (main): Likewise. From-SVN: r137199
2008-06-27re PR debug/36617 (Debug info for OpenMP code is almost non-existent)Jakub Jelinek2-0/+167
PR debug/36617 * tree-cfg.c (struct move_stmt_d): Replace block field with orig_block and new_block fields. (move_stmt_r): Only set TREE_BLOCK to p->new_block if if it used to be NULL, p->orig_block or if p->orig_block is NULL. (move_block_to_fn): Replace vars_map and new_label_map arguments with struct move_stmt_d pointer. (replace_block_vars_by_duplicates): New function. (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over all subblocks of ORIG_BLOCK to the new function. Call replace_block_vars_by_duplicates. * tree-flow.h (move_sese_region_to_fn): Adjust prototype. * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL BLOCK of the new function. Adjust move_sese_region_to_fn caller. Prune vars with original DECL_CONTEXT from child_cfun->local_decls. (expand_omp): Temporarily set input_location to the location of region's controlling stmt. (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost BIND_EXPR, push ctx->block_vars and gimplification vars into the BIND_EXPR and its block's BLOCK_VARS instead of directly into dest function. (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if there are any BLOCK_VARS. (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the OMP_PARALLEL or OMP_TASK stmt. (lower_omp): Save and restore input_location around the lower_omp_1 call. * testsuite/libgomp.c/debug-1.c: New test. From-SVN: r137198
2008-06-20re PR c++/36523 (OpenMP task construct fails to instantiate copy constructor)Jakub Jelinek2-0/+21
PR c++/36523 * cgraphunit.c (cgraph_process_new_functions): Don't clear node->needed and node->reachable. * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK. * omp-low.c (delete_omp_context): Call finalize_task_copyfn. (expand_task_call): Don't call expand_task_copyfn. (expand_task_copyfn): Renamed to... (finalize_task_copyfn): ... this. * testsuite/libgomp.c++/task-7.C: New function. From-SVN: r136977
2008-06-19* testsuite/libgomp.c/nqueens-1.c: New test.Jakub Jelinek2-0/+70
From-SVN: r136942
2008-06-17Makefile.tpl ($(srcdir)/configure): Update dependencies.Ralf Wildenhues2-77/+149
* Makefile.tpl ($(srcdir)/configure): Update dependencies. * Makefile.in: Regenerate. * configure: Regenerate. config/ * override.m4: Use m4_version_prereq throughout. (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git Autoconf: output pwd along with fatal errors, so the right config.log file is hinted at more prominently. (PARSE_ARGS): Push setting of ac_pwd in this diversion. (_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined. (_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf version _GCC_AUTOCONF_VERSION throughout the tree. (m4_wrap): New override, fix for Posix semantics of m4wrap. libgcc/ * configure.ac: sinclude override.m4. * configure: Regenerate. gnattools/ * configure.ac: move sinclude of acx.m4 before AC_INIT, also sinclude override.m4. * Makefile.in ($(srcdir)/configure): Update dependencies. * configure: Regenerate. libada/ * configure.ac: move sinclude of acx.m4 before AC_INIT, also sinclude override.m4. * Makefile.in ($(srcdir)/configure): Update dependencies. * configure: Regenerate. intl/ * configure: Regenerate. libiberty/ * configure: Regenerate. boehm-gc/ * Makefile.in: Regenerate. * configure: Regenerate. * include/Makefile.in: Regenerate. * include/gc_config.h.in: Regenerate. fixincludes/ * configure: Regenerate. gcc/ * configure: Regenerate. libcpp/ * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies. * configure: Regenerate. libdecnumber/ * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies. * configure: Regenerate. libffi/ * configure: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libgfortran/ * configure: Regenerate. libgomp/ * configure: Regenerate. libjava/classpath/ * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. * doc/api/Makefile.in: Regenerate. * examples/Makefile.in: Regenerate. * external/Makefile.in: Regenerate. * external/jsr166/Makefile.in: Regenerate. * external/relaxngDatatype/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * lib/Makefile.in: Regenerate. * native/Makefile.in: Regenerate. * native/fdlibm/Makefile.in: Regenerate. * native/jawt/Makefile.in: Regenerate. * native/jni/Makefile.in: Regenerate. * native/jni/classpath/Makefile.in: Regenerate. * native/jni/gconf-peer/Makefile.in: Regenerate. * native/jni/gstreamer-peer/Makefile.in: Regenerate. * native/jni/gtk-peer/Makefile.in: Regenerate. * native/jni/java-io/Makefile.in: Regenerate. * native/jni/java-lang/Makefile.in: Regenerate. * native/jni/java-net/Makefile.in: Regenerate. * native/jni/java-nio/Makefile.in: Regenerate. * native/jni/java-util/Makefile.in: Regenerate. * native/jni/midi-alsa/Makefile.in: Regenerate. * native/jni/midi-dssi/Makefile.in: Regenerate. * native/jni/native-lib/Makefile.in: Regenerate. * native/jni/qt-peer/Makefile.in: Regenerate. * native/jni/xmlj/Makefile.in: Regenerate. * native/plugin/Makefile.in: Regenerate. * resource/Makefile.in: Regenerate. * scripts/Makefile.in: Regenerate. * tools/Makefile.in: Regenerate. libjava/ * configure: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/libltdl/ * Makefile.in: Regenerate. * configure: Regenerate. libmudflap/ * Makefile.in: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * testsuite/Makefile.in: Regenerate. libobjc/ * configure: Regenerate. libssp/ * Makefile.in: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. zlib/ * Makefile.in: Regenerate. * configure: Regenerate. From-SVN: r136876
2008-06-15env.c (initialize_env): Always initialize gomp_remaining_threads_lock mutex ↵John David Anglin2-4/+7
when... * env.c (initialize_env): Always initialize gomp_remaining_threads_lock mutex when HAVE_SYNC_BUILTINS isn't defined. From-SVN: r136827
2008-06-15libgomp.texi (omp_test_lock): Fix typo.Ralf Wildenhues2-1/+5
libgomp/ * libgomp.texi (omp_test_lock): Fix typo. gcc/ * doc/sourcebuild.texi (Config Fragments): Remove obsolete FIXME note about gcc/config.guess. * doc/options.texi (Option file format): Remove non-ASCII bytes. * doc/cpp.texi: Expand TABs, drop indentation outside examples. * doc/cppopts.texi: Likewise. * doc/extend.texi: Likewise. * doc/gcc.texi: Likewise. * doc/gccint.texi: Likewise. * doc/gcov.texi: Likewise. * doc/gty.texi: Likewise. * doc/hostconfig.texi: Likewise. * doc/install.texi: Likewise. * doc/invoke.texi: Likewise. * doc/loop.texi: Likewise. * doc/makefile.texi: Likewise. * doc/md.texi: Likewise. * doc/passes.texi: Likewise. * doc/tm.texi: Likewise. * doc/tree-ssa.texi: Likewise. * doc/trouble.texi: Likewise. libiberty/ * libiberty.texi: Expand TABs, drop indentation outside examples. * obstacks.texi: Likewise. gcc/fortran/ * gfc-internals.texi: Expand TABs, drop indentation outside examples. * gfortran.texi: Likewise. * intrinsic.texi: Likewise. * invoke.texi: Likewise. gcc/java/ * gcj.texi: Expand TABs, remove whitespace from blank lines. gcc/ada/ * gnat_rm.texi (Implementation Defined Characteristics) (Standard Library Routines): Use @smallexample for indented text. Drop Indentation outside examples. * gnat_ugn.texi: Likewise. From-SVN: r136802