2006-12-04 12:10:38 +01:00
|
|
|
2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2006-12-04 11:26:00 +01:00
|
|
|
2006-12-04 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/29947
|
|
|
|
* loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
|
|
|
|
start if there shouldn't be any loop iterations.
|
|
|
|
(gomp_loop_ordered_static_start): Remove start == end test.
|
|
|
|
* testsuite/libgomp.c/pr29947-1.c: New test.
|
|
|
|
* testsuite/libgomp.c/pr29947-2.c: New test.
|
|
|
|
|
2006-12-02 21:01:34 +01:00
|
|
|
2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
|
|
|
|
|
|
|
|
* configure.tgt: Force initial-exec TLS model on Linux only.
|
|
|
|
|
2006-11-13 21:35:20 +01:00
|
|
|
2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
2006-11-09 20:41:36 +01:00
|
|
|
2006-11-09 Uros Bizjak <ubizjak@gmail.com>
|
|
|
|
|
|
|
|
* env.c (parse_schedule): Reject out of range values.
|
|
|
|
(parse_unsigned_long): Reject out of range, negative or zero values.
|
|
|
|
|
2006-10-29 11:27:39 +01:00
|
|
|
2006-10-29 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/29629
|
|
|
|
* testsuite/libgomp.fortran/pr29629.f90: New test.
|
|
|
|
|
2006-10-24 15:59:06 +02:00
|
|
|
2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
|
|
|
|
|
|
|
|
PR libgomp/29494
|
|
|
|
* configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
|
|
|
|
* config/posix95: New directory.
|
|
|
|
* config/posix95/omp-lock.h: New file.
|
|
|
|
* config/posix95/lock.c: Likewise.
|
|
|
|
|
2006-10-15 09:42:57 +02:00
|
|
|
2006-10-14 Geoffrey Keating <geoffk@apple.com>
|
|
|
|
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2006-10-06 10:32:33 +02:00
|
|
|
2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
|
|
|
|
'<' to '<='.
|
|
|
|
|
2006-10-06 10:25:32 +02:00
|
|
|
2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
|
|
|
|
test.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
|
|
|
|
|
2006-09-26 20:06:55 +02:00
|
|
|
2006-09-26 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
2006-09-26 20:10:58 +02:00
|
|
|
PR middle-end/25261
|
|
|
|
PR middle-end/28790
|
|
|
|
* testsuite/libgomp.c/nestedfn-4.c: New test.
|
|
|
|
* testsuite/libgomp.c/nestedfn-5.c: New test.
|
|
|
|
* testsuite/libgomp.fortran/nestedfn3.f90: New test.
|
|
|
|
|
2006-09-26 20:06:55 +02:00
|
|
|
PR fortran/29097
|
|
|
|
* testsuite/libgomp.fortran/condinc1.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/condinc2.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/condinc3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/condinc4.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/condinc1.inc: New file.
|
|
|
|
|
2006-09-19 03:48:06 +02:00
|
|
|
2006-09-18 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
* configure: Rebuilt.
|
|
|
|
|
2006-09-13 03:04:18 +02:00
|
|
|
2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
PR c/28768
|
|
|
|
PR preprocessor/14634
|
|
|
|
* configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
|
|
|
|
to AC_DEFINE.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2006-09-08 22:57:55 +02:00
|
|
|
2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/reduction3.f90: Change
|
|
|
|
-2147483648 to -huge(i)-1 to avoid overflow.
|
|
|
|
* testsuite/libgomp.fortran/reduction4.f90: Change
|
|
|
|
Z'ffffffff' to not(0) to avoid overflow.
|
|
|
|
|
2006-08-26 20:30:44 +02:00
|
|
|
2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
PR libgomp/25938
|
|
|
|
* Makefile.am (libsubincludedir): New.
|
|
|
|
(nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
2006-08-17 09:58:02 +02:00
|
|
|
2006-08-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/28725
|
|
|
|
* env.c: Include ctype.h.
|
|
|
|
(parse_schedule, parse_unsigned_long, parse_boolean): Allow
|
|
|
|
leading and/or trailing whitespace and compare strings case
|
|
|
|
insensitively.
|
|
|
|
|
2006-07-16 22:19:27 +02:00
|
|
|
2006-07-16 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/28390
|
|
|
|
* testsuite/libgomp.fortran/pr28390.f: New test.
|
|
|
|
|
2006-07-05 19:32:41 +02:00
|
|
|
2006-07-05 Eric Christopher <echristo@apple.com>
|
|
|
|
|
|
|
|
* configure.ac: Depend addition of -pthread on host OS.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2006-06-21 10:59:44 +02:00
|
|
|
2006-06-21 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* critical.c (GOMP_critical_name_start): Fix *pptr initialization
|
|
|
|
when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
|
|
|
|
defined.
|
|
|
|
|
2006-06-20 11:55:42 +02:00
|
|
|
2006-06-20 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/26175
|
|
|
|
PR libgomp/26477
|
|
|
|
* configure.ac: If neither --enable-linux-futex nor
|
|
|
|
--disable-linux-futex is passed, determine the default by checking
|
|
|
|
for compiling and/or running against NPTL. With --enable-linux-futex,
|
|
|
|
check if SYS_gettid and SYS_futex are defined.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
|
2006-06-14 17:20:01 +02:00
|
|
|
2006-06-14 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/28008
|
|
|
|
* env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
|
|
|
|
undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
|
|
|
|
|
2006-06-10 00:08:55 +02:00
|
|
|
2006-06-09 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* env.c (gomp_nthreads_var): Change to unsigned long.
|
|
|
|
(gomp_run_sched_chunk): Likewise.
|
|
|
|
(parse_unsigned_long): Rename from parse_num_threads and generalize.
|
|
|
|
(initialize_env): Initialize gomp_thread_attr.
|
|
|
|
* libgomp.h (gomp_nthreads_var): Update decl.
|
|
|
|
(gomp_run_sched_chunk): Likewise.
|
|
|
|
(gomp_thread_attr): Declare.
|
|
|
|
* team.c (gomp_thread_attr): Export.
|
|
|
|
(initialize_team): Don't initialize it.
|
|
|
|
|
2006-06-09 23:18:42 +02:00
|
|
|
2006-06-09 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/27916
|
|
|
|
* testsuite/libgomp.fortran/pr27916-1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/pr27916-2.f90: New test.
|
|
|
|
|
2006-06-06 19:54:02 +02:00
|
|
|
2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
|
|
|
|
|
|
|
* config/mingw32/time.c: New file.
|
|
|
|
* configure.tgt: Use it.
|
|
|
|
|
2006-05-24 03:28:16 +02:00
|
|
|
2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
|
|
|
|
|
|
|
|
* Makefile.am: Add install-html target. Add install-html to .PHONY
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
2006-05-22 21:10:45 +02:00
|
|
|
2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
PR libgomp/27612
|
|
|
|
* testsuite/libgomp.c/sections-1.c: Require sync_int_long.
|
|
|
|
* testsuite/libgomp.c/critical-1.c: Likewise.
|
|
|
|
* testsuite/libgomp.c/loop-1.c: Likewise.
|
|
|
|
* testsuite/libgomp.c/loop-2.c: Likewise.
|
|
|
|
* testsuite/libgomp.c/single-1.c: Likewise.
|
|
|
|
* testsuite/libgomp.c/ordered-1.c: Likewise.
|
|
|
|
* testsuite/libgomp.c/ordered-2.c: Likewise.
|
|
|
|
|
2006-05-15 11:59:30 +02:00
|
|
|
2006-05-15 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR middle-end/27416
|
|
|
|
* libgomp.fortran/pr27416-1.f90: New test.
|
|
|
|
|
2006-05-03 14:51:33 +02:00
|
|
|
2006-05-03 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/27395
|
|
|
|
* testsuite/libgomp.fortran/pr27395-1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/pr27395-2.f90: New test.
|
|
|
|
|
2006-05-02 22:03:38 +02:00
|
|
|
2006-05-02 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/26943
|
|
|
|
* testsuite/libgomp.c/pr26943-1.c: New test.
|
|
|
|
* testsuite/libgomp.c/pr26943-2.c: New test.
|
|
|
|
* testsuite/libgomp.c/pr26943-3.c: New test.
|
|
|
|
* testsuite/libgomp.c/pr26943-4.c: New test.
|
|
|
|
* testsuite/libgomp.c++/pr27337.C: Remove barrier.
|
|
|
|
* testsuite/libgomp.c++/pr26943.C: New test.
|
|
|
|
|
2006-05-02 12:44:55 +02:00
|
|
|
2006-05-02 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR middle-end/27337
|
|
|
|
* testsuite/libgomp.c++/pr27337.C: New test.
|
|
|
|
|
2006-04-26 10:26:06 +02:00
|
|
|
2006-04-26 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c/26171
|
|
|
|
* testsuite/libgomp.c/pr26171.c: New test.
|
|
|
|
|
2006-04-25 22:58:25 +02:00
|
|
|
2006-04-25 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/25865
|
|
|
|
* configure.ac: Use GCC_CHECK_TLS.
|
|
|
|
* acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
|
|
|
|
* Makefile.in, aclocal.m4, configure: Regenerate.
|
|
|
|
|
2006-04-10 23:34:19 +02:00
|
|
|
2006-04-10 Matthias Klose <doko@debian.org>
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
|
|
|
|
directory names containing underscores.
|
|
|
|
|
2006-03-21 17:21:24 +01:00
|
|
|
2006-03-21 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/26691
|
|
|
|
* testsuite/libgomp.c++/pr26691.C: New test.
|
|
|
|
|
2006-03-13 22:44:04 +01:00
|
|
|
2006-03-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/retval2.f90: New test.
|
|
|
|
|
2006-03-09 19:14:39 +01:00
|
|
|
2006-03-09 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c++: New directory.
|
|
|
|
|
2006-02-25 22:23:09 +01:00
|
|
|
2006-02-25 Shantonu Sen <ssen@opendarwin.org>
|
|
|
|
|
|
|
|
* config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
|
|
|
|
* config/posix/sem.c: Implement the above.
|
|
|
|
|
|
|
|
2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
|
|
|
|
|
|
|
|
* configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
|
|
|
|
define HAVE_BROKEN_POSIX_SEMAPHORES.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* config.h.in: Rebuilt.
|
|
|
|
|
2006-02-17 20:01:04 +01:00
|
|
|
2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
|
|
|
|
|
|
|
PR bootstrap/26161
|
|
|
|
* configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
|
|
|
|
for the other pthread check.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
2006-02-15 08:46:39 +01:00
|
|
|
2006-02-15 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/25938
|
|
|
|
PR libgomp/25984
|
|
|
|
* Makefile.am (fincludedir): New variable.
|
|
|
|
(nodist_include_HEADERS): Remove Fortran files.
|
|
|
|
(nodist_finclude_HEADERS): New variable.
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
re PR fortran/25162 (Issue with OpenMP COPYIN and gfortran)
gcc/fortran/
2006-02-14 Jakub Jelinek <jakub@redhat.com>
Richard Henderson <rth@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* invoke.texi: Document -fopenmp.
* gfortran.texi (Extensions): Document OpenMP.
Backport from gomp-20050608-branch
* trans-openmp.c: Call build_omp_clause instead of
make_node when creating OMP_CLAUSE_* trees.
(gfc_trans_omp_reduction_list): Remove argument 'code'.
Adjust all callers.
* trans.h (build4_v): Define.
* trans-openmp.c: Call build4_v to create OMP_PARALLEL nodes.
Call build3_v to create OMP_SECTIONS nodes.
PR fortran/25162
* openmp.c (gfc_match_omp_variable_list): Call gfc_set_sym_referenced
on all symbols added to the variable list.
* openmp.c (gfc_match_omp_clauses): Fix check for non-INTRINSIC
procedure symbol in REDUCTION.
* trans-openmp.c (gfc_trans_omp_array_reduction): Use gfc_add
for MINUS_EXPR OMP_CLAUSE_REDUCTION_CODE.
* trans-openmp.c (gfc_trans_omp_do): Add PBLOCK argument. If PBLOCK
is non-NULL, evaluate INIT/COND/INCR and chunk size expressions in
that statement block.
(gfc_trans_omp_parallel_do): Pass non-NULL PBLOCK to gfc_trans_omp_do
for non-ordered non-static combined loops.
(gfc_trans_omp_directive): Pass NULL PBLOCK to gfc_trans_omp_do.
* openmp.c: Include target.h and toplev.h.
(gfc_match_omp_threadprivate): Emit diagnostic if target does
not support TLS.
* Make-lang.in (fortran/openmp.o): Add dependencies on
target.h and toplev.h.
* trans-decl.c (gfc_get_fake_result_decl): Set GFC_DECL_RESULT.
* trans-openmp.c (gfc_omp_privatize_by_reference): Make
DECL_ARTIFICIAL vars predetermined shared except GFC_DECL_RESULT.
(gfc_omp_disregard_value_expr): Handle GFC_DECL_RESULT.
(gfc_trans_omp_variable): New function.
(gfc_trans_omp_variable_list, gfc_trans_omp_reduction_list): Use it.
* trans.h (GFC_DECL_RESULT): Define.
* trans-openmp.c (gfc_omp_firstprivatize_type_sizes): New function.
* f95-lang.c (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
* trans.h (gfc_omp_firstprivatize_type_sizes): New prototype.
* trans-openmp.c (gfc_omp_privatize_by_reference): Return
true if a pointer has GFC_DECL_SAVED_DESCRIPTOR set.
(gfc_trans_omp_array_reduction, gfc_trans_omp_reduction_list): New
functions.
(gfc_trans_omp_clauses): Add WHERE argument. Call
gfc_trans_omp_reduction_list rather than gfc_trans_omp_variable_list
for reductions.
(gfc_trans_omp_do, gfc_trans_omp_parallel, gfc_trans_omp_parallel_do,
gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare,
gfc_trans_omp_sections, gfc_trans_omp_single): Adjust
gfc_trans_omp_clauses callers.
* openmp.c (omp_current_do_code): New var.
(gfc_resolve_omp_do_blocks): New function.
(gfc_resolve_omp_parallel_blocks): Call it.
(gfc_resolve_do_iterator): Add CODE argument. Don't propagate
predetermination if argument is !$omp do or !$omp parallel do
iteration variable.
* resolve.c (resolve_code): Call gfc_resolve_omp_do_blocks
for EXEC_OMP_DO. Adjust gfc_resolve_do_iterator caller.
* fortran.h (gfc_resolve_omp_do_blocks): New prototype.
(gfc_resolve_do_iterator): Add CODE argument.
* trans.h (gfc_omp_predetermined_sharing,
gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause): New
prototypes.
(GFC_DECL_COMMON_OR_EQUIV, GFC_DECL_CRAY_POINTEE): Define.
* trans-openmp.c (gfc_omp_predetermined_sharing,
gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause): New
functions.
* trans-common.c (build_equiv_decl, build_common_decl,
create_common): Set GFC_DECL_COMMON_OR_EQUIV flag on the decls.
* trans-decl.c (gfc_finish_cray_pointee): Set GFC_DECL_CRAY_POINTEE
on the decl.
* f95-lang.c (LANG_HOOKS_OMP_PREDETERMINED_SHARING,
LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE): Define.
* openmp.c (resolve_omp_clauses): Remove extraneous comma.
* symbol.c (check_conflict): Add conflict between cray_pointee and
threadprivate.
* openmp.c (gfc_match_omp_threadprivate): Fail if
gfc_add_threadprivate returned FAILURE.
(resolve_omp_clauses): Diagnose Cray pointees in SHARED,
{,FIRST,LAST}PRIVATE and REDUCTION clauses and Cray pointers in
{FIRST,LAST}PRIVATE and REDUCTION clauses.
* resolve.c (omp_workshare_flag): New variable.
(resolve_function): Diagnose use of non-ELEMENTAL user defined
function in WORKSHARE construct.
(resolve_code): Cleanup forall_save use. Make sure omp_workshare_flag
is set to correct value in different contexts.
* openmp.c (resolve_omp_clauses): Replace %s with '%s' when printing
variable name.
(resolve_omp_atomic): Likewise.
PR fortran/24493
* scanner.c (skip_free_comments): Set at_bol at the beginning of the
loop, not before it.
(skip_fixed_comments): Handle ! comments in the middle of line here
as well.
(gfc_skip_comments): Use skip_fixed_comments for FIXED_FORM even if
not at BOL.
(gfc_next_char_literal): Fix expected canonicalized *$omp string.
* trans-openmp.c (gfc_trans_omp_do): Use make_node and explicit
initialization to build OMP_FOR instead of build.
* trans-decl.c (gfc_gimplify_function): Invoke
diagnose_omp_structured_block_errors.
* trans-openmp.c (gfc_trans_omp_master): Use OMP_MASTER.
(gfc_trans_omp_ordered): Use OMP_ORDERED.
* gfortran.h (gfc_resolve_do_iterator, gfc_resolve_blocks,
gfc_resolve_omp_parallel_blocks): New prototypes.
* resolve.c (resolve_blocks): Renamed to...
(gfc_resolve_blocks): ... this. Remove static.
(gfc_resolve_forall): Adjust caller.
(resolve_code): Only call gfc_resolve_blocks if code->block != 0
and not for EXEC_OMP_PARALLEL* directives. Call
gfc_resolve_omp_parallel_blocks for EXEC_OMP_PARALLEL* directives.
Call gfc_resolve_do_iterator if resolved successfully EXEC_DO
iterator.
* openmp.c: Include pointer-set.h.
(omp_current_ctx): New variable.
(gfc_resolve_omp_parallel_blocks, gfc_resolve_do_iterator): New
functions.
* Make-lang.in (fortran/openmp.o): Depend on pointer-set.h.
* openmp.c (gfc_match_omp_clauses): For max/min/iand/ior/ieor,
look up symbol if it exists, use its name instead and, if it is not
INTRINSIC, issue diagnostics.
* parse.c (parse_omp_do): Handle implied end do properly.
(parse_executable): If parse_omp_do returned ST_IMPLIED_ENDDO,
return it instead of continuing.
* trans-openmp.c (gfc_trans_omp_critical): Update for changed
operand numbering.
(gfc_trans_omp_do, gfc_trans_omp_parallel, gfc_trans_omp_parallel_do,
gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare,
gfc_trans_omp_sections, gfc_trans_omp_single): Likewise.
* trans.h (gfc_omp_privatize_by_reference): New prototype.
* f95-lang.c (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Redefine
to gfc_omp_privatize_by_reference.
* trans-openmp.c (gfc_omp_privatize_by_reference): New function.
* trans-stmt.h (gfc_trans_omp_directive): Add comment.
* openmp.c (gfc_match_omp_variable_list): Add ALLOW_COMMON argument.
Disallow COMMON matching if it is set.
(gfc_match_omp_clauses, gfc_match_omp_flush): Adjust all callers.
(resolve_omp_clauses): Show locus in error messages. Check that
variable types in reduction clauses are appropriate for reduction
operators.
* resolve.c (resolve_symbol): Don't error if a threadprivate module
variable isn't SAVEd.
* trans-openmp.c (gfc_trans_omp_do): Put count into BLOCK, not BODY.
Fix typo in condition. Fix DOVAR initialization.
* openmp.c (gfc_match_omp_clauses): Match min/iand/ior/ieor
rather than .min. etc.
* trans-openmpc.c (omp_not_yet): Remove.
(gfc_trans_omp_parallel_do): Keep listprivate clause on parallel.
Force creation of BIND_EXPR around the workshare construct.
(gfc_trans_omp_parallel_sections): Likewise.
(gfc_trans_omp_parallel_workshare): Likewise.
* types.def (BT_I16, BT_FN_I16_VPTR_I16,
BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
* trans-openmp.c (gfc_trans_omp_clauses): Create OMP_CLAUSE_DEFAULT.
(gfc_trans_omp_code): New function.
(gfc_trans_omp_do): Use it, remove omp_not_yet uses.
(gfc_trans_omp_parallel, gfc_trans_omp_single): Likewise.
(gfc_trans_omp_sections): Likewise. Only treat empty last section
specially if lastprivate clause is present.
* f95-lang.c (gfc_init_builtin_functions): Create BUILT_IN_TRAP
builtin.
* trans-openmp.c (gfc_trans_omp_variable_list): Update for
OMP_CLAUSE_DECL name change.
(gfc_trans_omp_do): Likewise.
* trans-openmp.c (gfc_trans_omp_clauses): Create OMP_CLAUSE_REDUCTION
clauses.
(gfc_trans_omp_atomic): Build OMP_ATOMIC instead of expanding
sync builtins directly.
(gfc_trans_omp_single): Build OMP_SINGLE statement.
* trans-openmp.c (gfc_trans_add_clause): New.
(gfc_trans_omp_variable_list): Take a tree code and build the clause
node here. Link it to the head of a list.
(gfc_trans_omp_clauses): Update to match.
(gfc_trans_omp_do): Use gfc_trans_add_clause.
* trans-openmp.c (gfc_trans_omp_clauses): Change second argument to
gfc_omp_clauses *. Use gfc_evaluate_now instead of creating
temporaries by hand.
(gfc_trans_omp_atomic, gfc_trans_omp_critical): Use buildN_v macros.
(gfc_trans_omp_do): New function.
(gfc_trans_omp_master): Dont' check for gfc_trans_code returning NULL.
(gfc_trans_omp_parallel): Adjust gfc_trans_omp_clauses caller.
Use buildN_v macros.
(gfc_trans_omp_parallel_do, gfc_trans_omp_parallel_sections,
gfc_trans_omp_parallel_workshare, gfc_trans_omp_sections,
gfc_trans_omp_single, gfc_trans_omp_workshare): New functions.
(gfc_trans_omp_directive): Use them.
* parse.c (parse_omp_do): Allow new_st.op == EXEC_NOP.
* openmp.c (resolve_omp_clauses): Check for list items present
in multiple clauses.
(resolve_omp_do): Check that iteration variable is not THREADPRIVATE
and is not present in any clause variable lists other than PRIVATE
or LASTPRIVATE.
* gfortran.h (symbol_attribute): Add threadprivate bit.
(gfc_common_head): Add threadprivate member, change use_assoc
and saved into char to save space.
(gfc_add_threadprivate): New prototype.
* symbol.c (check_conflict): Handle threadprivate.
(gfc_add_threadprivate): New function.
(gfc_copy_attr): Copy threadprivate.
* trans-openmp.c (gfc_trans_omp_clauses): Avoid creating a temporary
if IF or NUM_THREADS is constant. Create OMP_CLAUSE_SCHEDULE and
OMP_CLAUSE_ORDERED.
* resolve.c (resolve_symbol): Complain if a THREADPRIVATE symbol
outside a module and not in COMMON has is not SAVEd.
(resolve_equivalence): Ensure THREADPRIVATE objects don't get
EQUIVALENCEd.
* trans-common.c: Include target.h and rtl.h.
(build_common_decl): Set DECL_TLS_MODEL if THREADPRIVATE.
* trans-decl.c: Include rtl.h.
(gfc_finish_var_decl): Set DECL_TLS_MODEL if THREADPRIVATE.
* dump-parse-tree.c (gfc_show_attr): Handle THREADPRIVATE.
* Make-lang.in (fortran/trans-decl.o): Depend on $(RTL_H).
(fortran/trans-common.o): Depend on $(RTL_H) and $(TARGET_H).
* openmp.c (gfc_match_omp_variable_list): Ensure COMMON block
is from current namespace.
(gfc_match_omp_threadprivate): Rewrite.
(resolve_omp_clauses): Check some clause restrictions.
* module.c (ab_attribute): Add AB_THREADPRIVATE.
(attr_bits): Add THREADPRIVATE.
(mio_symbol_attribute, mio_symbol_attribute): Handle threadprivate.
(load_commons, write_common, write_blank_common): Adjust for type
change of saved, store/load threadprivate bit from the integer
as well.
* types.def (BT_FN_UINT_UINT): New.
(BT_FN_VOID_UINT_UINT): Remove.
* trans-openmp.c (gfc_trans_omp_clauses, gfc_trans_omp_barrier,
gfc_trans_omp_critical, gfc_trans_omp_flush, gfc_trans_omp_master,
gfc_trans_omp_ordered, gfc_trans_omp_parallel): New functions.
(gfc_trans_omp_directive): Use them.
* openmp.c (expr_references_sym): Add SE argument, don't look
into SE tree.
(is_conversion): New function.
(resolve_omp_atomic): Adjust expr_references_sym callers. Handle
promoted expressions.
* trans-openmp.c (gfc_trans_omp_atomic): New function.
(gfc_trans_omp_directive): Call it.
* f95-lang.c (builtin_type_for_size): New function.
(gfc_init_builtin_functions): Initialize synchronization and
OpenMP builtins.
* types.def: New file.
* Make-lang.in (f95-lang.o): Depend on $(BUILTINS_DEF) and
fortran/types.def.
* trans-openmp.c: Rename GOMP_* tree codes into OMP_*.
* dump-parse-tree.c (show_symtree): Don't crash if ns->proc_name
is NULL.
* dump-parse-tree.c (gfc_show_namelist, gfc_show_omp_node): New
functions.
(gfc_show_code_node): Call gfc_show_omp_node for EXEC_OMP_* nodes.
* parse.c (parse_omp_do): Call pop_state before next_statement.
* openmp.c (expr_references_sym, resolve_omp_atomic, resolve_omp_do):
New functions.
(gfc_resolve_omp_directive): Call them.
* match.c (match_exit_cycle): Issue error if EXIT or CYCLE statement
leaves an OpenMP structured block or if EXIT terminates !$omp do
loop.
* Make-lang.in (F95_PARSER_OBJS): Add fortran/openmp.o.
(F95_OBJS): Add fortran/trans-openmp.o.
(fortran/trans-openmp.o): Depend on $(GFORTRAN_TRANS_DEPS).
* lang.opt: Add -fopenmp option.
* options.c (gfc_init_options): Initialize it.
(gfc_handle_option): Handle it.
* gfortran.h (ST_OMP_ATOMIC, ST_OMP_BARRIER, ST_OMP_CRITICAL,
ST_OMP_END_CRITICAL, ST_OMP_END_DO, ST_OMP_END_MASTER,
ST_OMP_END_ORDERED, ST_OMP_END_PARALLEL, ST_OMP_END_PARALLEL_DO,
ST_OMP_END_PARALLEL_SECTIONS, ST_OMP_END_PARALLEL_WORKSHARE,
ST_OMP_END_SECTIONS, ST_OMP_END_SINGLE, ST_OMP_END_WORKSHARE,
ST_OMP_DO, ST_OMP_FLUSH, ST_OMP_MASTER, ST_OMP_ORDERED,
ST_OMP_PARALLEL, ST_OMP_PARALLEL_DO, ST_OMP_PARALLEL_SECTIONS,
ST_OMP_PARALLEL_WORKSHARE, ST_OMP_SECTIONS, ST_OMP_SECTION,
ST_OMP_SINGLE, ST_OMP_THREADPRIVATE, ST_OMP_WORKSHARE): New
statement codes.
(OMP_LIST_PRIVATE, OMP_LIST_FIRSTPRIVATE, OMP_LIST_LASTPRIVATE,
OMP_LIST_COPYPRIVATE, OMP_LIST_SHARED, OMP_LIST_COPYIN,
OMP_LIST_PLUS, OMP_LIST_REDUCTION_FIRST, OMP_LIST_MULT,
OMP_LIST_SUB, OMP_LIST_AND, OMP_LIST_OR, OMP_LIST_EQV,
OMP_LIST_NEQV, OMP_LIST_MAX, OMP_LIST_MIN, OMP_LIST_IAND,
OMP_LIST_IOR, OMP_LIST_IEOR, OMP_LIST_REDUCTION_LAST, OMP_LIST_NUM):
New OpenMP variable list types.
(gfc_omp_clauses): New typedef.
(gfc_get_omp_clauses): Define.
(EXEC_OMP_CRITICAL, EXEC_OMP_DO, EXEC_OMP_FLUSH, EXEC_OMP_MASTER,
EXEC_OMP_ORDERED, EXEC_OMP_PARALLEL, EXEC_OMP_PARALLEL_DO,
EXEC_OMP_PARALLEL_SECTIONS, EXEC_OMP_PARALLEL_WORKSHARE,
EXEC_OMP_SECTIONS, EXEC_OMP_SINGLE, EXEC_OMP_WORKSHARE,
EXEC_OMP_ATOMIC, EXEC_OMP_BARRIER, EXEC_OMP_END_NOWAIT,
EXEC_OMP_END_SINGLE): New OpenMP gfc_exec_op codes.
(struct gfc_code): Add omp_clauses, omp_name, omp_namelist
and omp_bool fields to ext union.
(flag_openmp): Declare.
(gfc_free_omp_clauses, gfc_resolve_omp_directive): New prototypes.
* scanner.c (openmp_flag, openmp_locus): New variables.
(skip_free_comments, skip_fixed_comments, gfc_next_char_literal):
Handle OpenMP directive lines and conditional compilation magic
comments.
* parse.h (COMP_OMP_STRUCTURED_BLOCK): New compile state.
* parse.c (decode_omp_directive, parse_omp_do, parse_omp_atomic,
parse_omp_structured_block): New functions.
(next_free, next_fixed): Parse OpenMP directives.
(case_executable, case_exec_markers, case_decl): Add ST_OMP_*
codes.
(gfc_ascii_statement): Handle ST_OMP_* codes.
(parse_executable): Rearrange the loop slightly, so that
parse_omp_do can return next_statement.
* match.h (gfc_match_omp_eos, gfc_match_omp_atomic,
gfc_match_omp_barrier, gfc_match_omp_critical, gfc_match_omp_do,
gfc_match_omp_flush, gfc_match_omp_master, gfc_match_omp_ordered,
gfc_match_omp_parallel, gfc_match_omp_parallel_do,
gfc_match_omp_parallel_sections, gfc_match_omp_parallel_workshare,
gfc_match_omp_sections, gfc_match_omp_single,
gfc_match_omp_threadprivate, gfc_match_omp_workshare,
gfc_match_omp_end_nowait, gfc_match_omp_end_single): New prototypes.
* resolve.c (resolve_blocks): Ignore EXEC_OMP_* block directives.
(resolve_code): Call gfc_resolve_omp_directive on EXEC_OMP_*
directives.
* trans.c (gfc_trans_code): Call gfc_trans_omp_directive for
EXEC_OMP_* directives.
* st.c (gfc_free_statement): Handle EXEC_OMP_* statement freeing.
* trans-stmt.h (gfc_trans_omp_directive): New prototype.
* openmp.c: New file.
* trans-openmp.c: New file.
gcc/testsuite/
2006-02-14 Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
Uros Bizjak <uros@kss-loka.si>
* gfortran.dg/gomp: New directory.
libgomp/
2006-02-14 Jakub Jelinek <jakub@redhat.com>
* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
Remove tests for returning assumed character length arrays.
Co-Authored-By: Diego Novillo <dnovillo@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>
Co-Authored-By: Uros Bizjak <uros@kss-loka.si>
From-SVN: r110984
2006-02-14 17:38:03 +01:00
|
|
|
2006-02-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
|
|
|
|
Remove tests for returning assumed character length arrays.
|
|
|
|
|
2006-02-13 03:33:37 +01:00
|
|
|
2006-02-12 Roger Sayle <roger@eyesopen.com>
|
|
|
|
John David Anglin <dave@hiauly1.hia.nrc.ca>
|
|
|
|
|
|
|
|
PR libgomp/25936
|
|
|
|
* configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
|
2006-07-05 19:32:41 +02:00
|
|
|
|
2006-02-08 23:36:39 +01:00
|
|
|
2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
|
|
|
|
|
2006-02-07 22:57:38 +01:00
|
|
|
2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
|
|
|
|
part of LD_LIBRARY_PATH manually.
|
|
|
|
|
2006-02-03 19:37:11 +01:00
|
|
|
2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR libgomp/25852
|
|
|
|
* testsuite/lib/libgomp-dg.exp (blddir): Set it in
|
|
|
|
libgomp_init.
|
|
|
|
|
re PR libgomp/25884 (libgomp should not require perl to compile)
PR libgomp/25884
* Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
* configure.ac (PERL): Don't set.
(gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
(OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
* omp.h.in: Wrap the new configure substitutions with @ characters.
* omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
* aclocal.m4, configure, Makefile.in: Regenerate.
* mkomp_h.pl: Delete.
From-SVN: r110220
2006-01-25 20:17:57 +01:00
|
|
|
2005-01-25 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
|
|
|
PR libgomp/25884
|
2006-02-03 19:37:11 +01:00
|
|
|
* Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
|
|
|
|
* configure.ac (PERL): Don't set.
|
|
|
|
(gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
|
|
|
|
(OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
|
|
|
|
OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
|
|
|
|
* omp.h.in: Wrap the new configure substitutions with @ characters.
|
|
|
|
* omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
|
|
|
|
* aclocal.m4, configure, Makefile.in: Regenerate.
|
|
|
|
* mkomp_h.pl: Delete.
|
re PR libgomp/25884 (libgomp should not require perl to compile)
PR libgomp/25884
* Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
* configure.ac (PERL): Don't set.
(gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
(OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
* omp.h.in: Wrap the new configure substitutions with @ characters.
* omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
* aclocal.m4, configure, Makefile.in: Regenerate.
* mkomp_h.pl: Delete.
From-SVN: r110220
2006-01-25 20:17:57 +01:00
|
|
|
|
2006-01-24 22:06:07 +01:00
|
|
|
2005-01-24 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
|
|
|
PR libgomp/25259
|
|
|
|
* configure.ac: Use GCC_HEADER_STDINT.
|
|
|
|
* libgomp.h: Include gstdint.h.
|
|
|
|
* libgomp_f.h.in: Don't include stdint.h or inttypes.h.
|
|
|
|
* configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
|
|
|
|
|
2006-01-24 17:52:09 +01:00
|
|
|
2006-01-24 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/25942
|
|
|
|
* configure.ac: Add AM_MAINTAINER_MODE.
|
|
|
|
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
|
|
|
|
|
2006-01-24 16:31:32 +01:00
|
|
|
2006-01-24 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
|
2006-01-23 19:28:51 +01:00
|
|
|
2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
|
|
|
|
|
|
|
|
* config/posix/proc.c: Conditional include of sys/loadavg.h for
|
|
|
|
Solaris.
|
|
|
|
* configure.ac: Add check for loadavg.h.
|
|
|
|
(link_gomp): Adjust comment.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
2006-01-21 18:57:01 +01:00
|
|
|
2006-01-21 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
PR libgomp/25877
|
|
|
|
* configure.ac: Remove check for alloca.h.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
* libgomp.h: define gomp_alloca to be __builtin_alloca.
|
|
|
|
* team.c: Remove use of alloca.h.
|
|
|
|
Call gomp_alloca instead of alloca.
|
|
|
|
|
2006-01-20 19:17:28 +01:00
|
|
|
2006-01-20 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
PR libgomp/25877
|
|
|
|
* team.c: Add include of alloca.h.
|
|
|
|
* configure.ac: Add check for alloca.h.
|
|
|
|
* configure: Regenerate.
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
[multiple changes]
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* libgomp: New directory.
* Makefile.def: Add target_module libgomp.
* Makefile.in: Regenerate.
* configure.in (target_libraries): Add target-libgomp.
* configure: Regenerate.
contrib/
2006-01-18 Richard Henderson <rth@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* gcc_update (files_and_dependencies): Add libgomp files.
gcc/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* omp-low.c: New file.
* c-omp.c: New file.
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* doc/invoke.texi: Document -fopenmp.
* tree-dump.h (debug_function): Declare.
* hooks.c (hook_bool_tree_bool_false): New function.
(hook_tree_tree_null): Remove.
(hook_tree_tree_tree_null): New.
* hooks.h: Update to match.
* tree-pretty-print.c (debug_tree_chain): New.
(print_generic_expr): Handle TDF_CHAIN.
(dump_generic_node): Handle BLOCK.
Do not abort with incomplete SWITCH_EXPRs.
Do not dump body of an OpenMP directive if TDF_SLIM is given.
<case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
print space after directive name.
<OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
Handle OMP_MASTER and OMP_ORDERED.
Handle printing of OMP_BODY just in one place, goto
dump_omp_body in the rest of OMP_* nodes that have
OMP_BODY.
Don't handle clause nodes here. Update omp statements to
use dump_omp_clauses.
Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
Adjust output for GOMP_PARALLEL.
(dump_omp_clauses): New.
(print_declaration): Dump DECL_VALUE_EXPR.
(op_symbol_1): Split out of op_symbol.
(dumping_stmts): Remove. Update all users.
* cgraph.c (cgraph_analyze_queue): New.
(cgraph_add_new_function): New.
* cgraph.h (cgraph_analyze_queue): Declare.
(cgraph_add_new_function): Declare.
(cgraph_lower_function): Remove.
* tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
and TYPE_P nodes in its default clause.
(empty_body_p): New.
(tree_range_check_failed): New.
(build5_stat): New.
* tree.h (OMP_CLAUSE_REDUCTION_INIT,
OMP_CLAUSE_REDUCTION_MERGE,
OMP_CLAUSE_REDUCTION_PLACEHOLDER,
OMP_CLAUSE_PRIVATE_DEBUG,
OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
(TREE_RANGE_CHECK): New.
(empty_body_p): Declare.
(enum omp_clause_default_kind): New.
(build_string_literal): Declare.
(enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
(build5_stat, build5): Declare.
* tree-pass.h (TDF_CHAIN): Define.
* tree-pass.h (PROP_gimple_lomp): Define.
(pass_lower_omp): Declare.
* diagnostic.h (debug_tree_chain): Declare.
* builtins.c (get_builtin_sync_mode): Use 0 as last argument to
mode_for_size.
(expand_builtin): Handle sync BUILT_IN_*_16 builtins.
* builtins.c (build_string_literal): Make extern.
* gcc.c (include_spec_function): New.
(static_spec_functions): Add it.
(main): Move load of libgomp.spec ...
(LINK_COMMAND_SPEC): ... here.
(link_gomp_spec): New.
(static_specs): Include it.
(LINK_COMMAND_SPEC): Add link_gomp.
(GOMP_SELF_SPECS): New.
(driver_self_specs): Include it.
(switch_matches): Don't mark inline.
(main): Load libgomp.spec.
* tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
* tree-gimple.h (enum omp_parallel): Declare.
(determine_parallel_type): Declare.
(omp_firstprivatize_variable): Declare.
(omp_reduction_init): Declare.
(diagnose_omp_structured_block_errors): Declare.
(struct walk_stmt_info): Add want_return_expr.
(struct walk_stmt_info): Add want_bind_expr, want_locations.
(find_omp_clause): Declare.
(insert_field_into_struct): Declare.
(struct walk_stmt_info): Move from tree-nested.c
(walk_stmts): Declare.
* c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
to 200505.
* cgraphunit.c (cgraph_lower_function): Make static.
(cgraph_finalize_pending_functions): New.
(cgraph_finalize_function): Call it.
(cgraph_finalize_compilation_unit): Likewise.
* builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
(BT_FN_UINT_UINT): New.
(DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
DEF_FUNCTION_TYPE_VAR_4): Document.
(BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
BT_FN_VOID_OMPFN_PTR_UINT_UINT,
BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
* builtins.def: Update DEF_BUILTIN comment to include COND argument.
Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
into separate files.
(DEF_GOMP_BUILTIN): New.
(BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
* sync-builtins.def: New file, moved from builtins.def.
* omp-builtins.def: New file, moved from builtins.def.
* c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
* gimple-low.c (lower_function_body): Clear data.
(lower_stmt): Do not handle COMPOUND_EXPR.
Remove call to print_node_brief.
* c-tree.h (c_finish_omp_clauses): New prototype.
(C_DECL_THREADPRIVATE_P): Define.
(lookup_name_no_remap, c_omp_remap_private): Remove
(c_begin_omp_parallel, c_finish_omp_parallel): Update.
(check_for_loop_decls): Update decl.
(lookup_name_no_remap, c_omp_remap_private): Declare.
(build_indirect_ref, build_modify_expr, pushdecl,
pushdecl_top_level): Move to c-common.h.
* dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
before the switch, but just in the 2 places that need it.
* c-decl.c (diagnose_mismatched_decls): Do not check for
mismatched thread-local attributes when OLDDECL is marked
threadprivate and NEWDECL has no thread-local attributes.
(merge_decls): Merge C_DECL_THREADPRIVATE_P.
(c_gimple_diagnostics_recursively): Rename from
c_warn_unused_result_recursively. Invoke
diagnose_omp_structured_block_errors.
(check_for_loop_decls): Return a singular decl found.
* langhooks.c (lhd_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
(lhd_omp_firstprivatize_type_sizes): New.
(lhd_omp_assignment): New.
(lhd_omp_predetermined_sharing): New.
* langhooks.h (struct gimplify_omp_ctx): Forward declare.
(struct lang_hooks_for_types): Add
omp_firstprivatize_type_sizes, omp_privatize_by_reference,
omp_predetermined_sharing, omp_disregard_value_expr,
omp_private_debug_clause, omp_clause_default_ctor,
omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
(c_finish_omp_clauses): New.
(c_finish_bc_stmt): Diagnose break within omp for.
(c_begin_omp_parallel, c_finish_omp_parallel): New.
(build_unary_op): Return error_mark after reporting
a readonly_error.
(build_modify_expr): Likewise.
* gimplify.c: Include optabs.h and pointer-set.h.
(enum gimplify_omp_var_data): Declare.
(struct gimplify_omp_ctx): Declare.
(struct gimplify_ctx): Add fields prev_context, combined_pre_p
and combined_ctxp.
(gimplify_ctxp, gimplify_omp_ctxp): New local variables.
(push_gimplify_context, pop_gimplify_context): Allow nesting.
(splay_tree_compare_decl_uid): New.
(new_omp_context): New.
(delete_omp_context): New.
(gimple_add_tmp_var): Call omp_add_variable.
(gimplify_bind_expr): Likewise.
(gimplify_var_or_parm_decl): If omp_notice_variable returned
true, disregard DECL_VALUE_EXPR on the decl if any.
(gimplify_expr_in_ctx): New.
(omp_firstprivatize_variable, omp_firstprivatize_type_sizes
omp_add_variable, omp_notice_variable, omp_is_private
gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
gimplify_adjust_omp_clauses, gimplify_omp_parallel
gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
gimplify_omp_atomic_fetch_op, goa_stabilize_expr
gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
gimplify_omp_atomic): New.
(gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL and OMP_ATOMIC.
(gimplify_body): Verify gimplify_ctxp is empty after gimplification.
* c-pragma.h (enum pragma_kind): Add
PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
PRAGMA_OMP_THREADPRIVATE.
* tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
* print-tree.c (print_node): Dump DECL_VALUE_EXPR.
* tree-ssa-dce.c (find_control_dependence): Do not assume that
ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
* tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
OpenMP directives.
(struct nesting_info): Add field_map,
suppress_expansion, debug_var_chain.
(create_nesting_tree): Initialize them.
(lookup_field_for_decl): Use field_map.
(get_nonlocal_debug_decl, get_local_debug_decl): New.
(convert_local_omp_clauses): New.
(finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
(walk_body): Split out of walk_function.
(convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
(convert_nonlocal_reference): Handle omp statements.
(convert_local_reference): Likewise.
(unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
(unnest_nesting_tree): New.
(lower_nested_functions): Call it.
(insert_field_into_struct): Make extern.
(struct walk_stmt_info): Move to tree-gimple.h.
(walk_stmts): Make extern.
* omp-builtins.def: New file.
* tree-iterator.c (expr_only): Clarify comment.
* c-common.h (pushdecl_top_level, pushdecl,
build_modify_expr, build_indirect_ref,
c_finish_omp_master, c_finish_omp_critical,
c_finish_omp_ordered, c_finish_omp_barrier,
c_finish_omp_atomic, c_finish_omp_flush,
c_finish_omp_for, c_split_parallel_clauses,
omp_clause_default_kind, c_omp_sharing_predetermined,
c_omp_remap_decl): Declare.
* Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
(OBJS-common): Add omp-low.o.
(c-omp.o, omp-low.o): Add.
(gimplify.o): Add dependency on $(OPTABS_H).
(GTFILES): Add omp-low.c.
(gt-stringpool.h): Add.
* tree-cfg.c (set_bb_for_stmt): Do not update the
block-to-labels map if we are currently expanding to RTL.
(tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
checks.
Handle IDENTIFIER_NODE.
(tree_verify_flow_info): Do not ICE when emitting error
messages about invalid labels.
(dump_function_to_file): Reset CFUN before emitting the body
of the function.
(debug_function): New.
* passes.c (init_optimization_passes): Schedule
pass_lower_omp.
* langhooks-def.h (lhd_omp_predetermined_sharing,
lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
Declare.
(LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
(LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
LANG_HOOKS_OMP_PREDETERMINED_SHARING,
LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
(LANG_HOOK_DECLS): Use them.
2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* c-parser.c (pragma_omp_clause): Define.
(c_parser_declaration_or_fndef): Document OpenMP syntax.
(c_parser_compound_statement): Likewise.
(c_parser_statement): Likewise.
(c_parser_pragma): Handle omp pragmas.
(OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
(c_parser_omp_clause_name, check_no_duplicate_clause,
c_parser_omp_variable_list,
c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
c_parser_omp_clause_copyprivate,
c_parser_omp_clause_default,
c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
c_parser_omp_clause_lastprivate,
c_parser_omp_clause_nowait,
c_parser_omp_clause_num_threads,
c_parser_omp_clause_ordered, c_parser_omp_clause_private,
c_parser_omp_clause_reduction,
c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
c_parser_omp_all_clauses, c_parser_omp_structured_block,
c_parser_omp_atomic, c_parser_omp_barrier,
c_parser_omp_critical, c_parser_omp_flush,
c_parser_omp_for_loop, c_parser_omp_for,
c_parser_omp_master, c_parser_omp_ordered,
c_parser_omp_sections_scope, c_parser_omp_sections,
c_parser_omp_parallel, c_parser_omp_single,
c_parser_omp_construct, c_parser_omp_threadprivate): New.
* c-pragma.c (init_pragma): Do omp pragma registration here.
* c.opt (fopenmp): New flag.
2006-01-18 Eric Christopher <echristo@apple.com>
* gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
* config/darwin.h (GOMP_SELF_SPECS): Define.
testsuite/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
Uros Bizjak <uros@kss-loka.si>
* testsuite/gcc.dg/gomp: New directory.
From-SVN: r109902
2006-01-18 20:21:25 +01:00
|
|
|
2006-01-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/25219
|
|
|
|
* testsuite/libgomp.fortran/pr25219.f90: New test.
|
|
|
|
|
|
|
|
2005-12-05 Uros Bizjak <uros@kss-loka.si>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
|
|
|
|
testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
|
|
|
|
testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
|
|
|
|
testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
|
|
|
|
testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
|
|
|
|
testsuite/libgomp.fortran/threadprivate1.f90,
|
|
|
|
testsuite/libgomp.fortran/threadprivate2.f90,
|
|
|
|
testsuite/libgomp.fortran/threadprivate3.f90,
|
|
|
|
testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
|
|
|
|
testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
|
|
|
|
testsuite/libgomp.fortran/omp_parse3.f90: Change required
|
|
|
|
effective-target to TLS runtime.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/pr25162.f: Require
|
|
|
|
effective-target TLS runtime.
|
|
|
|
|
|
|
|
2005-12-01 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/nestedfn2.f90: New test.
|
|
|
|
* testsuite/libgomp.c/nestedfn-3.c: New test.
|
|
|
|
|
|
|
|
2005-11-30 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR fortran/25162
|
|
|
|
* testsuite/libgomp.fortran/pr25162.f: New test.
|
|
|
|
|
|
|
|
2005-11-28 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
|
|
|
|
CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
|
|
|
|
|
|
|
|
2005-11-25 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
|
|
|
|
libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
|
|
|
|
omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
|
|
|
|
single.c, team.c, work.c, config/linux/alpha/futex.h,
|
|
|
|
config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
|
|
|
|
config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
|
|
|
|
config/linux/powerpc/futex.h, config/linux/s390/futex.h,
|
|
|
|
config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
|
|
|
|
config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
|
|
|
|
config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
|
|
|
|
config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
|
|
|
|
FSF address.
|
|
|
|
|
|
|
|
2005-11-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
|
|
|
|
to nodist_noinst_HEADERS.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
|
|
|
* config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
|
|
|
|
add integer count field.
|
|
|
|
* config/posix/lock.c (omp_destroy_nest_lock): Adjust for
|
|
|
|
omp_nest_lock_t type change.
|
|
|
|
(omp_init_nest_lock): Likewise. Initialize count to 0.
|
|
|
|
(omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
|
|
|
|
Increment count.
|
|
|
|
(omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
|
|
|
|
Decrement count.
|
|
|
|
(omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
|
|
|
|
Increment count if successful and return the new nesting level.
|
|
|
|
* config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
|
|
|
|
* omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
|
|
|
|
* testsuite/libgomp.c/lib-1.c: New test.
|
|
|
|
* testsuite/libgomp.fortran/lib1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/lib2.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/lib3.f: New test.
|
|
|
|
|
|
|
|
2005-11-17 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR 24845
|
|
|
|
* Makefile.am (nodist_toolexeclib_HEADERS): New.
|
|
|
|
* configure.ac (link_gomp): New. Substitute it.
|
|
|
|
(AC_CONFIG_FILES): Add libgomp.spec.
|
|
|
|
* libgomp.spec.in: New file.
|
|
|
|
* Makefile.in, testsuite/Makefile.in, configure: Rebuild.
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
|
|
|
|
|
|
|
|
2005-11-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/reduction1.f90: Adjust for
|
|
|
|
reduction(-:var) behaving the same as reduction(+:var).
|
|
|
|
* testsuite/libgomp.c/reduction-4.c: New test.
|
|
|
|
|
|
|
|
2005-11-15 Uros Bizjak <uros@kss-loka.si>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
|
|
|
|
testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
|
|
|
|
testsuite/libgomp.c/copyin-3.c,
|
|
|
|
testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
|
|
|
|
testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
|
|
|
|
testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
|
|
|
|
testsuite/libgomp.c++/pr24455.C,
|
|
|
|
testsuite/libgomp.fortran/threadprivate1.f90,
|
|
|
|
testsuite/libgomp.fortran/threadprivate2.f90,
|
|
|
|
testsuite/libgomp.fortran/threadprivate3.f90,
|
|
|
|
testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
|
|
|
|
testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
|
|
|
|
testsuite/libgomp.fortran/omp_parse3.f90: Require
|
|
|
|
effective-target TLS.
|
|
|
|
|
|
|
|
2005-11-14 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* HEADER: Remove.
|
|
|
|
|
|
|
|
2005-11-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR libgomp/24797
|
|
|
|
* team.c (initialize_team): Pass NULL rather than free as
|
|
|
|
pthread_key_create destructor. Initialize thread specific data
|
|
|
|
pointer in initial thread to a static local variable rather than
|
|
|
|
malloced memory.
|
|
|
|
|
|
|
|
2005-11-11 Uros Bizjak <uros@kss-loka.si>
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
|
|
|
|
its location to ld_library_path.
|
|
|
|
|
|
|
|
2005-11-10 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c/c.exp: Rename from dg.exp.
|
|
|
|
|
|
|
|
2005-11-10 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c: Rename from libgomp.dg.
|
|
|
|
|
|
|
|
2005-11-09 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c++/pr24455.C: Add copyin clause for
|
|
|
|
threadprivate variable 'i'.
|
|
|
|
|
|
|
|
2005-11-09 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/s390/futex.h: New file.
|
|
|
|
* configure.tgt: Use it.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
|
|
|
|
before the parallel.
|
|
|
|
|
|
|
|
2005-11-08 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/24734
|
|
|
|
* testsuite/libgomp.c++/master-1.C: New test.
|
|
|
|
|
|
|
|
2005-11-07 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/copyin-3.c: New test.
|
|
|
|
|
|
|
|
2005-11-07 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/retval1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/vla7.f90: New test.
|
|
|
|
|
|
|
|
2005-11-06 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/vla2.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/vla3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/vla4.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/vla5.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/vla6.f90: New test.
|
|
|
|
|
|
|
|
2005-11-01 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/sparc/futex.h: New file.
|
|
|
|
* configure.tgt: Use it.
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
|
|
|
|
|
|
|
|
* critical.c: Include stdlib.h.
|
|
|
|
* acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
|
|
|
|
ignoring return value.
|
|
|
|
* configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
|
|
|
|
LIBGOMP_CHECK_SYNC_BUILTINS check.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
|
|
|
|
2005-10-31 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/vla1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-31 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/character2.f90: Fix race condition
|
|
|
|
setting 's' in different threads.
|
|
|
|
|
|
|
|
2005-10-31 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* libgomp.h (attribute_hidden, ialias): Define.
|
|
|
|
* config/posix/proc.c (omp_get_num_procs): Add ialias.
|
|
|
|
* config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
|
|
|
|
* config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
|
|
|
|
omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
|
|
|
|
omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
|
|
|
|
omp_test_lock, omp_test_nest_lock): Likewise.
|
|
|
|
* config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
|
|
|
|
omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
|
|
|
|
omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
|
|
|
|
omp_test_lock, omp_test_nest_lock): Likewise.
|
|
|
|
* env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
|
|
|
|
omp_get_dynamic, omp_get_nested): Likewise.
|
|
|
|
* parallel.c (omp_get_num_threads, omp_get_max_threads,
|
|
|
|
omp_get_thread_num, omp_in_parallel): Likewise.
|
|
|
|
* fortran.c (ialias_redirect): Define.
|
|
|
|
(omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
|
|
|
|
omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
|
|
|
|
omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
|
|
|
|
omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
|
|
|
|
omp_set_num_threads, omp_get_dynamic, omp_get_nested,
|
|
|
|
omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
|
|
|
|
omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
|
|
|
|
omp_get_wtime): Add ialias_redirect.
|
|
|
|
|
|
|
|
2005-10-30 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* fortran.c: Include stdlib.h.
|
|
|
|
|
|
|
|
2005-10-29 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
|
|
2005-10-28 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
|
|
|
|
* libgomp_f.h.in (omp_check_defines): New function.
|
|
|
|
* env.c: Include libgomp_f.h.
|
|
|
|
(initialize_env): Call omp_check_defines.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/copyin-2.c: New test.
|
|
|
|
* testsuite/libgomp.c++/copyin-2.C: New test.
|
|
|
|
* testsuite/libgomp.fortran/threadprivate3.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/threadprivate2.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/sharing2.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/copyin-1.c: New test.
|
|
|
|
* testsuite/libgomp.c++/copyin-1.C: New test.
|
|
|
|
|
|
|
|
2005-10-26 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/crayptr1.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/workshare1.f90: New test.
|
|
|
|
|
|
|
|
* libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
|
|
|
|
only test.
|
|
|
|
* libgomp.fortran/sharing1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-24 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/24502
|
|
|
|
* testsuite/libgomp.c++/loop-7.C: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/nestedfn-2.c: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/nestedfn-1.c: New test.
|
|
|
|
* testsuite/libgomp.fortran/reduction6.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/nestedfn1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-23 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c++/ctor-1.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-2.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-3.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-4.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-5.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-6.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-7.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-8.C: New.
|
|
|
|
* testsuite/libgomp.c++/ctor-9.C: New.
|
|
|
|
|
|
|
|
2005-10-21 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
PR 24455
|
|
|
|
* testsuite/libgomp.c++/pr24455-1.C: New test.
|
|
|
|
* testsuite/libgomp.c++/pr24455.C: New test.
|
|
|
|
* testsuite/libgomp.dg/pr24455-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/pr24455.c: New test.
|
|
|
|
|
|
|
|
2005-10-20 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.c++/loop-6.C: New.
|
|
|
|
* testsuite/libgomp.dg/loop-3.c: New.
|
|
|
|
|
|
|
|
2005-10-20 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/jacobi.f: Don't make i and j
|
|
|
|
explicitly private.
|
|
|
|
* testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
|
|
|
|
explicitly shared.
|
|
|
|
|
|
|
|
2005-10-19 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/jacobi.f: New test.
|
|
|
|
|
|
|
|
2005-10-19 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* configure.tgt (i?86-linux): Default to with_arch instead of
|
|
|
|
CFLAGS. Add -mtune to match target_cpu.
|
|
|
|
(x86_64-linux): Tune to i686.
|
|
|
|
|
|
|
|
* fortran.c (omp_test_nest_lock_): Fix typo.
|
|
|
|
|
|
|
|
2005-10-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
|
|
|
|
gomp_ordered_sync): Do nothing if team->nthreads == 1.
|
|
|
|
* testsuite/libgomp.dg/ordered-3.c: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
|
|
|
|
Remove volatile keyword.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
|
|
|
|
in COMMON block to avoid warnings on 64-bit targets.
|
|
|
|
|
|
|
|
2005-10-18 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/shared-3.c: New test.
|
|
|
|
|
|
|
|
2005-10-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
|
|
|
|
* testsuite/libgomp.fortran/reduction5.f90: New test.
|
|
|
|
|
|
|
|
2005-10-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
|
|
|
|
dg-options.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
|
|
|
|
flush loop now that __sync_synchronize has proper memory barrier.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
|
|
|
|
Add -ffixed-form to dg-options.
|
|
|
|
|
|
|
|
2005-10-17 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/fortran.exp: Also gather tests
|
|
|
|
from subdirectories.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/dg.exp: Only unset lang_* if
|
|
|
|
lang_library_path exists. Use find instead of glob to gather tests.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
|
|
|
|
|
|
|
|
2005-10-17 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
|
|
|
|
|
|
|
|
2005-10-15 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/vla-1.c: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/reference2.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/character2.f90: Remove explicit
|
|
|
|
declaration of omp_get_thread_num.
|
|
|
|
* testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
|
|
|
|
use omp_lib.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/reduction1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/reduction2.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/reduction3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/reduction4.f90: New test.
|
|
|
|
|
|
|
|
2005-10-13 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* Makefile.am (libgomp_la_SOURCES): Add bar.c.
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
* barrier.c (GOMP_barrier): Use gomp_barrier_wait.
|
|
|
|
* libgomp.h: Include bar.h.
|
|
|
|
(struct gomp_barrier): Remove.
|
|
|
|
(struct gomp_team): Add barrier. Replace master_barrier with
|
|
|
|
master_release. Replace threads with ordered_release.
|
|
|
|
(struct gomp_thread): Replace barrier with release.
|
|
|
|
* ordered.c (gomp_ordered_first): Update for ordered_release change.
|
|
|
|
(gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
|
|
|
|
gomp_ordered_static_next, gomp_ordered_sync): Likewise.
|
|
|
|
* single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
|
|
|
|
(GOMP_single_copy_end): Likewise.
|
|
|
|
* team.c (gomp_threads_dock): New.
|
|
|
|
(gomp_barrier_init, gomp_barrier_destroy): Remove.
|
|
|
|
(gomp_thread_start): Use gomp_barrier_wait.
|
|
|
|
(new_team, free_team): Update for gomp_team changes.
|
|
|
|
(gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
|
|
|
|
(gomp_team_end): Use gomp_barrier_wait.
|
|
|
|
(initialize_team): Update for gomp_thread changes.
|
|
|
|
* work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
|
|
|
|
(gomp_work_share_end_nowait): Use atomic ops when available.
|
|
|
|
* config/linux/bar.c, config/linux/bar.h: New files.
|
|
|
|
* config/posix/bar.c, config/posix/bar.h: New files.
|
|
|
|
|
|
|
|
2005-10-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
|
|
|
|
* testsuite/libgomp.dg/single-2.c: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
|
|
|
|
lang_link_flags): Unset, so that they aren't inherited from previously
|
|
|
|
sourced *.exp.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/threadprivate1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-12 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
|
|
|
|
(libgomp_init): Use lang_test_file, lang_library_path, and
|
|
|
|
lang_link_flags, set by the subdirectory files. Add -fopenmp here.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
|
|
|
|
(lang_test_file, lang_link_flags): New.
|
|
|
|
(DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
|
|
|
|
|
|
|
|
* testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
|
|
|
|
testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
|
|
|
|
testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
|
|
|
|
testsuite/libgomp.c++/parallel-1.C,
|
|
|
|
testsuite/libgomp.c++/reduction-1.C,
|
|
|
|
testsuite/libgomp.c++/reduction-2.C,
|
|
|
|
testsuite/libgomp.c++/reduction-3.C,
|
|
|
|
testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
|
|
|
|
testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
|
|
|
|
testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
|
|
|
|
New files, largely cribbed from the C testsuite.
|
|
|
|
|
|
|
|
2005-10-12 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/character1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/character2.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/nested-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/nested-2.c: New test.
|
|
|
|
* testsuite/libgomp.fortran/do1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/do2.f90: New test.
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/reference1.f90: New test.
|
|
|
|
|
|
|
|
2005-10-11 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/reduction-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/reduction-2.c: New test.
|
|
|
|
* testsuite/libgomp.dg/reduction-3.c: New test.
|
|
|
|
|
|
|
|
2005-10-10 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/atomic-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/atomic-2.c: New test.
|
|
|
|
|
|
|
|
2005-10-09 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* critical.c (atomic_lock): New.
|
|
|
|
(initialize_critical): Initialize it.
|
|
|
|
(GOMP_atomic_start, GOMP_atomic_end): New.
|
|
|
|
* libgomp.map: Export them.
|
|
|
|
* libgomp_g.h: Declare them.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
|
|
|
|
|
|
|
|
2005-10-02 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
|
|
|
|
to XCFLAGS instead of CFLAGS.
|
|
|
|
|
|
|
|
2005-09-30 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac: Determine whether -pthread or -lpthread is needed.
|
|
|
|
* Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
|
|
|
|
* Makefine.in, configure: Rebuild.
|
|
|
|
|
|
|
|
2005-09-28 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-loop03.c: Fix return code.
|
|
|
|
* testsuite/libgomp.dg/omp-single-3.c: New test.
|
|
|
|
|
|
|
|
2005-09-28 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-single-2.c: New test.
|
|
|
|
* testsuite/libgomp.dg/shared-2.c: Fix return code.
|
|
|
|
|
|
|
|
2005-09-27 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
|
|
|
|
* testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
|
|
|
|
|
|
|
|
2005-09-27 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-loop03.c: New test.
|
|
|
|
|
|
|
|
2005-09-27 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-parallel-for.c: New test.
|
|
|
|
|
|
|
|
2005-09-27 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-single-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/shared-1.c: Return 0.
|
|
|
|
Add prototype for abort.
|
|
|
|
* testsuite/libgomp.dg/shared-2.c: Likewise.
|
|
|
|
|
|
|
|
2005-09-26 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
|
|
|
|
constructs.
|
|
|
|
|
|
|
|
2005-09-26 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/shared-1.c: New test.
|
|
|
|
* testsuite/libgomp.dg/shared-2.c: New test.
|
|
|
|
|
|
|
|
2005-09-24 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
|
|
|
|
|
|
|
|
2005-09-24 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* iter.c (gomp_iter_static_next): Round up when computing number
|
|
|
|
of iterations. Don't bother distributing a remainder equally.
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
|
|
|
|
Don't call srand. Zero b before testing.
|
|
|
|
(main): New.
|
|
|
|
|
|
|
|
2005-09-24 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/omp_atomic1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_atomic2.f90: New test.
|
|
|
|
|
|
|
|
2005-09-23 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
|
|
|
|
without !$omp end do, followed immediately by subroutine end.
|
|
|
|
|
|
|
|
2005-09-23 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-parallel-if.c: New test.
|
|
|
|
|
|
|
|
2005-09-22 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* critical.c (GOMP_critical_name_start): Change argument to void**.
|
|
|
|
Reuse the pointer space if the mutex fits.
|
|
|
|
(GOMP_critical_name_end): Likewise.
|
|
|
|
(initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
|
|
|
|
* libgomp_g.h (GOMP_critical_name_start): Update decl.
|
|
|
|
(GOMP_critical_name_end): Likewise.
|
|
|
|
* config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
|
|
|
|
* config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
|
|
|
|
|
|
|
|
2005-09-20 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
|
|
|
|
(create_lock_lock): New.
|
|
|
|
(initialize_critical): Initialize it.
|
|
|
|
* libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
|
|
|
|
* libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
|
|
|
|
|
|
|
|
2005-09-20 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
|
|
|
|
|
|
|
|
2005-09-20 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/omp-loop01.c: New test.
|
|
|
|
* testsuite/libgomp.dg/omp-loop02.c: New test.
|
|
|
|
|
|
|
|
2005-09-20 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac (AC_PROG_FC): Add.
|
|
|
|
(USE_FORTRAN): New automake conditional.
|
|
|
|
* configure: Rebuilt.
|
|
|
|
* Makefile.am (libgomp_la_SOURCES): Add fortran.c.
|
|
|
|
(nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
|
|
|
|
If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
|
|
|
|
Add rules to build them.
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
* mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
|
|
|
|
OMP_NEST_LOCK_KIND.
|
|
|
|
* libgomp.map: Add Fortran wrappers.
|
|
|
|
* libgomp_f.h.in: New file.
|
|
|
|
* omp_lib.h.in: New file.
|
|
|
|
* omp_lib.f90.in: New file.
|
|
|
|
* fortran.c: New file.
|
|
|
|
* testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
|
|
|
|
Append libgfortran directory to LD_LIBRARY_PATH if it exists.
|
|
|
|
Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
|
|
|
|
libgfortran has been built.
|
|
|
|
* testsuite/libgomp.fortran/fortran.exp: New file.
|
|
|
|
* testsuite/libgomp.fortran/omp_cond1.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_cond2.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_cond3.F90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_cond4.F90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_hello.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_orphan.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_parse1.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_parse2.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_parse3.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_parse4.f90: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_reduction.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_workshare1.f: New test.
|
|
|
|
* testsuite/libgomp.fortran/omp_workshare2.f: New test.
|
|
|
|
|
|
|
|
2005-08-30 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* loop.c (GOMP_loop_static_start): Provide fallback wrapper
|
|
|
|
function for when aliases are not usable.
|
|
|
|
(GOMP_loop_dynamic_start, GOMP_loop_guided_start,
|
|
|
|
GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
|
|
|
|
GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
|
|
|
|
GOMP_loop_dynamic_next, GOMP_loop_guided_next,
|
|
|
|
GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
|
|
|
|
GOMP_loop_ordered_guided_next): Likewise.
|
|
|
|
* ordered.c (GOMP_ordered_start): Likewise.
|
|
|
|
|
|
|
|
2005-08-01 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/dg.exp: Use -O2 for now.
|
|
|
|
* testsuite/libgomp.dg/omp_hello.c: Fix return code
|
|
|
|
* testsuite/libgomp.dg/omp_matvec.c: Likewise.
|
|
|
|
* testsuite/libgomp.dg/omp_orphan.c: Likewise
|
|
|
|
* testsuite/libgomp.dg/omp_reduction.c: Likewise
|
|
|
|
* testsuite/libgomp.dg/omp_workshare1.c: Likewise
|
|
|
|
* testsuite/libgomp.dg/omp_workshare2.c: Likewise
|
|
|
|
* testsuite/libgomp.dg/omp_workshare3.c: Likewise
|
|
|
|
* testsuite/libgomp.dg/omp_workshare4.c: Likewise
|
|
|
|
|
|
|
|
2005-07-07 Eric Christopher <echristo@redhat.com>
|
|
|
|
Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
|
|
|
|
* testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
|
|
|
|
up code.
|
|
|
|
* testsuite/libgomp.dg/omp_matvec.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_orphan.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_reduction.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_workshare1.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_workshare2.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_workshare3.c: Ditto.
|
|
|
|
* testsuite/libgomp.dg/omp_workshare4.c: Ditto.
|
|
|
|
|
|
|
|
2005-06-13 Diego Novillo <dnovillo@redhat.com>
|
|
|
|
|
|
|
|
* TOPLEVEL.patch: Remove.
|
|
|
|
|
|
|
|
2005-05-16 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac: Test for clock_gettime.
|
|
|
|
* config.h.in, configure: Rebuild.
|
|
|
|
* config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
|
|
|
|
(omp_get_wtime): Use clock_gettime if available.
|
|
|
|
(omp_get_wtick): Use clock_getres if available.
|
|
|
|
|
|
|
|
2005-05-11 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/ia64/futex.h: New file.
|
|
|
|
* configure.tgt: Use it.
|
|
|
|
|
|
|
|
* team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
|
|
|
|
|
|
|
|
2005-05-07 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/powerpc/futex.h: New file.
|
|
|
|
* configure.tgt: Use it.
|
|
|
|
|
|
|
|
* config/linux/i486/futex.h: Merge ...
|
|
|
|
* config/linux/x86_64/futex.h: ... into ...
|
|
|
|
* config/linux/x86/futex.h: ... here.
|
|
|
|
* configure.tgt: Update to match.
|
|
|
|
|
|
|
|
2005-05-06 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/alpha/futex.h: Conditionally define SYS_futex.
|
|
|
|
* config/linux/i486/futex.h: Likewise.
|
|
|
|
* config/linux/x86_64/futex.h: Likewise.
|
|
|
|
|
|
|
|
* config/linux/lock.c: New file.
|
|
|
|
* config/linux/omp-lock.h: New file.
|
|
|
|
|
|
|
|
* critical.c, env.h: Don't include omp.h
|
|
|
|
* config/posix/lock.c: Include libgomp.h instead of omp.h.
|
|
|
|
* config/posix/time.c: Likewise.
|
|
|
|
* config/posix/omp-lock.h: New file.
|
|
|
|
* libgomp.h: Include omp-lock.h and omp.h.
|
|
|
|
* Makefile.am (nodist_include_HEADERS): New.
|
|
|
|
(omp.h): New rule.
|
|
|
|
* configure.ac (PERL): New.
|
|
|
|
* mkomp_h.pl: New file.
|
|
|
|
* omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
|
|
|
|
with templates.
|
|
|
|
* Makefile.in, configure, testsuite/Makefile.in: Rebuild.
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
|
|
|
|
build directory. Re-add -march=i486 hack.
|
|
|
|
|
|
|
|
* testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
|
|
|
|
(libgomp_link_flags): Remove.
|
|
|
|
(libgomp_initialized): Remove.
|
|
|
|
(libgomp_init): Don't protect from reinitialization. Copy code
|
|
|
|
from libstdc++ for getting the multilib set correctly.
|
|
|
|
|
|
|
|
2005-05-05 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* config/linux/alpha/futex.h: New file.
|
|
|
|
* configure.tgt (alpha*-*-linux*): Use it.
|
|
|
|
|
|
|
|
* config/posix/mutex.c: New file.
|
|
|
|
* config/posix/sem.c: Use libgomp.h.
|
|
|
|
|
|
|
|
* configure.tgt (x86_64-linux): Also test CC for -m32.
|
|
|
|
* config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
|
|
|
|
|
2006-07-05 19:32:41 +02:00
|
|
|
* testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
|
[multiple changes]
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* libgomp: New directory.
* Makefile.def: Add target_module libgomp.
* Makefile.in: Regenerate.
* configure.in (target_libraries): Add target-libgomp.
* configure: Regenerate.
contrib/
2006-01-18 Richard Henderson <rth@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* gcc_update (files_and_dependencies): Add libgomp files.
gcc/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* omp-low.c: New file.
* c-omp.c: New file.
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* doc/invoke.texi: Document -fopenmp.
* tree-dump.h (debug_function): Declare.
* hooks.c (hook_bool_tree_bool_false): New function.
(hook_tree_tree_null): Remove.
(hook_tree_tree_tree_null): New.
* hooks.h: Update to match.
* tree-pretty-print.c (debug_tree_chain): New.
(print_generic_expr): Handle TDF_CHAIN.
(dump_generic_node): Handle BLOCK.
Do not abort with incomplete SWITCH_EXPRs.
Do not dump body of an OpenMP directive if TDF_SLIM is given.
<case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
print space after directive name.
<OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
Handle OMP_MASTER and OMP_ORDERED.
Handle printing of OMP_BODY just in one place, goto
dump_omp_body in the rest of OMP_* nodes that have
OMP_BODY.
Don't handle clause nodes here. Update omp statements to
use dump_omp_clauses.
Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
Adjust output for GOMP_PARALLEL.
(dump_omp_clauses): New.
(print_declaration): Dump DECL_VALUE_EXPR.
(op_symbol_1): Split out of op_symbol.
(dumping_stmts): Remove. Update all users.
* cgraph.c (cgraph_analyze_queue): New.
(cgraph_add_new_function): New.
* cgraph.h (cgraph_analyze_queue): Declare.
(cgraph_add_new_function): Declare.
(cgraph_lower_function): Remove.
* tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
and TYPE_P nodes in its default clause.
(empty_body_p): New.
(tree_range_check_failed): New.
(build5_stat): New.
* tree.h (OMP_CLAUSE_REDUCTION_INIT,
OMP_CLAUSE_REDUCTION_MERGE,
OMP_CLAUSE_REDUCTION_PLACEHOLDER,
OMP_CLAUSE_PRIVATE_DEBUG,
OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
(TREE_RANGE_CHECK): New.
(empty_body_p): Declare.
(enum omp_clause_default_kind): New.
(build_string_literal): Declare.
(enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
(build5_stat, build5): Declare.
* tree-pass.h (TDF_CHAIN): Define.
* tree-pass.h (PROP_gimple_lomp): Define.
(pass_lower_omp): Declare.
* diagnostic.h (debug_tree_chain): Declare.
* builtins.c (get_builtin_sync_mode): Use 0 as last argument to
mode_for_size.
(expand_builtin): Handle sync BUILT_IN_*_16 builtins.
* builtins.c (build_string_literal): Make extern.
* gcc.c (include_spec_function): New.
(static_spec_functions): Add it.
(main): Move load of libgomp.spec ...
(LINK_COMMAND_SPEC): ... here.
(link_gomp_spec): New.
(static_specs): Include it.
(LINK_COMMAND_SPEC): Add link_gomp.
(GOMP_SELF_SPECS): New.
(driver_self_specs): Include it.
(switch_matches): Don't mark inline.
(main): Load libgomp.spec.
* tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
* tree-gimple.h (enum omp_parallel): Declare.
(determine_parallel_type): Declare.
(omp_firstprivatize_variable): Declare.
(omp_reduction_init): Declare.
(diagnose_omp_structured_block_errors): Declare.
(struct walk_stmt_info): Add want_return_expr.
(struct walk_stmt_info): Add want_bind_expr, want_locations.
(find_omp_clause): Declare.
(insert_field_into_struct): Declare.
(struct walk_stmt_info): Move from tree-nested.c
(walk_stmts): Declare.
* c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
to 200505.
* cgraphunit.c (cgraph_lower_function): Make static.
(cgraph_finalize_pending_functions): New.
(cgraph_finalize_function): Call it.
(cgraph_finalize_compilation_unit): Likewise.
* builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
(BT_FN_UINT_UINT): New.
(DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
DEF_FUNCTION_TYPE_VAR_4): Document.
(BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
BT_FN_VOID_OMPFN_PTR_UINT_UINT,
BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
* builtins.def: Update DEF_BUILTIN comment to include COND argument.
Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
into separate files.
(DEF_GOMP_BUILTIN): New.
(BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
* sync-builtins.def: New file, moved from builtins.def.
* omp-builtins.def: New file, moved from builtins.def.
* c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
* gimple-low.c (lower_function_body): Clear data.
(lower_stmt): Do not handle COMPOUND_EXPR.
Remove call to print_node_brief.
* c-tree.h (c_finish_omp_clauses): New prototype.
(C_DECL_THREADPRIVATE_P): Define.
(lookup_name_no_remap, c_omp_remap_private): Remove
(c_begin_omp_parallel, c_finish_omp_parallel): Update.
(check_for_loop_decls): Update decl.
(lookup_name_no_remap, c_omp_remap_private): Declare.
(build_indirect_ref, build_modify_expr, pushdecl,
pushdecl_top_level): Move to c-common.h.
* dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
before the switch, but just in the 2 places that need it.
* c-decl.c (diagnose_mismatched_decls): Do not check for
mismatched thread-local attributes when OLDDECL is marked
threadprivate and NEWDECL has no thread-local attributes.
(merge_decls): Merge C_DECL_THREADPRIVATE_P.
(c_gimple_diagnostics_recursively): Rename from
c_warn_unused_result_recursively. Invoke
diagnose_omp_structured_block_errors.
(check_for_loop_decls): Return a singular decl found.
* langhooks.c (lhd_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
(lhd_omp_firstprivatize_type_sizes): New.
(lhd_omp_assignment): New.
(lhd_omp_predetermined_sharing): New.
* langhooks.h (struct gimplify_omp_ctx): Forward declare.
(struct lang_hooks_for_types): Add
omp_firstprivatize_type_sizes, omp_privatize_by_reference,
omp_predetermined_sharing, omp_disregard_value_expr,
omp_private_debug_clause, omp_clause_default_ctor,
omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
(c_finish_omp_clauses): New.
(c_finish_bc_stmt): Diagnose break within omp for.
(c_begin_omp_parallel, c_finish_omp_parallel): New.
(build_unary_op): Return error_mark after reporting
a readonly_error.
(build_modify_expr): Likewise.
* gimplify.c: Include optabs.h and pointer-set.h.
(enum gimplify_omp_var_data): Declare.
(struct gimplify_omp_ctx): Declare.
(struct gimplify_ctx): Add fields prev_context, combined_pre_p
and combined_ctxp.
(gimplify_ctxp, gimplify_omp_ctxp): New local variables.
(push_gimplify_context, pop_gimplify_context): Allow nesting.
(splay_tree_compare_decl_uid): New.
(new_omp_context): New.
(delete_omp_context): New.
(gimple_add_tmp_var): Call omp_add_variable.
(gimplify_bind_expr): Likewise.
(gimplify_var_or_parm_decl): If omp_notice_variable returned
true, disregard DECL_VALUE_EXPR on the decl if any.
(gimplify_expr_in_ctx): New.
(omp_firstprivatize_variable, omp_firstprivatize_type_sizes
omp_add_variable, omp_notice_variable, omp_is_private
gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
gimplify_adjust_omp_clauses, gimplify_omp_parallel
gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
gimplify_omp_atomic_fetch_op, goa_stabilize_expr
gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
gimplify_omp_atomic): New.
(gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL and OMP_ATOMIC.
(gimplify_body): Verify gimplify_ctxp is empty after gimplification.
* c-pragma.h (enum pragma_kind): Add
PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
PRAGMA_OMP_THREADPRIVATE.
* tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
* print-tree.c (print_node): Dump DECL_VALUE_EXPR.
* tree-ssa-dce.c (find_control_dependence): Do not assume that
ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
* tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
OpenMP directives.
(struct nesting_info): Add field_map,
suppress_expansion, debug_var_chain.
(create_nesting_tree): Initialize them.
(lookup_field_for_decl): Use field_map.
(get_nonlocal_debug_decl, get_local_debug_decl): New.
(convert_local_omp_clauses): New.
(finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
(walk_body): Split out of walk_function.
(convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
(convert_nonlocal_reference): Handle omp statements.
(convert_local_reference): Likewise.
(unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
(unnest_nesting_tree): New.
(lower_nested_functions): Call it.
(insert_field_into_struct): Make extern.
(struct walk_stmt_info): Move to tree-gimple.h.
(walk_stmts): Make extern.
* omp-builtins.def: New file.
* tree-iterator.c (expr_only): Clarify comment.
* c-common.h (pushdecl_top_level, pushdecl,
build_modify_expr, build_indirect_ref,
c_finish_omp_master, c_finish_omp_critical,
c_finish_omp_ordered, c_finish_omp_barrier,
c_finish_omp_atomic, c_finish_omp_flush,
c_finish_omp_for, c_split_parallel_clauses,
omp_clause_default_kind, c_omp_sharing_predetermined,
c_omp_remap_decl): Declare.
* Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
(OBJS-common): Add omp-low.o.
(c-omp.o, omp-low.o): Add.
(gimplify.o): Add dependency on $(OPTABS_H).
(GTFILES): Add omp-low.c.
(gt-stringpool.h): Add.
* tree-cfg.c (set_bb_for_stmt): Do not update the
block-to-labels map if we are currently expanding to RTL.
(tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
checks.
Handle IDENTIFIER_NODE.
(tree_verify_flow_info): Do not ICE when emitting error
messages about invalid labels.
(dump_function_to_file): Reset CFUN before emitting the body
of the function.
(debug_function): New.
* passes.c (init_optimization_passes): Schedule
pass_lower_omp.
* langhooks-def.h (lhd_omp_predetermined_sharing,
lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
Declare.
(LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
(LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
LANG_HOOKS_OMP_PREDETERMINED_SHARING,
LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
(LANG_HOOK_DECLS): Use them.
2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* c-parser.c (pragma_omp_clause): Define.
(c_parser_declaration_or_fndef): Document OpenMP syntax.
(c_parser_compound_statement): Likewise.
(c_parser_statement): Likewise.
(c_parser_pragma): Handle omp pragmas.
(OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
(c_parser_omp_clause_name, check_no_duplicate_clause,
c_parser_omp_variable_list,
c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
c_parser_omp_clause_copyprivate,
c_parser_omp_clause_default,
c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
c_parser_omp_clause_lastprivate,
c_parser_omp_clause_nowait,
c_parser_omp_clause_num_threads,
c_parser_omp_clause_ordered, c_parser_omp_clause_private,
c_parser_omp_clause_reduction,
c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
c_parser_omp_all_clauses, c_parser_omp_structured_block,
c_parser_omp_atomic, c_parser_omp_barrier,
c_parser_omp_critical, c_parser_omp_flush,
c_parser_omp_for_loop, c_parser_omp_for,
c_parser_omp_master, c_parser_omp_ordered,
c_parser_omp_sections_scope, c_parser_omp_sections,
c_parser_omp_parallel, c_parser_omp_single,
c_parser_omp_construct, c_parser_omp_threadprivate): New.
* c-pragma.c (init_pragma): Do omp pragma registration here.
* c.opt (fopenmp): New flag.
2006-01-18 Eric Christopher <echristo@apple.com>
* gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
* config/darwin.h (GOMP_SELF_SPECS): Define.
testsuite/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
Uros Bizjak <uros@kss-loka.si>
* testsuite/gcc.dg/gomp: New directory.
From-SVN: r109902
2006-01-18 20:21:25 +01:00
|
|
|
after $gccpath.
|
|
|
|
|
|
|
|
* Makefile.am (SUBDIRS): New.
|
|
|
|
(libgomp_la_LDFLAGS): Add -lpthread.
|
|
|
|
* configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
|
|
|
|
* Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
|
|
|
|
|
|
|
|
* libgomp_g.h: New file.
|
|
|
|
* libgomp.h: Split out all public declarations to libgomp_g.h.
|
|
|
|
Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
|
|
|
|
* config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
|
|
|
|
* config/linux/sem.h: Likewise.
|
|
|
|
* config/posix/sem.h: Likewise.
|
|
|
|
|
|
|
|
* Makefile.am (AM_LDFLAGS): New.
|
|
|
|
(libgomp_version_script): Split out from ...
|
|
|
|
(libgomp_la_LDFLAGS): ... here.
|
|
|
|
(libgomp_version_info): New.
|
|
|
|
* acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
|
|
|
|
(LIBGOMP_ENABLE): New.
|
|
|
|
(LIBGOMP_CHECK_LINKER_FEATURES): New.
|
|
|
|
(LIBGOMP_ENABLE_SYMVERS): New.
|
|
|
|
* configure.ac (AC_INIT): Version 1.0.
|
|
|
|
(enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
|
|
|
|
(enable-linux-futex): Likewise. Rename from enable-futex.
|
|
|
|
(libtool_VERSION): New.
|
|
|
|
(LIBGOMP_ENABLE_SYMVERS): Use it.
|
|
|
|
* configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
|
|
|
|
* Makefile.in, aclocal.m4, configure: Rebuild.
|
|
|
|
|
|
|
|
* config/linux/mutex.c: Include libgomp.h instead of mutex.h.
|
|
|
|
(gomp_mutex_unlock_slow): Fix typo.
|
|
|
|
* config/linux/sem.c: Similarly.
|
|
|
|
(gomp_sem_post_slow): Fix typo.
|
|
|
|
* config/linux/sem.h (gomp_sem_post_slow): Fix typo.
|
|
|
|
* config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
|
|
|
|
[__PIC__] (sys_futex0): Don't use tmp output in asm.
|
|
|
|
|
|
|
|
* Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
|
|
|
|
(libgomp_la_LDFLAGS): Add top_srcdir to path.
|
|
|
|
* acinclude.m4: Copy libtool.m4 stuff from libgfortran.
|
|
|
|
* configure.ac: Check for getloadavg. Substitute XCFLAGS and
|
|
|
|
XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
|
|
|
|
* configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
|
|
|
|
LDFLAGS. Pull enable_futex check to top-level.
|
|
|
|
* libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
|
|
|
|
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
|
|
|
|
|
|
|
|
First attempt at real configury.
|
|
|
|
* Makefile, config.h: Remove file.
|
|
|
|
* Makefile.am, Makefile.in: New file.
|
|
|
|
* acinclude.m4 aclocal.m4: New file.
|
|
|
|
* configure.ac, configure.tgt, configure: New file.
|
|
|
|
|
|
|
|
* config/posix/lock.c: Rename from sys-lock.c.
|
|
|
|
* config/posix/mutex.h: Rename from sys-mutex.h.
|
|
|
|
* config/posix/sem.c: Rename from sys-sem.c.
|
|
|
|
* config/posix/sem.h: Rename from sys-sem.h.
|
|
|
|
* config/posix/proc.c: Rename from sys-proc.c.
|
|
|
|
* config/posix/time.c: Rename from sys-proc.c.
|
|
|
|
|
|
|
|
* config/linux/mutex.c: New file.
|
|
|
|
* config/linux/mutex.h: New file.
|
|
|
|
* config/linux/sem.c: New file.
|
|
|
|
* config/linux/sem.h: New file.
|
|
|
|
* config/linux/i486/futex.h: New file.
|
|
|
|
* config/linux/x86_64/futex.h: New file.
|
|
|
|
|
|
|
|
2005-05-04 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
|
|
|
|
* libgomp.h: Declare them.
|
|
|
|
* loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
|
|
|
|
gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
|
|
|
|
|
|
|
|
2005-05-04 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* libgomp-1 code drop
|
|
|
|
|
|
|
|
2005-05-04 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* iter.c (gomp_iter_static_next): Return tri-state on 0.
|
|
|
|
* ordered.c (gomp_ordered_static_next): Remove not_last argument.
|
|
|
|
* libgomp.h (struct gomp_team_state): Make static_trip unsigned.
|
|
|
|
(gomp_iter_static_next): Update.
|
|
|
|
(gomp_ordered_static_next): Update.
|
|
|
|
* loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
|
|
|
|
(gomp_loop_ordered_static_start): Likewise. Exit early for a
|
|
|
|
totally empty range.
|
|
|
|
(gomp_loop_ordered_static_next): Refine test for calling
|
|
|
|
gomp_ordered_static_next.
|
|
|
|
* testsuite/ordered-1.c: Add case for more threads than iterations.
|
|
|
|
|
|
|
|
* iter.c (gomp_iter_runtime_next_locked): Remove.
|
|
|
|
* loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
|
2006-07-05 19:32:41 +02:00
|
|
|
gomp_loop_guided_start, gomp_loop_ordered_static_start,
|
[multiple changes]
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* libgomp: New directory.
* Makefile.def: Add target_module libgomp.
* Makefile.in: Regenerate.
* configure.in (target_libraries): Add target-libgomp.
* configure: Regenerate.
contrib/
2006-01-18 Richard Henderson <rth@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* gcc_update (files_and_dependencies): Add libgomp files.
gcc/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* omp-low.c: New file.
* c-omp.c: New file.
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* doc/invoke.texi: Document -fopenmp.
* tree-dump.h (debug_function): Declare.
* hooks.c (hook_bool_tree_bool_false): New function.
(hook_tree_tree_null): Remove.
(hook_tree_tree_tree_null): New.
* hooks.h: Update to match.
* tree-pretty-print.c (debug_tree_chain): New.
(print_generic_expr): Handle TDF_CHAIN.
(dump_generic_node): Handle BLOCK.
Do not abort with incomplete SWITCH_EXPRs.
Do not dump body of an OpenMP directive if TDF_SLIM is given.
<case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
print space after directive name.
<OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
Handle OMP_MASTER and OMP_ORDERED.
Handle printing of OMP_BODY just in one place, goto
dump_omp_body in the rest of OMP_* nodes that have
OMP_BODY.
Don't handle clause nodes here. Update omp statements to
use dump_omp_clauses.
Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
Adjust output for GOMP_PARALLEL.
(dump_omp_clauses): New.
(print_declaration): Dump DECL_VALUE_EXPR.
(op_symbol_1): Split out of op_symbol.
(dumping_stmts): Remove. Update all users.
* cgraph.c (cgraph_analyze_queue): New.
(cgraph_add_new_function): New.
* cgraph.h (cgraph_analyze_queue): Declare.
(cgraph_add_new_function): Declare.
(cgraph_lower_function): Remove.
* tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
and TYPE_P nodes in its default clause.
(empty_body_p): New.
(tree_range_check_failed): New.
(build5_stat): New.
* tree.h (OMP_CLAUSE_REDUCTION_INIT,
OMP_CLAUSE_REDUCTION_MERGE,
OMP_CLAUSE_REDUCTION_PLACEHOLDER,
OMP_CLAUSE_PRIVATE_DEBUG,
OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
(TREE_RANGE_CHECK): New.
(empty_body_p): Declare.
(enum omp_clause_default_kind): New.
(build_string_literal): Declare.
(enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
(build5_stat, build5): Declare.
* tree-pass.h (TDF_CHAIN): Define.
* tree-pass.h (PROP_gimple_lomp): Define.
(pass_lower_omp): Declare.
* diagnostic.h (debug_tree_chain): Declare.
* builtins.c (get_builtin_sync_mode): Use 0 as last argument to
mode_for_size.
(expand_builtin): Handle sync BUILT_IN_*_16 builtins.
* builtins.c (build_string_literal): Make extern.
* gcc.c (include_spec_function): New.
(static_spec_functions): Add it.
(main): Move load of libgomp.spec ...
(LINK_COMMAND_SPEC): ... here.
(link_gomp_spec): New.
(static_specs): Include it.
(LINK_COMMAND_SPEC): Add link_gomp.
(GOMP_SELF_SPECS): New.
(driver_self_specs): Include it.
(switch_matches): Don't mark inline.
(main): Load libgomp.spec.
* tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
* tree-gimple.h (enum omp_parallel): Declare.
(determine_parallel_type): Declare.
(omp_firstprivatize_variable): Declare.
(omp_reduction_init): Declare.
(diagnose_omp_structured_block_errors): Declare.
(struct walk_stmt_info): Add want_return_expr.
(struct walk_stmt_info): Add want_bind_expr, want_locations.
(find_omp_clause): Declare.
(insert_field_into_struct): Declare.
(struct walk_stmt_info): Move from tree-nested.c
(walk_stmts): Declare.
* c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
to 200505.
* cgraphunit.c (cgraph_lower_function): Make static.
(cgraph_finalize_pending_functions): New.
(cgraph_finalize_function): Call it.
(cgraph_finalize_compilation_unit): Likewise.
* builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
(BT_FN_UINT_UINT): New.
(DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
DEF_FUNCTION_TYPE_VAR_4): Document.
(BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
BT_FN_VOID_OMPFN_PTR_UINT_UINT,
BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
* builtins.def: Update DEF_BUILTIN comment to include COND argument.
Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
into separate files.
(DEF_GOMP_BUILTIN): New.
(BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
* sync-builtins.def: New file, moved from builtins.def.
* omp-builtins.def: New file, moved from builtins.def.
* c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
* gimple-low.c (lower_function_body): Clear data.
(lower_stmt): Do not handle COMPOUND_EXPR.
Remove call to print_node_brief.
* c-tree.h (c_finish_omp_clauses): New prototype.
(C_DECL_THREADPRIVATE_P): Define.
(lookup_name_no_remap, c_omp_remap_private): Remove
(c_begin_omp_parallel, c_finish_omp_parallel): Update.
(check_for_loop_decls): Update decl.
(lookup_name_no_remap, c_omp_remap_private): Declare.
(build_indirect_ref, build_modify_expr, pushdecl,
pushdecl_top_level): Move to c-common.h.
* dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
before the switch, but just in the 2 places that need it.
* c-decl.c (diagnose_mismatched_decls): Do not check for
mismatched thread-local attributes when OLDDECL is marked
threadprivate and NEWDECL has no thread-local attributes.
(merge_decls): Merge C_DECL_THREADPRIVATE_P.
(c_gimple_diagnostics_recursively): Rename from
c_warn_unused_result_recursively. Invoke
diagnose_omp_structured_block_errors.
(check_for_loop_decls): Return a singular decl found.
* langhooks.c (lhd_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
(lhd_omp_firstprivatize_type_sizes): New.
(lhd_omp_assignment): New.
(lhd_omp_predetermined_sharing): New.
* langhooks.h (struct gimplify_omp_ctx): Forward declare.
(struct lang_hooks_for_types): Add
omp_firstprivatize_type_sizes, omp_privatize_by_reference,
omp_predetermined_sharing, omp_disregard_value_expr,
omp_private_debug_clause, omp_clause_default_ctor,
omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
(c_finish_omp_clauses): New.
(c_finish_bc_stmt): Diagnose break within omp for.
(c_begin_omp_parallel, c_finish_omp_parallel): New.
(build_unary_op): Return error_mark after reporting
a readonly_error.
(build_modify_expr): Likewise.
* gimplify.c: Include optabs.h and pointer-set.h.
(enum gimplify_omp_var_data): Declare.
(struct gimplify_omp_ctx): Declare.
(struct gimplify_ctx): Add fields prev_context, combined_pre_p
and combined_ctxp.
(gimplify_ctxp, gimplify_omp_ctxp): New local variables.
(push_gimplify_context, pop_gimplify_context): Allow nesting.
(splay_tree_compare_decl_uid): New.
(new_omp_context): New.
(delete_omp_context): New.
(gimple_add_tmp_var): Call omp_add_variable.
(gimplify_bind_expr): Likewise.
(gimplify_var_or_parm_decl): If omp_notice_variable returned
true, disregard DECL_VALUE_EXPR on the decl if any.
(gimplify_expr_in_ctx): New.
(omp_firstprivatize_variable, omp_firstprivatize_type_sizes
omp_add_variable, omp_notice_variable, omp_is_private
gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
gimplify_adjust_omp_clauses, gimplify_omp_parallel
gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
gimplify_omp_atomic_fetch_op, goa_stabilize_expr
gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
gimplify_omp_atomic): New.
(gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL and OMP_ATOMIC.
(gimplify_body): Verify gimplify_ctxp is empty after gimplification.
* c-pragma.h (enum pragma_kind): Add
PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
PRAGMA_OMP_THREADPRIVATE.
* tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
* print-tree.c (print_node): Dump DECL_VALUE_EXPR.
* tree-ssa-dce.c (find_control_dependence): Do not assume that
ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
* tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
OpenMP directives.
(struct nesting_info): Add field_map,
suppress_expansion, debug_var_chain.
(create_nesting_tree): Initialize them.
(lookup_field_for_decl): Use field_map.
(get_nonlocal_debug_decl, get_local_debug_decl): New.
(convert_local_omp_clauses): New.
(finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
(walk_body): Split out of walk_function.
(convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
(convert_nonlocal_reference): Handle omp statements.
(convert_local_reference): Likewise.
(unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
(unnest_nesting_tree): New.
(lower_nested_functions): Call it.
(insert_field_into_struct): Make extern.
(struct walk_stmt_info): Move to tree-gimple.h.
(walk_stmts): Make extern.
* omp-builtins.def: New file.
* tree-iterator.c (expr_only): Clarify comment.
* c-common.h (pushdecl_top_level, pushdecl,
build_modify_expr, build_indirect_ref,
c_finish_omp_master, c_finish_omp_critical,
c_finish_omp_ordered, c_finish_omp_barrier,
c_finish_omp_atomic, c_finish_omp_flush,
c_finish_omp_for, c_split_parallel_clauses,
omp_clause_default_kind, c_omp_sharing_predetermined,
c_omp_remap_decl): Declare.
* Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
(OBJS-common): Add omp-low.o.
(c-omp.o, omp-low.o): Add.
(gimplify.o): Add dependency on $(OPTABS_H).
(GTFILES): Add omp-low.c.
(gt-stringpool.h): Add.
* tree-cfg.c (set_bb_for_stmt): Do not update the
block-to-labels map if we are currently expanding to RTL.
(tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
checks.
Handle IDENTIFIER_NODE.
(tree_verify_flow_info): Do not ICE when emitting error
messages about invalid labels.
(dump_function_to_file): Reset CFUN before emitting the body
of the function.
(debug_function): New.
* passes.c (init_optimization_passes): Schedule
pass_lower_omp.
* langhooks-def.h (lhd_omp_predetermined_sharing,
lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
Declare.
(LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
(LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
LANG_HOOKS_OMP_PREDETERMINED_SHARING,
LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
(LANG_HOOK_DECLS): Use them.
2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* c-parser.c (pragma_omp_clause): Define.
(c_parser_declaration_or_fndef): Document OpenMP syntax.
(c_parser_compound_statement): Likewise.
(c_parser_statement): Likewise.
(c_parser_pragma): Handle omp pragmas.
(OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
(c_parser_omp_clause_name, check_no_duplicate_clause,
c_parser_omp_variable_list,
c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
c_parser_omp_clause_copyprivate,
c_parser_omp_clause_default,
c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
c_parser_omp_clause_lastprivate,
c_parser_omp_clause_nowait,
c_parser_omp_clause_num_threads,
c_parser_omp_clause_ordered, c_parser_omp_clause_private,
c_parser_omp_clause_reduction,
c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
c_parser_omp_all_clauses, c_parser_omp_structured_block,
c_parser_omp_atomic, c_parser_omp_barrier,
c_parser_omp_critical, c_parser_omp_flush,
c_parser_omp_for_loop, c_parser_omp_for,
c_parser_omp_master, c_parser_omp_ordered,
c_parser_omp_sections_scope, c_parser_omp_sections,
c_parser_omp_parallel, c_parser_omp_single,
c_parser_omp_construct, c_parser_omp_threadprivate): New.
* c-pragma.c (init_pragma): Do omp pragma registration here.
* c.opt (fopenmp): New flag.
2006-01-18 Eric Christopher <echristo@apple.com>
* gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
* config/darwin.h (GOMP_SELF_SPECS): Define.
testsuite/
2006-01-18 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
Uros Bizjak <uros@kss-loka.si>
* testsuite/gcc.dg/gomp: New directory.
From-SVN: r109902
2006-01-18 20:21:25 +01:00
|
|
|
gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
|
|
|
|
gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
|
|
|
|
gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
|
|
|
|
gomp_loop_ordered_guided_next): Downcase name, make static, add
|
|
|
|
an external alias with the old name.
|
|
|
|
(GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
|
|
|
|
GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
|
|
|
|
switch and call one of the above static functions.
|
|
|
|
* libgomp.h: Update.
|
|
|
|
|
|
|
|
* work.c (gomp_work_share_start): Lock the mutex for !first too.
|
|
|
|
* loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
|
|
|
|
GOMP_loop_guided_start, GOMP_loop_runtime_start,
|
|
|
|
GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
|
|
|
|
GOMP_loop_ordered_guided_start): Update to match.
|
|
|
|
* sections.c (GOMP_sections_start): Likewise.
|
|
|
|
* single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
|
|
|
|
|
|
|
|
* ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
|
|
|
|
gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
|
|
|
|
Use bounds check instead of modulus.
|
|
|
|
(gomp_ordered_sync): Split out of GOMP_ordered_start.
|
|
|
|
(gomp_ordered_last): Don't sync with ordered_owner here.
|
|
|
|
(gomp_ordered_next): Likewise.
|
|
|
|
(gomp_ordered_static_loop_next): Likewise.
|
|
|
|
* loop.c, libgomp.h: Update to match.
|
|
|
|
|
|
|
|
* libgomp.h (GOMP_barrier): Declare.
|
|
|
|
|
|
|
|
* testsuite/barrier-1.c: New file.
|
|
|
|
* testsuite/critical-1.c: New file.
|
|
|
|
* testsuite/ordered-2.c: New file.
|
|
|
|
* testsuite/ordered-1.c: New file.
|
|
|
|
* testsuite/sections-1.c: New file.
|
|
|
|
* testsuite/single-1.c: New file.
|
|
|
|
* testsuite/Makefile (TESTS): Add them.
|
|
|
|
|
|
|
|
2005-05-04 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* libgomp.h (struct gomp_work_share): Add ordered_owner.
|
|
|
|
* loop.c (GOMP_loop_static_start): If not the startup thread,
|
|
|
|
acquire the mutex to wait for initialization complete.
|
|
|
|
(GOMP_loop_ordered_static_start): Likewise.
|
|
|
|
(GOMP_loop_ordered_runtime_start): Likewise.
|
|
|
|
(GOMP_loop_ordered_static_first): Remove.
|
|
|
|
(GOMP_loop_ordered_dynamic_first): Remove.
|
|
|
|
(GOMP_loop_ordered_guided_first): Remove.
|
|
|
|
(GOMP_loop_ordered_runtime_first): Remove.
|
|
|
|
* ordered.c (gomp_ordered_loop_first): Post to own release when
|
|
|
|
we're the first thread.
|
|
|
|
(gomp_ordered_loop_last): Wait on release if not owner.
|
|
|
|
(gomp_ordered_loop_next): Likewise.
|
|
|
|
(gomp_ordered_static_loop_init): New.
|
|
|
|
(gomp_ordered_static_loop_next): Use ordered_owner.
|
|
|
|
(GOMP_ordered_start): Likewise.
|
|
|
|
* work.c (gomp_new_work_share): Initialize ordered_owner.
|
|
|
|
|
|
|
|
2005-05-03 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* Makefile (OPT): New.
|
|
|
|
(CFLAGS): Use it.
|
|
|
|
|
|
|
|
* loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
|
|
|
|
* sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
|
|
|
|
* libgomp.h, libgomp.map, NOTES: Update to match.
|
|
|
|
|
|
|
|
* team.c (struct gomp_thread_start_data): Remove ts, fn, data.
|
|
|
|
Add initialized and thr members.
|
|
|
|
(gomp_thread_start): Pause when initially spawned to wait for
|
|
|
|
the whole team to be created.
|
|
|
|
(gomp_team_start): Release team members at the end.
|
|
|
|
|
|
|
|
* testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
|
|
|
|
(f_foo_1): Use GOMP_loop_end.
|
|
|
|
(f_foo_2): Use GOMP_loop_end_nowait.
|
|
|
|
|
|
|
|
* testsuite/loop-2.c: New file.
|
|
|
|
* testsuite/Makefile (TESTS): Add it.
|
|
|
|
|
|
|
|
2005-05-03 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* iter.c (gomp_iter_static_next): Fix overflow check typo.
|
|
|
|
(gomp_iter_dynamic_next_locked): Fix overflow check thinko.
|
|
|
|
* team.c (new_team): Initialize oldest_live_gen to 1 if no
|
|
|
|
initial work_share.
|
|
|
|
|
|
|
|
* testsuite/Makefile: New file.
|
|
|
|
* testsuite/loop-1.c: New file.
|
|
|
|
|
|
|
|
2005-05-03 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
Initial implementation and checkin.
|