This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Fix handling of RESULT_DECL (PR middle-end/27337)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Apr 2006 08:02:08 -0700
- Subject: Re: [gomp] Fix handling of RESULT_DECL (PR middle-end/27337)
- References: <20060427164243.GO18543@devserv.devel.redhat.com>
On Thu, Apr 27, 2006 at 12:42:43PM -0400, Jakub Jelinek wrote:
> * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
> around RESULT_DECL for result passed by reference.
> (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
> * omp-low.c (use_pointer_for_field): Don't look at
> DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
> (scan_omp_1): Call remap_decl on RESULT_DECLs.
> (lower_rec_input_clauses): Don't allocate VLA memory for the second
> time or var for passing by reference for
> OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
> TREE_ADDRESSABLE variables when passing by reference.
>
> * omp-low.c (dump_omp_region): Fix output formatting.
> cp/
> * cp-gimplify.c (cxx_omp_privatize_by_reference): New function.
> * cp-tree.h (cxx_omp_privatize_by_reference): New prototype.
> * cp-objcp-common.h (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Define.
> testsuite/
> * g++.dg/gomp/pr27337-1.C: New test.
> * g++.dg/gomp/pr27337-2.C: New test.
> libgomp/
> * testsuite/libgomp.c++/pr27337.C: New test.
Ok.
r~