------- Comment #1 from cvs-commit at gcc dot gnu dot org  2005-10-26 09:20 
-------
Subject: Bug 24512

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gomp-20050608-branch
Changes by:     [EMAIL PROTECTED]       2005-10-26 09:20:37

Modified files:
        gcc            : ChangeLog.gomp c-common.h c-omp.c c-parser.c 
        gcc/cp         : ChangeLog.gomp 
        gcc/testsuite  : ChangeLog.gomp 
        gcc/cp         : semantics.c parser.c cp-tree.h pt.c 
Added files:
        gcc/testsuite/g++.dg/gomp: for-15.C 

Log message:
        PR c++/24512
        * c-common.h (c_finish_omp_for): Add PRE_BODY argument.
        * c-omp.c (c_finish_omp_for): Likewise.  Set OMP_FOR_PRE_BODY
        to that argument.
        * c-parser.c (c_parser_omp_for_loop): Adjust c_finish_omp_for
        caller.
        cp/
        * cp-tree.h (finish_omp_for): Add PRE_BODY argument.
        * semantics.c (finish_omp_for): Likewise.  Set OMP_FOR_PRE_BODY
        to PRE_BODY if deferring, add it into the current statement list
        if not processing template decl or pass it to c_finish_omp_for.
        * parser.c (cp_parser_omp_for_loop): Expand optional DECL_EXPRs
        into PRE_BODY statement list.  Pass it to finish_omp_for.
        * pt.c (tsubst_expr) <case OMP_FOR>: tsubst_expr also OMP_FOR_PRE_BODY
        into PRE_BODY stmt list, pass it to finish_omp_for.  Put all the
        statements into sk_omp scope.
        testsuite/
        * g++.dg/gomp/for-15.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.107&r2=1.1.6.108
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.294.4.15&r2=1.294.4.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-omp.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.2.15&r2=1.1.2.16
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.38&r2=2.17.4.39
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.gomp.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1.8.25&r2=1.1.8.26
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.47&r2=1.1.2.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.475.4.21&r2=1.475.4.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.340.4.22&r2=1.340.4.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1144.4.18&r2=1.1144.4.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=1.1005.4.11&r2=1.1005.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/gomp/for-15.C.diff?cvsroot=gcc&only_with_tag=gomp-20050608-branch&r1=NONE&r2=1.1.2.1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24512

Reply via email to