This time with the patch :-).

-Balaji V. Iyer.
________________________________________
From: Iyer, Balaji V
Sent: Thursday, June 14, 2012 11:40 PM
To: gcc-patches@gcc.gnu.org
Subject: [PATCH][Cilkplus] Capturing Cilk Sync across templates

Hello Everyone,
    This patch is for the Cilkplus branch affecting the C++ compler. The 
compiler was dropping the Cilk_sync across templates. This patch will preserve 
this.

Thanking You,

Yours sincerely,

Balaji V. Iyer.
Index: gcc/cp/pt.c
===================================================================
--- gcc/cp/pt.c (revision 188641)
+++ gcc/cp/pt.c (working copy)
@@ -12866,6 +12866,10 @@
       do_using_directive (USING_STMT_NAMESPACE (t));
       break;
 
+    case SYNC_STMT:
+      finish_sync_stmt (false);
+      break;
+
     case DECL_EXPR:
       {
        tree decl, pattern_decl;
Index: gcc/cp/ChangeLog.cilk
===================================================================
--- gcc/cp/ChangeLog.cilk       (revision 188641)
+++ gcc/cp/ChangeLog.cilk       (working copy)
@@ -1,3 +1,7 @@
+2012-06-14  Balaji V. Iyer  <balaji.v.i...@intel.com>
+
+       * pt.c (tsubst_expr): Added a check for CILK_SYNC statement.
+
 2012-06-12  Balaji V. Iyer  <balaji.v.i...@intel.com>
 
        * cilk.c (callable): Removed a check to add LOOKUP_COMPLAIN.

Reply via email to