This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc gcc/ChangeLog.gomp gcc/Makefile.in gcc/c-p ...
- From: dnovillo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 20 Sep 2005 21:19:27 -0000
- Subject: gcc gcc/ChangeLog.gomp gcc/Makefile.in gcc/c-p ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gomp-20050608-branch
Changes by: dnovillo@gcc.gnu.org 2005-09-20 21:19:27
Modified files:
gcc : ChangeLog.gomp Makefile.in c-parser.c cgraph.c
cgraph.h cgraphunit.c gimple-low.c gimplify.c
passes.c tree-gimple.c tree-inline.c
tree-inline.h tree-pretty-print.c tree.c
tree.def tree.h
libgomp : ChangeLog
Added files:
libgomp/testsuite/libgomp.dg: omp-loop01.c omp-loop02.c
Log message:
libgomp/
* testsuite/libgomp.dg/omp-loop01.c: New test.
* testsuite/libgomp.dg/omp-loop02.c: New test.
gcc/
* Makefile.in (c-parser.o): Depend on vec.h.
(gimple-low.o): Depend on $(SPLAY_TREE_H)
* c-parser.c: Include vec.h.
(curr_clause_set, omp_clauses_stack): New locals.
(omp_clauses): Remove. Adjust all callers.
(push_omp_clauses, pop_omp_clauses, add_new_clause): New.
(c_parser_for_statement): Add new argument IS_OMP_FOR.
If true, emit a GOMP_FOR tree.
Adjust all callers.
(c_parser_omp_directive): Call pop_omp_clauses.
(c_parser_pragma_omp_clause_copyin): Call add_new_clause.
Don't return anything. Adjust callers.
(c_parser_pragma_omp_clause_firstprivate): Call add_new_clause.
(c_parser_pragma_omp_clause_lastprivate): Likewise.
(c_parser_pragma_omp_clause_private): Likewise.
(c_parser_pragma_omp_clause_shared): Likewise.
Mark all shared variables addressable.
(c_parser_pragma_omp_for): Call push_omp_clauses.
(c_parser_pragma_omp_parallel_for): Remove printf.
(c_parser_pragma_omp_for): Call push_omp_clauses
(c_parser_pragma_omp_parallel_sections): Remove printf.
(c_parser_pragma_omp_parallel): Call push_omp_clauses.
(c_parser_pragma_omp_sections): Remove printf.
Call push_omp_clauses.
(c_parser_pragma_omp_single): Remove printf.
Call push_omp_clauses.
* cgraph.c (cgraph_add_new_function): Assume that FNDECL
already has a struct function associated.
* gimple-low.c: Include splay-tree.h
(struct remap_info_d, add_decls_to_set, build_remap_info,
remap_locals_r): Move from tree-inline.c.
(delete_remap_info, get_gomp_private_ref, get_gomp_shared_ref,
remap_locals): New.
(create_gomp_fn): Set DECL_ARG_TYPE and TREE_USED on
FN_DATA_ARG.
(emit_gomp_data_setup_code): New.
(lower_gomp_parallel): Rename from lower_gomp_expr.
Allocate the function structure before calling remap_locals.
Call emit_gomp_data_setup_code.
Call delete_remap_info.
(emit_gomp_for_static): New.
(lower_gomp_for): New.
(lower_stmt): Handle GOMP_FOR.
* gimplify.c (gimplify_gomp_for): New.
(gimplify_expr): Handle GOMP_FOR with a call to
gimplify_gomp_for.
* tree-gimple.c (is_gimple_stmt): Handle GOMP_FOR.
* tree-inline.c (remap_locals_d, add_decls_to_set,
build_remap_info, remap_locals_r): Move to gimple-low.c.
(remap_locals_in_gomp_body, move_decl_to): Remove.
* tree-inline.h (remap_locals_in_gomp_body): Remove.
* tree-pretty-print.c (dump_generic_node): Handle GOMP_FOR,
GOMP_CLAUSE_SHARED, GOMP_CLAUSE_FIRSTPRIVATE,
GOMP_CLAUSE_LASTPRIVATE, GOMP_CLAUSE_COPYIN,
GOMP_CLAUSE_COPYPRIVATE.
Adjust output for GOMP_PARALLEL.
* tree.c (build5_stat): New.
* tree.def (GOMP_FOR): Add operand GOMP_FOR_COND.
* tree.h (GOMP_FOR_CLAUSES, GOMP_FOR_INIT, GOMP_FOR_CODN,
GOMP_FOR_INCR, GOMP_FOR_BODY, GOMP_SHARED_VARS,
GOMP_FIRSTPRIVATE_VARS, GOMP_LASTPRIVATE_VARS,
GOMP_COPYIN_VARS, GOMP_COPYPRIVATE_VARS): Define.
(build5_stat, build5): Declare.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.gomp.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.6.10&r2=1.1.6.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1501.4.5&r2=1.1501.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-parser.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.17.4.5&r2=2.17.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraph.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.77.4.5&r2=1.77.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraph.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.57.4.4&r2=1.57.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraphunit.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.116.4.4&r2=1.116.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.24.4.5&r2=2.24.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.135.4.8&r2=2.135.4.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/passes.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.91.4.5&r2=2.91.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-gimple.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.38.4.3&r2=2.38.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.192.4.5&r2=1.192.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.17.4.3&r2=1.17.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-pretty-print.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=2.61.4.5&r2=2.61.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.487.4.5&r2=1.487.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.def.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.116.4.6&r2=1.116.4.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.735.4.6&r2=1.735.4.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgomp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.6.6&r2=1.1.6.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgomp/testsuite/libgomp.dg/omp-loop01.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgomp/testsuite/libgomp.dg/omp-loop02.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=NONE&r2=1.1.2.1