public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* teach delay folding in c++ about OACC_LOOPs
@ 2015-11-18 15:14 Cesar Philippidis
  2015-11-09  6:31 ` RFC: C++ delayed folding merge Jason Merrill
  2015-11-18 16:27 ` teach delay folding in c++ about OACC_LOOPs Nathan Sidwell
  0 siblings, 2 replies; 13+ messages in thread
From: Cesar Philippidis @ 2015-11-18 15:14 UTC (permalink / raw)
  To: gcc-patches, Jason Merrill

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

Jason,

Your recent delay folding patch broke libgomp.oacc-c++/loop-auto-1.c. It
looks like you forgot to handle OACC_LOOP in cp_fold_r. You probably
didn't notice this because Nathan committed his auto acc loop patch just
before you applied your patch. I'm not sure why only that test is
affected though.

Is this patch ok for trunk?

Cesar

[-- Attachment #2: cxx-folding.diff --]
[-- Type: text/x-patch, Size: 654 bytes --]

2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>

	gcc/cp/
	* cp-gimplify.c (cp_fold_r): Add support for OACC_LOOP.

diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c
index 8fe9e13..99d0cfb 100644
--- a/gcc/cp/cp-gimplify.c
+++ b/gcc/cp/cp-gimplify.c
@@ -933,7 +933,8 @@ cp_fold_r (tree *stmt_p, int *walk_subtrees, void *data)
 
   code = TREE_CODE (stmt);
   if (code == OMP_FOR || code == OMP_SIMD || code == OMP_DISTRIBUTE
-      || code == OMP_TASKLOOP || code == CILK_FOR || code == CILK_SIMD)
+      || code == OMP_TASKLOOP || code == CILK_FOR || code == CILK_SIMD
+      || code == OACC_LOOP)
     {
       tree x;
       int i, n;

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-11-26  8:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-18 15:14 teach delay folding in c++ about OACC_LOOPs Cesar Philippidis
2015-11-09  6:31 ` RFC: C++ delayed folding merge Jason Merrill
2015-11-09  9:08   ` Richard Biener
2015-11-09 19:28     ` Jason Merrill
2015-11-09 20:55       ` Jason Merrill
2015-11-10  9:02         ` Richard Biener
2015-11-09  9:24   ` Eric Botcazou
2015-11-09 14:08     ` Jason Merrill
2015-11-09 22:07       ` Eric Botcazou
2015-11-23  7:44   ` Thomas Schwinge
2015-11-25 22:14     ` Jason Merrill
2015-11-26  8:50   ` Thomas Schwinge
2015-11-18 16:27 ` teach delay folding in c++ about OACC_LOOPs Nathan Sidwell

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).