diff mbox

[Cilkplus] Capturing Cilk Sync across templates

Message ID BF230D13CA30DD48930C31D4099330000F274A0A@FMSMSX102.amr.corp.intel.com
State New
Headers show

Commit Message

Iyer, Balaji V June 15, 2012, 3:41 a.m. UTC
This time with the patch :-).

-Balaji V. Iyer.
diff mbox

Patch

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.iyer@intel.com>
+
+	* pt.c (tsubst_expr): Added a check for CILK_SYNC statement.
+
 2012-06-12  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
 	* cilk.c (callable): Removed a check to add LOOKUP_COMPLAIN.