This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Fix a couple of global var handling bugs, add firstprivate+lastprivate barrier (PR c++/26943)
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 01 May 2006 14:51:03 -0400
- Subject: Re: [gomp] Fix a couple of global var handling bugs, add firstprivate+lastprivate barrier (PR c++/26943)
- References: <20060501170611.GD14147@devserv.devel.redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> PR c++/26943
> * omp-low.c (build_outer_var_ref): Use lookup_decl_in_outer_ctx
> to find if var will be a global variable even in the nested context.
> (omp_copy_decl): Only check for global variable at the end, it might
> be overridden in outer contexts.
> (scan_sharing_clauses): For global variables in non-nested contexts
> don't create a field.
> (lower_rec_input_clauses): Do nothing for global shared variables.
> Emit a barrier at the end of ILIST if there were any decls in both
> firstprivate and lastprivate clauses.
> (lower_send_clauses): Do nothing for global variables except for
> COPYIN.
>
> * testsuite/libgomp.c/pr26943-1.c: New test.
> * testsuite/libgomp.c/pr26943-2.c: New test.
> * testsuite/libgomp.c/pr26943-3.c: New test.
> * testsuite/libgomp.c/pr26943-4.c: New test.
> * testsuite/libgomp.c++/pr27337.C: Remove barrier.
> * testsuite/libgomp.c++/pr26943.C: New test.
>
OK.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEVliXUTa2oAUaiwQRAu/eAJ9dz0W5/jKamxeqnPhqmjLnlKM9RACfdoR5
SwUYDWBHU/RCgl4bk5T3APM=
=X9pr
-----END PGP SIGNATURE-----