This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] Fix handling of RESULT_DECL (PR middle-end/27337)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]