This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc gcc/ChangeLog.gomp gcc/c-parser.c gcc/gimp ...
- From: dnovillo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 23 Sep 2005 05:55:54 -0000
- Subject: gcc gcc/ChangeLog.gomp gcc/c-parser.c gcc/gimp ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gomp-20050608-branch
Changes by: dnovillo@gcc.gnu.org 2005-09-23 05:55:52
Modified files:
gcc : ChangeLog.gomp c-parser.c gimple-low.c
tree-pretty-print.c tree.def tree.h
gcc/testsuite : ChangeLog.gomp
libgomp : ChangeLog
Added files:
gcc/testsuite/gcc.dg/gomp: omp-parallel-if.c
libgomp/testsuite/libgomp.dg: omp-parallel-if.c
Log message:
gcc/
* c-parser.c (c_parser_pragma_omp_clause): Fix dangling if().
(c_parser_pragma_omp_clause_if): Remove printf.
Check that only one clause 'if' is specified.
Call add_new_clause.
(c_parser_pragma_omp_clause_num_threads): Remove printf.
Check that only one clause 'num_threads' is specified.
Call add_new_clause.
* gimple-low.c (emit_num_threads_setup_code): New.
(lower_gomp_parallel): Call it.
Add new argument DATA. Modify all callers.
* tree-pretty-print.c (dump_generic_node): Handle
GOMP_CLAUSE_IF and GOMP_CLAUSE_NUM_THREADS.
* tree.def (GOMP_CLAUSE_IF, GOMP_CLAUSE_NUM_THREADS): Define.
* tree.h (GOMP_IF_EXPR, GOMP_NUM_THREADS_EXPR): Define.
gcc/testsuite
* gcc.dg/gomp/omp-parallel-if.c: New test.
libgomp/
* testsuite/libgomp.dg/omp-parallel-if.c: New test.
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.24&r2=1.1.6.25
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.13&r2=2.17.4.14
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.9&r2=2.24.4.10
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.6&r2=2.61.4.7
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.7&r2=1.116.4.8
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.8&r2=1.735.4.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.gomp.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/gomp/omp-parallel-if.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/ChangeLog.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/libgomp/testsuite/libgomp.dg/omp-parallel-if.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=NONE&r2=1.1.2.1