public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/26943] [gomp] firstprivate not working properly with non-POD
Date: Tue, 02 May 2006 20:03:00 -0000	[thread overview]
Message-ID: <20060502200344.15785.qmail@sourceware.org> (raw)
In-Reply-To: <bug-26943-119@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from jakub at gcc dot gnu dot org  2006-05-02 20:03 -------
Subject: Bug 26943

Author: jakub
Date: Tue May  2 20:03:38 2006
New Revision: 113483

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113483
Log:
        PR c++/26943
        * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
        (build_outer_var_ref): Use maybe_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 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.

Added:
    trunk/libgomp/testsuite/libgomp.c++/pr26943.C
    trunk/libgomp/testsuite/libgomp.c/pr26943-1.c
    trunk/libgomp/testsuite/libgomp.c/pr26943-2.c
    trunk/libgomp/testsuite/libgomp.c/pr26943-3.c
    trunk/libgomp/testsuite/libgomp.c/pr26943-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/libgomp/ChangeLog
    trunk/libgomp/testsuite/libgomp.c++/pr27337.C


-- 


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


  parent reply	other threads:[~2006-05-02 20:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 15:55 [Bug c++/26943] New: " rth at gcc dot gnu dot org
2006-03-30 15:56 ` [Bug c++/26943] " rth at gcc dot gnu dot org
2006-04-28 15:07 ` jakub at gcc dot gnu dot org
2006-04-29  4:55 ` dnovillo at gcc dot gnu dot org
2006-05-01 12:39 ` dnovillo at gcc dot gnu dot org
2006-05-01 15:15 ` dnovillo at gcc dot gnu dot org
2006-05-01 16:08 ` jakub at gcc dot gnu dot org
2006-05-01 16:11 ` dnovillo at redhat dot com
2006-05-01 17:58 ` rth at gcc dot gnu dot org
2006-05-02 20:03 ` jakub at gcc dot gnu dot org [this message]
2006-05-03 12:23 ` jakub at gcc dot gnu dot org
2006-05-03 12:31 ` jakub at gcc dot gnu dot org
2006-12-05  2:07 ` bergner at vnet dot ibm dot com
2006-12-11  0:37 ` pinskia at gcc dot gnu dot org
2007-03-21 15:43 ` [Bug c++/26943] [gomp] firstprivate + lastprivate uses inefficient barrier rth at gcc dot gnu dot org
2009-09-14 20:39 ` rth at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060502200344.15785.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).